v1.0.0
Breaking changes
- Use modern JS features, ship TypeScript definition (#175) 1cc64ff
- Adds
__esModulemarker, imports need to useimport { parse, serialize }orimport * as cookie
- Adds
- Minimum node.js v18
- Uses null prototype object for
parsereturn value - Changes
strictandpriorityto match the lower case strings (i.e.low, notLOWorLow) - Require
maxAgeto be an integer usingNumber.isIntegercheck - Delegates 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