Skip to content

Commit 6209bc5

Browse files
committed
feat: Use threads for jws verification
Exposes necessary functionality to use threads for jws verification.
1 parent e4b0bbc commit 6209bc5

10 files changed

Lines changed: 410 additions & 194 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup node
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 18
23+
node-version: 20
2424
cache: 'pnpm'
2525

2626
- name: Install dependencies and build

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
node: ['16.x', '18.x', '20.x']
12+
node: ['20.x']
1313
os: [ubuntu-latest, macOS-latest]
1414

1515
steps:
@@ -24,7 +24,7 @@ jobs:
2424
- name: Use Node ${{ matrix.node }}
2525
uses: actions/setup-node@v3
2626
with:
27-
node-version: ${{ matrix.node-version }}
27+
node-version: ${{ matrix.node }}
2828
cache: 'pnpm'
2929

3030
- name: Install dependencies and build

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup node
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 18
23+
node-version: 20
2424
cache: 'pnpm'
2525

2626
- name: Install dependencies and build

packages/cacao/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
},
5353
"devDependencies": {
5454
"@types/luxon": "^3.3.0",
55-
"@types/node": "^20.2.3",
55+
"@types/node": "^20.8.0",
5656
"luxon": "^3.3.0"
5757
}
5858
}

packages/codecs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dist"
1414
],
1515
"engines": {
16-
"node": ">=14.14"
16+
"node": ">=20.8"
1717
},
1818
"sideEffects": false,
1919
"scripts": {
@@ -45,7 +45,7 @@
4545
},
4646
"homepage": "https://github.com/ceramicnetwork/js-did#readme",
4747
"dependencies": {
48-
"codeco": "^1.1.0",
48+
"codeco": "^1.2.0",
4949
"multiformats": "^11.0.1",
5050
"uint8arrays": "^4.0.3"
5151
},

packages/did-session/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export class DIDSession {
287287
*/
288288
static async hasSessionFor(account: AccountId, resources: Array<string>): Promise<boolean> {
289289
const store = await SessionStore.create()
290-
const { cacao } = (await store.get(account)) || {} as { cacao: Cacao }
290+
const { cacao } = (await store.get(account)) || ({} as { cacao: Cacao })
291291
return cacao && cacaoContainsResources(cacao, resources)
292292
}
293293

packages/did-session/src/sessionStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class SessionStore {
1515

1616
static async create(): Promise<SessionStore> {
1717
if (typeof globalThis.indexedDB === 'undefined') {
18-
throw new Error('SessionStore is only supported in the browser')
18+
throw new Error('SessionStore is only supported in the browser')
1919
}
2020
const request = indexedDB.open('did-session', 1)
2121
request.onupgradeneeded = (event: IDBVersionChangeEvent) => {

0 commit comments

Comments
 (0)