build(deps): bump js-cookie from 2.2.1 to 3.0.7#173
Conversation
Bumps [js-cookie](https://github.com/js-cookie/js-cookie) from 2.2.1 to 3.0.7. - [Release notes](https://github.com/js-cookie/js-cookie/releases) - [Commits](js-cookie/js-cookie@v2.2.1...v3.0.7) --- updated-dependencies: - dependency-name: js-cookie dependency-version: 3.0.7 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 00f0118. Configure here.
| "@types/js-cookie": "^2.2.7", | ||
| "@types/query-string": "^6.3.0", | ||
| "js-cookie": "^2.2.1", | ||
| "js-cookie": "^3.0.7", |
There was a problem hiding this comment.
Namespace import incompatible with js-cookie v3 default export
High Severity
Bumping js-cookie to v3 without updating the import style or type definitions breaks the library. js-cookie v3 only provides a default export, so import * as cookie from 'js-cookie' (used in create-request-sender.ts) results in a namespace object where cookie.get is undefined when resolved by ESM-aware bundlers like webpack. Additionally, @types/js-cookie remains at ^2.2.7 which is documented as incompatible with js-cookie v3. This silently breaks XSRF-TOKEN reading at runtime in production builds.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 00f0118. Configure here.


Bumps js-cookie from 2.2.1 to 3.0.7.
Release notes
Sourced from js-cookie's releases.
... (truncated)
Commits
17bacbaCraft v3.0.7 releaseadb823cFix release workflow halting atgit tag5f9e759May remove Git user config from release workflow6ac9211Fix release workflow not able to push commit + tag2278bc5Fix missing package version bumpeb3c40ePrevent cookie attribute injectionf6f157fBump globals from 17.5.0 to 17.6.0f409d02Bump eslint from 10.2.0 to 10.3.0a686883Bump protobufjs in the npm_and_yarn group across 1 directoryc6112d2Bump@protobufjs/utf8in the npm_and_yarn group across 1 directoryMaintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for js-cookie since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.
Note
Medium Risk
Upgrades
js-cookieacross a major version, which may introduce breaking API/module-format/type changes that affect cookie access used for CSRF header injection and test mocks. Also updates the lockfile to a version that declares anode >= 20engine requirement forjs-cookie.Overview
Updates the
js-cookiedependency from^2.2.1to^3.0.7inpackage.jsonand refreshespackage-lock.jsonaccordingly.The lockfile now pulls
js-cookie@3.0.7(including its updated metadata/engine constraints), with no accompanying source changes in how cookies are read.Reviewed by Cursor Bugbot for commit 00f0118. Bugbot is set up for automated code reviews on this repo. Configure here.