Packages

tough-cookie

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

Your version

4.1.0

22 Aug 2022Where it was published

4.1.4 is the newest release of 4.x.

In short

1 new6 fixed15 changed2 internal

Security

1 advisory affects 4.1.0; 4.1.3 fixes them

Release note

v4.1.0

Minor release, focused mainly on resolving reported issues and some minor feature work.

What's Changed

  • Create CHANGELOG.md

  • Missing param validation issue145

  • Create SECURITY.md

  • Create CODE_OF_CONDUCT.md

  • Fix for issue #195

  • Add explanation and more special-use domains

  • Sync of constructor options for serialization

  • Returned null in case of empty cookie value

  • 132 str trim not a function

  • Fix for issue #153

  • Fix permuteDomain with trailing dot

  • Issue #213 -- added gh-actions flow for building and testing tough-co…

  • Issue #210 -- Updated workflow to use npm install.

  • @GH-215 -- Tests that document localhost behavior when set as domain.

  • MemoryCookieStore methods should exist on the prototype, not on the class.

  • React Native Support

  • Adding Updating CODEOWNERS with ECCN as per Export Control Compliance

  • Domain match routine

  • Stop using the internal NodeJS punycode module

  • Initial documentation review

  • Distinguish between no samesite and samesite=none

  • Prepare tough-cookie 4.1 for publishing (updated GitHub actions, move…

  • 4.1.0 release to NPM

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.