Packages

tough-cookie

6.1.0 · 6 Nov 2026BSD-3-Clause202.3M / weekRepositorynpmAtom feed

Upgrading tough-cookie From 4.1.4 to 5.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.1.4Latest6.1.0
  1. 4.1.4yours
  2. 5.0.0target
3
changes to make
0
advisories fixed
0
new
2
fixes

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Release by release

  1. 5.0.0

    Migration needed9 Sep 20242 fixes
    • Breaking

      We've migrated the project to TypeScript! First-party types are now available.

    • Breaking

      The minimum supported version of node is v18.

    • Breaking

      We no longer provide official support for non-node enviroments.

    • Fixed

      Fixed the expiry time not updating when a cookie is updating.

    • Fixed

      Fixed validation errors not getting called in some callbacks.

5 other lines we could not sort, mostly version bumps
  • We've standardized most of our exposed interfaces to accept both null and undefined and return only undefined.

    5.0.0
  • getCookie and getCookies now accept a string or URL as a parameter.

    5.0.0
  • We've removed the inspect function in favor of node's util.inspect.custom symbol. Cookies may appear different when logged in non-node environments.

    5.0.0
  • New documentation that is always kept up to date!

    5.0.0
  • Performance improvements.

    5.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.