diff --git a/.changeset/ssr-platform-labels.md b/.changeset/ssr-platform-labels.md deleted file mode 100644 index f784e35a..00000000 --- a/.changeset/ssr-platform-labels.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@tanstack/hotkeys': minor -'@tanstack/hotkeys-devtools': minor -'@tanstack/react-hotkeys': minor -'@tanstack/react-hotkeys-devtools': minor -'@tanstack/preact-hotkeys': minor -'@tanstack/preact-hotkeys-devtools': minor -'@tanstack/octane-hotkeys': minor -'@tanstack/vue-hotkeys': minor -'@tanstack/vue-hotkeys-devtools': minor -'@tanstack/solid-hotkeys': minor -'@tanstack/solid-hotkeys-devtools': minor -'@tanstack/svelte-hotkeys': minor -'@tanstack/svelte-hotkeys-devtools': minor -'@tanstack/angular-hotkeys': minor -'@tanstack/angular-hotkeys-devtools': minor -'@tanstack/ember-hotkeys': minor -'@tanstack/lit-hotkeys': minor -'@tanstack/alpine-hotkeys': minor ---- - -Server-rendered hotkey labels can match the user's platform. - -- `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. -- Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. -- In development, formatting a label on the server without a platform warns once. -- Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. -- Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). -- Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. diff --git a/examples/angular/injectFormatForDisplay-analog/package.json b/examples/angular/injectFormatForDisplay-analog/package.json index 02aae4a1..cabaea04 100644 --- a/examples/angular/injectFormatForDisplay-analog/package.json +++ b/examples/angular/injectFormatForDisplay-analog/package.json @@ -17,7 +17,7 @@ "@angular/platform-browser": "^22.2.1", "@angular/platform-server": "^22.2.1", "@angular/router": "^22.2.1", - "@tanstack/angular-hotkeys": "^0.20.0", + "@tanstack/angular-hotkeys": "^0.21.0", "rxjs": "~7.8.2", "tslib": "^2.8.1" }, diff --git a/examples/angular/injectFormatForDisplay-angular-ssr/package.json b/examples/angular/injectFormatForDisplay-angular-ssr/package.json index a9b405fc..964d9a64 100644 --- a/examples/angular/injectFormatForDisplay-angular-ssr/package.json +++ b/examples/angular/injectFormatForDisplay-angular-ssr/package.json @@ -17,7 +17,7 @@ "@angular/platform-server": "^22.2.1", "@angular/router": "^22.2.1", "@angular/ssr": "^22.2.1", - "@tanstack/angular-hotkeys": "^0.20.0", + "@tanstack/angular-hotkeys": "^0.21.0", "express": "^5.3.0", "rxjs": "~7.8.2", "tslib": "^2.8.1" diff --git a/examples/angular/injectHeldKeys/package.json b/examples/angular/injectHeldKeys/package.json index 8bee0db6..84b8c420 100644 --- a/examples/angular/injectHeldKeys/package.json +++ b/examples/angular/injectHeldKeys/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkey-sequences/package.json b/examples/angular/injectHotkey-sequences/package.json index 8a646edb..ba53db1c 100644 --- a/examples/angular/injectHotkey-sequences/package.json +++ b/examples/angular/injectHotkey-sequences/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkey/package.json b/examples/angular/injectHotkey/package.json index 6a37b50c..d586d920 100644 --- a/examples/angular/injectHotkey/package.json +++ b/examples/angular/injectHotkey/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeyRecorder-sequences/package.json b/examples/angular/injectHotkeyRecorder-sequences/package.json index 3b63e68b..2dd4aabe 100644 --- a/examples/angular/injectHotkeyRecorder-sequences/package.json +++ b/examples/angular/injectHotkeyRecorder-sequences/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeyRecorder/package.json b/examples/angular/injectHotkeyRecorder/package.json index e1c6aa9d..6b5b9e0e 100644 --- a/examples/angular/injectHotkeyRecorder/package.json +++ b/examples/angular/injectHotkeyRecorder/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeys-sequences/package.json b/examples/angular/injectHotkeys-sequences/package.json index ca1e691b..28bf3f60 100644 --- a/examples/angular/injectHotkeys-sequences/package.json +++ b/examples/angular/injectHotkeys-sequences/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeys/package.json b/examples/angular/injectHotkeys/package.json index 01645d6a..8e68e8c7 100644 --- a/examples/angular/injectHotkeys/package.json +++ b/examples/angular/injectHotkeys/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectKeyHold/package.json b/examples/angular/injectKeyHold/package.json index 4ac3c753..1e7bc22f 100644 --- a/examples/angular/injectKeyHold/package.json +++ b/examples/angular/injectKeyHold/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/kitchen-sink/package.json b/examples/angular/kitchen-sink/package.json index d13384c8..0e1aeb9c 100644 --- a/examples/angular/kitchen-sink/package.json +++ b/examples/angular/kitchen-sink/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/angular/scopes/package.json b/examples/angular/scopes/package.json index ec69c779..1fbb00fc 100644 --- a/examples/angular/scopes/package.json +++ b/examples/angular/scopes/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.1", "@angular/router": "^22.2.1", "@tanstack/angular-devtools": "^0.0.13", - "@tanstack/angular-hotkeys": "^0.20.0", - "@tanstack/angular-hotkeys-devtools": "^0.4.3", + "@tanstack/angular-hotkeys": "^0.21.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.0", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "~0.16.3" diff --git a/examples/lit/held-keys/package.json b/examples/lit/held-keys/package.json index 2f7df5f1..21314009 100644 --- a/examples/lit/held-keys/package.json +++ b/examples/lit/held-keys/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.21.0", + "@tanstack/lit-hotkeys": "0.22.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey-recorder-sequences/package.json b/examples/lit/hotkey-recorder-sequences/package.json index 767bd8fe..18bed64a 100644 --- a/examples/lit/hotkey-recorder-sequences/package.json +++ b/examples/lit/hotkey-recorder-sequences/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.21.0", + "@tanstack/lit-hotkeys": "0.22.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey-recorder/package.json b/examples/lit/hotkey-recorder/package.json index 9cf1cec2..f0803072 100644 --- a/examples/lit/hotkey-recorder/package.json +++ b/examples/lit/hotkey-recorder/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.21.0", + "@tanstack/lit-hotkeys": "0.22.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey-sequences/package.json b/examples/lit/hotkey-sequences/package.json index d529a61c..b711ce72 100644 --- a/examples/lit/hotkey-sequences/package.json +++ b/examples/lit/hotkey-sequences/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.21.0", + "@tanstack/lit-hotkeys": "0.22.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey/package.json b/examples/lit/hotkey/package.json index ae51bffe..b4f56e56 100644 --- a/examples/lit/hotkey/package.json +++ b/examples/lit/hotkey/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.21.0", + "@tanstack/lit-hotkeys": "0.22.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/key-hold/package.json b/examples/lit/key-hold/package.json index 0a1483f6..c2d365ef 100644 --- a/examples/lit/key-hold/package.json +++ b/examples/lit/key-hold/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.21.0", + "@tanstack/lit-hotkeys": "0.22.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/kitchen-sink/package.json b/examples/lit/kitchen-sink/package.json index eaf93e7d..ec9e2538 100644 --- a/examples/lit/kitchen-sink/package.json +++ b/examples/lit/kitchen-sink/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.21.0", + "@tanstack/lit-hotkeys": "0.22.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/preact/kitchen-sink/package.json b/examples/preact/kitchen-sink/package.json index bed139a0..3901e228 100644 --- a/examples/preact/kitchen-sink/package.json +++ b/examples/preact/kitchen-sink/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/scopes/package.json b/examples/preact/scopes/package.json index c77a5667..29a67b53 100644 --- a/examples/preact/scopes/package.json +++ b/examples/preact/scopes/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useFormatForDisplay-astro/package.json b/examples/preact/useFormatForDisplay-astro/package.json index 22cf386e..f3ab8df8 100644 --- a/examples/preact/useFormatForDisplay-astro/package.json +++ b/examples/preact/useFormatForDisplay-astro/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/node": "^11.1.9", "@astrojs/preact": "^6.1.1", - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "astro": "^7.4.4", "preact": "^11.0.1" }, diff --git a/examples/preact/useFormatForDisplay-vite-ssr/package.json b/examples/preact/useFormatForDisplay-vite-ssr/package.json index a457975e..3be83d82 100644 --- a/examples/preact/useFormatForDisplay-vite-ssr/package.json +++ b/examples/preact/useFormatForDisplay-vite-ssr/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1", "preact-render-to-string": "^6.8.2" }, diff --git a/examples/preact/useHeldKeys/package.json b/examples/preact/useHeldKeys/package.json index cda856ab..773e81cd 100644 --- a/examples/preact/useHeldKeys/package.json +++ b/examples/preact/useHeldKeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useHotkey-sequences/package.json b/examples/preact/useHotkey-sequences/package.json index ab62a783..c0f7e9a2 100644 --- a/examples/preact/useHotkey-sequences/package.json +++ b/examples/preact/useHotkey-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useHotkey/package.json b/examples/preact/useHotkey/package.json index 8b42a8f8..caa1068b 100644 --- a/examples/preact/useHotkey/package.json +++ b/examples/preact/useHotkey/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useHotkeyRecorder-sequences/package.json b/examples/preact/useHotkeyRecorder-sequences/package.json index 1b183c63..96dc08ff 100644 --- a/examples/preact/useHotkeyRecorder-sequences/package.json +++ b/examples/preact/useHotkeyRecorder-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useHotkeyRecorder/package.json b/examples/preact/useHotkeyRecorder/package.json index f99c82dd..d8224399 100644 --- a/examples/preact/useHotkeyRecorder/package.json +++ b/examples/preact/useHotkeyRecorder/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useHotkeys-sequences/package.json b/examples/preact/useHotkeys-sequences/package.json index c5bb0369..2d2567ef 100644 --- a/examples/preact/useHotkeys-sequences/package.json +++ b/examples/preact/useHotkeys-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useHotkeys/package.json b/examples/preact/useHotkeys/package.json index 168b61c0..35b6aab9 100644 --- a/examples/preact/useHotkeys/package.json +++ b/examples/preact/useHotkeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/preact/useKeyhold/package.json b/examples/preact/useKeyhold/package.json index a9ef5012..67e20e9c 100644 --- a/examples/preact/useKeyhold/package.json +++ b/examples/preact/useKeyhold/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.19.2", + "@tanstack/preact-hotkeys": "^0.20.0", "preact": "^11.0.1" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.15", - "@tanstack/preact-hotkeys-devtools": "^0.12.3", + "@tanstack/preact-hotkeys-devtools": "^0.13.0", "typescript": "6.0.3", "vite": "^8.3.2" } diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index d3c4a0c2..80e4cd81 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -11,14 +11,14 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "@tanstack/react-router": "^1.170.41", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/scopes/package.json b/examples/react/scopes/package.json index 10785c77..e54c2e16 100644 --- a/examples/react/scopes/package.json +++ b/examples/react/scopes/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useFormatForDisplay-astro/package.json b/examples/react/useFormatForDisplay-astro/package.json index 68eb86bc..b85b28af 100644 --- a/examples/react/useFormatForDisplay-astro/package.json +++ b/examples/react/useFormatForDisplay-astro/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/node": "^11.1.9", "@astrojs/react": "^7.1.2", - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "astro": "^7.4.4", "react": "^19.3.0", "react-dom": "^19.3.0" diff --git a/examples/react/useFormatForDisplay-nextjs/package.json b/examples/react/useFormatForDisplay-nextjs/package.json index 4832fc76..558b4a1b 100644 --- a/examples/react/useFormatForDisplay-nextjs/package.json +++ b/examples/react/useFormatForDisplay-nextjs/package.json @@ -11,7 +11,7 @@ "test:types": "next typegen && tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "next": "^16.4.3", "react": "^19.3.0", "react-dom": "^19.3.0" diff --git a/examples/react/useFormatForDisplay-react-router/package.json b/examples/react/useFormatForDisplay-react-router/package.json index 8260a28a..40577e4d 100644 --- a/examples/react/useFormatForDisplay-react-router/package.json +++ b/examples/react/useFormatForDisplay-react-router/package.json @@ -13,7 +13,7 @@ "dependencies": { "@react-router/node": "^8.5.1", "@react-router/serve": "^8.5.1", - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "isbot": "^5.2.2", "react": "^19.3.0", "react-dom": "^19.3.0", diff --git a/examples/react/useFormatForDisplay-tanstack-start/package.json b/examples/react/useFormatForDisplay-tanstack-start/package.json index d5908621..be24afec 100644 --- a/examples/react/useFormatForDisplay-tanstack-start/package.json +++ b/examples/react/useFormatForDisplay-tanstack-start/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "@tanstack/react-router": "^1.170.41", "@tanstack/react-start": "^1.169.4", "react": "^19.3.0", diff --git a/examples/react/useHeldKeys/package.json b/examples/react/useHeldKeys/package.json index 5254a913..68ea7ce3 100644 --- a/examples/react/useHeldKeys/package.json +++ b/examples/react/useHeldKeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useHotkey-sequences/package.json b/examples/react/useHotkey-sequences/package.json index f572ca2c..d0f3271f 100644 --- a/examples/react/useHotkey-sequences/package.json +++ b/examples/react/useHotkey-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useHotkey/package.json b/examples/react/useHotkey/package.json index b1a5f346..976f80a8 100644 --- a/examples/react/useHotkey/package.json +++ b/examples/react/useHotkey/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useHotkeyRecorder-sequences/package.json b/examples/react/useHotkeyRecorder-sequences/package.json index bc813f69..dfc5babf 100644 --- a/examples/react/useHotkeyRecorder-sequences/package.json +++ b/examples/react/useHotkeyRecorder-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useHotkeyRecorder/package.json b/examples/react/useHotkeyRecorder/package.json index a2e062f2..a96e2afc 100644 --- a/examples/react/useHotkeyRecorder/package.json +++ b/examples/react/useHotkeyRecorder/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useHotkeys-sequences/package.json b/examples/react/useHotkeys-sequences/package.json index 2ccbfa35..67d2115c 100644 --- a/examples/react/useHotkeys-sequences/package.json +++ b/examples/react/useHotkeys-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useHotkeys/package.json b/examples/react/useHotkeys/package.json index dc099c6e..e668df85 100644 --- a/examples/react/useHotkeys/package.json +++ b/examples/react/useHotkeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/react/useKeyhold/package.json b/examples/react/useKeyhold/package.json index def7b6b5..080186c3 100644 --- a/examples/react/useKeyhold/package.json +++ b/examples/react/useKeyhold/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.20.2", + "@tanstack/react-hotkeys": "^0.21.0", "react": "^19.3.0", "react-dom": "^19.3.0" }, "devDependencies": { "@tanstack/react-devtools": "0.10.14", - "@tanstack/react-hotkeys-devtools": "^0.13.3", + "@tanstack/react-hotkeys-devtools": "^0.14.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", diff --git a/examples/solid/createFormatForDisplay-astro/package.json b/examples/solid/createFormatForDisplay-astro/package.json index 182f601b..72581802 100644 --- a/examples/solid/createFormatForDisplay-astro/package.json +++ b/examples/solid/createFormatForDisplay-astro/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/node": "^11.1.9", "@astrojs/solid-js": "^7.1.2", - "@tanstack/solid-hotkeys": "^0.19.2", + "@tanstack/solid-hotkeys": "^0.20.0", "astro": "^7.4.4", "solid-js": "^1.9.15" }, diff --git a/examples/solid/createFormatForDisplay-solid-start/package.json b/examples/solid/createFormatForDisplay-solid-start/package.json index e5d57967..1b85edb4 100644 --- a/examples/solid/createFormatForDisplay-solid-start/package.json +++ b/examples/solid/createFormatForDisplay-solid-start/package.json @@ -14,7 +14,7 @@ "dependencies": { "@solidjs/router": "^1.0.1", "@solidjs/start": "^2.1.0", - "@tanstack/solid-hotkeys": "^0.19.2", + "@tanstack/solid-hotkeys": "^0.20.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createFormatForDisplay-tanstack-start/package.json b/examples/solid/createFormatForDisplay-tanstack-start/package.json index 4dc48162..028f1959 100644 --- a/examples/solid/createFormatForDisplay-tanstack-start/package.json +++ b/examples/solid/createFormatForDisplay-tanstack-start/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/solid-hotkeys": "^0.19.2", + "@tanstack/solid-hotkeys": "^0.20.0", "@tanstack/solid-router": "^1.170.43", "@tanstack/solid-start": "^1.169.4", "solid-js": "^1.9.15" diff --git a/examples/solid/createHeldKeys/package.json b/examples/solid/createHeldKeys/package.json index 1582df12..61811042 100644 --- a/examples/solid/createHeldKeys/package.json +++ b/examples/solid/createHeldKeys/package.json @@ -9,8 +9,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createHotkey-sequences/package.json b/examples/solid/createHotkey-sequences/package.json index 44ee7261..0d4de7e4 100644 --- a/examples/solid/createHotkey-sequences/package.json +++ b/examples/solid/createHotkey-sequences/package.json @@ -9,8 +9,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createHotkey/package.json b/examples/solid/createHotkey/package.json index 2d24d246..9940883f 100644 --- a/examples/solid/createHotkey/package.json +++ b/examples/solid/createHotkey/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createHotkeyRecorder-sequences/package.json b/examples/solid/createHotkeyRecorder-sequences/package.json index 9399d3e4..cf043fcf 100644 --- a/examples/solid/createHotkeyRecorder-sequences/package.json +++ b/examples/solid/createHotkeyRecorder-sequences/package.json @@ -9,8 +9,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createHotkeyRecorder/package.json b/examples/solid/createHotkeyRecorder/package.json index 7764751a..72b43768 100644 --- a/examples/solid/createHotkeyRecorder/package.json +++ b/examples/solid/createHotkeyRecorder/package.json @@ -9,8 +9,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createHotkeys-sequences/package.json b/examples/solid/createHotkeys-sequences/package.json index fd749c2f..078cd3d0 100644 --- a/examples/solid/createHotkeys-sequences/package.json +++ b/examples/solid/createHotkeys-sequences/package.json @@ -9,8 +9,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createHotkeys/package.json b/examples/solid/createHotkeys/package.json index 77d1ca8c..5cd1abef 100644 --- a/examples/solid/createHotkeys/package.json +++ b/examples/solid/createHotkeys/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/createKeyHold/package.json b/examples/solid/createKeyHold/package.json index 307f75fe..77d26a1c 100644 --- a/examples/solid/createKeyHold/package.json +++ b/examples/solid/createKeyHold/package.json @@ -9,8 +9,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/kitchen-sink/package.json b/examples/solid/kitchen-sink/package.json index be86a6c0..806ba4c9 100644 --- a/examples/solid/kitchen-sink/package.json +++ b/examples/solid/kitchen-sink/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/solid/scopes/package.json b/examples/solid/scopes/package.json index 10da404c..1947253f 100644 --- a/examples/solid/scopes/package.json +++ b/examples/solid/scopes/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/solid-devtools": "0.8.14", - "@tanstack/solid-hotkeys": "^0.19.2", - "@tanstack/solid-hotkeys-devtools": "^0.12.3", + "@tanstack/solid-hotkeys": "^0.20.0", + "@tanstack/solid-hotkeys-devtools": "^0.13.0", "solid-js": "^1.9.15" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey-recorder-sequences/package.json b/examples/svelte/create-hotkey-recorder-sequences/package.json index 4940b09a..bafb81be 100644 --- a/examples/svelte/create-hotkey-recorder-sequences/package.json +++ b/examples/svelte/create-hotkey-recorder-sequences/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey-recorder/package.json b/examples/svelte/create-hotkey-recorder/package.json index 44695587..68c27798 100644 --- a/examples/svelte/create-hotkey-recorder/package.json +++ b/examples/svelte/create-hotkey-recorder/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey-sequences/package.json b/examples/svelte/create-hotkey-sequences/package.json index 9a250514..8781d439 100644 --- a/examples/svelte/create-hotkey-sequences/package.json +++ b/examples/svelte/create-hotkey-sequences/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey/package.json b/examples/svelte/create-hotkey/package.json index 6f76e7e1..c5614bc5 100644 --- a/examples/svelte/create-hotkey/package.json +++ b/examples/svelte/create-hotkey/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/create-hotkeys-sequences/package.json b/examples/svelte/create-hotkeys-sequences/package.json index 6f8c7f9a..53a3a068 100644 --- a/examples/svelte/create-hotkeys-sequences/package.json +++ b/examples/svelte/create-hotkeys-sequences/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/create-hotkeys/package.json b/examples/svelte/create-hotkeys/package.json index 8b877d2b..868bff67 100644 --- a/examples/svelte/create-hotkeys/package.json +++ b/examples/svelte/create-hotkeys/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/get-held-keys/package.json b/examples/svelte/get-held-keys/package.json index 2921f9a6..d9e0c07d 100644 --- a/examples/svelte/get-held-keys/package.json +++ b/examples/svelte/get-held-keys/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/get-is-key-held/package.json b/examples/svelte/get-is-key-held/package.json index 03faedc4..af4b5763 100644 --- a/examples/svelte/get-is-key-held/package.json +++ b/examples/svelte/get-is-key-held/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/getFormatForDisplay-astro/package.json b/examples/svelte/getFormatForDisplay-astro/package.json index 6249e860..0e8e4e31 100644 --- a/examples/svelte/getFormatForDisplay-astro/package.json +++ b/examples/svelte/getFormatForDisplay-astro/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/node": "^11.1.9", "@astrojs/svelte": "^9.1.2", - "@tanstack/svelte-hotkeys": "0.19.2", + "@tanstack/svelte-hotkeys": "0.20.0", "astro": "^7.4.4", "svelte": "^5.57.1" }, diff --git a/examples/svelte/getFormatForDisplay-sveltekit/package.json b/examples/svelte/getFormatForDisplay-sveltekit/package.json index cc26d3c9..835bb8ac 100644 --- a/examples/svelte/getFormatForDisplay-sveltekit/package.json +++ b/examples/svelte/getFormatForDisplay-sveltekit/package.json @@ -15,7 +15,7 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-hotkeys": "0.19.2", + "@tanstack/svelte-hotkeys": "0.20.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/kitchen-sink/package.json b/examples/svelte/kitchen-sink/package.json index a86c689b..343fe807 100644 --- a/examples/svelte/kitchen-sink/package.json +++ b/examples/svelte/kitchen-sink/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/svelte/scopes/package.json b/examples/svelte/scopes/package.json index 0bd6a2c7..ba2a4a1d 100644 --- a/examples/svelte/scopes/package.json +++ b/examples/svelte/scopes/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.8", - "@tanstack/svelte-hotkeys": "0.19.2", - "@tanstack/svelte-hotkeys-devtools": "^0.4.3", + "@tanstack/svelte-hotkeys": "0.20.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.0", "svelte": "^5.57.1" }, "devDependencies": { diff --git a/examples/vue/kitchen-sink/package.json b/examples/vue/kitchen-sink/package.json index 8555d34a..b809ca9f 100644 --- a/examples/vue/kitchen-sink/package.json +++ b/examples/vue/kitchen-sink/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/scopes/package.json b/examples/vue/scopes/package.json index 13940a07..6f8a617e 100644 --- a/examples/vue/scopes/package.json +++ b/examples/vue/scopes/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useFormatForDisplay-astro/package.json b/examples/vue/useFormatForDisplay-astro/package.json index 35eefb37..3d37218c 100644 --- a/examples/vue/useFormatForDisplay-astro/package.json +++ b/examples/vue/useFormatForDisplay-astro/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/node": "^11.1.9", "@astrojs/vue": "^7.1.2", - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "astro": "^7.4.4", "vue": "^3.5.43" }, diff --git a/examples/vue/useFormatForDisplay-nuxt/package.json b/examples/vue/useFormatForDisplay-nuxt/package.json index 0ab03822..63acd10b 100644 --- a/examples/vue/useFormatForDisplay-nuxt/package.json +++ b/examples/vue/useFormatForDisplay-nuxt/package.json @@ -11,7 +11,7 @@ "test:types": "nuxt typecheck" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "nuxt": "^4.6.3", "vue": "^3.5.43" }, diff --git a/examples/vue/useFormatForDisplay-vite-ssr/package.json b/examples/vue/useFormatForDisplay-vite-ssr/package.json index ad1e808a..b70d1f3c 100644 --- a/examples/vue/useFormatForDisplay-vite-ssr/package.json +++ b/examples/vue/useFormatForDisplay-vite-ssr/package.json @@ -11,7 +11,7 @@ "test:types": "vue-tsc --noEmit" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "express": "^5.3.0", "vue": "^3.5.43" }, diff --git a/examples/vue/useFormatForDisplay-vitepress/package.json b/examples/vue/useFormatForDisplay-vitepress/package.json index 9f652557..e601d94a 100644 --- a/examples/vue/useFormatForDisplay-vitepress/package.json +++ b/examples/vue/useFormatForDisplay-vitepress/package.json @@ -11,7 +11,7 @@ "test:types": "vue-tsc --noEmit" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { diff --git a/examples/vue/useHeldKeys/package.json b/examples/vue/useHeldKeys/package.json index f6a0373e..214dc705 100644 --- a/examples/vue/useHeldKeys/package.json +++ b/examples/vue/useHeldKeys/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useHotkey-sequences/package.json b/examples/vue/useHotkey-sequences/package.json index 26cf6c1a..c00a1e4b 100644 --- a/examples/vue/useHotkey-sequences/package.json +++ b/examples/vue/useHotkey-sequences/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useHotkey/package.json b/examples/vue/useHotkey/package.json index e1da7b64..2f62750f 100644 --- a/examples/vue/useHotkey/package.json +++ b/examples/vue/useHotkey/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useHotkeyRecorder-sequences/package.json b/examples/vue/useHotkeyRecorder-sequences/package.json index 037c668d..0114b259 100644 --- a/examples/vue/useHotkeyRecorder-sequences/package.json +++ b/examples/vue/useHotkeyRecorder-sequences/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useHotkeyRecorder/package.json b/examples/vue/useHotkeyRecorder/package.json index 721c0dd8..c835124b 100644 --- a/examples/vue/useHotkeyRecorder/package.json +++ b/examples/vue/useHotkeyRecorder/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useHotkeys-sequences/package.json b/examples/vue/useHotkeys-sequences/package.json index 17c59247..3104e908 100644 --- a/examples/vue/useHotkeys-sequences/package.json +++ b/examples/vue/useHotkeys-sequences/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useHotkeys/package.json b/examples/vue/useHotkeys/package.json index 27444fd2..6ff176bb 100644 --- a/examples/vue/useHotkeys/package.json +++ b/examples/vue/useHotkeys/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/examples/vue/useKeyhold/package.json b/examples/vue/useKeyhold/package.json index 7e58cc12..554151ab 100644 --- a/examples/vue/useKeyhold/package.json +++ b/examples/vue/useKeyhold/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.20.0", + "@tanstack/vue-hotkeys": "^0.21.0", "vue": "^3.5.43" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.28", - "@tanstack/vue-hotkeys-devtools": "^0.12.3", + "@tanstack/vue-hotkeys-devtools": "^0.13.0", "@typescript-eslint/parser": "^8.71.0", "@vitejs/plugin-vue": "^6.0.9", "typescript": "6.0.3", diff --git a/packages/alpine-hotkeys/CHANGELOG.md b/packages/alpine-hotkeys/CHANGELOG.md index 63e4c8f2..7ffc513f 100644 --- a/packages/alpine-hotkeys/CHANGELOG.md +++ b/packages/alpine-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/alpine-hotkeys +## 0.11.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.10.0 ### Minor Changes diff --git a/packages/alpine-hotkeys/package.json b/packages/alpine-hotkeys/package.json index df944ea2..84623cdf 100644 --- a/packages/alpine-hotkeys/package.json +++ b/packages/alpine-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/alpine-hotkeys", - "version": "0.10.0", + "version": "0.11.0", "description": "Alpine adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/angular-hotkeys-devtools/CHANGELOG.md b/packages/angular-hotkeys-devtools/CHANGELOG.md index 7381e1d4..935a4ba6 100644 --- a/packages/angular-hotkeys-devtools/CHANGELOG.md +++ b/packages/angular-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/angular-hotkeys-devtools +## 0.5.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys-devtools@1.8.0 + ## 0.4.3 ### Patch Changes diff --git a/packages/angular-hotkeys-devtools/package.json b/packages/angular-hotkeys-devtools/package.json index f2b1e4c7..f1cd52bf 100644 --- a/packages/angular-hotkeys-devtools/package.json +++ b/packages/angular-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-hotkeys-devtools", - "version": "0.4.3", + "version": "0.5.0", "description": "Angular devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/angular-hotkeys/CHANGELOG.md b/packages/angular-hotkeys/CHANGELOG.md index 24d5be84..61a9a52d 100644 --- a/packages/angular-hotkeys/CHANGELOG.md +++ b/packages/angular-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/angular-hotkeys +## 0.21.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.20.0 ### Minor Changes diff --git a/packages/angular-hotkeys/package.json b/packages/angular-hotkeys/package.json index f6b1f2a2..f9a46967 100644 --- a/packages/angular-hotkeys/package.json +++ b/packages/angular-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-hotkeys", - "version": "0.20.0", + "version": "0.21.0", "description": "Angular adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ember-hotkeys/CHANGELOG.md b/packages/ember-hotkeys/CHANGELOG.md index b61d8015..e0da0236 100644 --- a/packages/ember-hotkeys/CHANGELOG.md +++ b/packages/ember-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/ember-hotkeys +## 0.10.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.9.0 ### Minor Changes diff --git a/packages/ember-hotkeys/package.json b/packages/ember-hotkeys/package.json index 5fc51168..5b18fd24 100644 --- a/packages/ember-hotkeys/package.json +++ b/packages/ember-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ember-hotkeys", - "version": "0.9.0", + "version": "0.10.0", "description": "Ember adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/hotkeys-devtools/CHANGELOG.md b/packages/hotkeys-devtools/CHANGELOG.md index 82df2f45..a5dde50e 100644 --- a/packages/hotkeys-devtools/CHANGELOG.md +++ b/packages/hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/hotkeys-devtools +## 1.8.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 1.7.3 ### Patch Changes diff --git a/packages/hotkeys-devtools/package.json b/packages/hotkeys-devtools/package.json index 9c23fa02..ce4b6ff8 100644 --- a/packages/hotkeys-devtools/package.json +++ b/packages/hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/hotkeys-devtools", - "version": "1.7.3", + "version": "1.8.0", "description": "Devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/hotkeys/CHANGELOG.md b/packages/hotkeys/CHANGELOG.md index 587428aa..79bcef93 100644 --- a/packages/hotkeys/CHANGELOG.md +++ b/packages/hotkeys/CHANGELOG.md @@ -1,5 +1,18 @@ # @tanstack/hotkeys +## 0.23.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + ## 0.22.1 ### Patch Changes diff --git a/packages/hotkeys/package.json b/packages/hotkeys/package.json index 033a5f90..0e9411ca 100644 --- a/packages/hotkeys/package.json +++ b/packages/hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/hotkeys", - "version": "0.22.1", + "version": "0.23.0", "description": "Type-safe, framework-agnostic keyboard hotkey management for the browser", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/lit-hotkeys/CHANGELOG.md b/packages/lit-hotkeys/CHANGELOG.md index d989bb3d..96e07fe7 100644 --- a/packages/lit-hotkeys/CHANGELOG.md +++ b/packages/lit-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/react-hotkeys +## 0.22.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.21.0 ### Minor Changes diff --git a/packages/lit-hotkeys/package.json b/packages/lit-hotkeys/package.json index 28bb0492..ac124807 100644 --- a/packages/lit-hotkeys/package.json +++ b/packages/lit-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/lit-hotkeys", - "version": "0.21.0", + "version": "0.22.0", "description": "Lit adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/octane-hotkeys/CHANGELOG.md b/packages/octane-hotkeys/CHANGELOG.md index 3936e05e..820621db 100644 --- a/packages/octane-hotkeys/CHANGELOG.md +++ b/packages/octane-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/octane-hotkeys +## 0.10.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.9.2 ### Patch Changes diff --git a/packages/octane-hotkeys/package.json b/packages/octane-hotkeys/package.json index fe5b86d3..34dc5f7c 100644 --- a/packages/octane-hotkeys/package.json +++ b/packages/octane-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/octane-hotkeys", - "version": "0.9.2", + "version": "0.10.0", "description": "Octane adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/preact-hotkeys-devtools/CHANGELOG.md b/packages/preact-hotkeys-devtools/CHANGELOG.md index 610d1121..b0d5a355 100644 --- a/packages/preact-hotkeys-devtools/CHANGELOG.md +++ b/packages/preact-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/preact-hotkeys-devtools +## 0.13.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys-devtools@1.8.0 + ## 0.12.3 ### Patch Changes diff --git a/packages/preact-hotkeys-devtools/package.json b/packages/preact-hotkeys-devtools/package.json index 1c27afc4..e4c82889 100644 --- a/packages/preact-hotkeys-devtools/package.json +++ b/packages/preact-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/preact-hotkeys-devtools", - "version": "0.12.3", + "version": "0.13.0", "description": "Preact devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/preact-hotkeys/CHANGELOG.md b/packages/preact-hotkeys/CHANGELOG.md index 21ca200a..a1ccc1d1 100644 --- a/packages/preact-hotkeys/CHANGELOG.md +++ b/packages/preact-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/preact-hotkeys +## 0.20.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.19.2 ### Patch Changes diff --git a/packages/preact-hotkeys/package.json b/packages/preact-hotkeys/package.json index 2c161378..1df2d99b 100644 --- a/packages/preact-hotkeys/package.json +++ b/packages/preact-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/preact-hotkeys", - "version": "0.19.2", + "version": "0.20.0", "description": "Preact adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-hotkeys-devtools/CHANGELOG.md b/packages/react-hotkeys-devtools/CHANGELOG.md index 1be5b960..6d23a194 100644 --- a/packages/react-hotkeys-devtools/CHANGELOG.md +++ b/packages/react-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/react-hotkeys-devtools +## 0.14.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys-devtools@1.8.0 + ## 0.13.3 ### Patch Changes diff --git a/packages/react-hotkeys-devtools/package.json b/packages/react-hotkeys-devtools/package.json index cea76b38..c9626f08 100644 --- a/packages/react-hotkeys-devtools/package.json +++ b/packages/react-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-hotkeys-devtools", - "version": "0.13.3", + "version": "0.14.0", "description": "React devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-hotkeys/CHANGELOG.md b/packages/react-hotkeys/CHANGELOG.md index 23b7b6b7..bc0e36b8 100644 --- a/packages/react-hotkeys/CHANGELOG.md +++ b/packages/react-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/react-hotkeys +## 0.21.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.20.2 ### Patch Changes diff --git a/packages/react-hotkeys/package.json b/packages/react-hotkeys/package.json index 4f5dd7d7..c1efdfe0 100644 --- a/packages/react-hotkeys/package.json +++ b/packages/react-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-hotkeys", - "version": "0.20.2", + "version": "0.21.0", "description": "React adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-hotkeys-devtools/CHANGELOG.md b/packages/solid-hotkeys-devtools/CHANGELOG.md index 1c262aa9..89b62ded 100644 --- a/packages/solid-hotkeys-devtools/CHANGELOG.md +++ b/packages/solid-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/solid-hotkeys-devtools +## 0.13.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys-devtools@1.8.0 + ## 0.12.3 ### Patch Changes diff --git a/packages/solid-hotkeys-devtools/package.json b/packages/solid-hotkeys-devtools/package.json index cb0eab24..95bc67ac 100644 --- a/packages/solid-hotkeys-devtools/package.json +++ b/packages/solid-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-hotkeys-devtools", - "version": "0.12.3", + "version": "0.13.0", "description": "SolidJS devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-hotkeys/CHANGELOG.md b/packages/solid-hotkeys/CHANGELOG.md index f08b4961..fd7789a0 100644 --- a/packages/solid-hotkeys/CHANGELOG.md +++ b/packages/solid-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/solid-hotkeys +## 0.20.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.19.2 ### Patch Changes diff --git a/packages/solid-hotkeys/package.json b/packages/solid-hotkeys/package.json index d03c3448..706addcf 100644 --- a/packages/solid-hotkeys/package.json +++ b/packages/solid-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-hotkeys", - "version": "0.19.2", + "version": "0.20.0", "description": "SolidJS adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/svelte-hotkeys-devtools/CHANGELOG.md b/packages/svelte-hotkeys-devtools/CHANGELOG.md index 1d1c5535..b7544c61 100644 --- a/packages/svelte-hotkeys-devtools/CHANGELOG.md +++ b/packages/svelte-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/svelte-hotkeys-devtools +## 0.5.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys-devtools@1.8.0 + ## 0.4.3 ### Patch Changes diff --git a/packages/svelte-hotkeys-devtools/package.json b/packages/svelte-hotkeys-devtools/package.json index 900779a6..b70be46b 100644 --- a/packages/svelte-hotkeys-devtools/package.json +++ b/packages/svelte-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-hotkeys-devtools", - "version": "0.4.3", + "version": "0.5.0", "description": "Svelte devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/svelte-hotkeys/CHANGELOG.md b/packages/svelte-hotkeys/CHANGELOG.md index 70267975..fcc29197 100644 --- a/packages/svelte-hotkeys/CHANGELOG.md +++ b/packages/svelte-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/svelte-hotkeys +## 0.20.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.19.2 ### Patch Changes diff --git a/packages/svelte-hotkeys/package.json b/packages/svelte-hotkeys/package.json index 372a8687..e849985c 100644 --- a/packages/svelte-hotkeys/package.json +++ b/packages/svelte-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-hotkeys", - "version": "0.19.2", + "version": "0.20.0", "description": "Svelte adapter for TanStack Hotkeys", "author": "Kunal Rao", "license": "MIT", diff --git a/packages/vue-hotkeys-devtools/CHANGELOG.md b/packages/vue-hotkeys-devtools/CHANGELOG.md index 5a36f2d6..421e91ec 100644 --- a/packages/vue-hotkeys-devtools/CHANGELOG.md +++ b/packages/vue-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/vue-hotkeys-devtools +## 0.13.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys-devtools@1.8.0 + ## 0.12.3 ### Patch Changes diff --git a/packages/vue-hotkeys-devtools/package.json b/packages/vue-hotkeys-devtools/package.json index e21b8c71..21cbb419 100644 --- a/packages/vue-hotkeys-devtools/package.json +++ b/packages/vue-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-hotkeys-devtools", - "version": "0.12.3", + "version": "0.13.0", "description": "Vue devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/vue-hotkeys/CHANGELOG.md b/packages/vue-hotkeys/CHANGELOG.md index 7ce28ec5..06931c93 100644 --- a/packages/vue-hotkeys/CHANGELOG.md +++ b/packages/vue-hotkeys/CHANGELOG.md @@ -1,5 +1,23 @@ # @tanstack/vue-hotkeys +## 0.21.0 + +### Minor Changes + +- [#221](https://github.com/TanStack/hotkeys/pull/221) [`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f) - Server-rendered hotkey labels can match the user's platform. + + - `detectPlatform(userAgent)` detects the platform from a user agent string, such as a request's `User-Agent` header. `null`, as from a missing header, works like no argument. A new `HotkeyPlatform` type names the result. + - Without a user agent, `detectPlatform()` returns `'linux'` on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS. + - In development, formatting a label on the server without a platform warns once. + - Providers accept `defaultOptions.platform`, which is also the default platform for their hotkeys and recorders. + - Adapters that render on the server add a formatter hook that uses the provider's platform: `useFormatForDisplay` (React, Preact, Octane, Vue, Ember), `createFormatForDisplay` (Solid), `getFormatForDisplay` (Svelte), and `injectFormatForDisplay` (Angular). + - Angular's `provideHotkeys` accepts `defaultOptions` as a getter that runs in the injection context, so it can read the request with `inject(REQUEST)`. + +### Patch Changes + +- Updated dependencies [[`5bf96b6`](https://github.com/TanStack/hotkeys/commit/5bf96b68bba67b0e288bb7886c5f4516417a528f)]: + - @tanstack/hotkeys@0.23.0 + ## 0.20.0 ### Minor Changes diff --git a/packages/vue-hotkeys/package.json b/packages/vue-hotkeys/package.json index 95842428..f267ecaa 100644 --- a/packages/vue-hotkeys/package.json +++ b/packages/vue-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-hotkeys", - "version": "0.20.0", + "version": "0.21.0", "description": "Vue adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT",