Skip to content

Commit bef4c83

Browse files
authored
feat: node 20 support, drop eol nodes (#193)
1 parent 60661b3 commit bef4c83

4 files changed

Lines changed: 1470 additions & 1332 deletions

File tree

.github/workflows/builds.yml

Lines changed: 15 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,65 +9,42 @@ on:
99
- main
1010

1111
jobs:
12-
build-old:
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
os: [windows-2019, macos-10.15, ubuntu-18.04]
17-
node: [14, 16, 17]
18-
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-node@master
21-
with:
22-
node-version: ${{ matrix.node }}
23-
- run: npm i -g pnpm@^7
24-
- run: pnpm i --frozen-lockfile
25-
env:
26-
npm_config_build_from_source: true
27-
- run: pnpm lint
28-
- run: pnpm tsd
29-
- run: pnpm test
30-
- run: pnpm package
31-
- uses: actions/upload-artifact@v2
32-
with:
33-
name: ${{ matrix.os }}-${{ matrix.node }}-binary
34-
path: 'build/**/*.tar.gz'
3512
build:
3613
runs-on: ${{ matrix.os }}
3714
strategy:
3815
matrix:
39-
os: [windows-2019, macos-10.15, ubuntu-20.04]
40-
node: [18, 19]
16+
os: [windows-2019, macos-10.15, ubuntu-22.04]
17+
node: [16, 18, 19, 20]
4118
steps:
42-
- uses: actions/checkout@v2
43-
- uses: actions/setup-node@master
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-node@v3
4421
with:
4522
node-version: ${{ matrix.node }}
46-
- run: npm i -g pnpm@^7
23+
- run: npm i -g pnpm@^8
4724
- run: pnpm i --frozen-lockfile
4825
env:
4926
npm_config_build_from_source: true
5027
- run: pnpm lint
5128
- run: pnpm tsd
5229
- run: pnpm test
5330
- run: pnpm package
54-
- uses: actions/upload-artifact@v2
31+
- uses: actions/upload-artifact@v3
5532
with:
5633
name: ${{ matrix.os }}-${{ matrix.node }}-binary
5734
path: 'build/**/*.tar.gz'
5835
alpine:
59-
runs-on: ubuntu-18.04
36+
runs-on: ubuntu-22.04
6037
strategy:
6138
matrix:
62-
node: [14, 16, 17, 18, 19]
39+
node: [16, 18, 19, 20]
6340
fail-fast: true
6441
container:
6542
image: node:${{ matrix.node }}-alpine
6643
steps:
67-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v3
6845
- run: |
6946
apk add --no-cache python3 make g++
70-
- run: npm i -g pnpm@^7
47+
- run: npm i -g pnpm@^8
7148
- run: pnpm i --frozen-lockfile
7249
env:
7350
npm_config_build_from_source: true
@@ -76,17 +53,17 @@ jobs:
7653
- run: pnpm build
7754
- run: pnpm test
7855
- run: pnpm package
79-
- uses: actions/upload-artifact@v2
56+
- uses: actions/upload-artifact@v3
8057
with:
8158
name: alpine-${{ matrix.node }}-binary
8259
path: 'build/**/*.tar.gz'
8360
deploy:
84-
runs-on: ubuntu-18.04
85-
needs: [alpine, build, build-old]
61+
runs-on: ubuntu-22.04
62+
needs: [alpine, build]
8663
if: startsWith(github.ref, 'refs/tags/v')
8764
steps:
88-
- uses: actions/checkout@v2
89-
- uses: actions/setup-node@master
65+
- uses: actions/checkout@v3
66+
- uses: actions/setup-node@v3
9067
with:
9168
node-version: 16
9269
- uses: actions/download-artifact@v2

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"Jeff Smick",
66
"Marco Rogers"
77
],
8-
"packageManager": "pnpm@7.14.0",
8+
"packageManager": "pnpm@8.3.1",
99
"binary": {
1010
"module_name": "xmljs",
1111
"module_path": "./build/Release/",
@@ -14,7 +14,7 @@
1414
"package_name": "{node_abi}-{platform}-{arch}-{libc}.tar.gz"
1515
},
1616
"description": "libxml bindings for v8 javascript engine",
17-
"version": "0.31.0",
17+
"version": "0.32.0",
1818
"scripts": {
1919
"build": "node-pre-gyp install --build-from-source",
2020
"install": "node-pre-gyp install --fallback-to-build --loglevel http",
@@ -33,7 +33,7 @@
3333
"main": "./index",
3434
"license": "MIT",
3535
"engines": {
36-
"node": ">=12"
36+
"node": ">=16"
3737
},
3838
"files": [
3939
"index.js",
@@ -50,13 +50,13 @@
5050
"nan": "~2.17.0"
5151
},
5252
"devDependencies": {
53-
"@types/node": "^18.11.3",
54-
"eslint": "^8.26.0",
53+
"@types/node": "^18.15.13",
54+
"eslint": "^8.38.0",
5555
"eslint-config-marudor": "^9.1.1",
56-
"jest": "^29.2.1",
57-
"jest-watch-typeahead": "^2.2.0",
58-
"prettier": "^2.7.1",
59-
"tsd": "^0.24.1",
60-
"typescript": "^4.8.4"
56+
"jest": "^29.5.0",
57+
"jest-watch-typeahead": "^2.2.2",
58+
"prettier": "^2.8.7",
59+
"tsd": "^0.28.1",
60+
"typescript": "^5.0.4"
6161
}
6262
}

0 commit comments

Comments
 (0)