Skip to content

v2.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 21:47
8a1d122

For apps using preset: 'search' since 2.0 or 2.1: 2.2.0 added acronyms: true to this preset, so short queries can return more results. Pass { preset: 'search', acronyms: false } to get the old results back. Nothing in 2.6.0 changes a score.

Added

  • substring option: like partial, and a match may also start inside a word, so phone finds iPhone 15 and ville finds Belleville. No more includes() next to a search. Opt-in: scores without it are unchanged. Also in the MCP server.
  • Extensions page on the docs site: the packs shipped with fuzzy-toolkit and community ones, found on npm by the keyword fuzzy-toolkit-plugin or reviewed in docs/extensions.json, with a fuzzy search box. The site rebuilds weekly so new packages appear.

Changed

  • npx fuzzy-toolkit ai-setup only writes when the project's package.json lists fuzzy-toolkit (--force to write anyway), writes a shorter block that tells assistants to go through the project's existing calls, links the online llms.txt instead of a node_modules path that may not exist, and never replaces a block someone edited by hand (--force does).
  • The MCP check tool says in its description that it gives the engine's verdict, not the verdict of a given app, which adds its own rules.

Project

  • A test freezes what each built-in preset sets: a preset only changes in a major version. New behavior comes as an option to turn on.

Docs

  • search preset: 2.2.0 added acronyms: true in a minor version, which can return more results than 2.1. Documented, with acronyms: false to get the old behavior back.
  • Size: createMatcher carries every method (about 14 kB); import the functions you call for a smaller bundle.
  • New design for the documentation site. The home page has a live demo scored by the real library, benchmarks and examples for each function.
  • New Playground page.
  • Getting started shows pnpm, yarn, bun and CDN installs; the search recipe covers React.
  • A shorter README that points to the documentation.