Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

rework node compatibility message #1163

Open
tjjfvi opened this issue Jul 11, 2023 · 0 comments
Open

rework node compatibility message #1163

tjjfvi opened this issue Jul 11, 2023 · 0 comments
Assignees
Labels
documentation Documentation changes queued task

Comments

@tjjfvi
Copy link
Contributor

tjjfvi commented Jul 11, 2023

See #1162

Should be changed to:

Note: The minimum supported Node version is 20.3.1. We prioritize browser support, and thus we require the Web Crypto API to be accessible from globalThis.crypto. Node versions 18 and below only expose this api from require("node:crypto").webcrypto.

If you need to use Capi with a lower version of Node, you can shim globalThis.crypto:

globalThis.crypto = require("node:crypto").webcrypto

Should be updated in both the README and docs.capi.dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Documentation changes queued task
Projects
Status: No status
Development

No branches or pull requests

3 participants