-
-
Notifications
You must be signed in to change notification settings - Fork 525
Support Node 23 #979
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
Support Node 23 #979
Conversation
|
Turns out it is not that easy. First, a couple tests need updating. Second, the interceptors are not correctly handled in that they do require return values or will require them soon. I have some workarounds in mind, but implementing them will take a bit of effort. Addons will require a tiny bit of rewriting if using interceptors, but that is par for the course. |
|
Some tests are still failing related to the Holder change and interceptors. It might be that the tests simply need updating due to the functionality used not being allowed anymore. I do not have time to figure out what the deal is, so this will be stuck until someone clears it up. |
|
I believe I fixed the tests. Let us wait and see. |
|
@bnoordhuis Any chance you remember what the deal with |
|
+1 this. Ended up needing to manually patch to use Electron v33. |
|
It looks like this PR is stalled, I am using this workaround for my Electron 33 builds: #978 (comment). Works with any version of Electron supported by nan v2.22.0. |
|
Any updates on this PR's status? |
|
Can the commitment Node.js v23 compatibility be removed from https://www.npmjs.com/package/nan ? |
synchronous-socket depends on nan, which needs to be patched for Electron >= 33. For the complete discussion and a hotfix see: nodejs/nan#978 (comment) Hopefully a PR that fixes it will be merged soon, nodejs/nan#979. Closes #56.
|
Please rebase this pull request and edit the following lines to add Node.js v23 to the testing. Lines 18 to 19 in b5d90f1
|
|
@kkoopa you might want to close this PR since it is no longer relevant and is fixed by nan v2.22.2 see my previous comment #979 (comment) |
|
Node.js v23 is not being tested in v2.22.2 https://github.com/nodejs/nan/actions/runs/13548804273 which is worrisome if we claim v23 compatibility. Line 24 in 9585023
|
|
True but I believe this PR was created to address #978 rather than add Node.js test. But I might be completely wrong as a complete outsider to |
|
README.md says that Node.js v22 is supported but v23 is not yet listed. |
It was removed ages ago, but never marked as deprecated.
Use FunctionCallbackInfo::This instead. See http://crbug.com/333672197.
This requires minor changes in user code due to the need to call and return from Intercepted::No or Intercepted::Yes. While an operator conversion on classes would have been nicer, implicit conversion to void is not possible.
|
Node.js 24 is out and there is an issue with NAN: Is this issue related to that or is it a separate one? |
|
PR #1000 merges these changes and addresses issues with Node.js 23 and 24 tests. |
|
Why are the appveyor tests not running now? |
|
I can only guess that you have disabled them, they are running on my branch. https://ci.appveyor.com/project/agracio/nan/history The last build you have is for 2.22.1 so it did not run for 2.22.2 release. If I have to guess it was disabled after all tests were moved to Github Actions. |
|
Webhook log says 403 Unauthorized, somehow something is not getting through there. Last Appveyor build is 5 months old. |
|
I'm afraid that is not something I can help with. |
|
GitHub Actions are the de facto standard CI solution these daze. |
|
Correct but since I removed tests for node.js 8, 10, 12 and 14 from GitHub Actions the idea was that they will run on AppVeyor. |
|
Yes, those ancient versions need a lot of fiddling to even get running, and the appveyor images are tailor made for that.
…On July 10, 2025 7:49:28 PM GMT+03:00, agracio ***@***.***> wrote:
agracio left a comment (nodejs/nan#979)
Correct but since I removed tests for node.js 8, 10, 12 and 14 from GitHub Actions the idea was that they will run on AppVeyor.
--
Reply to this email directly or view it on GitHub:
#979 (comment)
You are receiving this because you modified the open/close state.
Message ID: ***@***.***>
|
|
All versions less than v22 are no longer supported. |
|
v20 is Maintenance LTS and is supported but I think we already had this discussion. It is up to nan maintainers to agree to a support plan. |
|
The GitHub organization of this repository is |
|
From URL that you provided the graph shows approximately April 2026 and then going to https://github.com/nodejs/release#release-schedule v20 EOL is 2026-04-30. I think you were looking at 'Last Updated' column which shows the date of the last release for that version. |
V8 Was bumped, this would be a patch release, since I already claimed support for Node 23 in 2.22.0.
Also fixes #978.