X Tutup
The Wayback Machine - https://web.archive.org/web/20210223003245/https://github.com/nodejs/node/pull/37485
Skip to content
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

process: upgrade process.binding to runtime deprecation #37485

Open
wants to merge 1 commit into
base: master
from

Conversation

@jasnell
Copy link
Member

@jasnell jasnell commented Feb 22, 2021

@nodejs/tsc ... this one still may be controversial but I figured I'd give it a shot.

process.binding() has always been problematic and has been deprecated since the 11.x timeframe. We have fully migrated to internalBinding() internally but there are still a few stragglers in the ecosystem that have not let go of their hold on our internal bindings. It's time to start nudging them harder out of the nest.

Fixes: #30884

Signed-off-by: James M Snell <jasnell@gmail.com>
Copy link
Member

@mcollina mcollina left a comment

In undici we are using it to access the internal http parser. It would be good to get some way to retrieve it.

cc @ronag

@ronag
Copy link
Member

@ronag ronag commented Feb 23, 2021

Yep. Removing would break undici.

@devsnek
Copy link
Member

@devsnek devsnek commented Feb 23, 2021

can't you just depend on llhttp? it's kept in a separate repo and everything.

@jasnell
Copy link
Member Author

@jasnell jasnell commented Feb 23, 2021

The approach for undici then should be to open a PR that exposes a public API for interacting with the http parser. Using process.binding() directly is not supported and should not be used.

(or what @devsnek said)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

4 participants
X Tutup