cookie
2.0.2 · 5 Nov 2026MIT322.8M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 36 releases- 2.x · latest line
2.0.2
5 Nov 2026Perf optimize cookie value validation
Small convention cleanups
Reject
Expiresdates outside cookie year bounds
Fixed
Perf optimize cookie value validation
Small convention cleanups
Reject
Expiresdates outside cookie year boundsReject unsafe-integer
maxAge
2.0.0
24 Jun 2026Important: This release moves the package to ESM only. In node 22+ you can
require(esm), and older node versions are not supported.Changed
Switch to ESM (#273)
- Removed
Remove deprecated code paths (#272)
The old
parseandstringifymethods have been renamed:parseCookieandstringifySetCookiestringifySetCookieonly supports object mode (e.g.{ name: "", value: "" })
Improvements
Fixed
Omit leading semicolon when stringifying cookies with skipped values
Dependency tracking · free for 3 projects
Know when your own dependencies move
cookie shipped a new major in the last 12 months, among 5 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 10 Nov 2026. Releases and advisories last read 10 Nov 2026.