Releases: krisk/Fuse
Releases · krisk/Fuse
v5.2.1
CJS + Updated TypeScript Definitions
What's New
- Changed bundler to Rollup
- Added ES6 module for bundlers and browsers (
fuse.esm.js
) (#262) - Added CommonJS builds (
fuse.common.js
) - Updated TypeScript definitions
(Possible) Breaking Changes
- The minified version is finally actually called
fuse.min.js
Indexing & Enhanced Searching
- Added indexing for increased performance over large lists
- Added
Fuse.createIndex
, which created and returns an index. This function can be used to pre-generate the index, which you can then save, and ultimately pass to theFuse
instance.
- Added
- Breaking changes:
- Removed
id
option - Changed format of the search results
- Updated TypeScript definitions
- Removed
- A couple of fixes, courtesy of Daniel Dickinson:
Match indices & Weighted Keys
v2.2.0 Added v2.2.0. Issue #6, #62
Improved searching
- Modified search algorithm to search individual words AND the full string, computing the final score as a function of both. This yields better scoring accuracy (#41)
- Changed exact substrings to not have a score of zero. That is searching for "hell" in "hello" will not yield a score of zero, while searching for "hello" will (#63)
- Added
verbose
option, which will print to the console useful information, mostly for debugging - Improved code structure.
- Added version information within Fuse itself
- Added this Changelog (#64)
- Added fallback when pattern length is greater than machine word length (i.e, > 32 characters) (#38)
- Allowed results with a value of 0 to be returned (#73)
Nested Arrays
- Automatically recurse into arrays, thanks to @matthewwithanm
- Syntax, cleanliness, and bug fixes, thanks to everyone here: https://github.com/krisk/Fuse/graphs/contributors
Exposed new options
Added new options:
includeScore
shouldSort
sortFn
searchFn
For a full list, take a look at the README