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
parseandstringifymethods have been renamed:parseCookieandstringifySetCookie stringifySetCookieonly supports object mode (e.g.{ name: "", value: "" })
- The old
Improvements
- Faster stringify cookie (#262)
- Optimize encode performance (#269)
- Apply
encodeto empty cookie values (#277)
Fixed
- Omit leading semicolon when stringifying cookies with skipped values (#267)