Skip to content

Cover react/renderer/debug with Stable API guards - #58183

Open
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117850084
Open

Cover react/renderer/debug with Stable API guards#58183
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117850084

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary:
Classifies react/renderer/debug:debug as a public target under the three-tier C++ stable API visibility model, and adds the module umbrella <React/RendererDebug.h> as its public entry point. Consumers that opt into RN_STRICT_API now get an error if they include the module's headers directly and have to go through the umbrella instead; without that flag the guards are inert, so no existing build changes behaviour.

The pod's source glob is narrowed to the module's own directory so the umbrella is not also flattened into react/renderer/debug, and the matching headers-config.js exception splits the pod into module and umbrella subspecs so <React/RendererDebug.h> resolves in the SwiftPM prebuild.

Changelog: [Internal]

Differential Revision: D117850084

Summary:
Classifies `react/renderer/debug:debug` as a public target under the three-tier C++ stable API visibility model, and adds the module umbrella `<React/RendererDebug.h>` as its public entry point. Consumers that opt into `RN_STRICT_API` now get an error if they include the module's headers directly and have to go through the umbrella instead; without that flag the guards are inert, so no existing build changes behaviour.

The pod's source glob is narrowed to the module's own directory so the umbrella is not also flattened into `react/renderer/debug`, and the matching `headers-config.js` exception splits the pod into module and umbrella subspecs so `<React/RendererDebug.h>` resolves in the SwiftPM prebuild.

Changelog: [Internal]

Differential Revision: D117850084
@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 Aug 28, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner labels Aug 28, 2026
@meta-codesync

meta-codesync Bot commented Aug 28, 2026

Copy link
Copy Markdown

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D117850084.

@facebook-github-tools facebook-github-tools Bot added the p: Facebook Partner: Facebook label Aug 28, 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 p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant