npm / set-cookie-parser
set-cookie-parser
What changed in set-cookie-parser 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
2 breaking2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initset-cookie-parser 34 changes
Breaking changes 2
Unparsable Expires values are dropped instead of being added to the cookie object as an Invalid Date.
Invalid Max-Age values are dropped instead of being coerced to a number.
Fixes and other changes 2
Whitespace is now correctly trimmed around cookie names and values.
Parsing a set-cookie string with no name-value pair, such as parseSetCookie(";"), no longer throws.