Skip to content

Reject deep imports in internal Flow roots (#58674) - #58674

Closed
rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D121377261
Closed

rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D121377261

Conversation

@rubennorte

@rubennorte rubennorte commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Summary:

Reject unsupported react-native/* deep imports in consumer Flow roots while retaining explicit mappings for supported secondary and internal compatibility entrypoints.

Keep the Jest preset package-internal type imports and the vendored React Native Windows useMergeRefs implementation import because package-relative imports across React Native packages are not supported and the latter preserves callback-ref cleanup semantics. Suppress only those intentional package-internal compatibility imports.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D121377261

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

meta-codesync Bot commented Sep 24, 2026

Copy link
Copy Markdown

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

@rubennorte
rubennorte force-pushed the export-D121377261 branch 2 times, most recently from 91c39e0 to fc90f7d Compare September 24, 2026 15:14
Summary:
Migrate remaining React Native consumer deep imports to supported root and secondary entrypoints. Keep Jest preset package-internal type imports on OSS-exported implementation paths while preserving runtime mock behavior.

Changelog: [Internal]

Differential Revision: D121588775
@rubennorte
rubennorte force-pushed the export-D121377261 branch 2 times, most recently from 174cfec to bae00ed Compare September 24, 2026 15:47
Summary:
Pull Request resolved: react#58674

Reject unsupported `react-native/*` deep imports in consumer Flow roots while retaining explicit mappings for supported secondary and internal compatibility entrypoints.

Keep the Jest preset package-internal type imports and the vendored React Native Windows `useMergeRefs` implementation import because package-relative imports across React Native packages are not supported and the latter preserves callback-ref cleanup semantics. Suppress only those intentional package-internal compatibility imports.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D121377261
@meta-codesync meta-codesync Bot changed the title Reject deep imports in internal Flow roots Reject deep imports in internal Flow roots (#58674) Sep 24, 2026
@rubennorte rubennorte closed this Sep 24, 2026
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant