[Snyk] Upgrade cmdk from 1.0.0 to 1.0.4 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade cmdk from 1.0.0 to 1.0.4.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 6 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: cmdk
What's Changed
New Contributors
Full Changelog: v1.0.3...v1.0.4
use-sync-external-store
shim for compatibility with Next.js 15 and React 19 RCv1.0.2
What's Changed
New Contributors
Full Changelog: v1.0.0...v1.0.1
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
.value
is now case sensitive 3dae25dThe
value
prop you pass toCommand.Item
and receive inonSelect
is now case sensitive. But while the value is no longer lowercased, it is still trimmed.Command.List
is now required (CommandList
in shadcn) 54aa261Rendering the
Command.List
part (CommandList
if using shadcn) is now mandatory. Otherwise, you should expect to see an error like this:The fix:
<Command label="Command Menu">
<Command.Input />
</Command>
Update
[aria-disabled]
and[aria-selected]
CSS selectors c57e6b7The
aria-disabled
andaria-selected
props 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.[aria-disabled] {}
:not([aria-disabled]) {}
/* After */
[aria-disabled="true"] {}
[aria-disabled="false"] {}
What's Changed
Command.List
in a portal in 54aa261Command.Empty
not appearing on first render in be4388edisablePointerSelection
prop toCommand
to disable item selection via pointer, like Raycast by @ joaom00 in #116forceMount
by @ joaom00 in #143@ radix-ui/react-dialog
version by @ wmcheung in #194keywords
prop to theCommand.Item
component by @ itaikeren in #158asChild
prop to all component parts by @ joaom00 in #138New Contributors
Full Changelog: v0.2.1...v1.0.0
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: