cookie
2.0.1 · 30 Jun 2026MIT314.8M / weekRepositoryHomepagenpmAtom feed
Upgrading cookie From 0.2.0 to 2.0.1
21 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- breaking2.0.0
- breaking1.0.0
Security
Fixes 1 advisory affecting 0.2.0
- 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
19 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