跳到正文

版本历史

更新日志

按时间倒序展示 better-hooks 的全部已发布版本及其 Changeset 变更内容。

历史版本

1.1.2

补丁更新

  • 77fcdc4: Clarify the package feature contract around committed lifecycle work, SSR snapshots, shared browser channels, per-subscriber storage semantics, error observability, and ESM distribution.
  • f5f0cbc: Keep storage and media-query registries free of abandoned render state, rebind useKeyPress when its event list changes, and report media listener setup and cleanup failures through onError.
历史版本

1.0.0

主版本更新

  • b3dbdd4: Freeze the 1.0 public API around 30 direct Hook entries. The aggregate better-hooks/use-storage export is removed; import useLocalStorage from better-hooks/use-local-storage and useSessionStorage from better-hooks/use-session-storage instead. Keyboard filter arrays now represent alternatives only; use strings such as ctrl+s for chords. Error observers can no longer replace the original thrown error or rejected promise when the observer itself fails.
历史版本

0.2.0

次版本更新

  • 2272ed9: Add eight hook primitives: memoized callbacks, safe and resettable state, unmount tracking, document visibility, keyboard shortcuts, hover tracking, and locked async actions. Extend existing scheduling and browser Hooks with observable error handling and cleanup-before-propagation semantics.

补丁更新

  • 2abc6ec: Harden Hook behavior across async cancellation, controlled state, scheduling, DOM, browser state, and storage edge cases. Add broader runtime, SSR, type, and per-file coverage checks, and publish bilingual Markdown examples for every Hook entry.