cmdk
1.1.1 · 14 Mar 2025MIT51M / weekRepositoryHomepagenpmAtom feed
36 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 1.x · latest line
1.1.1
14 Mar 2025Fix unintended double triggering of key bindings during IME composition
1.1.0
14 Mar 2025Fix useCmdk return type
Update the type of the defaultFilter
Use id instead of children
What's Changed
Fix useCmdk return type
Update the type of the defaultFilter
Use id instead of children
Use
@radix-ui/react-compose-refsto merge refs, save on bundle sizeUse React built-in
useSyncExternalStoreand remove shim. Note that React 18 has always been a required peerDependency ofcmdk
1.0.4
4 Nov 2024Fix use-sync-external-store import for greater compatibility
1.0.3
1 Nov 2024Fix
use-sync-external-storeshim for compatibility with Next.js 15 and React 19 RC
1.0.2
31 Oct 20241.0.1
30 Oct 2024Docs mistake we are no longer lowercasing
Export defaultFilter
Controlled search change with hidden Command.List
What's Changed
Docs mistake we are no longer lowercasing
Export defaultFilter
Controlled search change with hidden Command.List
Framer example capitalization of values
Fix compiling code Array.from(void 0)
useId backward compatibility
Relax dependencies on Radix-UI to SemVer MAJOR releases
Allow react v19 as peer dep
Upgrade @radix-ui/react-id
useSyncExternalStore backward compatibility
context: Read disablePointerSelection from propsRef
1.0.0
8 Mar 2024Added support for rendering
Command.Listin a portal in 54aa261Fixed
Command.Emptynot appearing on first render in be4388eFixed ESM support via new exports field
This is a major version release as it contains breaking changes.
Breaking Changes
You will need to update your code to account for these changes before upgrading to
cmdk@1.0.0.valueis now case sensitive 3dae25dThe
valueprop you pass toCommand.Itemand receive inonSelectis now case sensitive. But while the value is no longer lowercased, it is still trimmed.Command.Listis now required (CommandListin shadcn) 54aa261Rendering the
Command.Listpart (CommandListif using shadcn) is now mandatory. Otherwise, you should expect to see an error like this:TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
The fix:
// Before <Command label="Command Menu"> <Command.Input /> <Command.Item /> {/* ... */} </Command>// After <Command label="Command Menu"> <Command.Input /> <Command.List> <Command.Item /> {/* ... */} </Command.List> </Command>Update
[aria-disabled]and[aria-selected]CSS selectors c57e6b7The
aria-disabledandaria-selectedprops will now be set tofalse, instead of beingundefined. If you previously used CSS selectors based on attribute presence, you will now need to use the attribute value./* Before */ [aria-disabled] {} :not([aria-disabled]) {} /* After */ [aria-disabled="true"] {} [aria-disabled="false"] {}What's Changed
Added support for rendering
Command.Listin a portal in 54aa261Fixed
Command.Emptynot appearing on first render in be4388eFixed ESM support via new exports field
Added
disablePointerSelectionprop toCommandto disable item selection via pointer, like RaycastFix excessive re-renders when using
forceMountFixed to only scroll the selected item into view on first render and via keyboard
Bumped
@radix-ui/react-dialogversionFixed item sort not working correctly
Added
keywordsprop to theCommand.ItemcomponentAdded
asChildprop to all component partsFix suggestions list and loading progressbar labels
Allow keyboard navigation even when text input is not focused
Fix DOM error with quotes in the search query
- 0.2.x
0.2.1
30 Jan 2024Bring in local dependency of command-score with vastly improved filtering performance by default
Add defaultValue prop to
<Command />Add
forceMountprop to<Command.Item />and<Command.Group />
Been a while—this is a hefty release. Sorry for the delay.
What's New
Bring in local dependency of command-score with vastly improved filtering performance by default
Add defaultValue prop to
<Command />Add
forceMountprop to<Command.Item />and<Command.Group />Adds
overlayClassNameandcontentClassNameprops to<Command.Dialog />:Add
data-disabledto<Command.Item />Add
aria-activedescendantin<Command.Input />Use
offsetHeightto calculate list heightAdd option for disabling vim bindings
What's Fixed
Fixed a bug where using controlled item values would accidentally become uncontrolled if there are no results
Fixed items on mobile are now correctly selected on tap
Fixed a bug where focus would jump back to the first item instead of respecting the controlled value @joaom00
Fixed the props for the
<Command.Loading />to indicate it spreads onto adivelementFixed pressing [Enter] to select an item while in the middle of an IME composition
Fixes a bug where backspacing would not properly reveal items that didn't have their value explicitly set
0.2.0
2 Mar 2023Add "data-selected" attribute to Item Component
Fix Playwright Tests
Export individual components to allow for tree shaking
What's Changed
Add "data-selected" attribute to Item Component
Fix Playwright Tests
Export individual components to allow for tree shaking
- 0.1.x
0.1.22
6 Feb 20230.1.21
16 Dec 2022prune: Yarn.lock; docs(website): pnpm; chore: enforce pnpm
Update hook name in README
Remove dollar sign from code snippet
What's Changed
prune: Yarn.lock; docs(website): pnpm; chore: enforce pnpm
Update hook name in README
Remove dollar sign from code snippet
keybinds:
lastfn respects disabled itemsArrow keys wrap around
Allow setting a container for Radix.Portal
Attempt to prevent exceeding ResizeObserver loop limit
Call
onValueChangeafter filtering the list
0.1.20
6 Sep 20220.1.19
17 Aug 2022Fix group filtering when
shouldFilteris disabledAdd prettier
0.1.18
9 Aug 2022Use [hidden] on group instead of changing render structure
0.1.17
9 Aug 2022classNameis now correctly forwarded to all items and groups
0.1.0 – 0.1.1617 releases without a noteShow each
- 0.1.167 Aug 2022no note
- 0.1.156 Aug 2022no note
- 0.1.146 Aug 2022no note
- 0.1.134 Aug 2022no note
- 0.1.122 Aug 2022no note
- 0.1.112 Aug 2022no note
- 0.1.101 Aug 2022no note
- 0.1.928 Jul 2022no note
- 0.1.828 Jul 2022no note
- 0.1.728 Jul 2022no note
- 0.1.627 Jul 2022no note
- 0.1.526 Jul 2022no note
- 0.1.426 Jul 2022no note
- 0.1.321 Jul 2022no note
- 0.1.220 Jul 2022no note
- 0.1.115 Jul 2022no note
- 0.1.015 Jul 2022no note
- 0.0.x
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.