Skip to content

Commit c2777b5

Browse files
committed
feat: remove vanilla js instructions and their necessary global scope litnodeclient export
1 parent 4df408f commit c2777b5

File tree

16 files changed

+1
-319
lines changed

16 files changed

+1
-319
lines changed

packages/access-control-conditions/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This submodule provides functionalities for formatting and canonicalizing data,
77
```
88
yarn add @lit-protocol/access-control-conditions
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/access-control-conditions-vanilla/access-control-conditions.js"></script>
15-
<script>
16-
console.log(LitJsSdk_accessControlConditions);
17-
</script>
18-
```

packages/auth-browser/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ This submodule provides functionalities from various modules within the Lit SDK,
88
yarn add @lit-protocol/auth-browser
99
```
1010

11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/auth-browser-vanilla/auth-browser.js"></script>
15-
<script>
16-
console.log(LitJsSdk_authBrowser);
17-
</script>
18-
```
19-
2011
## Generate an authSig with long expiration
2112

2213
```

packages/auth-helpers/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This submodule manages permissions and capabilities related to accessing specifi
77
```
88
yarn add @lit-protocol/auth-helpers
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/auth-helpers-vanilla/auth-helpers.js"></script>
15-
<script>
16-
console.log(LitJsSdk_authHelpers);
17-
</script>
18-
```

packages/constants/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This submodule exports various modules, constants, interfaces, errors, utilities
77
```
88
yarn add @lit-protocol/constants
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/constants-vanilla/constants.js"></script>
15-
<script>
16-
console.log(LitJsSdk_constants);
17-
</script>
18-
```

packages/contracts-sdk/README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,8 @@ Demo: https://demo-contracts-sdk-react.vercel.app/
66

77
# Installation
88

9-
```js
10-
yarn add @lit-protocol/contracts-sdk
119
```
12-
13-
# Vanilla JS (UMD)
14-
15-
```html
16-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/contracts-sdk-vanilla/contracts-sdk.js"></script>
17-
<script>
18-
(async () => {
19-
const { LitContracts } = LitJsSdk_contractsSdk;
20-
21-
const litContracts = new LitContracts();
22-
await litContracts.connect();
23-
})();
24-
</script>
10+
yarn add @lit-protocol/contracts-sdk
2511
```
2612

2713
# Quick Start

packages/crypto/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ The crypto.ts file in the Lit SDK handles cryptographic operations, including th
77
```
88
yarn add @lit-protocol/crypto
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/crypto-vanilla/crypto.js"></script>
15-
<script>
16-
console.log(LitJsSdk_crypto);
17-
</script>
18-
```

packages/encryption/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This submodule provides encryption and decryption of contents (string, file, etc
77
```
88
yarn add @lit-protocol/encryption
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/encryption-vanilla/encryption.js"></script>
15-
<script>
16-
console.log(LitJsSdk_encryption);
17-
</script>
18-
```

packages/lit-node-client-nodejs/src/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
import 'cross-fetch/dist/node-polyfill.js';
22

3-
import * as _LitNodeClientNodeJs from './lib/lit-node-client-nodejs';
4-
// ==================== Environment ====================
5-
6-
declare global {
7-
// This `declare global` hackery _must_ use var to work.
8-
// eslint-disable-next-line no-var, @typescript-eslint/no-explicit-any
9-
var LitNodeClientNodeJs: any;
10-
}
11-
12-
const LitNodeClientNodeJs = _LitNodeClientNodeJs.LitNodeClientNodeJs;
13-
if (!globalThis.LitNodeClientNodeJs) {
14-
globalThis.LitNodeClientNodeJs = LitNodeClientNodeJs;
15-
}
16-
173
// ==================== Exports ====================
184
export * from './lib/lit-node-client-nodejs';
195

packages/lit-node-client/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This module is the main module of this monorepo. It sets a default authenticatio
77
```
88
yarn add @lit-protocol/lit-node-client
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/lit-node-client-vanilla/lit-node-client.js"></script>
15-
<script>
16-
const authSig = LitJsSdk_litNodeClient.checkAndSignAuthMessage({chain: 'ethereum'});
17-
</script>
18-
```

packages/lit-node-client/src/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
import * as _LitNodeClient from './lib/lit-node-client';
2-
3-
declare global {
4-
// This `var` is necessary for global hackery
5-
// eslint-disable-next-line no-var, @typescript-eslint/no-explicit-any
6-
var LitNodeClient: any;
7-
}
8-
9-
const LitNodeClient = _LitNodeClient.LitNodeClient;
10-
if (!globalThis.LitNodeClient) {
11-
globalThis.LitNodeClient = LitNodeClient;
12-
}
13-
141
// ==================== Exports ====================
15-
162
export * from './lib/lit-node-client';
173

184
export {

0 commit comments

Comments
 (0)