Skip to content

Commit 0144a16

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

14 files changed

Lines changed: 574 additions & 272 deletions

.github/workflows/builds.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ 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: [windows-2019, macos-13, macos-15, ubuntu-latest]
17+
node: [22, 24]
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v4
2121
with:
22-
python-version: '3.11'
22+
python-version: "3.11"
2323
- uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node }}
@@ -33,12 +33,12 @@ jobs:
3333
- uses: actions/upload-artifact@v4
3434
with:
3535
name: ${{ matrix.os }}-${{ matrix.node }}-binary
36-
path: 'prebuilds/**/*.tar.gz'
36+
path: "prebuilds/**/*.tar.gz"
3737
alpine:
38-
runs-on: ubuntu-20.04
38+
runs-on: ubuntu-latest
3939
strategy:
4040
matrix:
41-
node: [18, 20, 21, 22]
41+
node: [22, 24]
4242
fail-fast: true
4343
container:
4444
image: node:${{ matrix.node }}-alpine
@@ -56,16 +56,16 @@ jobs:
5656
- uses: actions/upload-artifact@v4
5757
with:
5858
name: alpine-${{ matrix.node }}-binary
59-
path: 'prebuilds/**/*.tar.gz'
59+
path: "prebuilds/**/*.tar.gz"
6060
deploy:
61-
runs-on: ubuntu-20.04
61+
runs-on: ubuntu-latest
6262
needs: [alpine, build]
6363
if: startsWith(github.ref, 'refs/tags/v')
6464
steps:
6565
- uses: actions/checkout@v4
6666
- uses: actions/setup-node@v4
6767
with:
68-
node-version: 20
68+
node-version: 24
6969
- uses: actions/download-artifact@v4
7070
with:
7171
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)