Skip to content

Sync Babel flow-typed libdefs with Metro - #60282

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
javache:export-D134227739
Nov 25, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
javache:export-D134227739

Conversation

@javache

@javache javache commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary:
Update the babel/types and babel/traverse library definitions in flow-typed/npm/, in both React Native and Metro, so that the two copies match Metro's latest definitions and each other, and update Metro's generator for the babel/types definitions to produce them. They now declare the babel/types definition constants (VISITOR_KEYS, ALIAS_KEYS, FLIPPED_ALIAS_KEYS, NODE_FIELDS, BUILDER_KEYS, DEPRECATED_KEYS and TYPES), and type NodePath keys as string | number, because a path in a list has a numeric key.

Changelog: [Internal]

Reviewed By: javache, vzaidman

Differential Revision: D134227739

Summary:
Update the `babel/types` and `babel/traverse` library definitions in `flow-typed/npm/`, in both React Native and Metro, so that the two copies match Metro's latest definitions and each other, and update Metro's generator for the `babel/types` definitions to produce them. They now declare the `babel/types` definition constants (`VISITOR_KEYS`, `ALIAS_KEYS`, `FLIPPED_ALIAS_KEYS`, `NODE_FIELDS`, `BUILDER_KEYS`, `DEPRECATED_KEYS` and `TYPES`), and type `NodePath` keys as `string | number`, because a path in a list has a numeric key.

Changelog: [Internal]

Reviewed By: javache, vzaidman

Differential Revision: D134227739
@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 Nov 25, 2026
@meta-codesync

meta-codesync Bot commented Nov 25, 2026

Copy link
Copy Markdown

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D134227739.

@vzaidman vzaidman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync
meta-codesync Bot merged commit 89997a0 into react:main Nov 25, 2026
92 of 94 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 89997a0

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 25, 2026
@javache
javache deleted the export-D134227739 branch November 25, 2026 10:24
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 This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants