NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #1143 most downloaded on npm
<p align="center"> <img src="./website/public/og.png" /> </p>
Latest stable
1.1.1
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 11 months
Some releases are documented
notes for 12 of 36 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
39 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Fix unintended double triggering of key bindings during IME composition by @JaeSeoKim in https://github.com/pacocoursey/cmdk/pull/339
Full Changelog: https://github.com/pacocoursey/cmdk/compare/v1.1.0...v1.1.1
fix useCmdk return type by @lsmurray in https://github.com/pacocoursey/cmdk/pull/329
@radix-ui/react-compose-refs to merge refs, save on bundle sizeuseSyncExternalStore and remove shim. Note that React 18 has always been a required peerDependency of cmdkFull Changelog: https://github.com/pacocoursey/cmdk/compare/v1.0.4...v1.1.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix use-sync-external-store import for greater compatibility by @kachkaev in https://github.com/pacocoursey/cmdk/pull/328
Full Changelog: https://github.com/pacocoursey/cmdk/compare/v1.0.3...v1.0.4
Fix use-sync-external-store shim for compatibility with Next.js 15 and React 19 RC
use-sync-external-store shim for compatibility with Next.js 15 and React 19 RCNothing published for this version
Nothing published for this version
Nothing published for this version
fix: docs mistake we are no longer lowercasing by @itsjoeoui in https://github.com/pacocoursey/cmdk/pull/227
Full Changelog: https://github.com/pacocoursey/cmdk/compare/v1.0.0...v1.0.1
This is a major version release as it contains breaking changes.
This is a major version release as it contains breaking changes.
You will need to update your code to account for these changes before upgrading to cmdk@1.0.0.
value is now case sensitive <sup>3dae25da8ca8448ea5b101a50f5d5987fe27679c</sup>The value prop you pass to Command.Item and receive in onSelect is now case sensitive. But while the value is no longer lowercased, it is still trimmed.
Command.List is now required (CommandList in shadcn) <sup>54aa2617a80ce897dedfaea65a24cc439cd3c03f</sup>Rendering the Command.List part (CommandList if 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>
[aria-disabled] and [aria-selected] CSS selectors <sup>c57e6b7f81a5796395c7a016d6b1b2aac9591973</sup>The aria-disabled and aria-selected props will now be set to false, instead of being undefined. 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"] {}
Command.List in a portal in 54aa2617a80ce897dedfaea65a24cc439cd3c03fCommand.Empty not appearing on first render in be4388ed6924e061b9e17aa6d6d4223ac8628e44disablePointerSelection prop to Command to disable item selection via pointer, like Raycast by @joaom00 in https://github.com/pacocoursey/cmdk/pull/116forceMount by @joaom00 in https://github.com/pacocoursey/cmdk/pull/143@radix-ui/react-dialog version by @wmcheung in https://github.com/pacocoursey/cmdk/pull/194keywords prop to the Command.Item component by @itaikeren in https://github.com/pacocoursey/cmdk/pull/158asChild prop to all component parts by @joaom00 in https://github.com/pacocoursey/cmdk/pull/138Full Changelog: https://github.com/pacocoursey/cmdk/compare/v0.2.1...v1.0.0
Been a while—this is a hefty release. Sorry for the delay.
Been a while—this is a hefty release. Sorry for the delay.
<Command /> by @revogabe in https://github.com/pacocoursey/cmdk/pull/123forceMount prop to <Command.Item /> and <Command.Group /> by @MildTomato in https://github.com/pacocoursey/cmdk/pull/101overlayClassName and contentClassName props to <Command.Dialog />: by @joaom00 in https://github.com/pacocoursey/cmdk/pull/114data-disabled to <Command.Item /> by @joaom00 in https://github.com/pacocoursey/cmdk/pull/122aria-activedescendant in <Command.Input /> by @joaom00 in https://github.com/pacocoursey/cmdk/pull/108offsetHeight to calculate list height by @joaom00 in https://github.com/pacocoursey/cmdk/pull/121<Command.Loading /> to indicate it spreads onto a div element by @0xcadams in https://github.com/pacocoursey/cmdk/pull/154Full Changelog: https://github.com/pacocoursey/cmdk/compare/v0.2.0...v0.2.1
Add "data-selected" attribute to Item Component by @Saintpreston in https://github.com/pacocoursey/cmdk/pull/80
GroupProps by @Pondorasti in https://github.com/pacocoursey/cmdk/pull/91Full Changelog: https://github.com/pacocoursey/cmdk/compare/v0.1.21...v0.2.0
Nothing published for this version
prune: yarn.lock; docs(website): pnpm; chore: enforce pnpm by @JeromeFitz in https://github.com/pacocoursey/cmdk/pull/39
last fn respects disabled items by @thiskevinwang in https://github.com/pacocoursey/cmdk/pull/47onValueChange after filtering the list by @Andarist in https://github.com/pacocoursey/cmdk/pull/70Full Changelog: https://github.com/pacocoursey/cmdk/compare/v0.1.19...v0.1.21
Nothing published for this version
Nothing published for this version
Fix group filtering when shouldFilter is disabled by @flaviouk in https://github.com/pacocoursey/cmdk/pull/33
shouldFilter is disabled by @flaviouk in https://github.com/pacocoursey/cmdk/pull/33Full Changelog: https://github.com/pacocoursey/cmdk/compare/v0.1.18...v0.1.19
Use [hidden] on group instead of changing render structure by @pacocoursey in https://github.com/pacocoursey/cmdk/pull/27
Full Changelog: https://github.com/pacocoursey/cmdk/commits/v0.1.18
fix: className is now correctly forwarded to all items and groups
className is now correctly forwarded to all items and groupsNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.