Skip to content

chore(deps-dev): bump @tanstack/hotkeys from 0.27.1 to 0.33.0 - #1391

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @tanstack/hotkeys from 0.27.1 to 0.33.0.

Release notes

Sourced from @​tanstack/hotkeys's releases.

@​tanstack/hotkeys@​0.33.0

Minor Changes

  • #284 8e01130 - Hotkey strings can accept the keys of other keyboard layouts. Register the layouts your app targets with keys on the Register interface, such as keys: UsKeys | GermanKeys, and Mod+Ö, ß, and § type-check. The registered sets replace the US QWERTY punctuation. A-Z, 0-9, named keys, and physical codes are always accepted. 26 layout sets ship as types, from UkKeys and GermanKeys to GreekKeys and HebrewKeys, and add no code. This changes types only: hotkeys match the same way, and without a registration the types are unchanged.

@​tanstack/hotkeys@​0.32.0

Minor Changes

  • #281 5a4a1c6 - Inline meta with arrays, objects, elements, or functions no longer re-renders forever next to useHotkeyRegistrations. React threw "Maximum update depth exceeded", and Preact froze the tab. A changed string, number, or boolean field of meta still re-renders registration lists. A new array, object, element, or function replaces the old one but doesn't re-render them on its own.

    Add AppHotkeysProvider to @tanstack/react-hotkeys. A React Server Component, such as a Next.js app/layout.tsx, can render it with appHotkeys from a server module. HotkeysProvider threw there, because defineAppHotkeys ran only on the server, and it now says to use AppHotkeysProvider. HotkeysProvider bundles without app hotkeys stay the same size.

  • #282 24d4182 - Behavior change: HotkeyManager.register with target: null now registers nothing and returns an inactive handle. Before, it listened on document, so a querySelector that found no element turned an element hotkey into a page-wide one that also prevented the key's default action. The framework adapters already skipped a null target. To listen on document, omit target or pass document.

@​tanstack/hotkeys@​0.31.0

Minor Changes

  • #279 82727f5 - Escape goes to the innermost open overlay, not only to native dialogs and popovers. While focus is inside an element with role="dialog", role="alertdialog", or role="menu", or on an expanded combobox or popup button (aria-expanded="true", with aria-haspopup on the button), hotkeys outside it skip Escape. They don't run, call preventDefault(), or stop propagation, so the overlay closes. This changes what one Escape press does:

    • Dialogs that stayed open now close, and the page hotkey doesn't run: Reka UI (shadcn-vue, Nuxt UI), Headless UI, Vuetify, Bits UI (shadcn-svelte), Kobalte (solid-ui, shadcn-solid), Corvu, and Shoelace.
    • Dialogs that closed and also ran the page hotkey now only close: Radix UI (shadcn/ui), PrimeVue, and the Angular CDK and Angular Material. The first Escape in an open React Aria ComboBox closes its list without running the page hotkey.
    • A hotkey targeted inside the overlay keeps Escape. Inside a role="dialog" or role="alertdialog" element, any hotkey in a named scope keeps it too, whatever its target, so a dialog that registers its own Escape hotkey in its scope still closes itself. An open combobox or menu inside that dialog still closes first. A global Escape hotkey that closes an app's own role="dialog" element now skips it. Give that hotkey the dialog's scope or target the dialog.
    • Native dialogs follow closedby: a modal dialog with closedby="none" no longer takes Escape from hotkeys, and a non-modal dialog with closedby="any" or closedby="closerequest" gets it.

    The overlays are read once per key press, from a window capture listener, before listeners on the document and its elements can close one.

@​tanstack/hotkeys@​0.30.0

Minor Changes

  • #276 5c96d11 - Types that every adapter wrote out for itself now come from one place in @tanstack/hotkeys.

    • New types: MaybeGetter, HotkeyEventType, KeyIdentity, ResolvableModifier, HotkeyCommonOptions, HotkeyRegistrationsResult, RegisteredAppHotkeyListItem, CustomHotkeyActions and HotkeyRecorderActions. HotkeyRecorderState takes the recorded hotkey type as an optional type argument.
    • Each adapter's types, such as UseCustomHotkeysResult and ReactHotkeyRecorder, now extend these, and keep their names.
    • @tanstack/hotkeys/adapter adds helpers that the adapters shared by copy: hint visibility, the label formatter, keyboard layout following, the app hotkeys store lookup and custom hotkey actions.
    • @tanstack/hotkeys-devtools exports HOTKEYS_DEVTOOLS_PLUGIN_NAME, HOTKEYS_DEVTOOLS_DEFAULT_PROPS and HotkeysDevtoolsRenderPlugin, which the framework devtools plugins extend.

    Behavior is unchanged.

Changelog

Sourced from @​tanstack/hotkeys's changelog.

0.33.0

Minor Changes

  • #284 8e01130 - Hotkey strings can accept the keys of other keyboard layouts. Register the layouts your app targets with keys on the Register interface, such as keys: UsKeys | GermanKeys, and Mod+Ö, ß, and § type-check. The registered sets replace the US QWERTY punctuation. A-Z, 0-9, named keys, and physical codes are always accepted. 26 layout sets ship as types, from UkKeys and GermanKeys to GreekKeys and HebrewKeys, and add no code. This changes types only: hotkeys match the same way, and without a registration the types are unchanged.

0.32.0

Minor Changes

  • #281 5a4a1c6 - Inline meta with arrays, objects, elements, or functions no longer re-renders forever next to useHotkeyRegistrations. React threw "Maximum update depth exceeded", and Preact froze the tab. A changed string, number, or boolean field of meta still re-renders registration lists. A new array, object, element, or function replaces the old one but doesn't re-render them on its own.

    Add AppHotkeysProvider to @tanstack/react-hotkeys. A React Server Component, such as a Next.js app/layout.tsx, can render it with appHotkeys from a server module. HotkeysProvider threw there, because defineAppHotkeys ran only on the server, and it now says to use AppHotkeysProvider. HotkeysProvider bundles without app hotkeys stay the same size.

  • #282 24d4182 - Behavior change: HotkeyManager.register with target: null now registers nothing and returns an inactive handle. Before, it listened on document, so a querySelector that found no element turned an element hotkey into a page-wide one that also prevented the key's default action. The framework adapters already skipped a null target. To listen on document, omit target or pass document.

0.31.0

Minor Changes

  • #279 82727f5 - Escape goes to the innermost open overlay, not only to native dialogs and popovers. While focus is inside an element with role="dialog", role="alertdialog", or role="menu", or on an expanded combobox or popup button (aria-expanded="true", with aria-haspopup on the button), hotkeys outside it skip Escape. They don't run, call preventDefault(), or stop propagation, so the overlay closes. This changes what one Escape press does:

    • Dialogs that stayed open now close, and the page hotkey doesn't run: Reka UI (shadcn-vue, Nuxt UI), Headless UI, Vuetify, Bits UI (shadcn-svelte), Kobalte (solid-ui, shadcn-solid), Corvu, and Shoelace.
    • Dialogs that closed and also ran the page hotkey now only close: Radix UI (shadcn/ui), PrimeVue, and the Angular CDK and Angular Material. The first Escape in an open React Aria ComboBox closes its list without running the page hotkey.
    • A hotkey targeted inside the overlay keeps Escape. Inside a role="dialog" or role="alertdialog" element, any hotkey in a named scope keeps it too, whatever its target, so a dialog that registers its own Escape hotkey in its scope still closes itself. An open combobox or menu inside that dialog still closes first. A global Escape hotkey that closes an app's own role="dialog" element now skips it. Give that hotkey the dialog's scope or target the dialog.
    • Native dialogs follow closedby: a modal dialog with closedby="none" no longer takes Escape from hotkeys, and a non-modal dialog with closedby="any" or closedby="closerequest" gets it.

    The overlays are read once per key press, from a window capture listener, before listeners on the document and its elements can close one.

0.30.0

Minor Changes

  • #276 5c96d11 - Types that every adapter wrote out for itself now come from one place in @tanstack/hotkeys.

    • New types: MaybeGetter, HotkeyEventType, KeyIdentity, ResolvableModifier, HotkeyCommonOptions, HotkeyRegistrationsResult, RegisteredAppHotkeyListItem, CustomHotkeyActions and HotkeyRecorderActions. HotkeyRecorderState takes the recorded hotkey type as an optional type argument.
    • Each adapter's types, such as UseCustomHotkeysResult and ReactHotkeyRecorder, now extend these, and keep their names.
    • @tanstack/hotkeys/adapter adds helpers that the adapters shared by copy: hint visibility, the label formatter, keyboard layout following, the app hotkeys store lookup and custom hotkey actions.
    • @tanstack/hotkeys-devtools exports HOTKEYS_DEVTOOLS_PLUGIN_NAME, HOTKEYS_DEVTOOLS_DEFAULT_PROPS and HotkeysDevtoolsRenderPlugin, which the framework devtools plugins extend.

    Behavior is unchanged.

0.29.0

Minor Changes

  • #272 7d9cccc - App hotkey conflict checks can now use the key press that recorded a hotkey. findConflicts(id, hotkey, context) and setCustomHotkey(id, hotkey, context) take the context that a recorder passes to validate, on AppHotkeysStore and in every adapter.

    Two hotkeys can be written differently and still fire for the same key press. On a US keyboard, a recorded Shift+[Slash] and a declared ? are one press, and so are a recorded Mod+[KeyS] and a declared Mod+S. Without the key press, the check compares how the hotkeys are written and misses these. Pass the context in a shortcut settings screen:

... (truncated)

