cookie
2.0.1 · 30 Jun 2026MIT314.8M / weekRepositoryHomepagenpmAtom feed
1.1.1 is the newest release of 1.x.
In short
1 breaking8 changed
- breaking
Breaking changes
Release note
Breaking changes
Use modern JS features, ship TypeScript definition (#175) 1cc64ff
Adds
__esModulemarker, imports need to useimport { parse, serialize }orimport * as cookie
Minimum node.js v18
Uses null prototype object for
parsereturn valueChanges
strictandpriorityto match the lower case strings (i.e.low, notLOWorLow)Require
maxAgeto be an integer usingNumber.isIntegercheckDelegates decode implementation details to
decodeoption (i.e. error handling and quote parsing is defined bydecode)Improve arg/option error messages (#162) e206fd5 @MaoShizhong
Other
Remove
hasOwnProperty, useundefinedcheck for performance (#183) 8f3ee9e @gurgunday