Skip to content

Commit 34f00f6

Browse files
committed
Bump to NAPI 9
1 parent 57c4a26 commit 34f00f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
3232
endif()
3333
endif()
3434

35-
add_definitions(-DNAPI_VERSION=8) # Keep in sync with binding-options.cjs
35+
add_definitions(-DNAPI_VERSION=9) # Keep in sync with binding-options.cjs
3636
add_definitions(-DNAPI_DISABLE_CPP_EXCEPTIONS)
3737

3838
set(SOURCES

binding-options.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
name: 'node_canbridge',
3-
napi_versions: [8], // Keep in sync with CMakeLists.txt
3+
napi_versions: [9], // Keep in sync with CMakeLists.txt
44
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"scripts": {
2626
"install": "pkg-prebuilds-verify binding-options.cjs || npm run build",
2727
"build": "node scripts/download-CanBridge.mjs && cmake-js compile && tsc",
28-
"prepublishOnly": "npm run build && pkg-prebuilds-copy --baseDir build/Release --source node_canbridge.node --name node_canbridge --napi_version=8",
28+
"prepublishOnly": "npm run build && pkg-prebuilds-copy --baseDir build/Release --source node_canbridge.node --name node_canbridge --napi_version=9",
2929
"pretest": "npm run build",
3030
"test": "echo running test && node --napi-modules test/test_binding.js"
3131
},

0 commit comments

Comments
 (0)