Skip to content

Commit 2d309a2

Browse files
author
Bean
authored
ref: node version update (#285)
* ref: node version update * ref: add more info on node version
1 parent 2ef03b0 commit 2d309a2

File tree

7 files changed

+32
-7
lines changed

7 files changed

+32
-7
lines changed

docs/network/migration-guide.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ import * as LitJsSdk from "@lit-protocol/lit-node-client-nodejs";
282282
</Tabs>
283283

284284
:::note
285-
You should use **at least Node v16.16.0** because of the need for the **webcrypto** library.
285+
You should use **at least Node v19.9.0**
286+
- **crypto** support.
287+
- **webcrypto** library support if targeting `web`.
286288
:::
287289

288290
## Connection to the Lit Network

docs/sdk/access-control/quick-start.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Ensure you have the following requirements in place:
2323

2424
Install the `@lit-protocol/lit-node-client` package, which can be used in both browser and Node environments:
2525

26+
You should use **at least Node v19.9.0** for
27+
- **crypto** support.
28+
- **webcrypto** library support if targeting `web`.
29+
30+
2631
```jsx
2732
yarn add @lit-protocol/lit-node-client
2833
```
@@ -34,7 +39,17 @@ npm i @lit-protocol/lit-node-client
3439
```
3540

3641
:::note
37-
You should use **at least Node v16.16.0** because of the need for the **webcrypto** library.
42+
If you are using `NodeJS` you should install `@lit-protocol/lit-node-client-nodejs`
43+
:::
44+
45+
Use the **Lit JS SDK V4**:
46+
47+
```jsx
48+
import * as LitJsSdk from "@lit-protocol/lit-node-client";
49+
```
50+
51+
:::note
52+
You should use **at least Node vv19.9.0** because of the need for **crypto** support..
3853
:::
3954

4055
You also need to install the following lit packages whose functions are used in the example below:

docs/sdk/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import * as LitJsSdk from "@lit-protocol/lit-node-client-nodejs";
5858
</Tabs>
5959

6060
:::note
61-
You should use **at least Node v16.16.0** because of the need for the **webcrypto** library.
61+
You should use **at least Node v19.9.0** because of the need for **crypto** support.
6262
:::
6363

6464
## Connection to the Lit Network

docs/sdk/serverless-signing/quick-start.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ import * as LitJsSdk from "@lit-protocol/lit-node-client";
4141
```
4242

4343
:::note
44-
You should use **at least Node v16.16.0** because of the need for the **webcrypto** library.
44+
You should use **at least Node v19.9.0** for
45+
- **crypto** support.
46+
- **webcrypto** library support if targeting `web`.
4547
:::
4648

4749
### Client-Side Usage

docs/sdk/wallets/quick-start.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ import * as LitJsSdk from "@lit-protocol/lit-node-client";
4040
```
4141

4242
:::note
43-
You should use **at least Node v16.16.0** because of the need for the **webcrypto** library.
43+
You should use **at least Node v19.9.0**
44+
- **crypto** support.
45+
- **webcrypto** library support if targeting `web`.
4446
:::
4547

4648
### Client-Side Usage

versioned_docs/version-2.0/sdk/explanation/installation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ import * as LitJsSdk from "@lit-protocol/lit-node-client-nodejs";
6565
</Tabs>
6666

6767
:::note
68-
You should use **at least Node v16.16.0** because of the need for the **webcrypto** library.
68+
You should use **at least Node v19.9.0**
69+
- **crypto** support.
70+
- **webcrypto** library support if targeting `web`.
6971
:::
7072

7173
## Connection to the Lit Network

versioned_docs/version-2.0/sdk/explanation/migration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ The **Lit JS SDK V2** has been entirely revamped from the earlier `lit-js-sdk` a
1414
## Installing the V2 SDK
1515

1616
:::note
17-
You should use **at least Node v16.16.0** because of the need for the **webcrypto** library.
17+
You should use **at least Node v19.9.0**
18+
- **crypto** support.
19+
- **webcrypto** library support if targeting `web`.
1820
:::
1921

2022
Get started with **Lit JS SDK V2** by installing the package best suited for your environment.

0 commit comments

Comments
 (0)