Packages

tough-cookie

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

Your version

4.0.0

major19 Mar 2020Where it was published

4.1.4 is the newest release of 4.x.

In short

3 breaking5 new1 changed

  • Breaking

    Upgraded version dependencies for psl and async

  • Breaking

    Re-order parameters for findCookies() - callback fn has to be last in order to comply with universalify

  • Breaking

    Use Classes instead of function prototypes to define classes

Security

1 advisory affects 4.0.0; 4.1.3 fixes them

Release note

Breaking Changes (Major Version)

  • Breaking

    Modernized JS Syntax

    • Use ESLint and Prettier to apply consistent, modern formatting (add dependency on universalify, eslint and prettier)

  • Breaking

    Upgraded version dependencies for psl and async

  • Breaking

    Re-order parameters for findCookies() - callback fn has to be last in order to comply with universalify

  • 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.