Skip to content

Commit 81fd8a5

Browse files
authored
feat: change schemaIds -> intentIds for Frequency 2.x (#455)
This PR implements the changes necessary for SIWF to work properly with Frequency 2.x, notably: * In the `AddProvider` payload, change the name of the field `schemaIds` -> `intentIds` * Update Secp256k1 signatures in tests, docs, etc * Update docs Closes #457
1 parent 7fa4fb9 commit 81fd8a5

42 files changed

Lines changed: 5561 additions & 17777 deletions

Some content is hidden

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

.github/workflows/common/setup-node-and-npm/action.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,15 @@ inputs:
1212
default: 'npm'
1313
cache-dependency-path:
1414
description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.'
15-
required: true
15+
required: false
1616

1717
runs:
1818
using: "composite"
1919
steps:
20-
- name: Set up Node.js
20+
- name: Set up Node.js ${{ inputs.node-version }}
2121
# Use whatever version of setup-node you actually want here
2222
uses: actions/setup-node@v6
2323
with:
2424
node-version: ${{ inputs.node-version }}
2525
cache: ${{ inputs.cache }}
2626
cache-dependency-path: ${{ inputs.cache-dependency-path }}
27-
28-
- name: Update npm to at least 11.5.1
29-
shell: bash
30-
run: |
31-
npm install -g npm@11
32-
echo "npm version: $(npm --version)"

.github/workflows/deploy-npm-hash.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- name: Install dependencies
2222
working-directory: libraries/js
23-
run: npm i
23+
run: npm ci
2424

2525
- name: build
2626
working-directory: libraries/js
@@ -33,10 +33,12 @@ jobs:
3333
shell: bash
3434
run: npm version --new-version "v0.0.0-${FULL_SHA:0:6}" --no-git-tag-version
3535

36-
# Required for Granular Access Tokens
37-
- name: NPM Access Config
38-
run: npm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_AUTH_TOKEN}}
36+
# Until we upgrade to Node 24.x across the board, we need npm >= 11.5 to publish using GitHub OAuth
37+
- name: Install npm 11.x
38+
working-directory: libraries/js/dist
39+
shell: bash
40+
run: npm i -D npm@11.7
3941

4042
- name: Publish 0.0.0-<SHA:6> on NPM
4143
working-directory: libraries/js/dist
42-
run: npm publish --tag next --verbose --access public
44+
run: npx npm@11.7 publish --tag next --verbose --access public

.github/workflows/deploy-pages-v2.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ jobs:
2323
with:
2424
token: ${{secrets.GITHUB_TOKEN}}
2525

26-
- name: Generator Tool - Install Node.js 22.x
26+
- name: Generator Tool - Install Node.js
2727
uses: ./.github/workflows/common/setup-node-and-npm
2828
with:
29-
cache: "npm" # Enabling npm caching
3029
cache-dependency-path: |
3130
libraries/js/package-lock.json
3231
tools/signed-request-generator/package-lock.json
@@ -56,7 +55,7 @@ jobs:
5655

5756
- name: Build with mdBook
5857
working-directory: docs
59-
run: npm i && mdbook build && ls book
58+
run: npm ci && mdbook build && ls book
6059

6160
- name: Structure v2 (Docs + Assets)
6261
run: |

.github/workflows/release-v1.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,14 @@ jobs:
6161
- name: NPM Access Config
6262
run: npm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_AUTH_TOKEN}}
6363

64+
# Until we upgrade to Node 24.x across the board, we need npm >= 11.5 to publish using GitHub OAuth
65+
- name: Install npm 11.x
66+
working-directory: packages/siwf/dist
67+
shell: bash
68+
run: npm i -D npm@11.7
69+
6470
# This should NEVER publish to the "latest" tag as v1 is NEVER latest.
6571
- name: Release on NPM
6672
if: steps.is-full-release.outputs.is-full-release != 'true'
67-
run: npm publish --tag v1 --access public
73+
run: npx npm@11 publish --tag v1 --access public
6874
working-directory: packages/siwf/dist

.github/workflows/release-v2.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ jobs:
2424
publish-npm:
2525
name: Publish NPM Package
2626
runs-on: ubuntu-latest
27-
strategy:
28-
matrix:
29-
node-version: [20.x]
30-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
3127
steps:
3228
- name: Checkout
3329
uses: actions/checkout@v4
@@ -37,9 +33,6 @@ jobs:
3733
with:
3834
cache-dependency-path: libraries/js/package-lock.json
3935

