Skip to content

Commit 058cbfc

Browse files
committed
Merge branch 'refs/heads/staging/v7' into feature/lit-3796-js-sdk-research-to-use-zod
# Conflicts: # packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts # packages/types/src/lib/ILitNodeClient.ts # packages/types/src/lib/interfaces.ts
2 parents fcb83c3 + c78f4b8 commit 058cbfc

File tree

71 files changed

+616
-584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+616
-584
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,34 @@ jobs:
106106
run: docker stop shiva && docker rm shiva
107107
- name: Post Pull Shiva Image
108108
if: steps.shiva-pull.outputs.exit_code == 0
109-
run: docker rmi ghcr.io/lit-protocol/shiva
109+
run: docker rmi ghcr.io/lit-protocol/shiva
110+
ping-lit-configuration-guides:
111+
runs-on: ubuntu-latest
112+
# needs: [unit-tests, integration-tests] # Make sure this job runs after others complete
113+
steps:
114+
- name: Get PR labels
115+
id: pr-labels
116+
uses: actions/github-script@v6
117+
if: github.event_name == 'pull_request'
118+
with:
119+
script: |
120+
const labels = context.payload.pull_request.labels
121+
.map(label => label.name)
122+
.filter(name => name.startsWith('tag:'))
123+
.map(name => name.split(':')[1]);
124+
if (labels.length > 0) {
125+
core.setOutput('tag', labels[0]);
126+
} else {
127+
core.setOutput('skip', 'true');
128+
}
129+
- name: Trigger dependencies bot in lit-configuration-guides
130+
if: steps.pr-labels.outputs.skip != 'true'
131+
run: |
132+
TAG="${{ steps.pr-labels.outputs.tag }}"
133+
curl -X POST \
134+
-H "Accept: application/vnd.github.everest-preview+json" \
135+
-H "Authorization: token ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}" \
136+
https://api.github.com/repos/LIT-Protocol/lit-configuration-guides/dispatches \
137+
-d "{\"event_type\":\"dependency_update\", \"client_payload\": {\"labels\": [\"$TAG\"]}}"
138+
env:
139+
GH_PAT_LIT_CONFIGURATION_GUIDES_REPO: ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": true,
44
"useWorkspaces": true,
5-
"version": "6.10.0"
5+
"version": "7.0.0-alpha.8"
66
}

packages/access-control-conditions/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@
2121
"tags": [
2222
"universal"
2323
],
24-
"version": "6.10.0"
24+
"version": "7.0.0-alpha.8",
25+
"main": "./dist/src/index.js",
26+
"typings": "./dist/src/index.d.ts"
2527
}

packages/access-control-conditions/src/lib/validator.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ describe('validator.ts', () => {
314314
}
315315

316316
expect(error).toBeDefined();
317-
expect(error!.errorKind).toBe(LIT_ERROR.INVALID_PARAM_TYPE.kind);
318-
expect(error!.errorCode).toBe(LIT_ERROR.INVALID_PARAM_TYPE.name);
317+
expect(error!.errorKind).toBe(LIT_ERROR['INVALID_PARAM_TYPE'].kind);
318+
expect(error!.errorCode).toBe(LIT_ERROR['INVALID_PARAM_TYPE'].name);
319319
});
320320

321321
it('should throw when schema has invalid fields', async () => {
@@ -348,8 +348,8 @@ describe('validator.ts', () => {
348348
}
349349

350350
expect(error).toBeDefined();
351-
expect(error!.errorKind).toBe(LIT_ERROR.INVALID_PARAM_TYPE.kind);
352-
expect(error!.errorCode).toBe(LIT_ERROR.INVALID_PARAM_TYPE.name);
351+
expect(error!.errorKind).toBe(LIT_ERROR['INVALID_PARAM_TYPE'].kind);
352+
expect(error!.errorCode).toBe(LIT_ERROR['INVALID_PARAM_TYPE'].name);
353353
});
354354

355355
it('should throw when schema of a nested ACC does not validate', async () => {
@@ -407,7 +407,7 @@ describe('validator.ts', () => {
407407
}
408408

409409
expect(error).toBeDefined();
410-
expect(error!.errorKind).toBe(LIT_ERROR.INVALID_PARAM_TYPE.kind);
411-
expect(error!.errorCode).toBe(LIT_ERROR.INVALID_PARAM_TYPE.name);
410+
expect(error!.errorKind).toBe(LIT_ERROR['INVALID_PARAM_TYPE'].kind);
411+
expect(error!.errorCode).toBe(LIT_ERROR['INVALID_PARAM_TYPE'].name);
412412
});
413413
});

packages/auth-browser/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@
3030
"tags": [
3131
"browser"
3232
],
33-
"version": "6.10.0"
33+
"version": "7.0.0-alpha.8",
34+
"main": "./dist/src/index.js",
35+
"typings": "./dist/src/index.d.ts"
3436
}

packages/auth-helpers/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
"crypto": false,
2626
"stream": false
2727
},
28-
"version": "6.10.0"
28+
"version": "7.0.0-alpha.8",
29+
"main": "./dist/src/index.js",
30+
"typings": "./dist/src/index.d.ts"
2931
}

packages/constants/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@
2020
"tags": [
2121
"universal"
2222
],
23-
"version": "6.10.0"
23+
"version": "7.0.0-alpha.8",
24+
"main": "./dist/src/index.js",
25+
"typings": "./dist/src/index.d.ts"
2426
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '6.8.1';
1+
export const version = '7.0.0-alpha.8';

packages/contracts-sdk/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
"tags": [
2626
"universal"
2727
],
28-
"version": "6.10.0"
28+
"version": "7.0.0-alpha.8",
29+
"main": "./dist/src/index.js",
30+
"typings": "./dist/src/index.d.ts"
2931
}

packages/core/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/core",
3-
"version": "6.10.0",
3+
"version": "7.0.0-alpha.8",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",
@@ -24,5 +24,7 @@
2424
},
2525
"tags": [
2626
"universal"
27-
]
27+
],
28+
"main": "./dist/src/index.js",
29+
"typings": "./dist/src/index.d.ts"
2830
}

0 commit comments

Comments
 (0)