Skip to content

Commit

Permalink
chore(deps): update polkadot dependencies to v12 (#749)
Browse files Browse the repository at this point in the history
* chore: use v12 versions of polkadot/common libs
* chore: remove unused dependency websocket
* chore!: end support for node 14
* ci: use nvmrc for node version definition
* ci: test node v20 as well
---------

Co-authored-by: Raphael Flechtner <[email protected]>
  • Loading branch information
renovate[bot] and rflechtner authored Jun 1, 2023
1 parent b01adeb commit f623265
Show file tree
Hide file tree
Showing 22 changed files with 447 additions and 580 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/devpackpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npmpublish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build
Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build
Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/test-node-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'yarn'
- name: yarn install
run: yarn install --immutable
Expand Down Expand Up @@ -51,17 +51,17 @@ jobs:
needs: cache_imgs

steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Log out node version
run: node --version
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Log out node version
run: node --version

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand Down Expand Up @@ -97,15 +97,15 @@ jobs:
needs: build

steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: yarn bundle
run: yarn bundle
- name: upload bundle artifact
Expand All @@ -120,9 +120,6 @@ jobs:
needs: [cache_imgs, bundle_cache]

steps:
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- uses: actions/download-artifact@v3
with:
name: build
Expand All @@ -132,6 +129,9 @@ jobs:
with:
name: checked-nonmin-bundle
path: packages/sdk-js/dist
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: basename /packages/sdk-js/dist/
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests-polkadot-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -58,10 +58,10 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [16.x, 18.x]
required: ['required']
include:
- node-version: 16.x
- node-version: 20.x
required: 'optional'

continue-on-error: ${{ matrix.required == 'optional' }}
Expand Down
41 changes: 21 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'yarn'
- name: yarn install
run: yarn install --immutable
Expand All @@ -60,15 +60,15 @@ jobs:
needs: build

steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: lint
run: yarn lint
- name: check dependency duplication
Expand All @@ -80,10 +80,10 @@ jobs:

strategy:
matrix:
node-version: [14, 16]
node-version: [16, 18]
required: ['required']
include:
- node-version: 18
- node-version: 20
required: 'optional'

continue-on-error: ${{ matrix.required == 'optional' }}
Expand Down Expand Up @@ -124,17 +124,17 @@ jobs:
continue-on-error: ${{ matrix.required == 'optional' }}

steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Log out node version
run: node --version
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Log out node version
run: node --version

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand Down Expand Up @@ -170,15 +170,15 @@ jobs:
needs: build

steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: yarn bundle
run: yarn bundle
- name: upload bundle artifact
Expand All @@ -201,9 +201,6 @@ jobs:

continue-on-error: ${{ matrix.required == 'optional' }}
steps:
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- uses: actions/download-artifact@v3
with:
name: build
Expand All @@ -214,6 +211,10 @@ jobs:
name: checked-nonmin-bundle
path: packages/sdk-js/dist

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
lts/Gallium
2 changes: 1 addition & 1 deletion packages/asset-did/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:kiltprotocol/sdk-js",
"engines": {
"node": ">=14.0"
"node": ">=16.0"
},
"author": "",
"license": "BSD-4-Clause",
Expand Down
8 changes: 3 additions & 5 deletions packages/augment-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,19 @@
},
"repository": "github:kiltprotocol/sdk-js",
"engines": {
"node": ">=14.0"
"node": ">=16.0"
},
"author": "",
"license": "BSD-4-Clause",
"bugs": "https://github.com/KILTprotocol/sdk-js/issues",
"homepage": "https://github.com/KILTprotocol/sdk-js#readme",
"devDependencies": {
"@polkadot/api": "^10.0.0",
"@polkadot/typegen": "^10.0.0",
"@types/websocket": "^1.0.5",
"@polkadot/api": "^10.4.0",
"@polkadot/typegen": "^10.4.0",
"glob": "^7.1.1",
"rimraf": "^3.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.8.3",
"websocket": "^1.0.34",
"yargs": "^16.2.0"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/chain-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@
},
"repository": "github:kiltprotocol/sdk-js",
"engines": {
"node": ">=14.0"
"node": ">=16.0"
},
"author": "",
"license": "BSD-4-Clause",
"bugs": "https://github.com/KILTprotocol/sdk-js/issues",
"homepage": "https://github.com/KILTprotocol/sdk-js#readme",
"devDependencies": {
"@kiltprotocol/testing": "workspace:*",
"@polkadot/keyring": "^11.0.0",
"@polkadot/keyring": "^12.0.0",
"rimraf": "^3.0.2",
"typescript": "^4.8.3"
},
"dependencies": {
"@kiltprotocol/config": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api": "^10.0.0",
"@polkadot/types": "^10.0.0"
"@polkadot/api": "^10.4.0",
"@polkadot/types": "^10.4.0"
}
}
4 changes: 2 additions & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"repository": "github:kiltprotocol/sdk-js",
"engines": {
"node": ">=14.0"
"node": ">=16.0"
},
"author": "",
"license": "BSD-4-Clause",
Expand All @@ -38,7 +38,7 @@
"dependencies": {
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api": "^10.0.0",
"@polkadot/api": "^10.4.0",
"typescript-logging": "^1.0.0"
}
}
12 changes: 6 additions & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:kiltprotocol/sdk-js",
"engines": {
"node": ">=14.0"
"node": ">=16.0"
},
"author": "",
"license": "BSD-4-Clause",
Expand All @@ -45,11 +45,11 @@
"@kiltprotocol/type-definitions": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api": "^10.0.0",
"@polkadot/keyring": "^11.0.0",
"@polkadot/types": "^10.0.0",
"@polkadot/util": "^11.0.0",
"@polkadot/util-crypto": "^11.0.0",
"@polkadot/api": "^10.4.0",
"@polkadot/keyring": "^12.0.0",
"@polkadot/types": "^10.4.0",
"@polkadot/util": "^12.0.0",
"@polkadot/util-crypto": "^12.0.0",
"cbor-web": "^8.0.0"
}
}
14 changes: 7 additions & 7 deletions packages/did/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"repository": "github:kiltprotocol/sdk-js",
"engines": {
"node": ">=14.0"
"node": ">=16.0"
},
"author": "",
"license": "BSD-4-Clause",
Expand All @@ -40,12 +40,12 @@
"@kiltprotocol/config": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api": "^10.0.0",
"@polkadot/keyring": "^11.0.0",
"@polkadot/types": "^10.0.0",
"@polkadot/types-codec": "^10.0.0",
"@polkadot/util": "^11.0.0",
"@polkadot/util-crypto": "^11.0.0",
"@polkadot/api": "^10.4.0",
"@polkadot/keyring": "^12.0.0",
"@polkadot/types": "^10.4.0",
"@polkadot/types-codec": "^10.4.0",
"@polkadot/util": "^12.0.0",
"@polkadot/util-crypto": "^12.0.0",
"cbor-web": "^8.0.0"
}
}
Loading

0 comments on commit f623265

Please sign in to comment.