unstale

npm / @tanstack/react-hotkeys

@tanstack/react-hotkeys

What changed in @tanstack/react-hotkeys 0.0 to 0.27, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

56 breaking1 deprecations55 new APIs and options2 performance15 behavior and defaults5 tooling27 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@tanstack/react-hotkeys 0.272 changes

Breaking changes 1

  • Inline array, object, element, or function values no longer cause registration lists to re-render on their own; changed string, number, or boolean fields still do.

    0.27.0release notes

New APIs and options 1

  • Adds a provider for rendering app hotkeys from a React Server Component, using appHotkeys from a server module.

    0.27.0release notes

@tanstack/react-hotkeys 0.261 changes

Breaking changes 1

  • Escape is routed to the innermost open overlay; hotkeys outside it skip the key without preventing its default or stopping propagation, allowing the overlay to close.

    0.26.0release notes

@tanstack/react-hotkeys 0.259 changes

Breaking changes 1

  • The recorder now defaults to recording keys by name where possible; set recordBy: 'code' to keep recording every key by position.

    0.25.0release notes

Deprecations 1

  • The plain React adapter export is deprecated; use the label primitive in components, while direct calls outside components remain supported.

    0.25.0release notes

New APIs and options 6

  • HotkeyRecorderState now takes the recorded hotkey type as an optional type argument.

    0.25.1release notes

  • A new shared type is available from @tanstack/hotkeys.

    0.25.1release notes

  • Accepts the recorder context so conflict checks can account for the key press that recorded a hotkey.

    0.25.0release notes

  • The recorder callback now receives the recording context as its second argument.

    0.25.0release notes

  • Accepts the recorder context when setting a custom hotkey, allowing the key press that recorded it to inform conflict checks.

    0.25.0release notes

  • Returns the keyboard layout for drawing labels yourself.

    0.25.0release notes

Behavior and default changes 1

  • The label primitive now formats labels using the provider's platform and, in Chromium browsers, the user's keyboard layout.

    0.25.0release notes

@tanstack/react-hotkeys 0.232 changes

Breaking changes 1

  • React key-hold helpers now match letters in any case and other key names case-sensitively; use 'Escape' rather than 'escape' to match Escape.

    0.23.0release notes

Fixes and other changes 1

  • HotkeysProvider now handles appHotkeys that arrive after its first render, so saved custom hotkeys are applied and hotkey lists, helpers, and devtools work once declarations arrive.

    0.23.1release notes

@tanstack/react-hotkeys 0.2214 changes

Breaking changes 6

  • Tab and Shift+Tab cancel recording and move focus as usual; set recordTab: true to record them instead.

    0.22.3release notes

  • A null or undefined target, or an unset ref, registers no hotkey until its element exists; only an omitted target listens on document.

    0.22.3release notes

  • No longer has a built-in message; it has a message only when your validate callback returns one.

    0.22.1release notes

  • Returns reason codes instead of English text, allowing apps to provide their own messages. Issues are HotkeyIssue values, and sequence issues carry a step index.

    0.22.1release notes

  • The recorder rejection reason previously named invalid is now whitespace.

    0.22.1release notes

  • Element-target hotkeys run after framework key handlers, allowing those handlers to stop the hotkey; framework handlers outside the target also run first.

    0.22.0release notes

New APIs and options 1

  • Adapters set this new option so element targets listen on their document or closed shadow root and run after delegated framework handlers.

    0.22.0release notes

Tooling 1

  • Lists each problem in a hotkey's details in plain words.

    0.22.1release notes

Fixes and other changes 6

  • App hotkeys and related comparisons now use the provider's platform. The store follows platform changes and notifies subscribers once after applying any new saved custom hotkeys.

    0.22.2release notes

  • Saved custom hotkeys are compared exactly, so new saved data such as Meta+S replaces Mod+S even where the two match, and stays correct if the platform changes later.

    0.22.2release notes

  • No longer warn about saved custom hotkeys with an unknown id or invalid value; those hotkeys are still dropped.

    0.22.1release notes

  • No longer throw a ReferenceError when process is undefined, such as in plain ESM loaded from a CDN.

    0.22.1release notes

  • Issues in a sequence carry the index of their step instead of a Step 2: prefix.

    0.22.1release notes

  • No longer warns when called with an unknown id.

    0.22.1release notes

@tanstack/react-hotkeys 0.216 changes

New APIs and options 4

  • Providers accept a platform setting, which is also the default platform for their hotkeys and recorders.

    0.21.0release notes

  • Detects a platform from a user-agent string, allowing server-rendered hotkey labels to match the user's platform.

    0.21.0release notes

  • Names the result returned by platform detection.

    0.21.0release notes

  • Adds a formatter hook for React server rendering that uses the provider's platform.

    0.21.0release notes

Fixes and other changes 2

  • Without a user agent, platform detection returns linux on Node, Deno, Bun, and Cloudflare Workers instead of the server's own OS.

    0.21.0release notes

  • In development, formatting a label on the server without a platform warns once.

    0.21.0release notes

@tanstack/react-hotkeys 0.205 changes

Breaking changes 1

  • In React, a null target registers nothing instead of listening on document. Omit target to listen on document.

    0.20.0release notes

Performance 1

  • Returns the same action functions on every render, so memoized children and effects that depend on them no longer re-run.

    0.20.2release notes

Behavior and default changes 2

  • Hotkey hooks and functions accept undefined or null to register nothing; changing to a nullish value removes the registration, and changing back registers it again. Empty hotkeys also register nothing.

    0.20.0release notes

  • An option set to undefined keeps its default, as if omitted. In setOptions, undefined resets an option to its default or removes it when it has no default.

    0.20.0release notes

Fixes and other changes 1

  • The provider applies changed customHotkeys values, replacing current custom hotkeys without calling onCustomHotkeysChange. Undefined leaves them unchanged; null clears them.

    0.20.0release notes

@tanstack/react-hotkeys 0.198 changes

Breaking changes 5

  • Accepts hotkeys only, including single keys and standalone modifiers. Pass a KeyboardEvent key as { key } rather than passing any string.

    0.19.0release notes

  • Key names are case-sensitive and aliases are no longer resolved. Use canonical names; letters remain case-insensitive and modifier aliases still work.

    0.19.0release notes

  • Moves into the devtools package and is no longer available from the prior package surface.

    0.19.0release notes

  • TanStack Hotkeys no longer depends on this package or framework store adapters, reducing bundle sizes by about 1.3 kB in core and 2.4 kB in the React adapter (brotli).

    0.19.0release notes

  • The recorder rejects whitespace characters, including the non-breaking space from Option+Space on macOS.

    0.19.0release notes

Performance 1

  • Providers no longer bundle app hotkey support unless the app uses this API; a React app with HotkeysProvider and no app hotkeys is about 1 kB smaller (brotli).

    0.19.0release notes

Behavior and default changes 1

  • Warns about keys that aren't written like a known key instead of checking a list of key names; registering such a hotkey logs a development warning.

    0.19.0release notes

Fixes and other changes 1

  • Ignore names inherited from Object.prototype, preventing inherited ids such as toString from being saved as custom hotkeys.

    0.19.0release notes

@tanstack/react-hotkeys 0.182 changes

Breaking changes 1

  • Both packages now require React 18 or newer; React 16.8–16.13 cannot build the package because @tanstack/react-store imports react/jsx-runtime.

    0.18.0release notes

Behavior and default changes 1

  • Hooks and HotkeysProvider are marked 'use client', allowing React Server Components such as a Next.js app/layout.tsx to render HotkeysProvider without a wrapper.

    0.18.0release notes

@tanstack/react-hotkeys 0.175 changes

Breaking changes 1

  • Hint helpers return false unless a registration of the hotkey can fire, including when it is enabled, in an active scope, and focused if registered on an element.

    0.17.0release notes

New APIs and options 4

  • Reports whether a hotkey or app hotkey has a registration that can fire.

    0.17.0release notes

  • The 'always' option prevents the browser's action even when a chord cannot fire because it is disabled or its scope is inactive or suspended.

    0.17.0release notes

  • Registration views expose a status of active, suspended, or disabled, so callers can filter active hotkeys without checking enabled and scope state separately.

    0.17.0release notes

  • React gains an API that reads the hotkey manager's scope state and updates when scopes activate or release.

    0.17.0release notes

@tanstack/react-hotkeys 0.161 changes

Tooling 1

  • The package now ships a TanStack Intent skill for its bindings, helping coding agents use the library's APIs instead of hand-written keydown listeners and wrappers.

    0.16.0release notes

@tanstack/react-hotkeys 0.1526 changes

Breaking changes 15

  • Renamed from createHotkeyHandler to clarify that the handler is for chords.

    0.15.0release notes

  • Renamed from CreateHotkeyHandlerOptions to clarify that the options are for chord handlers.

    0.15.0release notes

  • Renamed from createMultiHotkeyHandler to clarify that the handler is for chords.

    0.15.0release notes

  • Renamed from FourModifierHotkey to distinguish chord types from sequence types.

    0.15.0release notes

  • Renamed from MultiHotkeyHandler to clarify that the handler is for chords.

    0.15.0release notes

  • Normalizes chord strings, chord objects, parsed chords, and sequences, replacing the previous normalization functions.

    0.15.0release notes

  • Renamed from ParsedHotkey to distinguish chord types from sequence types.

    0.15.0release notes

  • Sequence callbacks and recorder validation contexts receive parsedSequence with every step parsed, replacing the previous last-step-only parsedHotkey value.

    0.15.0release notes

  • Parses chord strings, chord objects, and sequences, replacing parseRegisterableHotkey and rawHotkeyToParsedHotkey.

    0.15.0release notes

  • Every sequence step now calls preventDefault, not just the last; set preventDefault: false to let the browser act on every step.

    0.15.0release notes

  • Renamed from RawHotkey to distinguish chord types from sequence types.

    0.15.0release notes

  • Sequence progress clears when its timeout passes and registration subscribers are notified, so matchedStepCount no longer remains above 0 after timeout.

    0.15.0release notes

  • Renamed from SingleModifierHotkey to distinguish chord types from sequence types.

    0.15.0release notes

  • Renamed from ThreeModifierHotkey to distinguish chord types from sequence types.

    0.15.0release notes

  • Renamed from TwoModifierHotkey to distinguish chord types from sequence types.

    0.15.0release notes

New APIs and options 10

  • App hotkeys can declare a scope, allowing hotkeys in different scopes to share a key without conflict; lists report suspended when all enabled registrations are in inactive scopes.

    0.15.0release notes

  • Scopes group hotkeys that can be activated or suspended together; nested and most recently activated scopes determine which matching hotkey wins.

    0.15.0release notes

  • Activates a scope until the returned function is called; exclusive scopes can suspend other scopes, with selected scopes allowed to remain active.

    0.15.0release notes

  • Publishes which scopes are active, suspended, allowed, and exclusive.

    0.15.0release notes

  • Accepts enabled; a scoped provider's scope is active while the provider is mounted and enabled.

    0.15.0release notes

  • Accepts exclusive to configure a provider's scope to suspend other scopes while active.

    0.15.0release notes

  • Accepts scope so hotkeys registered inside a scoped provider belong to that scope.

    0.15.0release notes

  • Reports whether a scope's hotkeys can fire.

    0.15.0release notes

  • New type describes sequences whose steps can be chord objects as well as strings; registered sequences store each step as a string.

    0.15.0release notes

  • Pass scope to a hotkey to place it in a scope; every hotkey belongs to a scope, with global active by default.

    0.15.0release notes

Behavior and default changes 1

  • Also formats parsed sequences, returning one string per step.

    0.15.0release notes

@tanstack/react-hotkeys 0.1416 changes

Breaking changes 10

  • defaultOptions.hotkey and defaultOptions.hotkeyRecorder replace the sequence-specific default option keys.

    0.14.0release notes

  • formatForDisplay replaces formatHotkeySequence and formatWithLabels and accepts chords and sequences.

    0.14.0release notes

  • HotkeyChord replaces Hotkey as the type for a single chord; Hotkey now covers chords and sequences.

    0.14.0release notes

  • HotkeyManager and getHotkeyManager replace SequenceManager and getSequenceManager().

    0.14.0release notes

  • HotkeyManager.resetSequenceProgress replaces SequenceManager.resetAll().

    0.14.0release notes

  • useHotkey replaces useHotkeySequence for registering a sequence callback.

    0.14.0release notes

  • The recorder records sequences using maxSteps, which defaults to 1.

    0.14.0release notes

  • useHotkeyRecorder and HotkeyRecorder replace the sequence-specific recorder hook and type.

    0.14.0release notes

  • Registrations now return one list containing chords and sequences instead of separate hotkeys and sequences lists; use kind to narrow the list.

    0.14.0release notes

  • useHotkeys replaces useHotkeySequences and takes definitions with a hotkey field.

    0.14.0release notes

New APIs and options 5

  • Pass declared app hotkeys to the adapter's provider; optional customHotkeys and onCustomHotkeysChange support persisting user changes.

    0.14.0release notes

  • Declares the hotkeys available in an app so they can be provided to an adapter and customized by users.

    0.14.0release notes

  • Chords accept requireReset, enforced by types.

    0.14.0release notes

  • Sequences accept timeout, enforced by types.

    0.14.0release notes

  • React can read and change app hotkeys through its app hotkeys APIs.

    0.14.0release notes

Behavior and default changes 1

  • Hotkey now represents either a chord or a sequence; hotkey APIs, manager registration, formatting, equality, validation, and hints accept both. A one-step sequence is its chord.

    0.14.0release notes

@tanstack/react-hotkeys 0.138 changes

New APIs and options 4

  • Adds adapters with framework-native lifecycle management, scoped defaults, and shared registration reconciliation.

    0.13.0release notes

  • Adds devtools integrations with development-only defaults and explicit production exports.

    0.13.0release notes

  • Adds an Ember modifier for element-scoped shortcuts with reactive options and automatic cleanup.

    0.13.0release notes

  • Adds support for reactive option getters.

    0.13.0release notes

Behavior and default changes 2

  • Recorder options can now update live.

    0.13.0release notes

  • Solid and Vue now follow replacement provider defaults.

    0.13.0release notes

Fixes and other changes 2

  • Getters in Ember definitions are now tracked.

    0.13.0release notes

  • Registrations and scoped targets refresh after host updates.

    0.13.0release notes

@tanstack/react-hotkeys 0.122 changes

Breaking changes 2

  • The minimum required Node.js version is 20.

    0.12.0release notes

  • Packages are now ESM-only; CommonJS builds, package src directories, and source maps are no longer published. Use ESM imports and inspect API types in dist.

    0.12.0release notes

@tanstack/react-hotkeys 0.1138 changes

Breaking changes 7

  • Exact matches are preferred over physical-key fallbacks in hotkeys and sequences.

    0.11.0release notes

  • Bracketed physical codes are rejected in logical key fields.

    0.11.0release notes

  • Clearing a recording calls only onClear, no longer calling onRecord with an empty value.

    0.11.0release notes

  • ParsedHotkey is now a union containing either key or code; use a type intersection instead of extending it with an interface.

    0.11.0release notes

  • RawHotkey is now a union containing either key or code; use a type intersection instead of extending it with an interface.

    0.11.0release notes

  • Recorders now default to physical codes; set recordBy to 'key' to record logical keys.

    0.11.0release notes

  • Recording keystrokes, repeats, and releases no longer trigger registered shortcuts.

    0.11.0release notes

New APIs and options 11

  • Recorder options now include detectConflicts.

    0.11.0release notes

  • Adds conflict detection for hotkeys, including sequence-prefix checks.

    0.11.0release notes

  • formatForDisplay supports parsed bindings, parts, separate modifier and key symbols, keyLabels, and a resolved layoutMap.

    0.11.0release notes

  • HotkeyMeta gains a group field.

    0.11.0release notes

  • Adds matchesHeldModifiers and shortcut hint helpers for every framework adapter.

    0.11.0release notes

  • Recorder options now include onReject.

    0.11.0release notes

  • parseKeyboardEvent accepts a platform option.

    0.11.0release notes

  • Hotkeys support typed physical bindings, including Mod+[KeyS] and { code: 'KeyS', mod: true }.

    0.11.0release notes

  • Recorder options now include recordBy.

    0.11.0release notes

  • Adds shortcut hint helpers for every framework adapter.

    0.11.0release notes

  • Recorder options now include validate.

    0.11.0release notes

