-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove NAPI_EXPERIMENTAL #381
Conversation
fae10b9
to
fae160a
Compare
Signed-off-by: acheronfail <acheronfail@gmail.com>
Hi @acheronfail , Thanks for the PR! You are correct that I am a little confused as to why
If you make those changes, redownload the dependencies, and then rerun the build, does that fix the issue? |
With this as the diff: diff --git a/package.json b/package.json
index 2a6374a..359f6d1 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,7 @@
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.5",
"async": "^3.0.1",
- "node-addon-api": "^3.0.2"
+ "node-addon-api": "^8.0.0"
},
"gypfile": true,
"devDependencies": {
@@ -57,10 +57,8 @@
"host": "https://github.com/markdirish/node-odbc/releases/download/v{version}",
"package_name": "{name}-v{version}-{platform}-{arch}-napi-v{napi_build_version}.tar.gz",
"napi_versions": [
- 3,
- 4,
- 5,
- 6
+ 8,
+ 9
]
}
}
I get this error:
It's a slightly different type error, but still to do with (Additionally, if I then proceed to remove |
Great work, @acheronfail ! Any ETA on when this will be merged? |
As discussed in #380 , I believe the
NAPI_EXPERIMENTAL
flag is causing build issues on supported node versions for this package.I've looked through the git blame, and it appears that
NAPI_EXPERIMENTAL
was added a number of years ago forBigInt
support.BigInt
support was added to node in version 10, and this package says it supports 12, 14, 16 and 18.So I think it's safe to remove
NAPI_EXPERIMENTAL
which will fix some failures on node version18.20+
and other things.Fixes #380