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: use createRequestId() instead of crypto.randomUUID() #2113

Merged
merged 2 commits into from Mar 27, 2024

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Mar 27, 2024

Changes

MSW no longer relies on UUID for request IDs (non-public-facing). Previously, Interceptors used UUID while the browser code in MSW used Math.random(). Now, everything uses Math.random().

@kettanaito kettanaito changed the title fix: update @mswjs/interceptors to 0.26.14 fix: rely on createRequestId() instead of crypto.randomUUID() Mar 27, 2024
@kettanaito kettanaito changed the title fix: rely on createRequestId() instead of crypto.randomUUID() fix: use createRequestId() instead of crypto.randomUUID() Mar 27, 2024
@kettanaito kettanaito merged commit 8f2be77 into main Mar 27, 2024
12 checks passed
@kettanaito kettanaito deleted the fix/2111-crypto-is-not-defined branch March 27, 2024 16:08
@kettanaito
Copy link
Member Author

Released: v2.2.13 🎉

This has been released in v2.2.13!

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: crypto.randomUUID is not a function with msw 2.2.12
1 participant