Skip to content

[deps] Bump react-cookie from 4.1.1 to 8.0.1#860

Merged
nemesifier merged 2 commits into
masterfrom
dependabot/npm_and_yarn/react-cookie-8.0.1
Apr 23, 2025
Merged

[deps] Bump react-cookie from 4.1.1 to 8.0.1#860
nemesifier merged 2 commits into
masterfrom
dependabot/npm_and_yarn/react-cookie-8.0.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 1, 2025

Bumps react-cookie from 4.1.1 to 8.0.1.

Release notes

Sourced from react-cookie's releases.

v8.0.1

What's Changed

Renovate

Full Changelog: ItsBenCodes/cookies@v8.0.0...v8.0.1

v8.0.0

What's Changed

Renovate

... (truncated)

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 1, 2025
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/react-cookie-8.0.1 branch 5 times, most recently from 1c9c4c6 to 54af0db Compare April 11, 2025 14:03
@pandafy
Copy link
Copy Markdown
Member

pandafy commented Apr 11, 2025

@dependabot rebase

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 11, 2025

Looks like this PR is already up-to-date with master! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@nemesifier
Copy link
Copy Markdown
Member

@dependabot recreate

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/react-cookie-8.0.1 branch from 54af0db to ff37c81 Compare April 11, 2025 15:30
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/react-cookie-8.0.1 branch from ff37c81 to 2c080dc Compare April 22, 2025 18:02
Bumps [react-cookie](https://github.com/bendotcodes/cookies) from 4.1.1 to 8.0.1.
- [Release notes](https://github.com/bendotcodes/cookies/releases)
- [Changelog](https://github.com/bendotcodes/cookies/blob/main/LEGACY-CHANGELOG.md)
- [Commits](https://github.com/bendotcodes/cookies/commits/v8.0.1)

---
updated-dependencies:
- dependency-name: react-cookie
  dependency-version: 8.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/react-cookie-8.0.1 branch from 2c080dc to f6fcc47 Compare April 22, 2025 21:15
@pandafy
Copy link
Copy Markdown
Member

pandafy commented Apr 23, 2025

@dependabot rebase

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 23, 2025

Looks like this PR is already up-to-date with master! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@pandafy pandafy force-pushed the dependabot/npm_and_yarn/react-cookie-8.0.1 branch from aab89d2 to c31d11d Compare April 23, 2025 11:10
The `Cookies` object returned by `react-cookie` now includes additional
internal properties and methods (i.e.., `defaultSetOptions`, `update`),
which caused strict `toHaveBeenCalledWith` checks to fail.

Refactored tests to assert `Cookies` instances using `expect.any(Cookies)`
and verified internal cookie values explicitly.
@pandafy pandafy force-pushed the dependabot/npm_and_yarn/react-cookie-8.0.1 branch from c31d11d to b703d3f Compare April 23, 2025 11:19
Comment on lines -1369 to +1371
expect(prop.logout).toHaveBeenCalledWith(
{
HAS_DOCUMENT_COOKIE: true,
changeListeners: [],
cookies: {default_macaddr: "4e:ed:11:2b:17:ae"},
},
"default",
);
expect(prop.logout).toHaveBeenCalledWith(expect.any(Cookies), "default");
const cookiesArg = prop.logout.mock.calls[0][0];
expect(cookiesArg.cookies).toEqual({default_macaddr: "4e:ed:11:2b:17:ae"});
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Cookies object returned by react-cookie now includes additional
internal properties and methods (i.e.., defaultSetOptions, update),
which caused strict toHaveBeenCalledWith checks to fail.

Refactored tests to assert Cookies instances using expect.any(Cookies)
and verified internal cookie values explicitly.

@pandafy pandafy moved this from To do (general) to Needs review in OpenWISP Contributor's Board Apr 23, 2025
@github-project-automation github-project-automation Bot moved this from Needs review to In progress in OpenWISP Contributor's Board Apr 23, 2025
@nemesifier nemesifier merged commit 8f6bce1 into master Apr 23, 2025
3 checks passed
@nemesifier nemesifier deleted the dependabot/npm_and_yarn/react-cookie-8.0.1 branch April 23, 2025 15:05
@github-project-automation github-project-automation Bot moved this from In progress to Done in OpenWISP Contributor's Board Apr 23, 2025
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 javascript Pull requests that update Javascript code

Projects

Development

Successfully merging this pull request may close these issues.

2 participants