Packages

tough-cookie

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

Your version

5.0.0

major9 Sep 2024Where it was published

5.1.2 is the newest release of 5.x.

In short

3 breaking2 fixed5 changed

  • 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.

Release note

Summary

Breaking Changes

  • 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.

API Changes

  • We've standardized most of our exposed interfaces to accept both null and undefined and return only undefined.

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

  • 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.

Other Changes

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

  • Fixed validation errors not getting called in some callbacks.

  • New documentation that is always kept up to date!

  • Performance improvements.

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.