The major and minor version numbers of react-minisearch correspond to the
supported major and minor version of MiniSearch. The patch version increments
with any change.
- Expose
getByIdfunction to retrieve a document by its ID (thanks @mekodes)
- [fix] Fix type declarations in package.json so they are correctly retrieved by TypeScript packages using
react-minisearch
- Publish separate ES module, CJS, and UMD builds
- [fix] Fix issue with MiniSearch.wildcard (see #42)
- Support for MiniSearch
v7.1.0
- [fix] Fixed support for MiniSearch
v7.0.0
- Support for MiniSearch
v7.0.0
- Support for MiniSearch
v6.3.0
- Support for MiniSearch
v6.2.0
- Support for MiniSearch
v6.1.0
- [fix] Avoid errors in React 18 development mode, when useEffect(…, []) is called twice
- [performance fix] Avoid expensive
removeAllon unmount
- [fix] Return stable reference from useMiniSearch
- Relax React peer dependency to allow React 18
- Support for MiniSearch
v6.0.0
- Relax peer dependency to MiniSearch
5.x
- Fix peer dependency to MiniSearch
- Support for MiniSearch
5.0.0
- Fix issue with package dependencies, and use MiniSearch
4.0.1
- Support for MiniSearch
4.0.0
- Allow passing a query expression to the
searchfunction, as introduced in MiniSearch v3.1.0
- [fix] Avoid unnecessary re-renders (and associated bugs) by using
useRefinstead ofuseStatewhere appropriate.
- [fix] Clean up internal map of documents by ID when calling
removeAll
- Support for MiniSearch
3.0.0
- [fix] Fix bug with ID field extraction
- Add
rawResultsprop, to give access to the raw search results including score and match information
- Improve TypeScript types: generic document type now defaults to
anyinstead ofobject
- [fix] Fix type of
searchResults
- Better types using generics
- Require MiniSearch
^2.6.0
- UNPUBLISHED due to publishing mistake
- Also pass the MiniSearch instance as a
miniSearchprop
- Fix error in TypeScript declaration file path
- Simpler packaging with
tscand Rollup, also reducing bundle size
- Set displayName in withMiniSearch
- [bugfix] Use Babel to transpile ES6
- [bugfix] Switch from Parcel to Webpack to fix importing issues
- Improve TypeScript type of React component
- [bugfix] Fix import by specifying the correct main file in
package.json
- Add function
removeById, to remove a document by its id
First release, compatible with MiniSearch ^2.1.1