Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Latest commit

 

History

History
1785 lines (814 loc) · 106 KB

CHANGELOG.md

File metadata and controls

1785 lines (814 loc) · 106 KB

6.38.1 (2022-11-08)

Bug Fixes

6.38.0 (2022-10-25)

Features

6.37.0 (2022-10-18)

Features

6.36.0 (2022-10-04)

Features

  • HierarchicalMenu: add css class for link of selected menu item (#3646) (980ad70)
  • useInstantSearch: expose status & error (#3645) (f436d31)

6.35.0 (2022-09-29)

Features

Fixes

  • hooks-web: when searchAsYouType=false, pressing the reset button searches (previously only reset the query) (#3642) (f969deb)

6.34.0 (2022-09-27)

Features

6.33.0 (2022-09-15)

Bug Fixes

  • react-native: mark as compatible with react 18 (#3614) (2a191a8)
  • rish: hide reset button when search is stalled in SearchBox (#3617) (93ee9d0)

Features

  • dependencies: update instantsearch and helper (#3622) (6773ab1)

6.32.1 (2022-08-26)

Bug Fixes

  • useInstantSearch: prevent results from being null when first search is stalled (#3597) (6f71d78)

6.32.0 (2022-08-22)

Features

6.31.1 (2022-08-08)

Bug Fixes

  • hooks: prevent widget cleanup on <InstantSearch> unmount (#3590) (d94899d)

6.31.0 (2022-08-03)

Features

  • hooks: add searchAsYouType option to <SearchBox> (#3585) (c610385)

6.30.3 (2022-08-01)

Bug Fixes

  • hooks: replace labelText CSS class with label in <HierarchicalMenu> to align with InstantSearch's CSS specifications (#3583) (3e030ae)

6.30.2 (2022-07-18)

Bug Fixes

6.30.1 (2022-07-12)

Bug Fixes

  • hooks: provide state and results APIs from "render" event (#3554) (67d4788)
  • hooks: update instantsearch.js dependency (#3557)

6.30.0 (2022-07-05)

Features

6.29.0 (2022-06-21)

Bug Fixes

  • HierarchicalMenu: show full hierarchical parent values (#3521) (79c3890)

Features

  • core: sort parameters for improved cache rate (#3528) (8320d99)
  • core: support client.search for sffv (#3528) (8320d99)

6.28.0 (2022-06-15)

Bug Fixes

Features

6.27.0 (2022-06-07)

Bug Fixes

Features

  • hooks: migrate to useSyncExternalStore() (#3489) (81bbdf2)
  • hooks: upgrade to InstantSearch.js 4.41.0 (#3502) (0b76792)

6.26.0 (2022-05-19)

Features

  • hooks-web: expose sendEvent to hitComponent (#3476) (5cc18d1)
  • react-instantsearch-core: allow widgets to set their $$widgetType (#3472) (1c436e1)

6.25.0 (2022-05-17)

Bug Fixes

  • hooks-highlight: make sure highlight and snippet don't show html-escaped content (#3471) (c18ddd2)
  • hooks-server: remove faulty UMD build (#3465) (c1ddfe4)

Features

6.24.3 (2022-05-10)

Bug Fixes

  • numericmenu: include range values in comparison with minmax bounds (#3461) (e4c2682)

6.24.2 (2022-05-05)

Bug Fixes

  • hooks: prevent infinite loops from render state (#3455) (1799fc9)

6.24.1 (2022-05-03)

Bug Fixes

  • types: export correct types for react-instantsearch-hooks-web (#3454) (a863430)

6.24.0 (2022-04-28)

Features

6.23.4 (2022-04-21)

Bug Fixes

  • hooks: forbid importing from instantsearch.js root path (#3437) (82ef9ea)
  • packages: correctly mark peer dependency (#3439) (51e8818), closes #3428

6.23.3 (2022-04-05)

Bug Fixes

  • facets: show raw value in currentRefinements (#3420) (1199ce6), closes #3412
  • multi-index: correctly set searching prop in multi-index result states (#3419) (7f8e97e)

6.23.2 (2022-04-04)

Bug Fixes

6.23.1 (2022-03-30)

Bug Fixes

  • hooks: compute initial search parameters from widget (#3399) (b4bd933)

6.23.0 (2022-03-23)

Bug Fixes

  • ssr: perform initial multi-index search using a single request (#3385) (b96809e)

Features

  • hooks: allow additional widget properties to be passed from hooks (#3359) (a047be4)
  • hooks: allow useHits and useInfiniteHit to be generic (#3364) (8e66ad3)
  • hooks: mark initial results as "artificial" (#3384) (937efdc)

6.22.0 (2022-02-01)

Bug Fixes

  • hooks: enable pause on exceptions on warning (#3283) (ce3a6c3)

Features

6.21.1 (2022-01-25)

Bug Fixes

  • hooks: apply initial search parameters in useConnector (#3276) (f85d679)

6.21.0 (2022-01-24)

Features

6.20.0 (2022-01-18)

Bug Fixes

Features

6.19.0 (2022-01-05)

Features

6.18.0 (2021-12-16)

Features

  • dynamicWidgets: send facets * and maxValuesPerFacet by default (#3242) (c071776)
  • hooks: introduce useNumericMenu() (#3237) (e3056c9)
  • hooks: introduce useInfiniteHits() (#3224) (177ec56)

6.17.0 (2021-12-08)

Bug Fixes

  • hooks: throw invariant violations in production (#3217) (6d3f99c)

Features

6.16.0 (2021-11-22)

Bug Fixes

  • PoweredBy: support environments with window but no location (#3186) (22ff23b)

Features

6.15.0 (2021-10-27)

Bug Fixes

  • metadata: stricter detection of user agent (#3184) (994c8ae)

Features

6.14.0 (2021-10-26)

Features

6.13.0 (2021-10-19)

This is the initial release of the experimental React InstantSearch Hooks package. Check out the Getting Started guide.

Bug Fixes

Features

6.12.1 (2021-08-02)

Bug Fixes

  • server side rendering: return a value from mock currentRefinement/metadata (#3078) (09f802b)

6.12.0 (2021-07-06)

Bug Fixes

  • HitsPerPage: Adds id prop to HitsPerPage, Select components (#3072) (bc75d75)
  • MenuSelect: Adds id prop to MenuSelect (#3073) (fddaaef)
  • SearchBox: Adds inputId prop to SearchBox (#3074) (a05f6a4)
  • SortBy: Adds id prop to SortBy, Select components (#3068) (1f2797f)

Features

  • DynamicWidgets: add implementation (#3056) (691ef87)
  • facets: add a new option "facetOrdering" to Menu, RefinementList & HierarchicalMenu (#3067) (731d9ba)

6.11.2 (2021-06-28)

Bug Fixes

  • maps: leave zoom in place if the bounds did not change (#3050) (c430598)

6.11.1 (2021-06-09)

Bug Fixes

  • RefinementList: prevent searchable component to refine on empty list (#3059) (04f3644)

6.11.0 (2021-05-04)

Features

  • connectNumericMenu: add support for floating point values (#3047) (091bf57)

6.10.3 (2021-03-03)

Bug Fixes

  • RelevantSort: Rename SmartSort widget to RelevantSort (#3026) (47d11bf)

6.10.2 (2021-03-03)

Bug Fixes

6.10.1 (2021-03-02)

Bug Fixes

  • SmartSort: make textComponent and buttonTextComponent optional (#3014) (682ee6d)

6.10.0 (2021-02-23)

Bug Fixes

  • infiniteHits: do not cache the cached hits (#3011) (b56f5f7)

Features

6.9.0 (2021-02-03)

Features

6.8.3 (2021-01-22)

Bug Fixes

6.8.2 (2020-10-21)

Bug Fixes

  • ssr: provide metadata default value (0a2f34c)

6.8.1 (2020-10-14)

Bug Fixes

  • ssr: hydrate metadata with a value (9249c19)

6.8.0 (2020-10-14)

Bug Fixes

6.7.0 (2020-07-20)

Bug Fixes

  • core: appending successful index search results by returning new object reference (#2953) (0a711a7)
  • ssr: remove second instance of "query" in the response "params" for SSR (#2945) (bf837c5), closes #2941

Features

6.6.0 (2020-06-15)

Features

6.5.0 (2020-05-18)

Bug Fixes

  • connectQueryRules: fix crash when using connectQueryRules with multiple indexes (#2903) (c66d612)
  • core: fix maximum call stack size exceeded (#2926) (7e883df)

Features

6.4.0 (2020-03-18)

Bug Fixes

  • deps: fix "too much recursion" error with circular deps (#2899) (c5f27a1)

6.3.0 (2020-01-30)

Features

  • algoliasearch: add support for algoliasearch v4 (#2890) (c6c7382)

6.2.0 (2020-01-20)

Bug Fixes

  • deps: update dependency algoliasearch to v3.35.1 (#2802) (cfb91f0)
  • widgets: rename ExperimentalConfigureRelatedItems compon… (#2891) (b910df2)

Features

  • insights: add getInsightsAnonymousUserToken helper (#2887) (b5fe4f7)
  • widgets: introduce ConfigureRelatedItems as experimental (#2880) (923cd43)

6.1.0 (2019-12-17)

Bug Fixes

  • connectNumericMenu: support numeric refinement 0 (#2882) (30bd9fd)
  • deps: update dependency next to v9.1.1 (9d49d33)
  • helper: rely on stable version of algoliasearch-helper (#2871) (e3531a1)

Features

  • insights: show an error when 'clickAnalytics: true' is missing. (#2877) (621656a)
  • voice: add additionalQueryParameters (#2366) (3a45b2c)

6.0.0 (2019-10-28)

6.0.0-beta.2 (2019-10-25)

Bug Fixes

6.0.0-beta.1 (2019-10-18)

Bug Fixes

  • connectToggleRefinement: cast currentRefinement to boolean (#2701) (db934fd)
  • deps: update dependency antd to v3.19.3 (#2530) (73636c5)
  • deps: update dependency antd to v3.19.4 (#2559) (c3e8267)
  • deps: update dependency antd to v3.19.5 (#2560) (72efd31)
  • deps: update dependency antd to v3.19.6 (#2564) (654f986)
  • deps: update dependency antd to v3.19.7 (#2573) (7e963ad)
  • deps: update dependency antd to v3.19.8 (#2584) (34dd9b2)
  • deps: update dependency antd to v3.20.0 (#2611) (b976c67)
  • deps: update dependency antd to v3.20.1 (#2635) (792ad9c)
  • deps: update dependency antd to v3.20.2 (#2655) (301c2d8)
  • deps: update dependency antd to v3.20.3 (#2658) (d078e70)
  • deps: update dependency antd to v3.20.5 (#2686) (42ef821)
  • deps: update dependency antd to v3.20.6 (#2711) (927fbfe)
  • deps: update dependency antd to v3.20.7 (#2712) (1830952)
  • deps: update dependency antd to v3.21.1 (#2736) (39a51a6)
  • deps: update dependency antd to v3.21.2 (#2738) (a7a998a)
  • deps: update dependency antd to v3.21.4 (#2747) (60012be)
  • deps: update dependency antd to v3.22.0 (#2758) (9cda468)
  • deps: update dependency antd to v3.22.2 (#2791) (ff1f5d9)
  • deps: update dependency antd to v3.23.2 (#2814) (a190410)
  • deps: update dependency lodash to v4.17.13 (c4974cf)
  • deps: update dependency lodash to v4.17.14 (#2647) (a2d2dd5)
  • deps: update dependency lodash to v4.17.15 (#2684) (354143f)
  • deps: update dependency next to v9 (#2638) (d22f61d)
  • deps: update dependency next to v9.0.1 (#2652) (2c2dab9)
  • deps: update dependency next to v9.0.2 (#2662) (6fa4c5e)
  • deps: update dependency next to v9.0.3 (#2724) (f51b04b)
  • deps: update dependency next to v9.0.4 (#2767) (9af9180)
  • deps: update dependency next to v9.0.5 (#2789) (0a75f41)
  • deps: update dependency qs to v6.8.0 (#2757) (8bffb87)
  • deps: update dependency react-compound-slider to v2.1.0 (#2610) (3389ee5)
  • deps: update dependency react-compound-slider to v2.2.0 (#2649) (7b81af1)
  • deps: update dependency react-native-vector-icons to v6.5.0 (#2520) (5f7f5b6)
  • deps: update dependency react-native-vector-icons to v6.6.0 (#2599) (b6bb199)
  • deps: update dependency react-router-dom to v5.0.1 (#2506) (d762230)
  • highlight: switch to index as key (#2691) (17e75d1), closes #2688
  • voiceSearch: fix incorrect status on stop (#2535) (824dc22)

chore

BREAKING CHANGES

  • release: translation will render default value if passed undefined as value

  • chore(lodash): remove imports

  • fix(translation): allow undefined value to be passed on purpose

  • release: no longer do we allow paths like attribute[5].something, or other indexed forms, only . is allowed as special key.

All existing tests still pass, and we never documented you could use lodash.get patterns other than ..

  • feat(get): accept array & bracked-separated string

moved to utils at the same time

  • fix typo

  • feedback: test for undefined behaviour

  • chore(size): update expectation

this will go down afterwards, but for now there's some more duplication

6.0.0-beta.0 (2019-08-21)

Migration guide

Bug Fixes

Code Refactoring

Features

BREAKING CHANGES

  • searchClient: argument is the only option now.

Previously there were three options to pass a search client: searchClient, appId & apiKey, algoliaClient. The latter two have been removed, and now only searchClient is accepted. This searchClient is an instance of the algoliasearch module:

import algoliasearch from 'algoliasearch/lite';

const searchClient = algoliasearch(
  'myAppId',
  'myApiKey',
  { _useRequestCache: true }
);

// ...
<InstantSearch searchClient={searchClient} />

If you were relying on duplicate requests not being fired when using appId & apiKey before, you need to enable the _useRequestCache option now.

  • SSR: imports have changed

In the server, you now directly import findResultsState, which now requires a searchClient in the second argument.

In the App, you now use a regular InstantSearch component.

  • Index & InstantSearch: Remove root DOM element

These elements now are pure containers for their children, and don't add a div to the DOM anymore. If you were relying on those for styling, wrap the InstantSearch and Index element with a div with an appropriate class.

  • Index & InstantSearch: Remove support for root prop

Since these two arguments now no longer wrap their children in an element, they no longer accept a root prop.

  • Highlight: some paths will no longer be accepted

We only accept paths separated with a dot or bracket now, like before. It's possible that a different type of path worked undocumented, but no longer does.

  • algoliasearch-helper: updating to the next major version

This library is mostly internal, but it has had a major refactor (including removing lodash). This has no impact, unless you are dealing with it using createConnector. See the migration guide for the v3 of algoliasearch-helper for more information.

5.7.0 (2019-06-04)

Bug Fixes

Features

5.6.0 (2019-05-15)

Bug Fixes

  • connectQueryRules: avoid to throw an error with undefined values (#2436) (1e18287)

Features

5.5.0 (2019-04-23)

Bug Fixes

  • createInstantSearch: change the User-Agent to use the new specs (#2209) (642ba0b)

Features

5.4.0 (2019-02-05)

Bug Fixes

  • DOMMaps: set React & React DOM as peer deps (#1922) (2f2cefd)

5.4.0-beta.1 (2019-01-10)

Bug Fixes

5.4.0-beta.0 (2019-01-08)

Features

5.3.2 (2018-10-30)

Bug Fixes

  • sffv: clamp maxFacetHits to the allowed range (#1696) (83ce245)

5.3.1 (2018-09-26)

Bug Fixes

  • connector: ensure canRefine is computed on the transformed items (#1568) (c95384f)
  • toggle: ensure facet is present (#1613) (e914ff6)

5.3.0 (2018-09-24)

Bug Fixes

  • SSR: bind getSearchParmaters to the component instance (f34cb3d)
  • GoogleMapsLoader: pick google maps version (#1540) (b14efcf)

Features

  • connectToggleRefinement: implement canRefine & count (#1588) (40672dd)

5.2.3 (2018-08-16)

Bug Fixes

5.2.2 (2018-07-16)

Publish the previous version on stable.

5.2.1 (2018-07-16)

Bug Fixes

  • GoogleMapsLoader: inline the import to scriptjs (#1427) (8019416)

5.2.0 (2018-07-04)

Bug Fixes

  • translatable: avoid create a new function on every render (#1383) (1285b3b)

Features

5.2.0-beta.2 (2018-06-19)

Features

5.2.0-beta.1 (2018-06-04)

Bug Fixes

5.2.0-beta.0 (2018-06-04)

This new version introduce a complete revamp of the package structure, but it should be completely transparent for the users.

If you have any troubles with this version please open a issue on Github, thanks!

5.1.0 (2018-05-28)

Bug Fixes

  • connectInfiniteHits: always set a value for previous page (#1195) (4c218d5)
  • indexUtils: avoid throw an error on cleanUp multi indices (#1265) (12f5ace)

Features

  • searchClient: Add support for custom Search Clients (#1216) (174cc28)

5.0.3 (2018-04-03)

Bug Fixes

5.0.2 (2018-04-03)

Bug Fixes

  • use lodash version of unsupported Array.{fill, find} (#1118) (ea7bf42)

5.0.1 (2018-03-12)

Bug Fixes

  • connectInfiniteHits: always provide an array for hits (#1064) (c75e38b)

5.0.0 (2018-03-06)

This new version introduce a complete revamp of the naming and the HTML output of most widgets. The goal of this release is to provide improved semantics to our users.

This release also introduces a new CSS naming convention which will be reused across all InstantSearch libraries. This will enable the possibility to develop cross-libraries CSS themes easily.

You can find all the informations for the migration in our documentation.

4.5.2 (2018-03-06)

Bug Fixes

  • connectRange: update default refinement propTypes (#978) (c065fb1)
  • IndexUtils: avoid throw an error when cleanUp multi index (#1019) (865a3c3)
  • SearchBox: avoid to bind click on reset button (#979) (ea3063a)

5.0.0-beta.1 (2018-02-06)

Apply features & bug fixes from v4.5.0 & v4.5.1 on the v5.

See their CHANGELOG for more details.

4.5.1 (2018-02-06)

Bug Fixes

  • StarRating: move to 1 based instead of 0 (#949) (eb0152d)

4.5.0 (2018-02-06)

Bug Fixes

  • connectRange: use the same behaviour for currentRefinement in getMetadata (#923) (08917b6)
  • connectToggle: use currentRefinement in metadata instead of the label (#909) (89cae2b)
  • StarRatings: always show the stars below (#929) (22bf93a)

Features

  • connectStateResults: expose isSearchStalled (#933) (f45ba27)

5.0.0-beta.0 (2018-01-30)

This new version introduce a complete revamp of the naming and the HTML output of most widgets. The goal of this release is to provide improved semantics to our users.

This release also introduces a new CSS naming convention which will be reused across all InstantSearch libraries. This will enable the possibility to develop cross-libraries CSS themes easily.

You can find all the informations for the migration in our documentation.

4.4.2 (2018-01-24)

Bug Fixes

  • currentRefinements: give access to id and index from transformItems for deduplication (#830) (316b8f5)
  • pass maxFacetHits to SFFV (#863) (de23a46)

4.4.1 (2018-01-09)

Bug Fixes

  • SearchBox: clear SearchBox without search as you type (#802) (c49b2b6)
  • connectRange: check if facet exist before access (#797) (6520760)
  • stories: avoid to use linear-background it breaks Argos every time (#804) (0beded7)
  • stories: limit hits per page on Index (#806) (6eb14d3)

Features

4.4.0 (2018-01-03)

Bug Fixes

  • createInstantSearch: remove the client from the Snapshot (#749) (700d8f4)
  • refresh cache memory leak example (#784) (cf228ac)
  • stories: rename InstantSearch to <InstantSearch> (#789) (05efda5)

Features

4.3.0 (2017-12-20)

Bug Fixes

Features

  • SearchBox: provide a loading indicator (#544) (189659e)
  • Highlight: support array of strings (#715) (8e93c6a)

4.3.0-beta.0 (2017-11-27)

Bug Fixes

  • babelrc: add a key for each env development, production, es (#547) (fa9528d)
  • localizecount: allow localized string for count in MenuSelect (#657) (67ebd34)
  • react-router-example: Properly update search query when using browser navigation (#604) (9ee6600)

Features

  • refreshcache: add prop refresh to InstantSearch instance (#619) (19f6de0)

4.2.0 (2017-11-02)

Bug Fixes

  • connectRange: handle boundaries on first call (9f14dc0)
  • connectRange: use refine instead of cleanUp in metadata (#526) (1861235)
  • hierarchicaMenu: allow sorting and using limit (fe178ed), closes #92
  • InfiniteHits: add disabled style to the LoadMore button (#477) (faba1ad)
  • Range: handle float, allow reset and respect boundaries (75969b8)
  • RangeInput: fix compatibility with React 16 & Panel (3f218db)
  • searchbox: add maxlength 512 (#542) (5bd4033), closes #510

Features

  • MenuSelect: add component and connector (cc6e0d7)

4.1.3 (2017-10-09)

Bug Fixes

Features

  • connectStateResults: add component props (#434) (c629b97)

4.1.2 (2017-09-26)

Features

  • Conditional: add connectStateResults connector (#357) (462df5f)

4.1.1 (2017-09-13)

Bug Fixes

  • MultiIndex: reset page to 1 when share widgets refine (#312) (c85a7bf)
  • MultiIndex: Trigger new search when <Index> props are updated (#318) (bb11965)

4.1.0 (2017-08-28)

Bug Fixes

  • Highlighting: revert breaking change (#245) (045ee06)
  • List: adds support for any type of renderable element (#266) (d848bb6)
  • Pagination: fixed the offset (3c0fff2)
  • PoweredBy: aria-* tags are not camelcased (#261) (dc4a5bb)

4.1.0-beta.5 (2017-08-08)

Bug Fixes

  • SSR: clean SP before rendering agan (#238) (e765886)

Features

  • Breadcrumb: add a new widget & connector (#228) (7f8f3ae)

4.1.0-beta.4 (2017-08-03)

Bug Fixes

  • deps: Update dependency lint-staged to version ^4.0.0 (#201) (6867a1b)
  • nextjs/ssr: parse params.asPath (#189) (ae17da0)
  • PoweredBy: add a label to the Algolia logo (#216) (cd235bd)
  • react: remove typo around "" 2 (#220) (f73eb04)
  • ScrollTo: scroll to only if change triggered by the widget observed (#202) (2d76022)
  • theme: format the count of items appearing in a refinement (#217) (2225c24)

4.1.0-beta.3 (2017-07-25)

Bug Fixes

  • error: reset error when receiving results of a query (not when sending it) (#179) (bb12c29)
  • highlight: wrong parsing between client and server (#183) (2daae70)
  • poweredBy: SSR compatibility (#181) (ec0fa8a)

BREAKING CHANGES

  • highlight: We remove the timestamp present in our highlight preTag and postTag. If you were using regex to parse the highlighting results then you'll need to adapt it as now it's only "ais-highlight".

4.1.0-beta.2 (2017-07-20)

Bug Fixes

  • error: reset error if next query is successful (#175) (ff50a07)

4.1.0-beta.1 (2017-07-12)

4.1.0-beta.0 (2017-07-10)

Bug Fixes

  • argos: address flakyness (#152) (84ef8f1)

Features

  • server-side rendering: Add API features for server-side rendering (86b14d1)

4.0.7 (2017-07-06)

Bug Fixes

  • results: revert commit that ensure hits are returned only if right indices (#149) (df9aa25)

4.0.6 (2017-06-29)

Bug Fixes

  • store: delay call to listener to prevent infinite loops (#143) (0945958)

4.0.5 (2017-06-26)

Bug Fixes

  • MultiIndex: ensure getResults return only hits matching index in the context (#136) (124ffe6)
  • MultiIndex: handle if namespace isn't in search state (#139) (1aab324)
  • storybook: process CSS through autoprefixer (#138) (62cf512)

4.0.4 (2017-06-19)

Bug Fixes

  • MultiIndex: handle switch between mono and multi index (#132) (e161921)

4.0.3 (2017-06-14)

Bug Fixes

  • SFFV: search status we're not inside search state (#125) (5f3e670)

4.0.2 (2017-05-30)

4.0.1 (2017-05-17)

Bug Fixes

  • state: nested attributes for faceting were not handled (11bd122)

4.0.0 (2017-05-15)

Features and migration guide

You can find all the details of the release and the migration guide from v3 to v4 here: https://discourse.algolia.com/t/react-instantsearch-v4/1329.

4.0.0-beta.6 (2017-05-04)

4.0.0-beta.5 (2017-05-02)

Bug Fixes

  • connectAutoComplete: allow usage with hits from a single index (#75) (8b3b358), closes #74
  • InstantSearch: update algoliaClient when it change (#70) (9e97dbd)

4.0.0-beta.4 (2017-04-25)

Bug Fixes

  • MultIndex: no need to nest hits, if those are from main index. (#56) (86e0bd7)

Features

  • MultiIndex: remove the need for virtual hits when using connectAutoComplete (#45) (7549019)

4.0.0-beta.3 (2017-04-21)

Bug Fixes

  • replace usage of Object.values (#47) (4c79e3e)

4.0.0-beta.2 (2017-04-18)

Bug Fixes

  • InstantSearch: dont fire request/onsearchStateChange when unmounting (#26) (9a1487a)
  • MultiIndex: derived helper were using main index specifics params (#36) (991fea6)
  • MultiIndex: revert breaking change if no multiple index (#32) (44f7de0)
  • util: remove empty key was removing non object key (#29) (9f795c7)

Features

  • Highlighter: allow rendering to custom tag (#11) (52a1212)
  • SearchBox: add default width and height to buttons. (#34) (bcabf9b)

4.0.0-beta.1 (2017-04-03)

Bug Fixes

  • SFFV: fix wrong query behaviour with slow network (#2086) (c251e8f), closes #2086

4.0.0-beta.0 (2017-03-28)

Features

  • multi-index: ease multi index and auto complete (09a4e1d)

BREAKING CHANGES

  • multi-index: * Reseting the pagination should be done at each connector level inside the "refine" function when returning the search state.
  • The current page now appears inside the search state when a widget is used
  • Query values are part of the items prop of the connectCurrentRefinements connector. Behaviour is unchanged, query will be filtered if clearsQuery prop is false.
  • Add the index name to all the current refinements items. (not used by our widgets yet, but available if needed).

3.3.0 (2017-03-22)

Bug Fixes

  • example: Fix access to props in react-router example (1417d6f)

3.2.2-beta0 (2017-03-20)

Bug Fixes

  • InfiniteHits: provide translation key for Load More (#2048) (6130bf2)
  • SearchBox: better mobile behaviour by default (ea968b3)
  • example: link to instantsearch/react (#2007) (5e674cd)
  • recipes: react router v4 (de673bf)

Features

  • SearchBox: add role=search to the form (#2046) (d1e90f3)
  • SearchBox: allow custom reset and submit components (#1991) (cd303d7)
  • searchBox: add event handling (e267ab6), closes #2017

3.2.1 (2017-02-22)

Bug Fixes

  • umd: Add connectors to UMD build (#1988) (23ac5e6), closes #1987

3.2.0 (2017-02-15)

Bug Fixes

  • Configure: use props a unique source of truth (#1967) (9d53d86)
  • SearchBox: Safari can only have with xlinkHref (#1970) (7ab00bd), closes #1968

Features

  • MultiRange: add an all range (#1959) (a3dc950)

BREAKING CHANGES

  • MultiRange: - MultiRange/connectMultiRange: will add a "All" range to allow unselection of range without the usage of CurrentRefinements. This range can be either filtered or ramove via CSS if not needed. The label can be changed by using our translations system.

3.1.0 (2017-02-08)

Bug Fixes

  • Configure: call onSearchStateChange when props are updated (#1953) (7e151db), closes #1950
  • Configure: trigger onSearchStateChange with the right data (11e5af8)
  • createConnector: updates with latest props on state change (#1951) (cd3a82c)

Features

  • ClearAll: add withQuery to also clear the search query (#1958) (c0e695b)

3.0.0 (2017-02-06)

Bug Fixes

  • *List: disable shortcuts in *List SearchBoxes (#1921) (51a76ae), closes #1920
  • Configure: add configure parameters in search state (#1935) (0971330), closes #1863
  • Hits: limit the hitComponent to be only a function (#1912) (b3c9578)
  • Pagination: fix and indicate when pagination is disabled (5f20199), closes #1938
  • StarRating: usage with filters (#1933) (667e9d5)
  • withSearchBox: keep displaying searchBox when no items found (#1930) (30de4cd)

Features

  • MultiRange: indicate if a range has no refinements (#1926) (80b6450)
  • panel: add a panel widget (#1889) (594e1a1)
  • starRating: indicate when any refinement has no effect (c547ae5)
  • widgets: default design for disabled states (#1929) (31f010b)

Migration guide

The migration to V3.0.0 should be safe and you should do it.

There are two breaking changes that you will need to handle in your codebase:

  • Anytime you are using a connector, when there are no more items in it or no more hits, we will still call your Component. Thus you will have to handle cases like dealing with empty arrays and decide if you want to unmount or hide the widget.
  • Anytime you are using a widget, when there are no more items in it or no more hits, we will still display the widget. You can then decide to hide it with CSS.

2.2.5 (2017-01-23)

Bug Fixes

  • currentRefinements: make removing a toggle refinement work (8995e64)

2.2.4 (2017-01-20)

Bug Fixes

  • publish: publish react-instantsearch/dist instead of root (#1884) (64414e0)

2.2.3 (2017-01-20)

Bug Fixes

  • SFFV: translations for searchbox were not applied (#1879) (e9b4ee1)

2.2.2 (2017-01-18)

Bug Fixes

  • react-router: search was triggered two many times (#1840) (25e9db5)
  • SFFV: empty query triggered a new SFFV (#1875) (6c8259a)

2.2.1 (2017-01-18)

Bug Fixes

  • createInstantsearch: fix missing props (#1867) (8d319b5), closes #1867

2.2.0 (2017-01-17)

Bug Fixes

  • clear: clearing wasn't working with too+ same type facets selected (#1820) (a9a2364)
  • connectSearchBox: handle defaultRefinement (#1829) (7a730e2), closes #1826
  • Instantsearch: Update all props on InstantSearch (#1828) (2ed9b49)
  • InstantSearch: add specific react-instantsearch ${version} agent (#1844) (a1113bc)
  • SFFV: correct propTypes and add missing default values (#1845) (a4c1b31)
  • test: add missing Snippet and Highliter snapshot (4accce5)
  • widgets: replace setImmediate use with Promise use when update is needed (#1811) (17e2497)

Features

  • Menu, connectMenu: add search for facet values (#1822) (a6c513e)
  • snippet: add a snippet widget to be able to highlight snippet results (#1797) (2aecc40)
  • widgets: add transformItems to be able to sort and filter (#1809) (ba539f0)

2.1.0 (2017-01-04)

Bug Fixes

  • createInstantSearchManager: drop outdated response (#1765) (76c5312)
  • highlight: highlight should work even if the attribute is missing (#1791) (5b79b15), closes #1790
  • InfiniteHits: better classname to loadmore btn (#1789) (ad2ded3)
  • starRatings: click on selected range doesn't unselect it (#1766) (beacc72)
  • website: broken demo links (#1802) (0abe2f5)
  • widgets: add 300px width for the default SearchBox (#1803) (bf5d791)

Features

  • InfiniteHits: Add class to load more button (#1787) (416febd)
  • RefinementList, connectRefinementList: allow to search for facet values (e086a81)

2.0.1 (2016-12-15)

Bug Fixes

  • connectRange: when unfinite numbers are passed throw (75bec0d)
  • react-native: use View as a container for react-native (#1729) (5b76f75), closes #1730
  • SearchBox: autocomplete was not disabled by default (#1742) (bc76618)
  • starRating: call createURL with the right interface (min/max) (#1747) (f9ab9b6)

2.0.0 (2016-12-08)

First release of react-instantsearch