Commits
  • 5bfc1a0 ci: Version Packages (#285)
  • 8e01130 feat(hotkeys): Type keys from other keyboard layouts through Register (#284)
  • 3f7321a ci: Version Packages (#283)
  • 24d4182 fix(hotkeys): Register nothing for a null target in HotkeyManager.register (#...
  • 5a4a1c6 fix(hotkeys): Stop the inline meta render loop, and add AppHotkeysProvider fo...
  • fb6af94 ci: Version Packages (#280)
  • 82727f5 fix(hotkeys): Leave Escape to the innermost open dialog, popover, or menu (#279)
  • a82e0a3 ci: Version Packages (#277)
  • 5c96d11 refactor: Define shared types and adapter helpers once in core (#276)
  • 1f0a2c6 ci: Version Packages (#273)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 11, 2026
@github-actions github-actions Bot added area:cli Touches the cli area area:core Touches the core area size:s Under 100 changed lines labels Nov 11, 2026
@dependabot dependabot Bot changed the title chore(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.24.0 chore(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.25.1 Nov 11, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch 3 times, most recently from 1c49079 to 20da831 Compare November 11, 2026 16:47
@dependabot dependabot Bot changed the title chore(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.25.1 chore(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.26.0 Nov 12, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch from 20da831 to 9adb5a8 Compare November 12, 2026 18:05
@dependabot dependabot Bot changed the title chore(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.26.0 build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.26.0 Nov 12, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch 2 times, most recently from d9a3961 to 02080da Compare November 13, 2026 00:21
@dependabot dependabot Bot changed the title build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.26.0 build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.27.1 Nov 14, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch from 02080da to 1263c9a Compare November 14, 2026 23:44
@dependabot dependabot Bot changed the title build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.27.1 build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.29.0 Nov 15, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch from 1263c9a to b033b5b Compare November 15, 2026 18:08
@dependabot dependabot Bot changed the title build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.29.0 build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.30.0 Nov 18, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch from b033b5b to a25cd16 Compare November 18, 2026 11:53
@dependabot dependabot Bot changed the title build(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.30.0 chore(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.31.0 Nov 18, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch 3 times, most recently from 566e068 to 31662e2 Compare November 18, 2026 23:14
allisonmahmood added a commit that referenced this pull request Nov 18, 2026
## What changed

`patchy/hotkeys` now bundles TanStack Hotkeys 0.27.1 (core) and 0.21.1
(Preact adapter), up from 0.19.0 and 0.17.1. Shortcuts behave for patch
authors and viewers as they did. Patches pick it up at their next
publish. 0.29.0 / 0.23.0 came out yesterday, so pnpm's 24-hour
release-age rule holds them back.

Supersedes #1391, which fails in typecheck rather than at install.
preact-hotkeys 0.17.1 still pulls core 0.19.0, so our 0.19.0 patch keeps
applying to that copy. Meanwhile the new core lacks the patch's
`Element` target type and its sequence `allowStep`/`onStep` options,
which `hotkeys.ts` uses.

## Look at

**The patch on TanStack, part by part.** I read every changelog entry
from 0.20 to 0.27.1 and diffed the 0.19.0 and 0.27.1 dist:

| What the patch did | Now |
| --- | --- |
| No match while an input method composes, Enter, Escape and the arrows
included. Safari's keydown that commits after `compositionend` (keyCode
229 only) counts as composing. | **Dropped: upstream has it** since
0.22.0. `_match.js` refuses any composing key, and
`normalizeKeyboardEvent` counts keyCode 229. |
| Sequences ask `allowStep` before taking a key and call `onStep` as
they take one. A sequence on an element takes its keys ahead of chords
and sequences further out. | **Re-created on 0.27.1.** Upstream has no
equivalent. |
| A target may be any `Element` (an SVG chart), not only `HTMLElement`.
| **Re-created** (types only). |
| — | **New hunk.** Since 0.24.0, every document-level Escape hotkey
stands aside while a modal `<dialog>` or an auto popover is open. That
contradicts the hotkeys skill, which says a live Escape hotkey takes the
key, and it breaks the skill's "register Escape inside, and close from
its `run`". The browser would close the dialog but leave it mounted,
with its `HotkeyScope` still holding the page's keys. The patch keeps
today's behaviour. Adopting upstream's rule is a product decision for
another PR, along with the skill text. |

The `pnpm-workspace.yaml` comment says each part and when to drop it.

**A test for the Escape hunk, red then green.** `a native modal dialog's
own Escape hotkey takes the key, so its run closes it and the scope
goes` is new in `hotkeys.spec.ts`. With upstream's Escape rule put back
into the installed copy:

```
✘  hotkeys.spec.ts:671:1 › a native modal dialog's own Escape hotkey takes the key, so its run closes it and the scope goes
   Error: expect(locator).toHaveCount(expected) failed
   Expected: 0
   Received: 1
```

With this branch's patch:

```
✓  hotkeys.spec.ts:671:1 › a native modal dialog's own Escape hotkey takes the key, so its run closes it and the scope goes (662ms)
```

**A test for composition.** The browser spec covers Safari's committing
Enter only inside a text field, where `fieldKeeps` holds it back
whatever TanStack does. A new unit case in `hotkeys.test.ts` pins
TanStack's own matching for Escape, Enter, ArrowDown, Mod+Enter and K.
Each matches plainly, not with `isComposing`, and not with keyCode 229
alone. Unpatched 0.19.0 fails it: every one of those matches with
keyCode 229, and all but K match while composing.

**Other upstream changes that reach pages**, all matching fixes, none
touching our API:

- A press reported as `Unidentified` that has a usable `code` is no
longer treated as composing (0.25.0). Chrome on Wayland sends Ctrl+\`
this way. `fieldKeeps` still keeps every `Unidentified` key in text
fields. Android's composing keys carry keyCode 229 and are still
ignored.
- Windows: Ctrl+Alt on a letter key that types a Latin letter, such as
Polish ą, no longer fires `Mod+Alt+<letter>` (0.26.0).
- Turkish `ı` is its own key, and Firefox numpad 5 without NumLock no
longer fires `5` (0.27.0).
- TanStack Store is gone from the bundle (0.20.0): the stores are
TanStack Hotkeys' own. The release's `dist/licenses` now carries one
TanStack notice, and ADR-0011 says so.

Formatting with `formatHotkey`/`hotkeyKeys` is byte-identical between
versions for every form we use, modifiers alone included, on Mac and
elsewhere.

## How it was verified

- `pnpm verify` (mise's Node 24 first on PATH): format, lint, typecheck,
synth, postgres-concurrency, cli-smoke, install and tier2-smoke pass.
The rest failed on the shared machine while sibling worktrees ran their
own suites, at a load average of 25 to 50. `test` and `test (bun)`
failed with timeouts only. `browser` failed when a throwaway instance
couldn't bind its port, which stopped the run. Rerun at a load of about
6: `test:bun` passes, and `test` passes but for two 5-second timeouts in
`company-database` and `patches`. The full Chromium browser suite passed
earlier, 188 of 188. CI arbitrates.
- `hotkeys.test.ts`, `hotkeyRules.test.ts`, `hotkeySheet.test.ts`,
`pageImports.test.ts` and core's switcher `key.test.ts`, which uses
TanStack's matcher as its oracle, pass.
- Chromium: the whole tier 1 suite, 188 passed, the new test included.
Firefox: `focus.spec.ts`, 10 passed.
- By hand on this worktree's `pnpm dev`: `patchy init` a tier 1 repo
from the instance's release, which bundles the patched TanStack. I
published a page with a sequence beside its first step's chord, a list's
own ArrowDown, a field, and a native modal dialog in a `HotkeyScope`
that closes from its Escape. Then I drove it in desktop Chromium as the
dev persona:
  - `G H` fired the page's G and G H.
  - ArrowDown fired the list's in the list and the page's elsewhere.
  - Typing `gh` in the field fired nothing; Mod+K there fired.
- Escape and Ctrl+Enter mid-composition, then Safari's committing Enter,
fired nothing, and the field kept か.
- In the dialog, S fired the dialog's and ArrowDown nothing. Mod+/
opened the sheet over it, listing Close, Save and the openers.
- Escape closed the sheet alone, then the dialog's Escape closed the
dialog, and the page's `G H` fired again.
  - `?` opened and closed the sheet.
- Not checked: Safari itself. The Safari keydown is replayed through
Chrome's DevTools protocol, as the existing spec does.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

Bundled SDK dependency. `patchy/hotkeys` keeps its API and behaviour;
published pages keep their own bundle until they are republished.

- **What does a revert leave behind?** Nothing on the server: no schema,
data or contract. Patches published in between carry the newer TanStack
in their own bundle and keep working.
- **Does the release before it still work with that?** Yes.

Claude Opus 5.5, T3 Code via Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@dependabot dependabot Bot changed the title chore(deps-dev): Bump @tanstack/hotkeys from 0.19.0 to 0.31.0 chore(deps-dev): Bump @tanstack/hotkeys from 0.27.1 to 0.31.0 Nov 18, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch 2 times, most recently from 2314a1a to 1afaafc Compare November 19, 2026 00:24
@dependabot dependabot Bot changed the title chore(deps-dev): Bump @tanstack/hotkeys from 0.27.1 to 0.31.0 chore(deps-dev): Bump @tanstack/hotkeys from 0.27.1 to 0.32.0 Nov 20, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch 3 times, most recently from 4f47e83 to 0c493c7 Compare November 20, 2026 03:09
@dependabot dependabot Bot changed the title chore(deps-dev): Bump @tanstack/hotkeys from 0.27.1 to 0.32.0 chore(deps-dev): Bump @tanstack/hotkeys from 0.27.1 to 0.33.0 Nov 22, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch from 0c493c7 to ae3ab77 Compare November 22, 2026 13:09
@dependabot dependabot Bot changed the title chore(deps-dev): Bump @tanstack/hotkeys from 0.27.1 to 0.33.0 chore(deps-dev): bump @tanstack/hotkeys from 0.27.1 to 0.33.0 Nov 23, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch 2 times, most recently from d5ae665 to 189d030 Compare November 23, 2026 22:47
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/tanstack/hotkeys-0.24.0 branch from 189d030 to dbd25d8 Compare November 23, 2026 23:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Touches the cli area area:core Touches the core area dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants