Skip to content

Release 0.7.0

Latest
Compare
Choose a tag to compare
@Schlechtwetterfront Schlechtwetterfront released this 19 Dec 14:42

This release includes a refactor of the whole lib, which also includes breaking changes. The API of this crate isn't that big (and hasn't really grown with this version) so checking the new documentation for best_match and FuzzySearch and comparing should yield quick results.

The core functionality of the crate remains the same. Mostly this is a code quality/ergonomics rewrite, other changes:

  • Removed bonus_coverage. Only possible use of this bonus was to compare matches of different query strings into one target string. But it's not clear how the consumer of this crate would exactly use it.
  • Added bonus_match_case. Adds bonus score if a char match also matches case (T -> T instead of t -> T). Only applies when the matching is case insensitive (otherwise t -> T would not match at all).
  • Massaged code/naming
  • continuous_matches now returns an iterator instead of the complete Vec
  • Up to 30% better performance in some cases, no (known) performance degradations
  • More tests