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…
- 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
- 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.
- Breaking
5 other lines we could not sort, mostly version bumps
- 5.0.0
We've standardized most of our exposed interfaces to accept both
nullandundefinedand return onlyundefined. - 5.0.0
getCookieandgetCookiesnow accept astringorURLas a parameter. - 5.0.0
We've removed the
inspectfunction in favor of node'sutil.inspect.customsymbol. 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.
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.