Skip to content

Releases: jshttp/cookie

v1.0.1

11 Oct 17:18
ba9e677
Compare
Choose a tag to compare

Added

v1.0.0...v1.0.1

v1.0.0

08 Oct 22:29
c69cef6
Compare
Choose a tag to compare

Breaking changes

  • Use modern JS features, ship TypeScript definition (#175) 1cc64ff
    • Adds __esModule marker, imports need to use import { parse, serialize } or import * as cookie
  • Minimum node.js v18
  • Uses null prototype object for parse return value
  • Changes strict and priority to match the lower case strings (i.e. low, not LOW or Low)
  • Require maxAge to be an integer using Number.isInteger check
  • Delegates decode implementation details to decode option (i.e. error handling and quote parsing is defined by decode)
  • Improve arg/option error messages (#162) e206fd5 @MaoShizhong

Other

v0.7.2...v1.0.0

v0.7.2

07 Oct 03:41
d19eaa1
Compare
Choose a tag to compare

Fixed

  • Fix object assignment of hasOwnProperty (#177) bc38ffd

v0.7.1...v0.7.2

0.7.1

03 Oct 18:19
cf4658f
Compare
Choose a tag to compare

Fixed

  • Allow leading dot for domain (#174)
    • Although not permitted in the spec, some users expect this to work and user agents ignore the leading dot according to spec
  • Add fast path for serialize without options, use obj.hasOwnProperty when parsing (#172)

v0.7.0...v0.7.1

0.7.0

02 Oct 23:06
ab057d6
Compare
Choose a tag to compare

v0.6.0...v0.7.0

0.6.0

21 Nov 16:22
Compare
Choose a tag to compare
  • Add partitioned option

0.5.0

11 Apr 23:31
Compare
Choose a tag to compare
  • 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

02 Feb 23:28
Compare
Choose a tag to compare
  • pref: read value only when assigning in parse
  • pref: remove unnecessary regexp in parse

0.4.1

22 Apr 03:20
Compare
Choose a tag to compare
  • Fix maxAge option to reject invalid values

0.4.0

16 May 03:25
Compare
Choose a tag to compare
  • Add SameSite=None support