Skip to content

Releases: asmyshlyaev177/state-in-url

v6.0.2

28 Sep 16:49

Choose a tag to compare

  • Separate package for React-router v6
  • use searchParams from client even if not passed
  • Fix laggy updates when multiple instances of hook used

Full Changelog: v5.2.0...v6.0.2

v5.2.0 More convenient reset option

21 Jul 16:15

Choose a tag to compare

Now can reset to default state via setState, setUrl functions directly.
E.g. when passing a function setUrl((currentState, initialState) => initialState), reset still works.

v5.0.0 Remix support

16 Jun 17:04

Choose a tag to compare

  • useUrlState hook for Remix.js v2.
  • Removed old format of params

What's Changed

Full Changelog: v4.3.3...v5.0.0

v4.3.0

22 Apr 10:57

Choose a tag to compare

Few bug fixes, recommended to upgrade to this version.

v4.1.3

21 Nov 19:22

Choose a tag to compare

What's Changed

Bug Fixes

  • Rate limits for history.pushState and history.replaceState
  • Fix issue with minification, terser doing it incorrectly, use esbuild instead

Full Changelog: v4.1.0...v4.1.3

v4.1.0

15 Nov 20:05

Choose a tag to compare

What's Changed

Features

  • return reset cb from useUrlState, it can reset state and URL to default 68fc693

Bug Fixes

  • fix setUrl options as second argument (2347850)
  • fix single quote encoding (8e768b6)

Performance Improvements

  • minor performance improvements, regex in .replace (b89406d)

Other

  • use first argument for defaultState and second as object with other options (b896d5f)
  • return urlState as normal type, not readonly (a0aa6dd)

Full Changelog: v4.0.0...v4.1.0

v4.0.0

02 Nov 15:30

Choose a tag to compare

Way faster URL updates, using native window.history by default for Next.js, to avoid _rsc requests and keep performance.

Full Changelog: v3.1.0...v4.0.0

v3.0.0

30 Sep 20:54

Choose a tag to compare

What's Changed

Full Changelog: v2.6.0...v3.0.0

v2.5.0

09 Sep 06:27

Choose a tag to compare

2.5.0 (2024-09-09)

Features