Skip to content

Commit b5c3649

Browse files
Remove support for Node 16 (#642)
Node 16 reached end of life on 2023-09-11, and is no longer a supported Node version. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent 18eeaec commit b5c3649

File tree

8 files changed

+26
-28
lines changed

8 files changed

+26
-28
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- uses: actions/checkout@v3
5555
- uses: actions/setup-node@v3
5656
with:
57-
node-version: 16
57+
node-version: 18
5858
registry-url: 'https://registry.npmjs.org'
5959
- name: Build
6060
run: make build-node

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v3
1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: 16
20+
node-version: 18
2121
registry-url: 'https://registry.npmjs.org'
2222
- name: Build
2323
run: make build-node

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ jobs:
105105
fail-fast: false
106106
matrix:
107107
node-version:
108-
- 16
109108
- 18
110109
- 20
111110
env:
@@ -126,7 +125,6 @@ jobs:
126125
fail-fast: false
127126
matrix:
128127
node-version:
129-
- 16
130128
- 18
131129
- 20
132130
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ See the [gateway.proto file](https://github.com/hyperledger/fabric-protos/blob/m
2121
This repository comprises three functionally equivalent client APIs, written in Go, Typescript, and Java. In order to
2222
build these components, the following need to be installed and available in the PATH:
2323
- [Go 1.20+](https://go.dev/)
24-
- [Node 16+](https://nodejs.org/)
24+
- [Node 18+](https://nodejs.org/)
2525
- [Java 8+](https://adoptium.net/)
2626
- [Docker](https://www.docker.com/)
2727
- [Make](https://www.gnu.org/software/make/)

node/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"engines": {
8-
"node": ">=16.13.0"
8+
"node": ">=18.12.0"
99
},
1010
"repository": {
1111
"type": "git",
@@ -42,21 +42,21 @@
4242
"pkcs11js": "^1.3.0"
4343
},
4444
"devDependencies": {
45-
"@cyclonedx/cyclonedx-npm": "^1.14.0",
46-
"@tsconfig/node16": "^16.1.1",
47-
"@types/elliptic": "^6.4.14",
48-
"@types/google-protobuf": "^3.15.6",
49-
"@types/jest": "^29.5.4",
50-
"@types/node": "^16.18.48",
51-
"@typescript-eslint/eslint-plugin": "^6.6.0",
52-
"@typescript-eslint/parser": "^6.6.0",
53-
"eslint": "^8.49.0",
54-
"eslint-plugin-jest": "^27.2.3",
45+
"@cyclonedx/cyclonedx-npm": "^1.14.1",
46+
"@tsconfig/node18": "^18.2.2",
47+
"@types/elliptic": "^6.4.16",
48+
"@types/google-protobuf": "^3.15.9",
49+
"@types/jest": "^29.5.6",
50+
"@types/node": "^18.18.6",
51+
"@typescript-eslint/eslint-plugin": "^6.8.0",
52+
"@typescript-eslint/parser": "^6.8.0",
53+
"eslint": "^8.51.0",
54+
"eslint-plugin-jest": "^27.4.2",
5555
"eslint-plugin-tsdoc": "^0.2.17",
56-
"jest": "^29.6.4",
56+
"jest": "^29.7.0",
5757
"npm-run-all": "^4.1.5",
5858
"ts-jest": "^29.1.1",
59-
"typedoc": "^0.25.1",
59+
"typedoc": "^0.25.2",
6060
"typescript": "~5.2.2"
6161
}
6262
}

node/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@tsconfig/node16/tsconfig.json",
3+
"extends": "@tsconfig/node18/tsconfig.json",
44
"compilerOptions": {
5-
"lib": ["es2021", "esnext.disposable"],
5+
"lib": ["es2023", "esnext.disposable"],
66
"declaration": true,
77
"declarationMap": true,
88
"sourceMap": true,

scenario/node/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Scenario test for Fabric Gateway",
55
"engines": {
6-
"node": ">=16.13.0"
6+
"node": ">=18.12.0"
77
},
88
"scripts": {
99
"build": "npm-run-all clean compile lint",
@@ -24,13 +24,13 @@
2424
},
2525
"devDependencies": {
2626
"@cucumber/cucumber": "^9.5.1",
27-
"@tsconfig/node16": "^16.1.1",
28-
"@types/node": "^16.18.48",
29-
"@typescript-eslint/eslint-plugin": "^6.6.0",
30-
"@typescript-eslint/parser": "^6.6.0",
27+
"@tsconfig/node18": "^18.2.2",
28+
"@types/node": "^18.18.6",
29+
"@typescript-eslint/eslint-plugin": "^6.8.0",
30+
"@typescript-eslint/parser": "^6.8.0",
3131
"cucumber-console-formatter": "^1.0.0",
32-
"eslint": "^8.49.0",
33-
"expect": "^29.6.4",
32+
"eslint": "^8.51.0",
33+
"expect": "^29.7.0",
3434
"npm-run-all": "^4.1.5",
3535
"typescript": "~5.2.2"
3636
}

scenario/node/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@tsconfig/node16/tsconfig.json",
3+
"extends": "@tsconfig/node18/tsconfig.json",
44
"compilerOptions": {
55
"declaration": false,
66
"sourceMap": true,

0 commit comments

Comments
 (0)