Skip to content

Commit 3d9def2

Browse files
committed
Merge branch 'quentin/node22' into 'master'
Quentin/node22 See merge request TankerHQ/sdk-js!1039
2 parents 73c8473 + 1c1c40f commit 3d9def2

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- Android6Chrome
2222
steps:
2323
- uses: actions/checkout@v4
24-
- uses: actions/setup-node@v3
24+
- uses: actions/setup-node@v4
2525
with:
26-
node-version: "18"
26+
node-version: "22"
2727
- name: install packages
2828
run: npm install
2929
- name: Tests on ${{ matrix.browser }}
@@ -58,14 +58,14 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- uses: actions/checkout@v4
61-
- uses: actions/setup-node@v3
61+
- uses: actions/setup-node@v4
6262
with:
63-
node-version: "18"
63+
node-version: "22"
6464
- name: install packages
6565
run: npm install
6666
- name: build TypeScript
6767
run: npm run build
68-
- name: Tests on Node 18
68+
- name: Tests on Node 22
6969
run: npm run coverage
7070
env:
7171
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
@@ -89,4 +89,4 @@ jobs:
8989
TANKER_TRUSTCHAIND_URL: ${{ secrets.TANKER_TRUSTCHAIND_URL }}
9090
TANKER_VERIFICATION_API_TEST_TOKEN: ${{ secrets.TANKER_VERIFICATION_API_TEST_TOKEN }}
9191
- name: Upload coverage to Codecov
92-
uses: codecov/codecov-action@v3
92+
uses: codecov/codecov-action@v5

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ check/linux/node:
8181
- !reference [.rules/push-master-or-feat, rules]
8282
- !reference [.rules/nightly, rules]
8383
variables:
84-
NODE_VERSION: 18
84+
NODE_VERSION: 22
8585

8686
check/linux/node/20:
8787
extends:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ It is available in multiple languages. This repository only contains the Javascr
9292
The Tanker JavaScript SDKs support the following platforms:
9393

9494
* Chrome, Firefox, Safari, and Microsoft Edge
95-
* Node.js 18+
95+
* Node.js 20+
9696

9797
The Tanker JavaScript SDKs are constantly tested with all of the supported browsers via unit and functional tests.
9898

config/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"module": "CommonJS",
55
"verbatimModuleSyntax": false,
6-
// Recommended values for Node 18: https://github.com/tsconfig/bases/blob/main/bases/node18.json
6+
// Recommended values for Node 20: https://github.com/tsconfig/bases/blob/main/bases/node20.json
77
"lib": ["ES2023"],
88
},
99
"exclude": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"browserslist": [
100100
"last 2 versions",
101101
"Firefox ESR",
102-
"node >= 18",
102+
"node >= 20",
103103
"not IE 11",
104104
"not op_mini all",
105105
"not dead"

packages/client-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"@tanker/datastore-pouchdb-memory": "0.0.1"
3737
},
3838
"engines": {
39-
"node": ">=18"
39+
"node": ">=20"
4040
}
4141
}

packages/test-utils/src/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const isBrowser = () => typeof navigator !== 'undefined';
1+
const isBrowser = () => typeof window !== 'undefined';
22

33
export { isBrowser };

0 commit comments

Comments
 (0)