Download Latest Version v1.1.1 source code.tar.gz (60.8 kB)
Email in envelope

Get an email when there's a new version of cookie

Home / v1.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-10-08 799 Bytes
v1.0.0 source code.tar.gz 2024-10-08 51.6 kB
v1.0.0 source code.zip 2024-10-08 55.0 kB
Totals: 3 Items   107.4 kB 0

Changed

  • Use modern JS features, ship TypeScript definition (#175) 1cc64ff
  • 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)
  • Delegate quote parsing to decode (#180) c4a2597
  • Shift try/catch to decode (#179) 93a5b97
  • Improve arg/option error messages (#162) e206fd5 @MaoShizhong

Other

  • Remove hasOwnProperty, use undefined check for performance (#183) 8f3ee9e @gurgunday

https://github.com/jshttp/cookie/compare/v0.7.2...v1.0.0

Source: README.md, updated 2024-10-08