Skip to content

Conversation

@kettanaito
Copy link
Member

@kettanaito kettanaito commented Oct 8, 2025

Changes

  • Drops dependency on @bundled-es-modules/cookie.
  • Drops @types/cookie.
  • Uses the cookie package directly so we could get security fixes faster.
  • Adds a shim to CJS-only cookie could run in ESM environments (e.g. browser).

Issues

@kettanaito
Copy link
Member Author

This shouldn't break any consumers. We've got both CJS and ESM module tests passing in Node.js/browser. If anything breaks, we shall treat that as a bug and use that as an opportunity to improve our module compatibility tests.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 8, 2025

Open in StackBlitz

npm i https://pkg.pr.new/msw@2606

commit: f613547

@kettanaito kettanaito merged commit 29d0b53 into main Oct 8, 2025
22 checks passed
@kettanaito kettanaito deleted the fix/delete-types-cookies branch October 8, 2025 14:48
@kettanaito
Copy link
Member Author

Released: v2.11.4 🎉

This has been released in v2.11.4.

Get these changes by running the following command:

npm i msw@latest

Predictable release automation by Release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@types/cookie is not needed and deprecated

2 participants