Skip to content

Releases

v2.0.1

Choose a tag to compare

@itay-grudev itay-grudev released this 15 Jul 09:01

v2.0.1

  • Complete library re-write in Typescript
  • Added support for pre-processors
  • Added an ASCII transliteration pre-processor
  • Updated dependencies

Upgrading from 1.x

Fuzzybear is now written in TypeScript and ships its own type declarations. search and score keep the same signatures, so most callers need no change.

Two things did change:

Scores have shifted. The Jaccard method previously credited a repeated ngram in the test string multiple times against a single occurrence in the search term, which could push a distance outside its documented 0..1 range and let a string with a repeated token outrank an exact match. Occurrences are now consumed correctly. Absolute scores differ slightly and result ordering can change for longer text — if you persist scores or assert on exact orderings, re-check them.
Unsupported method names now throw. Previously they failed later with a TypeError.

v2.0.0

Choose a tag to compare

@itay-grudev itay-grudev released this 15 Jul 02:20
  • Complete library re-write in Typescript
  • Added support for pre-processors
  • Added an ASCII transliteration pre-processor
  • Updated dependencies