File tree Expand file tree Collapse file tree 7 files changed +32
-7
lines changed
versioned_docs/version-2.0/sdk/explanation Expand file tree Collapse file tree 7 files changed +32
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ Ensure you have the following requirements in place:
2323
2424Install 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
2732yarn 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
4055You also need to install the following lit packages whose functions are used in the example below:
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
2022Get started with ** Lit JS SDK V2** by installing the package best suited for your environment.
You can’t perform that action at this time.
0 commit comments