Skip to content

v2.0.0

Latest

Choose a tag to compare

@blakeembrey blakeembrey released this 24 Jun 23:04
e5164de

Important: This release moves the package to ESM only. In node 22+, you can still require(esm), but older node versions will not work with CommonJS.

Changed

  • Switch to ESM (#273)
  • Remove deprecated code paths (#272)
    • The old parse and stringify methods have been renamed: parseCookie and stringifySetCookie
    • stringifySetCookie only supports object mode (e.g. { name: "", value: "" })

Improvements

  • Faster stringify cookie (#262)
  • Optimize encode performance (#269)
  • Apply encode to empty cookie values (#277)

Fixed

  • Omit leading semicolon when stringifying cookies with skipped values (#267)