40-
- name: Install npm version that supports OIDC auth
41-
run: npm install -g npm@11.5.1 # Use 'latest' or a specific version number
42-
4336
- name: Install dependencies
4437
working-directory: libraries/js
4538
run: npm ci
@@ -52,12 +45,18 @@ jobs:
5245
working-directory: libraries/js/dist
5346
run: npm version --new-version "${{env.NEW_RELEASE_TAG}}" --no-git-tag-version
5447

48+
# Until we upgrade to Node 24.x across the board, we need npm >= 11.5 to publish using GitHub OAuth
49+
- name: Install npm 11.x
50+
working-directory: libraries/js/dist
51+
shell: bash
52+
run: npm i -D npm@11.7
53+
5554
- name: Release on NPM @latest
5655
if: env.NPM_LATEST == 'true'
5756
working-directory: libraries/js/dist
58-
run: npm publish --tag latest --access public
57+
run: npx npm@11 publish --tag latest --access public
5958

6059
- name: Release on NPM without @latest
6160
if: env.NPM_LATEST != 'true'
6261
working-directory: libraries/js/dist
63-
run: npm publish --tag next --access public
62+
run: npx npm@11 publish --tag next --access public

.github/workflows/release-web-sdk.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v4
3030

31-
- name: Install Node.js ${{ matrix.node-version }}
31+
- name: Install Node.js
3232
uses: actions/setup-node@v4
3333
with:
3434
node-version: ${{ matrix.node-version }}
@@ -53,12 +53,18 @@ jobs:
5353
- name: NPM Access Config
5454
run: npm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_AUTH_TOKEN}}
5555

56+
# Until we upgrade to Node 24.x across the board, we need npm >= 11.5 to publish using GitHub OAuth
57+
- name: Install npm 11.x
58+
working-directory: libraries/sdk-web/dist
59+
shell: bash
60+
run: npm i -D npm@11.7
61+
5662
- name: Release on NPM @latest
5763
if: env.NPM_LATEST == 'true'
5864
working-directory: libraries/sdk-web/dist
59-
run: npm publish --tag latest --access public
65+
run: npx npm@11 publish --tag latest --access public
6066

6167
- name: Release on NPM without @latest
6268
if: env.NPM_LATEST != 'true'
6369
working-directory: libraries/sdk-web/dist
64-
run: npm publish --tag next --access public
70+
run: npx npm@11 publish --tag next --access public

.github/workflows/verify-pr-v2-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
token: ${{secrets.GITHUB_TOKEN}}
2020

21-
- name: Generator Tool - Install Node.js 22.x
21+
- name: Generator Tool - Install Node.js
2222
uses: ./.github/workflows/common/setup-node-and-npm
2323
with:
2424
cache-dependency-path: |
@@ -50,4 +50,4 @@ jobs:
5050

5151
- name: Build mdBook 📚
5252
working-directory: docs
53-
run: npm i && mdbook build && ls book
53+
run: npm ci && mdbook build && ls book

.github/workflows/verify-pr-v2-lib-js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build-lib-js:
1313
strategy:
1414
matrix:
15-
node-version: [20.x, 22.x]
15+
node-version: [22.x]
1616
runs-on: ubuntu-latest
1717

1818
steps:
@@ -22,6 +22,7 @@ jobs:
2222
- name: Setup Node and npm
2323
uses: ./.github/workflows/common/setup-node-and-npm
2424
with:
25+
node-version: ${{ matrix.node-version }}
2526
cache-dependency-path: |
2627
libraries/js/package-lock.json
2728
tools/mock-siwf/package-lock.json

.github/workflows/verify-pr-v2-tool-generator.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- name: Setup Node and npm
2525
uses: ./.github/workflows/common/setup-node-and-npm
2626
with:
27+
node-version: ${{ matrix.node-version }}
2728
cache-dependency-path: |
2829
libraries/js/package-lock.json
2930
tools/signed-request-generator/package-lock.json

.github/workflows/verify-pr-v2-web-sdk.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build-lib-sdk-web:
1313
strategy:
1414
matrix:
15-
node-version: [20.x, 22.x]
15+
node-version: [22.x]
1616
runs-on: ubuntu-latest
1717
container:
1818
image: mcr.microsoft.com/playwright:v1.53.1-noble
@@ -24,6 +24,7 @@ jobs:
2424
- name: Setup Node and npm
2525
uses: ./.github/workflows/common/setup-node-and-npm
2626
with:
27+
node-version: ${{ matrix.node-version }}
2728
cache-dependency-path: |
2829
libraries/sdk-web/package-lock.json
2930

0 commit comments

Comments
 (0)