unstale

npm / react-cookie

react-cookie

What changed in react-cookie 4 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.

4 breaking1 security5 new APIs and options2 performance5 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.12 on npm

react-cookie 86 changes

Security 1

New APIs and options 1

Fixes and other changes 4

react-cookie 71 changes

Breaking changes 1

  • Importing files from a subfolder is no longer supported because the output file structure changed.

    7.0.0release notes

react-cookie 67 changes

Breaking changes 3

  • All JavaScript types are now serialized in JSON, except strings.

    6.0.0release notes

  • The undocumented decode function is no longer supported in universal-cookie.

    6.0.0release notes

  • The undocumented encode function is no longer supported in universal-cookie.

    6.0.0release notes

New APIs and options 4

  • defaultSetOptions has been added to Cookies in universal-cookie.

    6.0.0release notes

  • The defaultSetOptions prop has been added to CookiesProvider in react-cookie.

    6.0.0release notes

  • universal-cookie adds update so cookies can be updated after they are changed by the server.

    6.0.0release notes

  • updateCookies has been added to useCookies in react-cookie.

    6.0.0release notes

react-cookie 43 changes

Performance 2

  • Memoized so its reference does not change unnecessarily.

    4.0.0release notes

  • Memoized so its reference does not change unnecessarily.

    4.0.0release notes

Fixes and other changes 1