Releases: jshttp/cookie
Releases Β· jshttp/cookie
v1.0.1
v1.0.0
Breaking changes
- Use modern JS features, ship TypeScript definition (#175) 1cc64ff
- Adds
__esModule
marker, imports need to useimport { parse, serialize }
orimport * as cookie
- Adds
- Minimum node.js v18
- Uses null prototype object for
parse
return value - Changes
strict
andpriority
to match the lower case strings (i.e.low
, notLOW
orLow
) - Require
maxAge
to be an integer usingNumber.isInteger
check - Delegates decode implementation details to
decode
option (i.e. error handling and quote parsing is defined bydecode
) - Improve arg/option error messages (#162) e206fd5 @MaoShizhong
Other
- Remove
hasOwnProperty
, useundefined
check for performance (#183) 8f3ee9e @gurgunday
v0.7.2
0.7.1
0.7.0
- perf: parse cookies ~10% faster (#144 by @kurtextrem and #170)
- fix: narrow the validation of cookies to match RFC6265 (#167 by @bewinsnw)
- fix: add
main
topackage.json
for rspack (#166 by @proudparrot2)
0.6.0
- Add
partitioned
option
0.5.0
- Add
priority
option - Fix
expires
option to reject invalid dates - pref: improve default decode speed
- pref: remove slow string split in parse
0.4.2
- pref: read value only when assigning in parse
- pref: remove unnecessary regexp in parse
0.4.1
- Fix
maxAge
option to reject invalid values
0.4.0
- Add
SameSite=None
support