Skip to content

Releases: Priyans-hu/cmdk-engine

v0.3.0

11 Feb 19:03

Choose a tag to compare

What's New

Bug Fixes

  • Fix search ranking — Exact matches like "Plans & Pricing" for query "plans" no longer appear below irrelevant items. Scattered fuzzy character matches are now penalized via contiguity ratio tracking.
  • Fix group ordering during search — Groups are now sorted by their best item's relevance score during active search, instead of static priority. Exact matches surface to the top regardless of group.

Features

  • Context/scope boosting — Boost commands relevant to the current page/section. Supports exact path, prefix, glob (/billing/*), and tag matching.
  • i18n support — All UI strings (placeholder, empty state, group labels) go through a pluggable TranslationFn. English defaults included.
  • Search history — Track recent search queries separately from command frecency. localStorage-backed with deduplication and configurable limits.
  • Nested/hierarchical commands — Commands can have children for sub-menu drill-down. Breadcrumbs, chevron indicators, and backspace-to-go-back navigation.

New Exports

  • createContextEngine — context-aware scope boosting
  • createDefaultTranslation, getTranslationKeys — i18n
  • createSearchHistory, createInMemorySearchHistory — search history
  • useCommandContext, useSearchHistory — React hooks

Stats

  • 196 tests across 15 files
  • Core: 3.05 KB, React: 3.78 KB, Adapter: 2.13 KB (minified + brotli)

v0.2.0

01 Feb 08:58

Choose a tag to compare

What's Changed

  • feat: icon ReactNode, onSelect, recent commands, smart route scanning by @Priyans-hu in #9
  • feat: groupedResults hook + keyword vs synonym ranking by @Priyans-hu in #10

New Contributors

Full Changelog: v0.1.0...v0.2.0

v0.1.0

01 Feb 07:29

Choose a tag to compare

What's Changed

  • chore(ci): bump actions/setup-node from 4 to 6 by @dependabot[bot] in #1
  • chore(ci): bump actions/checkout from 4 to 6 by @dependabot[bot] in #2
  • chore(ci): bump actions/upload-pages-artifact from 3 to 4 by @dependabot[bot] in #3
  • chore(deps): bump @size-limit/preset-small-lib from 11.2.0 to 12.0.0 by @dependabot[bot] in #6
  • chore(deps): bump size-limit from 11.2.0 to 12.0.0 by @dependabot[bot] in #7
  • chore(deps): bump jsdom from 26.1.0 to 27.4.0 by @dependabot[bot] in #4
  • chore(deps): bump vitest from 3.2.4 to 4.0.18 by @dependabot[bot] in #5
  • chore(deps): bump commander from 13.1.0 to 14.0.3 by @dependabot[bot] in #8

New Contributors

Full Changelog: https://github.com/Priyans-hu/cmdk-engine/commits/v0.1.0