Skip to content

Add node: aliases to Flow Node libdefs#1783

Closed
robhogan wants to merge 1 commit into
mainfrom
robhogan/flow-node-protocol-aliases
Closed

Add node: aliases to Flow Node libdefs#1783
robhogan wants to merge 1 commit into
mainfrom
robhogan/flow-node-protocol-aliases

Conversation

@robhogan

Copy link
Copy Markdown
Contributor

Summary

Add node: aliases for every bare Node.js builtin declared by Metro’s Flow libdefs. The aliases re-export the existing module types, so prefixed and unprefixed imports have the same definitions.

Test plan

  • yarn typecheck
  • yarn lint
  • verify every declared bare builtin has a matching node: declaration
  • verify the aliases with module.isBuiltin on Node 22.13.0

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 19, 2026
@meta-codesync

meta-codesync Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@robhogan has imported this pull request. If you are a Meta employee, you can view this in D112732329.

meta-codesync Bot pushed a commit to react/react-native that referenced this pull request Jul 19, 2026
Summary:

X-link: react/metro#1783

Add `node:` aliases for every bare Node.js builtin declared by RN/Metro’s Flow libdefs. The aliases re-export the existing module types, so prefixed and unprefixed imports have the same definitions.

Changelog: [Internal]

Reviewed By: huntie

Differential Revision: D112732329
@meta-codesync meta-codesync Bot closed this in 9d26d81 Jul 19, 2026
@meta-codesync meta-codesync Bot added the Merged label Jul 19, 2026
@meta-codesync

meta-codesync Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 9d26d81.

meta-codesync Bot pushed a commit to react/react-native that referenced this pull request Jul 19, 2026
Summary:
Pull Request resolved: #57600

X-link: react/metro#1783

Add `node:` aliases for every bare Node.js builtin declared by RN/Metro’s Flow libdefs. The aliases re-export the existing module types, so prefixed and unprefixed imports have the same definitions.

Changelog: [Internal]

Reviewed By: huntie

Differential Revision: D112732329

fbshipit-source-id: f38a6db58b6b3fbcbe566627ff368a2f329c9651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant