Skip to content

Commit 883b163

Browse files
authored
feat!: update node support matrix (only support node 16-20) (#750)
1 parent 0385cd3 commit 883b163

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Diff for: .github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
11+
node-version: [16.x, 18.x, 20.x]
1212

1313
steps:
1414
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 10
17-
- name: Use Node.js 18.x to build
17+
- name: Use Node.js 20.x to build
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: 18.x
20+
node-version: 20.x
2121
- run: npm install
2222
- run: npm run build
2323
- run: rm -rf node_modules
@@ -30,10 +30,10 @@ jobs:
3030
env:
3131
CI: true
3232
- run: npm run lint
33-
if: matrix.node-version == '18.x'
33+
if: matrix.node-version == '20.x'
3434
- run: npm run docs:diff
35-
if: matrix.node-version == '18.x'
35+
if: matrix.node-version == '20.x'
3636
- run: npm run test:node
37-
if: matrix.node-version >= '18.x'
37+
if: matrix.node-version >= '20.x'
3838
- run: npm run test:pack
39-
if: matrix.node-version >= '18.x'
39+
if: matrix.node-version >= '20.x'

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
1010
- **Complete** - Support for RFC4122 version 1, 3, 4, 5, and 7 UUIDs
1111
- **Cross-platform** - Support for ...
1212
- CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
13-
- NodeJS 12+ ([LTS releases](https://github.com/nodejs/Release))
13+
- NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release))
1414
- Chrome, Safari, Firefox, Edge browsers
1515
- Webpack and rollup.js module bundlers
1616
- [React Native / Expo](#react-native--expo)

Diff for: README_js.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
2424
- **Complete** - Support for RFC4122 version 1, 3, 4, 5, and 7 UUIDs
2525
- **Cross-platform** - Support for ...
2626
- CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
27-
- NodeJS 12+ ([LTS releases](https://github.com/nodejs/Release))
27+
- NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release))
2828
- Chrome, Safari, Firefox, Edge browsers
2929
- Webpack and rollup.js module bundlers
3030
- [React Native / Expo](#react-native--expo)

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"prettier:fix": "prettier --write .",
111111
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
112112
"md": "runmd --watch --output=README.md README_js.md",
113-
"docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
113+
"docs": "( node --version | grep -q 'v20' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
114114
"docs:diff": "npm run docs && git diff --quiet README.md",
115115
"build": "./scripts/build.sh",
116116
"prepack": "npm run build",

0 commit comments

Comments
 (0)