Behavior and default changes 4

  • Devtools conflict reporting is updated.

    0.11.0release notes

  • Hotkeys support F1–F24, additional named keys, and more punctuation shortcuts.

    0.11.0release notes

  • Physical-key labels are displayed readably, such as S instead of KeyS.

    0.11.0release notes

  • Svelte recorder controls can be passed directly to event handlers.

    0.11.0release notes

Tooling 3

Fixes and other changes 13

  • Held-key and requireReset state are cleared correctly when released keys produce different characters.

    0.11.0release notes

  • Equivalent hotkey aliases are recognized in registration lookups and conflict checks, including sequences.

    0.11.0release notes

  • Recorder ignoreInputs works inside shadow roots.

    0.11.0release notes

  • Shortcuts no longer trigger during IME composition or AltGraph character entry.

    0.11.0release notes

  • Literal plus shortcuts such as Mod++ and Unicode key names are handled correctly.

    0.11.0release notes

  • Recording logical AltGraph shortcuts preserves Shift.

    0.11.0release notes

  • Preact hotkey registrations avoid unnecessary updates and handle target changes correctly.

    0.11.0release notes

  • Reading Preact hotkey registrations no longer causes continuous rerenders.

    0.11.0release notes

  • React hotkey registrations avoid unnecessary updates and handle target changes correctly.

    0.11.0release notes

  • Repeated keydowns are ignored when matching sequences.

    0.11.0release notes

  • Shortcut matching is improved across keyboard layouts, macOS Option keys, shifted punctuation, and numpad keys.

    0.11.0release notes

  • Shortcuts reset when keys are released inside inputs or while disabled.

    0.11.0release notes

  • Standalone sequence matching ignores modifier and composition events.

    0.11.0release notes

@tanstack/react-hotkeys 0.92 changes

New APIs and options 2

  • Adds options.meta with name and descriptions by default.

    0.9.0release notes

  • Adds the useHotkeysRegistrations hook.

    0.9.0release notes

@tanstack/react-hotkeys 0.75 changes

New APIs and options 4

  • Adds an API for creating hotkey sequences.

    0.7.0release notes

  • Adds an API for creating hotkey sequence attachments.

    0.7.0release notes

  • Adds an API for injecting hotkey sequences.

    0.7.0release notes

  • Adds a plural sequence hook for registering hotkey sequences.

    0.7.0release notes

Behavior and default changes 1

  • Disabled registrations remain in the manager for devtools, while core dispatch is skipped; toggling enabled updates handles via setOptions instead of unregistering and registering again.

    0.7.0release notes

@tanstack/react-hotkeys 0.63 changes

Breaking changes 3

  • Sequence recording is aligned with the hotkey-prefixed public API through HotkeySequenceRecorder.

    0.6.0release notes

  • Provider defaults for sequence recording are aligned under hotkeySequenceRecorder.

    0.6.0release notes

  • A framework hook for sequence recording is aligned with the hotkey-prefixed public API.

    0.6.0release notes

@tanstack/react-hotkeys 0.51 changes

New APIs and options 1

  • Adds a hook for registering multiple hotkeys in one call.

    0.5.0release notes

@tanstack/react-hotkeys 0.41 changes

New APIs and options 1

  • An Angular adapter was added, giving developers an Angular integration option.

    0.4.0release notes

@tanstack/react-hotkeys 0.31 changes

Behavior and default changes 1

  • The sequence-manager and hooks were overhauled to bring them into feature parity with hotkey-manager.

    0.3.0release notes

@tanstack/react-hotkeys 0.11 changes

Breaking changes 1

  • The default for ignoreInputs is smarter, changing how input elements are ignored.

    0.1.0release notes

@tanstack/react-hotkeys 0.02 changes

New APIs and options 1

Fixes and other changes 1

  • Registration reruns when options.enabled changes.

    0.0.3release notes