# What changed in set-cookie-parser

> 4 changes in set-cookie-parser 3 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/set-cookie-parser/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## set-cookie-parser 3

### Breaking changes

- Unparsable Expires values are dropped instead of being added to the cookie object as an Invalid Date. (3.1.4) — [release notes](https://github.com/nfriedly/set-cookie-parser/blob/06d060615fccd13746a33bae3551f9c362f79e10/CHANGELOG.md#v314---2026-10-16)
- Invalid Max-Age values are dropped instead of being coerced to a number. (3.1.4) — [release notes](https://github.com/nfriedly/set-cookie-parser/blob/06d060615fccd13746a33bae3551f9c362f79e10/CHANGELOG.md#v314---2026-10-16)

### Fixes and other changes

- Whitespace is now correctly trimmed around cookie names and values. (3.1.3) — [release notes](https://github.com/nfriedly/set-cookie-parser/blob/06d060615fccd13746a33bae3551f9c362f79e10/CHANGELOG.md#v313---2026-10-08)
- Parsing a set-cookie string with no name-value pair, such as parseSetCookie(";"), no longer throws. (3.1.2) — [release notes](https://github.com/nfriedly/set-cookie-parser/blob/06d060615fccd13746a33bae3551f9c362f79e10/CHANGELOG.md#v312---2026-07-09)
