tough-cookie
6.1.0 · 6 Nov 2026BSD-3-Clause202.3M / weekRepositorynpmAtom feed
4.1.4 is the newest release of 4.x.
In short
3 breaking5 new1 changed
- Breaking
Upgraded version dependencies for
pslandasync - Breaking
Re-order parameters for
findCookies()- callback fn has to be last in order to comply withuniversalify - Breaking
Use Classes instead of function prototypes to define classes
Security
1 advisory affects 4.0.0; 4.1.3 fixes them
- Moderatetough-cookie Prototype Pollution vulnerabilityGHSA-72xf-g2v4-qvf3 · 1 Jul 2023Fixed in 4.1.3
Release note
Breaking Changes (Major Version)
- Breaking
Modernized JS Syntax
Use ESLint and Prettier to apply consistent, modern formatting (add dependency on
universalify,eslintandprettier)
- Breaking
Upgraded version dependencies for
pslandasync - Breaking
Re-order parameters for
findCookies()- callback fn has to be last in order to comply withuniversalify - Breaking
Use Classes instead of function prototypes to define classes
Might break people using
.call()to do inheritance using function prototypes
Minor Changes
SameSite cookie support
Cookie prefix support
Support for promises
'.local' support
Numerous bug fixes!
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.