Skip to content

Reject deep imports in GitHub Flow (#58574) - #58574

Closed
rubennorte wants to merge 6 commits into
react:mainfrom
rubennorte:export-D120543258
Closed

rubennorte wants to merge 6 commits into
react:mainfrom
rubennorte:export-D120543258

Conversation

@rubennorte

@rubennorte rubennorte commented Sep 17, 2026

Copy link
Copy Markdown
Member

Summary:

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258

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

meta-codesync Bot commented Sep 17, 2026

Copy link
Copy Markdown

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 17, 2026
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Differential Revision: D120543258
@meta-codesync meta-codesync Bot changed the title Reject deep imports in GitHub Flow Reject deep imports in GitHub Flow (#58574) Sep 17, 2026
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 17, 2026
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258
@rubennorte
rubennorte force-pushed the export-D120543258 branch 2 times, most recently from dae1923 to 0b263e2 Compare September 18, 2026 10:39
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258
Summary:
Replace eligible React Native deep imports in Fantom tests with package exports, Fantom APIs, DOM globals, and types derived from exported symbols. Keep implementation-specific imports where the public surface does not expose equivalent behavior or compatible Flow types.

Changelog: [Internal]

Differential Revision: D120517166
Summary:
Replace Fantom test imports of internal Event, EventTarget, AbortController, and feature flag modules with supported exports and global DOM APIs. Add the missing static Event phase constants to the DOM Flow declarations so constructor constants remain typed, and route trusted-event coverage through `dispatchNativeEvent`.

Changelog: [Internal]

Differential Revision: D120528709
Summary:
Migrate Codegen and compatibility fixtures from React Native deep imports to the public `react-native` entry point. Reference codegen-only types through the exported `CodegenTypes` namespace.

Changelog: [Internal]

Differential Revision: D120537584
Summary:
Migrate the remaining Flow-visible deep imports in React Native tests. Use public DOM globals where their types are sufficient, and use relative imports for implementation-specific helpers, observer types, and native specs that are not publicly exported.

Changelog: [Internal]

Differential Revision: D120537585
Summary:
Remove React Native implementation-path imports that are outside the exported GitHub Flow graph but remain visible to the fbsource Flow project.

Changelog: [Internal]

Differential Revision: D120679643
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258
rubennorte added a commit to rubennorte/react-native that referenced this pull request Sep 18, 2026
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258
Summary:
Pull Request resolved: react#58574

Redirect React Native implementation-path imports to an unresolved module in the GitHub Flow configuration so new deep imports fail type checking while supported package entry points remain available.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D120543258
@meta-codesync meta-codesync Bot closed this in 3718f62 Sep 18, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 18, 2026
@meta-codesync

meta-codesync Bot commented Sep 18, 2026

Copy link
Copy Markdown

This pull request has been merged in 3718f62.

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