Skip to content

Drop stale $FlowFixMe suppressions for node: imports (#57612)#57612

Closed
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D112803683
Closed

Drop stale $FlowFixMe suppressions for node: imports (#57612)#57612
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D112803683

Conversation

@huntie

@huntie huntie commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary:

Cleanup — these types are already declared in react-native-github/flow-typed/environment/node.js and resolve under Flow. The $FlowFixMe[cannot-resolve-module] suppressions on these imports are therefore stale.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D112803683

@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 20, 2026
@meta-codesync

meta-codesync Bot commented Jul 20, 2026

Copy link
Copy Markdown

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

Summary:
A stylistic choice to unify on `node:`-prefixed imports, e.g. `fs` -> `node:fs`.

**Motivation**

Follows D112733139 (Metro):

- New Node builtins are *only* available under the prefix (e.g. `node:sqlite`), as this allows Node to introduce them without ecosystem-breaking changes, so this is the direction of travel and the only choice that'll allow consistency.
- Encouraging them and grouping them separately makes it easier to reason about a module's 3rd party dependencies.

Changelog: [Internal]

Differential Revision: D112803684
@huntie
huntie force-pushed the export-D112803683 branch from 931c9bd to 3a77453 Compare July 20, 2026 13:18
huntie added a commit to huntie/react-native that referenced this pull request Jul 20, 2026
Summary:
Pull Request resolved: react#57612

Cleanup — these types are already declared in `react-native-github/flow-typed/environment/node.js` and resolve under Flow. The `$FlowFixMe[cannot-resolve-module]` suppressions on these imports are therefore stale.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D112803683
@meta-codesync meta-codesync Bot changed the title Drop stale $FlowFixMe suppressions for node: imports Drop stale $FlowFixMe suppressions for node: imports (#57612) Jul 20, 2026
Summary:
Pull Request resolved: react#57612

Cleanup — these types are already declared in `react-native-github/flow-typed/environment/node.js` and resolve under Flow. The `$FlowFixMe[cannot-resolve-module]` suppressions on these imports are therefore stale.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D112803683
@huntie
huntie force-pushed the export-D112803683 branch from 3a77453 to 9ebf7c1 Compare July 20, 2026 13:23
@meta-codesync meta-codesync Bot closed this in 527698f Jul 21, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jul 21, 2026
@meta-codesync

meta-codesync Bot commented Jul 21, 2026

Copy link
Copy Markdown

This pull request has been merged in 527698f.

@huntie
huntie deleted the export-D112803683 branch July 21, 2026 16:16
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.

1 participant