modern-cmdk 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/codemod/cli.mjs +14001 -60832
- package/dist/codemod/transforms/data-attrs.d.mts +1 -3
- package/dist/codemod/transforms/data-attrs.mjs +1 -2
- package/dist/codemod/transforms/forward-ref.d.mts +1 -3
- package/dist/codemod/transforms/forward-ref.mjs +1 -2
- package/dist/codemod/transforms/import-rewrite.d.mts +1 -3
- package/dist/codemod/transforms/import-rewrite.mjs +1 -2
- package/dist/codemod/transforms/should-filter.d.mts +1 -3
- package/dist/codemod/transforms/should-filter.mjs +1 -2
- package/dist/core/index.d.mts +0 -32
- package/dist/core/index.mjs +37 -40
- package/dist/react/index.d.mts +6 -62
- package/dist/react/index.mjs +65 -87
- package/package.json +4 -4
- package/CHANGELOG.md +0 -98
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ A ground-up rewrite of `cmdk` for **React 19**, **ES2026**, and **TypeScript 7**
|
|
|
108
108
|
| **Animations** | CSS transitions | GPU-composited: `@starting-style`, `scroll-timeline`, spring easing |
|
|
109
109
|
| **Keyboard** | External | Built-in registry, `Mod` key, conflict detection |
|
|
110
110
|
| **Accessibility** | Partial ARIA | Full WAI-ARIA combobox, `forced-colors`, `prefers-contrast` |
|
|
111
|
-
| **Bundle** | ~6 KB | Core ~6.
|
|
111
|
+
| **Bundle** | ~6 KB | Core ~6.4 KB, React ~9.8 KB |
|
|
112
112
|
| **TypeScript** | 4.x/5.x | 7.0, isolated declarations, branded types |
|
|
113
113
|
| **Cleanup** | Manual | `using`/`await using` (Explicit Resource Management) |
|
|
114
114
|
| **Error handling** | None | `CommandErrorBoundary` with fallback UI |
|
|
@@ -195,8 +195,8 @@ machine.subscribe(() => {
|
|
|
195
195
|
| Search 100K items (WASM) | < 1 ms | ~0.7 ms |
|
|
196
196
|
| Filter 10K (incremental) | < 2 ms | ~1.1 ms |
|
|
197
197
|
| State update cycle | < 4 ms | ~2.3 ms |
|
|
198
|
-
| Core bundle (gzipped) | <= 6.5 KB | ~6.
|
|
199
|
-
| React bundle (gzipped) | <= 12 KB | ~
|
|
198
|
+
| Core bundle (gzipped) | <= 6.5 KB | ~6.4 KB |
|
|
199
|
+
| React bundle (gzipped) | <= 12 KB | ~9.8 KB |
|
|
200
200
|
|
|
201
201
|
CI enforces 5% warning / 15% failure regression thresholds with 3-run averaging.
|
|
202
202
|
|