NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1153 most downloaded on npm
Parses set-cookie headers into objects
Last release 2 months ago
09 Jul 2026
Release timing varies
gaps range from 2 weeks to 1.4 years
Nearly every release is documented
notes for 29 of 30 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
30 releases · first in 2015
No longer throws when attempting to parse a set-cookie string with no name-value pair, e.g parseSetCookie(";")
Fixed:
Whitespace is now correctly trimmed around attribute names and values
Fixed:
Included TypeScript definitions in the library
One column per quarter.
Added:
CJS version of library is now included in npm release
Fixed:
Library now supports both ESM and CJS
parseSetCookie (with other exports for backwards compatibility)Changed:
parse function renamed to parseSetCookie (with alias for backwards compatibility)Added:
split option overrides this behavior, set to true to always split or false for the previous behavior of never plitting automatically.Removed / Soft-deprecated:
parse(), parseString(), and splitCookieString() methods are no longer documented, but are still present for backwards compatibility.Prevent Object prototype pollution by malicious cookies
Fixed:
Docs: added link to V3 discussion in readme
Added support for partitioned attribute
partitioned attributeDocs:
Add support for getSetCookie() method on fetch response headers objects.
= in the "name=value" part, now the name is '' and the value is the entire string. Previously it was the other way around.Nothing published for this version
Add "sideEffects": false to package.json to help bundlers like Webpack and Rollup
"sideEffects": false to package.json to help bundlers like Webpack and Rollup* Revert to ES5
Handle cases where decodeURIComponent() throws when decoding a value by logging an error and returning the original value
decodeURIComponent() throws when decoding a value by logging an error and returning the original valueReturn an empty object rather than an empty array for falsy input when options.map is enabled
options.map is enabled* Document new silent option * No functional changes
Fix parseString export, add default options
parseString export, add default options* Documentation improvements * No functional changes
* Documentation improvements * No functional changes
Documented parse, parseString, & splitCookiesString methods
parse, parseString, & splitCookiesString methodsparseString methodDrop testing on node < 8 due to ESLint
Clarify documentation of map option
map optionFixed automated publishing to npm
* Revert to ES5
Add splitCookiesString to separate multiple comma-separated Set-Cookie headers
splitCookiesString to separate multiple comma-separated Set-Cookie headersDocs * Fixed a broken link
Docs
Updated automated release script
Added decodeValues option (calls decodeURIComponent() on each cookie value), enabled by default.
decodeURIComponent() on each cookie value), enabled by default.splitCookiesString method.Docs: * Update badges and keywords
Docs:
Docs: * Added output example
Docs:
Initial release
Initial release
Your coding agent can read these notes before it upgrades. Set up the MCP server →