-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
WIP: feat: add compatibility with bun #1523
Conversation
…e binary using path resolve In Bun the `process.version` returns the Bun's version, instead to get the Node version we need to use `process.versions.node`, the same logic is used also here: https://github.com/oracle/node-oracledb/blob/8388891eb59a13403d607543b578f6e7aa876da8/package/install.js#L79 Signed-off-by: Nicola Rossi <nya1git@imap.cc>
Signed-off-by: Nicola Rossi <nya1git@imap.cc>
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. |
@nya1 this is still marked a WIP. Shall we merge it into our internal code repo and close this PR (which is our normal release process)? Or are we waiting for more updates from you? |
Hello, I've added the draft status on purpose, while working on this issue I discovered some missing napi implementation and bugs in Bun which I reported to the Bun's repository, at the moment there are three major napi implementation missing, I've created a checklist in the PR description (under "Bun issues") with links to Bun's issues to track what we need to have a working/minimum Bun compatibility and go on with the testing and changes. |
@nya1 we will wait for you to let us know when you are finished with this PR. |
|
This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not been updated for a month. |
Assuming there are no bugs (big assumption at the present state), good shot of this working @nya1 to upgrade: bun upgrade --canary |
Thank you for the update, I've encountered another possible bug while testing, I've created a new issue here: oven-sh/bun#1831 |
This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not been updated for a month. |
This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm keeping this open so it can be assessed by @nya1 when node-oracledb 6.0 has been released. |
@nya1 can you take a look at this PR with node-oracledb 6 and the new pure JS mode? |
This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not been updated for a month. |
Closes #1519
Changes
process.versions.node
(same logic is used also here), there is a fallback to the oldprocess.version
path.resolve
in current (node_modules) directoryBun issues
napi_create_external
napi_get_value_external
napi_make_callback