cookie
2.0.1 · 30 Jun 2026MIT314.8M / weekRepositoryHomepagenpmAtom feed
Upgrading cookie From 0.0.6 to 2.0.1
28 releases in betweennotes for 25
Counted from 25 of 28 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- breaking2.0.0
- breaking1.0.0
- breaking0.1.3
Security
Fixes 1 advisory affecting 0.0.6
- cookie accepts cookie name, path, and domain with out of bounds characterslow · GHSA-pxg6-pf52-xh8x
Release by release
2.0.1nothing new or fixed in the note
1.1.1nothing new or fixed in the note
- new
Add
stringifyCookieandparseSetCookiemethods (#244, #214) - new
Add side effects field (#245) 00b0327
- new
- new
Add import example to README
- fixed
options.priorityused incorrect fallback
- new
- new
Allow case insensitive options (#194) 3bed080
- new
- breaking
Breaking changes
- breaking
- fixed
Fix object assignment of
hasOwnProperty(#177) bc38ffd
- fixed
21 other lines we could not sort, mostly version bumps
- 2.0.1
Small performance improvement by incrementing
=index while parsingset-cookie(#280) - 2.0.0
Switch to ESM (#273)
- 2.0.0
Apply
encodeto empty cookie values (#277) - 2.0.0
Omit leading semicolon when stringifying cookies with skipped values
- 1.1.1
Overwrite value in passed in options (#253) c66147c
- 1.1.0
Rename existing methods for clarity (old method names remain for backward compatibility)
- 1.0.2
Loosen cookie name/value validation
- 1.0.0
Use modern JS features, ship TypeScript definition (#175) 1cc64ff
- 1.0.0
Minimum node.js v18
- 1.0.0
Uses null prototype object for
parsereturn value