Skip to content

Commit 0259421

Browse files
committed
chore: support node 24
1 parent 478d57d commit 0259421

File tree

14 files changed

+583
-272
lines changed

14 files changed

+583
-272
lines changed

.github/workflows/builds.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [windows-2019, macos-12, ubuntu-20.04]
17-
node: [18, 20, 21, 22]
16+
os:
17+
[
18+
windows-2025,
19+
windows-11-arm,
20+
macos-13,
21+
macos-15,
22+
ubuntu-22.04,
23+
ubuntu-22.04-arm,
24+
]
25+
node: [22, 24]
1826
steps:
1927
- uses: actions/checkout@v4
2028
- uses: actions/setup-python@v4
2129
with:
22-
python-version: '3.11'
30+
python-version: "3.11"
2331
- uses: actions/setup-node@v4
2432
with:
2533
node-version: ${{ matrix.node }}
@@ -33,12 +41,13 @@ jobs:
3341
- uses: actions/upload-artifact@v4
3442
with:
3543
name: ${{ matrix.os }}-${{ matrix.node }}-binary
36-
path: 'prebuilds/**/*.tar.gz'
44+
path: "prebuilds/**/*.tar.gz"
3745
alpine:
38-
runs-on: ubuntu-20.04
46+
runs-on: ${{ matrix.os }}
3947
strategy:
4048
matrix:
41-
node: [18, 20, 21, 22]
49+
os: [ubuntu-22.04]
50+
node: [22, 24]
4251
fail-fast: true
4352
container:
4453
image: node:${{ matrix.node }}-alpine
@@ -56,16 +65,16 @@ jobs:
5665
- uses: actions/upload-artifact@v4
5766
with:
5867
name: alpine-${{ matrix.node }}-binary
59-
path: 'prebuilds/**/*.tar.gz'
68+
path: "prebuilds/**/*.tar.gz"
6069
deploy:
61-
runs-on: ubuntu-20.04
70+
runs-on: ubuntu-latest
6271
needs: [alpine, build]
6372
if: startsWith(github.ref, 'refs/tags/v')
6473
steps:
6574
- uses: actions/checkout@v4
6675
- uses: actions/setup-node@v4
6776
with:
68-
node-version: 20
77+
node-version: 24
6978
- uses: actions/download-artifact@v4
7079
with:
7180
path: prebuilds

binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# node-gyp 2.x doesn't add this anymore
7171
# https://github.com/TooTallNate/node-gyp/pull/612
7272
"xcode_settings": {
73-
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
73+
"CLANG_CXX_LANGUAGE_STANDARD": "c++20",
7474
"OTHER_LDFLAGS": ["-undefined dynamic_lookup"],
7575
},
7676
},

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
],
88
"packageManager": "pnpm@8.10.2+sha256.487609e857f1c11780cc98dd0bfe4c8a8b11c7f23bc3a4493ac7d263d6fb6c8c",
99
"description": "libxml bindings for v8 javascript engine",
10-
"version": "0.35.0",
10+
"version": "0.37.0",
1111
"scripts": {
1212
"build": "node-gyp rebuild",
1313
"prebuild": "prebuild",
14-
"prebuild:macArm": "prebuild -t 108 -t 115 -t 120 -t 127",
14+
"prebuild:macArm": "prebuild -t 127 -t 137",
1515
"install": "prebuild-install || node-gyp rebuild",
1616
"test": "node --expose_gc ./node_modules/jest/bin/jest.js",
1717
"tsd": "tsd"
@@ -26,7 +26,7 @@
2626
"main": "./index",
2727
"license": "MIT",
2828
"engines": {
29-
"node": ">=18"
29+
"node": ">=22"
3030
},
3131
"files": [
3232
"index.js",
@@ -39,17 +39,17 @@
3939
],
4040
"dependencies": {
4141
"bindings": "~1.5.0",
42-
"nan": "~2.20.0",
43-
"node-gyp": "^10.2.0",
44-
"prebuild-install": "^7.1.2"
42+
"nan": "~2.22.2",
43+
"node-gyp": "^11.2.0",
44+
"prebuild-install": "^7.1.3"
4545
},
4646
"devDependencies": {
47-
"@types/node": "^20.14.12",
47+
"@types/node": "^22.15.29",
4848
"jest": "^29.7.0",
4949
"jest-watch-typeahead": "^2.2.2",
5050
"prebuild": "^13.0.1",
51-
"prettier": "^3.3.3",
52-
"tsd": "^0.31.1",
53-
"typescript": "^5.5.4"
51+
"prettier": "^3.5.3",
52+
"tsd": "^0.32.0",
53+
"typescript": "^5.8.3"
5454
}
5555
}

0 commit comments

Comments
 (0)