Skip to content

fix: use createRequestId() instead of crypto.randomUUID()#2113

Merged
kettanaito merged 2 commits into
mainfrom
fix/2111-crypto-is-not-defined
Mar 27, 2024
Merged

fix: use createRequestId() instead of crypto.randomUUID()#2113
kettanaito merged 2 commits into
mainfrom
fix/2111-crypto-is-not-defined

Conversation

@kettanaito

@kettanaito kettanaito commented Mar 27, 2024

Copy link
Copy Markdown
Member

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
@kettanaito kettanaito deleted the fix/2111-crypto-is-not-defined branch March 27, 2024 16:08
@kettanaito

Copy link
Copy Markdown
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