| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-06-24 | 808 Bytes | |
| v2.0.0 source code.tar.gz | 2026-06-24 | 57.2 kB | |
| v2.0.0 source code.zip | 2026-06-24 | 70.4 kB | |
| Totals: 3 Items | 128.4 kB | 0 | |
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 (https://github.com/jshttp/cookie/pull/273)
- Remove deprecated code paths (https://github.com/jshttp/cookie/pull/272)
- The old
parseandstringifymethods have been renamed:parseCookieandstringifySetCookie stringifySetCookieonly supports object mode (e.g.{ name: "", value: "" })
Improvements
- Faster stringify cookie (#262)
- Optimize encode performance (https://github.com/jshttp/cookie/pull/269)
- Apply
encodeto empty cookie values (https://github.com/jshttp/cookie/pull/277)
Fixed
- Omit leading semicolon when stringifying cookies with skipped values (#267)