Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit cd20a84

Browse files
Update dependencies to address CVE-2023-45857 (#689)
A vulnerable dependency was used by the CouchDB wallet implementation. NOTE: The updated dependency version requires a Node 14 or later. Therefore Node 10 and 12 are no longer supported. Signed-off-by: Mark S. Lewis <[email protected]>
1 parent 53b41ae commit cd20a84

File tree

20 files changed

+41
-44
lines changed

20 files changed

+41
-44
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
node-version: [ 10, 12, 14, 16, 18 ]
26+
node-version:
27+
- 14
28+
- 16
29+
- 18
30+
- 20
2731

2832
steps:
2933
- uses: actions/checkout@v3
@@ -33,10 +37,6 @@ jobs:
3337
uses: actions/setup-node@v3
3438
with:
3539
node-version: ${{ matrix.node-version }}
36-
- name: Update npm
37-
run: |
38-
npm update --global npm
39-
npm --version
4040
- name: Install SoftHSM
4141
run: |
4242
sudo apt-get install softhsm2

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following tables show versions of Fabric, Node and other dependencies that a
3737
| | Tested | Supported |
3838
| --- | ------ | --------- |
3939
| **Fabric** | 2.2 | 2.2 |
40-
| **Node** | 10, 12, 14, 16, 18 | 10 LTS, 12 LTS, 14 LTS, 16 LTS, 18 LTS |
40+
| **Node** | 14, 16, 18, 20 | 14 LTS, 16 LTS, 18 LTS, 20 LTS |
4141
| **Platform** | Ubuntu 22.04 | |
4242

4343

fabric-ca-client/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

fabric-common/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

fabric-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"callsite": "^1.0.0",
2828
"elliptic": "^6.5.4",
2929
"fabric-protos": "file:../fabric-protos",
30-
"js-sha3": "^0.8.0",
30+
"js-sha3": "^0.9.2",
3131
"jsrsasign": "^10.5.25",
3232
"long": "^5.2.3",
3333
"nconf": "^0.12.0",

fabric-common/types/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@tsconfig/node10/tsconfig.json",
3+
"extends": "@tsconfig/node14/tsconfig.json",
44
"compilerOptions": {
55
"preserveConstEnums": true,
66
"sourceMap": true,
77
"declaration": true,
88
"declarationMap": true,
9-
"strict": true,
109
"noUnusedLocals": true,
1110
"noImplicitReturns": true,
12-
"forceConsistentCasingInFileNames": true,
1311
"baseUrl": ".",
1412
"paths": {
1513
"*": [

fabric-network/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

fabric-network/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"test": "nyc mocha --recursive -t 10000"
2121
},
2222
"engines": {
23-
"node": ">=10.13.0"
23+
"node": ">=14"
2424
},
2525
"types": "./types/index.d.ts",
2626
"dependencies": {
2727
"fabric-common": "file:../fabric-common",
2828
"fabric-protos": "file:../fabric-protos",
2929
"long": "^5.2.3",
30-
"nano": "^9.0.5"
30+
"nano": "^10.1.2"
3131
},
3232
"nyc": {
3333
"exclude": [

fabric-network/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@tsconfig/node10/tsconfig.json",
3+
"extends": "@tsconfig/node14/tsconfig.json",
44
"compilerOptions": {
55
"declaration": true,
66
"declarationMap": true,
77
"outDir": "./lib",
88
"rootDir": "./src",
99
"sourceMap": true,
10-
"strict": true,
1110
"noUnusedLocals": true,
12-
"noImplicitReturns": true,
13-
"forceConsistentCasingInFileNames": true
11+
"noImplicitReturns": true
1412
},
1513
"include": [
1614
"src/"

0 commit comments

Comments
 (0)