Packages

cookie

2.0.1 · 30 Jun 2026MIT314.8M / weekRepositoryHomepagenpmAtom feed

Your version

35 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 2.x · latest line
  2. 2.0.1

    30 Jun 2026
    • Small performance improvement by incrementing = index while parsing set-cookie (#280)

  3. 2.0.0

    24 Jun 2026
    • removed

      Remove deprecated code paths (#272)

    • Switch to ESM (#273)

    • Faster stringify cookie

  4. 1.x
  5. 1.1.1

    26 Nov 2025
  6. 1.1.0

    25 Nov 2025
    • Add stringifyCookie and parseSetCookie methods (#244, #214)

    • Rename existing methods for clarity (old method names remain for backward compatibility)

    • Add side effects field (#245) 00b0327

  7. 1.0.2

    20 Nov 2024
    • Loosen cookie name/value validation

    • options.priority used incorrect fallback

    • Add import example to README

  8. 1.0.1

    11 Oct 2024
  9. 1.0.0

    8 Oct 2024
    • Use modern JS features, ship TypeScript definition (#175) 1cc64ff

    • Minimum node.js v18

    • Uses null prototype object for parse return value

  10. 0.7.x
  11. 0.7.2

    7 Oct 2024
  12. 0.7.1

    3 Oct 2024
    • Allow leading dot for domain

    • Add fast path for serialize without options, use obj.hasOwnProperty when parsing

  13. 0.7.0

    2 Oct 2024
    • Parse cookies ~10% faster

  14. 0.6.x
  15. 0.6.0

    7 Nov 2023
    • Add partitioned option

  16. 0.5.x
  17. 0.5.0

    11 Apr 2022
    • Add priority option

  18. 0.4.x
  19. 0.4.2

    2 Feb 2022
    • pref: Read value only when assigning in parse

  20. 0.4.1

    22 Apr 2020
    • Fix maxAge option to reject invalid values

  21. 0.4.0

    16 May 2019
    • Add SameSite=None support

  22. 0.3.x
  23. 0.3.1

    27 May 2016
    • Fix sameSite: true to work with draft-7 clients

  24. 0.3.0

    27 May 2016
    • Add sameSite option

    • Improve error message when encode is not a function

    • Improve error message when expires is not a Date

  25. 0.2.x
  26. 0.2.4

    21 May 2016
    • Enable strict mode

    • Use for loop in parse

    • Use string concatination for serialization

  27. 0.2.3

    26 Oct 2015
    • Fix cookie Max-Age to never be a floating point number

  28. 0.2.2

    17 Sep 2015
    • Fix regression when setting empty cookie value

    • Fix typo in invalid value errors

  29. 0.2.1

    17 Sep 2015
    • Throw on invalid values provided to serialize

  30. 0.2.0

    14 Aug 2015
    • Add firstPartyOnly option

    • Throw better error for invalid argument to parse

    • Hoist regular expression

  31. 0.1.x
  32. 0.1.5

    17 Sep 2015
    • Fix regression when setting empty cookie value

    • Fix typo in invalid value errors

  33. 0.1.4

    17 Sep 2015
    • Throw better error for invalid argument to parse

    • Throw on invalid values provided to serialize

  34. 0.1.3

    20 May 2015
    • removed

      Remove argument reassignments

    • Reduce the scope of try-catch deopt

  35. 0.1.0 – 0.1.23 releases without a noteShow each
  36. 0.0.x
  37. 0.0.0 – 0.0.67 releases without a noteShow each