typings: add credentials internal binding types - #65036
Merged
nodejs-github-bot merged 2 commits intoAug 12, 2026
Merged
Conversation
Add a CredentialsBinding declaration for internalBinding('credentials')
and wire it into InternalBindingMap.
Signed-off-by: HoonDongKang <d159123@naver.com>
Member
|
These methods appear to be optional, as they are not available on every platform. Lines 504 to 523 in e6fa5bf |
Signed-off-by: HoonDongKang <d159123@naver.com>
Contributor
Author
|
Thanks for the review. I missed that these methods can be conditionally exposed. I kept |
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/65036 ✔ Done loading data for nodejs/node/pull/65036 ----------------------------------- PR info ------------------------------------ Title typings: add credentials internal binding types (#65036) Author Donghoon Kang <d159123@naver.com> (@HoonDongKang) Branch HoonDongKang:typings-internalbinding-credentials -> nodejs:main Labels author ready, commit-queue, typings, commit-queue-squash Commits 2 - typings: add credentials internal binding types - typings: make credentials methods optional Committers 1 - HoonDongKang <d159123@naver.com> PR-URL: https://github.com/nodejs/node/pull/65036 ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/65036 -------------------------------------------------------------------------------- ⚠ No approving reviews found ℹ This PR was created on Wed, 05 Aug 2026 06:24:41 GMT ✘ Approvals: 0 ✔ Last GitHub CI successful ℹ Green GitHub CI is sufficient -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/31461424057 |
daeyeon
approved these changes
Aug 11, 2026
Collaborator
|
Landed in 69bf457 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add typings for the
credentialsinternal binding.Changes:
typings/internalBinding/credentials.d.tscredentialstoInternalBindingMapsafeGetenv()andgetTempDir()implementsPosixCredentialsgetuid?()geteuid?()getgid?()getegid?()getgroups?()initgroups?()setegid?()seteuid?()setgid?()setuid?()setgroups?()