Packages

tough-cookie

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

Upgrading tough-cookie From 1.2.0 to 4.1.3

20 releases in betweennotes for 5

Reading releases, release notes and advisories…

Other targets from 1.2.0Latest6.1.0
3.0.0, 2.0.0 have no release note on GitHub or in the repository's changelog, so their breaking changes are missing from the counts below.
  1. 1.2.0yours
  2. 2.0.0major
  3. 12 releases
  4. 3.0.0major
  5. 1 release
  6. 4.0.0major
  7. 3 releases
  8. 4.1.3target
3+
changes to make
3
advisories fixed
6+
new
8+
fixes

Counted from 5 of 20 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Security

Fixes 3 advisories affecting 1.2.0

  • Security fix for Prototype Pollution discovery in #282.

    4.1.3

Release by release

  1. 4.1.3

    Security fix5 Jun 2023
    • Security

      Security fix for Prototype Pollution discovery in #282.

  2. 4.1.2

    25 Aug 20221 fix
    • Fixed

      Allow set cookies with localhost

  3. 4.1.1

    24 Aug 20221 fix
    • Fixed

      Allow special use domains by default

  4. 4.1.0

    22 Aug 20221 new · 6 fixes
    • New

      Add explanation and more special-use domains

    • Fixed

      Fix for issue #195

    • Fixed

      Fix permuteDomain with trailing dot

    • Fixed

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

    • Fixed

      Domain match routine

    • Fixed

      Stop using the internal NodeJS punycode module

    • Fixed

      Distinguish between no samesite and samesite=none

  5. 4.0.0

    Migration needed19 Mar 20205 new
    • 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

    • New

      SameSite cookie support

  6. 2.0.0 – 3.0.115 releases, no release note

17 other lines we could not sort, mostly version bumps
  • 4.1.1 Patch -- allow special use domains by default

    4.1.1
  • Create CHANGELOG.md

    4.1.0
  • Missing param validation issue145

    4.1.0
  • Create SECURITY.md

    4.1.0
  • Create CODE_OF_CONDUCT.md

    4.1.0
  • Sync of constructor options for serialization

    4.1.0
  • Returned null in case of empty cookie value

    4.1.0
  • 132 str trim not a function

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

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

    4.1.0

2 internal lines (docs, tests, tooling) left out.

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.