Skip to content

chore(deps): update dependency cookie to v2 - #175

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

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

Conversation

@renovate

@renovate renovate Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cookie ^0.7.2 → ^2.0.0 age confidence

Release Notes

jshttp/cookie (cookie)

v2.0.2

Compare Source

Fixed

  • Perf optimize cookie value validation by @​blakeembrey in #​285
  • Small convention cleanups by @​blakeembrey in #​284
  • Reject Expires dates outside cookie year bounds by @​offyotto in #​290
    • If your cookie expires is outside year 1601–9999 you will need to clamp the date yourself to the maximum value
  • Reject unsafe-integer maxAge by @​spokodev in #​286
    • If your maxAge is larger than Number.MAX_SAFE_INTEGER you will need to clamp it for safety when serializing

Full Changelog: jshttp/cookie@v2.0.1...v2.0.2

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)
    • parse → parseCookie
    • serialize → stringifySetCookie
  • 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


Configuration

📅 Schedule: (in timezone Europe/Amsterdam)

  • Branch creation
    • Between 12:00 AM and 06:59 AM, only on Monday (* 0-6 * * 1)
  • 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.

@github-actions

Copy link
Copy Markdown
Contributor

No changeset found. If this PR should trigger a release, run npx changeset and commit the generated file.

If this change doesn't need a release (docs, CI config, etc.), you can ignore this message.

@renovate
renovate Bot force-pushed the renovate/cookie-2.x branch from ba528a4 to 4532db0 Compare October 27, 2026 00:10
@github-actions

Copy link
Copy Markdown
Contributor

No changeset found. If this PR should trigger a release, run npx changeset and commit the generated file.

If this change doesn't need a release (docs, CI config, etc.), you can ignore this message.

@renovate
renovate Bot force-pushed the renovate/cookie-2.x branch from 4532db0 to 3e5a5b3 Compare November 5, 2026 17:36
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No changeset found. If this PR should trigger a release, run npx changeset and commit the generated file.

If this change doesn't need a release (docs, CI config, etc.), you can ignore this message.

@renovate
renovate Bot force-pushed the renovate/cookie-2.x branch 2 times, most recently from fc662b7 to 3c06b95 Compare November 12, 2026 21:28
@github-actions

Copy link
Copy Markdown
Contributor

No changeset found. If this PR should trigger a release, run npx changeset and commit the generated file.

If this change doesn't need a release (docs, CI config, etc.), you can ignore this message.

@renovate
renovate Bot force-pushed the renovate/cookie-2.x branch from 3c06b95 to 8af686b Compare November 16, 2026 16:50
@github-actions

Copy link
Copy Markdown
Contributor

No changeset found. If this PR should trigger a release, run npx changeset and commit the generated file.

If this change doesn't need a release (docs, CI config, etc.), you can ignore this message.

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