Skip to content

Releases

v0.2.1

Choose a tag to compare

@eugenepokalyuk eugenepokalyuk released this 25 Jun 17:41

Added

Fixed

  • Docs: the → arrow in the home-page hook cards now sits at the end of the row.

Full changelog: https://github.com/eugenepokalyuk/react-stateful-hooks/blob/main/CHANGELOG.md

v0.2.0

Choose a tag to compare

@eugenepokalyuk eugenepokalyuk released this 25 Jun 17:00

Added

  • useHydrated — returns false on the server and the first client render, then true after hydration, with no mismatch (built on useSyncExternalStore).
  • useCookieState — useState persisted to document.cookie, with a serverValue option for flash-free SSR, cookie attributes, a custom serializer, and same-tab sync.
  • Documentation pages with live demos for both hooks (English / Русский): https://eugenepokalyuk.github.io/react-stateful-hooks/

Bundle stays tiny (~2.6 kB gzipped, tree-shakeable).

Full changelog: https://github.com/eugenepokalyuk/react-stateful-hooks/blob/main/CHANGELOG.md

v0.1.4

Choose a tag to compare

@eugenepokalyuk eugenepokalyuk released this 25 Jun 10:28

Added

  • npm metadata: repository, bugs, and homepage fields.
  • Test coverage via @vitest/coverage-v8 (test:coverage script, Codecov in CI).
  • CONTRIBUTING.md, GitHub issue forms, and a pull-request template.
  • README: SSR-first positioning, badges, and a comparison table vs. usehooks-ts and react-use.
  • More discoverable npm keywords.
  • Bilingual (English / Русский) documentation site with live demos and search, deployed to GitHub Pages: https://eugenepokalyuk.github.io/react-stateful-hooks/

Changed

  • homepage now points to the documentation site.

Fixed

  • Corrected the CI badge URL casing so it renders.

Full changelog: https://github.com/eugenepokalyuk/react-stateful-hooks/blob/main/CHANGELOG.md