Packages

cookie

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

Your version

1.0.0

major8 Oct 2024Where it was published

1.1.1 is the newest release of 1.x.

In short

1 breaking8 changed

  • breaking

    Breaking changes

Release note

Breaking changes

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

    • Adds __esModule marker, imports need to use import { parse, serialize } or import * as cookie

  • Minimum node.js v18

  • Uses null prototype object for parse return value

  • Changes strict and priority to match the lower case strings (i.e. low, not LOW or Low)

  • Require maxAge to be an integer using Number.isInteger check

  • Delegates decode implementation details to decode option (i.e. error handling and quote parsing is defined by decode)

  • Improve arg/option error messages (#162) e206fd5 @MaoShizhong

Other

v0.7.2...v1.0.0