cookie
2.0.1 · 30 Jun 2026MIT314.8M / weekRepositoryHomepagenpmAtom feed
Upgrading cookie From 0.1.2 to 0.7.2
18 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- breaking0.1.3
Security
Fixes 1 advisory affecting 0.1.2
- cookie accepts cookie name, path, and domain with out of bounds characterslow · GHSA-pxg6-pf52-xh8x
Release by release
- fixed
Fix object assignment of
hasOwnProperty(#177) bc38ffd
- fixed
- new
Allow leading dot for domain
- new
Add fast path for
serializewithout options, useobj.hasOwnPropertywhen parsing
- new
- new
Parse cookies ~10% faster
- new
- new
Add
partitionedoption
- new
- new
Add
priorityoption
- new
0.4.2nothing new or fixed in the note
- fixed
Fix
maxAgeoption to reject invalid values
- fixed
- new
Add
SameSite=Nonesupport
- new
6 other lines we could not sort, mostly version bumps
- 0.4.2
pref: Read value only when assigning in parse
- 0.3.0
Improve error message when
encodeis not a function - 0.3.0
Improve error message when
expiresis not aDate - 0.2.1
Throw on invalid values provided to
serialize - 0.2.0
Throw better error for invalid argument to parse
- 0.1.3
Reduce the scope of try-catch deopt