Skip to content

deps: bump cookie from 1.1.1 to 2.0.1 - #297

Merged
github-actions[bot] merged 2 commits into
mainfrom
dependabot/npm_and_yarn/cookie-2.0.1
Aug 11, 2026
Merged

deps: bump cookie from 1.1.1 to 2.0.1#297
github-actions[bot] merged 2 commits into
mainfrom
dependabot/npm_and_yarn/cookie-2.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bumps cookie from 1.1.1 to 2.0.1.

Release notes

Sourced from cookie's releases.

v2.0.1

Improved:

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

v2.0.0

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 (jshttp/cookie#273)
  • Remove deprecated code paths (jshttp/cookie#272)
    • The old parse and stringify methods have been renamed: parseCookie and stringifySetCookie
    • stringifySetCookie only supports object mode (e.g. { name: "", value: "" })

Improvements

Fixed

  • Omit leading semicolon when stringifying cookies with skipped values (#267)
Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for cookie since your current version.


@dependabot @github

dependabot Bot commented on behalf of github Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: security. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 10, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/cookie-2.0.1 branch from d0ee03d to 669012c Compare August 10, 2026 08:06
Bumps [cookie](https://github.com/jshttp/cookie) from 1.1.1 to 2.0.1.
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](jshttp/cookie@v1.1.1...v2.0.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/cookie-2.0.1 branch from 669012c to 9c6fcb0 Compare August 10, 2026 10:02
cookie 2.0 renamed its exports: serialize → stringifySetCookie (taking one
{name, value, ...options} object) and parse → parseCookie. Output verified
byte-identical for our call shape, including that httpOnly:false still OMITS
the flag — the CSRF cookie must stay JS-readable for the Double Submit
pattern.

cookie v2 is also pure ESM, which jest could not parse. The allowlist entry
in customJestConfig alone is dead config: next/jest PREPENDS its own
transformIgnorePatterns and patterns are OR'd, so the package must be
injected into the generated pattern after createJestConfig resolves. With
that, the 21 csrf tests actually run again (they were failing to even load).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@catomean

Copy link
Copy Markdown
Collaborator

Pushed the cookie v2 API migration: serialize/parsestringifySetCookie/parseCookie in src/lib/auth/csrf.ts (output verified byte-identical, incl. httpOnly:false omission), plus the jest transform allowlist injection cookie v2's pure-ESM build needs (next/jest prepends its own patterns, so the customConfig entry alone is dead config).

@github-actions
github-actions Bot merged commit f723f69 into main Aug 11, 2026
9 checks passed
@github-actions
github-actions Bot deleted the dependabot/npm_and_yarn/cookie-2.0.1 branch August 11, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant