tough-cookie
6.1.0 · 6 Nov 2026BSD-3-Clause202.3M / weekRepositorynpmAtom feed
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
nullandundefinedand return onlyundefined.getCookieandgetCookiesnow accept astringorURLas a parameter.We've removed the
inspectfunction in favor of node'sutil.inspect.customsymbol. 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.