Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update @bundled-es-modules/cookie to 2.0.1 #2312

Merged
merged 5 commits into from
Nov 7, 2024

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Oct 10, 2024

const cookies: Record<string, string> = {}

for (const cookieName in parsedCookies) {
if (typeof parsedCookies[cookieName] !== 'undefined') {
Copy link
Member Author

Choose a reason for hiding this comment

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

Account for cookie@1.0 annotating the parsing result as Record<string, string | undefined>. Skip the cookies with undefined values.

@kettanaito
Copy link
Member Author

I've opened a PR to the bundled cookie package to have release automation to release fixes faster. bundled-es-modules/cookie#4

@kettanaito kettanaito changed the title fix: update and use cookie directly fix: update @bundled-es-modules/cookie to 2.0.1 Nov 7, 2024
@kettanaito
Copy link
Member Author

The fix has been released in @bundled-es-modules/cookie in 2.0.1. Bumped the version range in MSW. Will merge once the CI is passing.

@kettanaito kettanaito merged commit c134352 into main Nov 7, 2024
11 checks passed
@kettanaito kettanaito deleted the fix/use-cookie-directly branch November 7, 2024 12:24
@kettanaito
Copy link
Member Author

Released: v2.6.2 🎉

This has been released in v2.6.2!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CVE-2024-47764 vulnerability from the cookie package
2 participants