-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Tracking Issue: process.binding to internalBinding #22160
Comments
updated to include all usage of NODE_BUILTIN_MODULE_CONTEXT_AWARE |
I've got |
@ChALkeR would it be possible to get info about the relative usage of all of these? i'm assuming there are some like serdes we can kill right away and others like util that will take longer. |
I tried doing zlib but it broke npm. |
Just double checking, should all migration PRs should be marked as semver-major? |
Unfortunately that's likely the best thing. |
For some of this it's likely going to be quite tricky to have a proper migration strategy in place given that moving something over to |
PR-URL: nodejs#22161 Refs: nodejs#22160 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
I would also like to contribute here. Can you please give me some heads up? |
Hey, I've been trying to move buffer to internalBinding to try and help out and I think I've gotten close but You can see the branch that I'm working on here. Any help on maybe how to fix these errors/why they are happening would be very much appreciated 😄. Sorry for the bother if my changes are incorrect or this is not allowed. |
Now the |
Hi, @starkwang. it appears that #24931 took care of |
I think we can close this now. |
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Refs: nodejs#22160 PR-URL: nodejs#22478 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
PR-URL: nodejs#23400 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Refs: #22160 PR-URL: #22478 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Backport-PR-URL: #25446
PR-URL: nodejs#23400 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Refs: nodejs#22160 PR-URL: nodejs#22478 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Backport-PR-URL: nodejs#25446
PR-URL: nodejs#23400 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Backport-PR-URL: nodejs#25446 Reviewed-By: Anna Henningsen <anna@addaleax.net>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Backport-PR-URL: nodejs#25446
Migrate various modules from using process.binding to internalBinding. PR-URL: nodejs#24952 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Migrate various modules from using process.binding to internalBinding. PR-URL: nodejs#24952 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Moving from
process.binding()
tointernalBinding()
will be a significant effort. There are hundreds ofprocess.binding()
uses inside core and many many userland references. It's going to take a while to convert everything.TODO
inspector
(this one is quite non-trivial... will require additional thought)Done
async_wrap
src: move process.binding('async_wrap') internal #22469buffer
buffer: move process.binding('buffer') to internalBinding #22370cares_wrap
dns: make process.binding('cares_wrap') internal #22474crypto
crypto: move process.binding('crypto') to internal #22426config
src,lib: make process.binding('config') internal #23400constants
src,lib: movenatives
andconstants
tointernalBinding()
#23663contextify
vm: move process.binding('contextify') to internalBinding #22419fs
fs: make process.binding('fs') internal #22478fs_event_wrap
fs: make fs_event_wrap binding internal #22480http2
http2: move process.binding('http2') to internalBinding #22328http_parser
http_parser: move process.binding('http_parser') to internalBinding #22329icu
icu: make process.binding('icu') internal #23234js_stream
js_stream: move process.binding('js_stream') to internalBinding #22239natives
src,lib: movenatives
andconstants
tointernalBinding()
#23663os
os: move process.binding('os') to internalBinding #25087performance
src: move process.binding('performance') to internalBinding #22029pipe_wrap
lib: make pipe_wrap binding internal #22482process_wrap
child_process: make process_wrap binding internal #22479serdes
v8: move serdes to internalBinding #22161signal_wrap
src: move process.binding('signal_wrap') to internalBinding #22290spawn_sync
spawn_sync: move process.binding('spawn_sync') to internalBinding #22260stream_wrap
tcp_wrap
src: move process.binding('tcp_wrap') to internal #22432tls_wrap
crypto: move process.binding('tls_wrap') internal #22429trace_events
trace_events: move trace_events to internalBinding #22159tty_wrap
tty: make process.binding('tty_wrap') internal #22477udp_wrap
dgram: make process.binding('udp_wrap') internal #22475url
url: move process.binding('url') to internalBinding #22204util
util: make util binding internal #22675uv
uv: move process.binding('uv') to internalBinding #22163v8
v8: move process.binding('v8') to internalBinding #22288zlib
(removingprocess.binding('zlib')
breaks npm) zlib: move process.binding('zlib') to internalBinding #23307The text was updated successfully, but these errors were encountered: