tough-cookie
6.1.0 · 6 Nov 2026BSD-3-Clause202.3M / weekRepositorynpmAtom feed
6.1.0 is the newest release of 6.x.
In short
1 breaking2 new16 changed5 internal
- Breaking
Localhost connections over
httpwill now be considered secure by default. For more information, see the README documentation and API Docs for how to configure this feature.
Release note
Summary
Breaking Changes
- Breaking
Localhost connections over
httpwill now be considered secure by default. For more information, see the README documentation and API Docs for how to configure this feature.
Other Notable Changes
Dual publishing of ESM+CJS
What's Changed
Bump the dev-dependencies group with 10 updates
Bump tldts from 6.1.76 to 6.1.79 in the production-dependencies group
Bump tldts from 6.1.83 to 6.1.85 in the production-dependencies group
Bump the dev-dependencies group with 9 updates
Add RFC 6761–compliant localhost loopback checks so secure cookies work on localhost (fixes: #382)
Use ESM instead of CJS
Switch from jest to vitest
Bump the dev-dependencies group with 9 updates
Prepare release v6.0.0-rc.0
Bump the dev-dependencies group with 12 updates
Bump tldts from 7.0.5 to 7.0.8 in the production-dependencies group
Create CONTRIBUTING.md
Bump tldts from 7.0.8 to 7.0.9 in the production-dependencies group
Bump the dev-dependencies group with 12 updates
Reverts the check on the Secure attribute when setting a cookie
Prepare release v6.0.0-rc.1
Bump the dev-dependencies group with 8 updates
Support publishing of both ESM and CJS
Prepare v6
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.