Skip to content

Commit 50370dd

Browse files
fix!: drop support for Node 4, 6, 8, 10 (#1764)
1 parent 8aad1dd commit 50370dd

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/test.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
matrix:
37-
node_version: ["4", "4.3.2", "6", "8", "10", "12"]
37+
node_version: ["12", "14", "16", "18"]
3838
steps:
3939
- uses: actions/checkout@v1
4040
- uses: actions/setup-node@v1
4141
with:
4242
node-version: ${{ matrix.node_version }}
43-
- name: 'Install the latest @types/node that works'
44-
if: ${{ matrix.node_version == '4' || matrix.node_version == '4.3.2' || matrix.node_version == '6' }}
45-
run: npm install --save --save-exact @types/[email protected]
4643
- name: "Install dependencies"
4744
run: npm install
4845
- name: "Test sources"

cli/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"type": "git",
88
"url": "https://github.com/protobufjs/protobuf.js.git"
99
},
10+
"engines": {
11+
"node": ">=12.0.0"
12+
},
1013
"license": "BSD-3-Clause",
1114
"main": "index.js",
1215
"types": "index.d.ts",

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"repository": "protobufjs/protobuf.js",
99
"bugs": "https://github.com/protobufjs/protobuf.js/issues",
1010
"homepage": "https://protobufjs.github.io/protobuf.js/",
11+
"engines": {
12+
"node": ">=12.0.0"
13+
},
1114
"keywords": [
1215
"protobuf",
1316
"protocol-buffers",

0 commit comments

Comments
 (0)