Skip to content

Commit 74df770

Browse files
committed
Wrapper, JS: add support for node 22 back, since it seems to work, fix it by specifying a flag, to disable a gcc-14 warning
1 parent 2e23f81 commit 74df770

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

binding.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"-fexceptions",
1515
"-frtti",
1616
"-Wno-cast-function-type", # since nan.h -> node.h has some warnings regarding that
17+
"-Wno-template-id-cdtor", # since nan.h -> node.h has some warnings regarding that
1718
"<!@(pkg-config oopetris-recordings --cflags-only-other)",
1819
],
1920
"conditions": [

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"scripts": {
1818
"install": "node-gyp-build",
1919
"build": "npm run build:gyp && npm run compile",
20-
"build:gyp": "prebuildify -t 18.20.3 -t 19.9.0 -t 20.13.1 -t 21.7.3 --strip",
21-
"build:debug": "prebuildify -t 18.20.3 -t 19.9.0 -t 20.13.1 -t 21.7.3 --debug",
20+
"build:gyp": "prebuildify -t 18.20.3 -t 19.9.0 -t 20.13.1 -t 21.7.3 -t 22.2.0 --strip",
21+
"build:debug": "prebuildify -t 18.20.3 -t 19.9.0 -t 20.13.1 -t 21.7.3 -t 22.2.0 --debug",
2222
"compile": "npm run build:tsc",
2323
"build:tsc": "tsc",
2424
"test": "npx jest",
@@ -36,7 +36,7 @@
3636
},
3737
"license": "MIT",
3838
"engines": {
39-
"node": "^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 "
39+
"node": "^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0"
4040
},
4141
"os": [
4242
"darwin",

0 commit comments

Comments
 (0)