Closed kettanaito closed 3 months ago
crypto
globalcrypto
has become global since Node v21. In v18, it's still behind the experimental flag (although REPL loads it as global, which is somewhat confusing).
We will use a shim on the bundler level to inject crypto
from node:crypto
and to have the source code referencing the crypto
global everywhere. Once we migrate to v20+ as the minimal supported, we can drop the shim without touching the source.
This has been released in v0.26.12!
Make sure to always update to the latest version (npm i @mswjs/interceptors@latest
) to get the newest features and bug fixes.
Predictable release automation by @ossjs/release.