Skip to content

Update dependency cookie to v2 - #72

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cookie-2.x
Open

Update dependency cookie to v2#72
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cookie-2.x

Conversation

@renovate

@renovate renovate Bot commented Aug 2, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
cookie ^0.3.1^2.0.0 age confidence

Release Notes

jshttp/cookie (cookie)

v2.0.1

Compare Source

Improved:

  • Small performance improvement by incrementing = index while parsing set-cookie (#​280)

v2.0.0

Compare Source

Important: This release moves the package to ESM only. In node 22+ you can require(esm), and older node versions are not supported.

Changed

  • Switch to ESM (#​273)
  • Remove deprecated code paths (#​272)
    • The old parse and stringify methods have been renamed: parseCookie and stringifySetCookie
    • stringifySetCookie only supports object mode (e.g. { name: "", value: "" })

Improvements

  • Faster stringify cookie (#​262)
  • Optimize encode performance (#​269)
  • Apply encode to empty cookie values (#​277)

Fixed

  • Omit leading semicolon when stringifying cookies with skipped values (#​267)

v1.1.1

Compare Source

Fixed

  • Overwrite value in passed in options (#​253) c66147c
    • When value was provided in serialize(key, value, { value }) the value in options was used instead of the value passed as an argument

v1.1.0

Compare Source

Added:

  • Add stringifyCookie and parseSetCookie methods (#​244, #​214)
  • Rename existing methods for clarity (old method names remain for backward compatibility)
    • parseparseCookie
    • serializestringifySetCookie
  • Add side effects field (#​245) 00b0327

v1.0.2

Compare Source

Fixed

Added

v1.0.1

Compare Source

Added

v1.0.0

Compare Source

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

Compare Source

Fixed

v0.7.1: 0.7.1

Compare Source

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: 0.7.0

Compare Source

v0.6.0: 0.6.0

Compare Source

  • Add partitioned option

v0.5.0: 0.5.0

Compare Source

  • Add priority option
    • Fix expires option to reject invalid dates
    • pref: improve default decode speed
    • pref: remove slow string split in parse

v0.4.2: 0.4.2

Compare Source

  • pref: read value only when assigning in parse
    • pref: remove unnecessary regexp in parse

v0.4.1: 0.4.1

Compare Source

  • Fix maxAge option to reject invalid values

v0.4.0: 0.4.0

Compare Source

  • Add SameSite=None support

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants