Skip to content

Commit 89d5500

Browse files
committed
node-addon-api 8.9.0
8.0 drops support for 16.x, which we don't support either 8.2 adds nogc support which we may want to use soon: #2436. Basic finalizers (we don't use them yet) ensure we can't call non-gc apis and crash.
1 parent 778f723 commit 89d5500

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

‎binding.gyp‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858
{
5959
'target_name': 'canvas',
6060
'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")"],
61-
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NODE_ADDON_API_ENABLE_MAYBE' ],
61+
'defines': [
62+
'NAPI_DISABLE_CPP_EXCEPTIONS',
63+
'NODE_ADDON_API_ENABLE_MAYBE',
64+
'NODE_ADDON_API_REQUIRE_BASIC_FINALIZERS',
65+
],
6266
'sources': [
6367
'src/bmp/BMPParser.cc',
6468
'src/Canvas.cc',

‎package-lock.json‎

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"util/"
4646
],
4747
"dependencies": {
48-
"node-addon-api": "^7.0.0",
48+
"node-addon-api": "^8.9.0",
4949
"prebuild-install": "^7.1.3"
5050
},
5151
"devDependencies": {

0 commit comments

Comments
 (0)