Skip to content

Releases: ajitid/fzf-for-js

v0.5.2

25 Apr 19:43
357c8ae
Compare
Choose a tag to compare

Fixes

  • Types are now visible when moduleResolution is set to nodenext, node16 or bundler (#119 by @kidonng)

v0.5.1

13 Jan 17:15
2325b6c
Compare
Choose a tag to compare

Want to migrate? We have prepared a guide to help you migrate from v0.4.

Release highlights

  • Async finder - this would help you to maintain a lag free UI if the queries are taking around 100ms to resolve

Breaking changes

  • The behavior of options.tiebreakers has been modified, and it now matches with original FZF (#75 by @reinhrst)

Fixes

  • Large result lists can now be handled without errors (#69 and #71)

v0.5.0

12 Jan 20:44
7c9c7f7
Compare
Choose a tag to compare

⚠️ We have removed this release from NPM.

Please use v0.5.1 or above instead. Because of a bug, this version required at least Node.js 16 and NPM 8 to work.

v0.4.1

15 Aug 10:56
5c18f85
Compare
Choose a tag to compare

Want to migrate? We have prepared a guide to help you migrate from v0.3.

Release highlights

  • Extended search - this allows you to put special patterns to further narrow down your search
  • We now have two fuzzy algorithms for you. "v2" (default) gives you better highlighting for matched characters while "v1" compensates that for speed.
  • You can turn off fuzzy matching to do an exact match on strings instead
  • If scores of two matches are tied and you prefer one to appear above the other, you can provide a tiebreaker to do this. The library ships with two of them.
  • If matched characters appear at more than one place in the string, you can now choose whether to highlight the characters that appear at the end of the string or the ones that appear at the start. This is controlled by forward.

Breaking changes

  • options.cache is removed. As a result, no caching is performed.
  • options.maxResultItems has now been renamed to options.limit
  • normalize is now on by default. This means we'll automatically remove diacritics/accents from Caffè to make it Caffe for example. This can be toggled off in options.
  • forward is now on by default. This means earlier querying "abc" on "xabc yabc" used to highlight last occurrence (abc of yabc). Now first occurence (abc of xabc) will be highlighted instead. This can be toggled off in options.
  • positions is now a Set. Earlier it could either be an array or a null.
  • Result item is now flattened. This means entry.result.score will now be written as entry.score. Same applies for start and end.

Fixes

  • The package now correctly resolves as ESM in Node.js environments

v0.3.2

01 Aug 19:30
639aa04
Compare
Choose a tag to compare

Release highlights

  • find now has a new option sort that can be used to disable sorting by score

v0.3.1

01 Aug 02:37
109869c
Compare
Choose a tag to compare

This is the very first public preview release. Being a 0.x means that breaking changes could be introduced by incrementing its minor version.

Release highlights

  • find helps you to fuzzy find on a list. If you are familiar with FZF CLI options, this does a non-extended match using V2 algorithm.
  • You can normalize your searches. With normalize turned on, "Caffè latte" will become "Caffe latte".