You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolving the chromium/7827 merge surfaced compile/lint breakages that aren't textual conflicts — they come from the TypeScript 6.0 upgrade and upstream API changes/removals. This commit makes the synced tree build (gn + tsc) and lint cleanly. Kept separate from the merge commit for reviewability.
**Experiments**: Upstream moved `ExperimentName` into `core/root/ExperimentNames.ts`. Re-export it from `Runtime.ts` so existing `Root.Runtime.ExperimentName.*` references keep resolving, add the React Native experiment values to `ExperimentNames.ts`, register them for tests in the new `RuntimeHelpers.ts`, and switch RN `isEnabled/setEnabled` call sites from `RNExperimentName` to `ExperimentName` (the core API is strictly typed).
**rehydrated_devtools_app**: Upstream removed this entrypoint in favour of `trace_app`, but the RN debugger opens `rehydrated_devtools_app.html` by name. Restored the entrypoint (alongside `trace_app`) and its BUILD.gn visibility/deps; the rehydrating connection accepts both via `isTraceApp() || getPathName().includes('rehydrated_devtools_app')`.
**Upstream API migrations in RN files**: `UI.XLink`/`<x-link>` (removed) → `<devtools-link>` from `ui/kit`; `UIUtils.createInlineButton` (removed) inlined; `i18n.getFormatLocalizedString` → `ui/i18n`; `SimpleView`/`VBox` options-object constructors; `Trace.Handlers.Types.ParsedTrace` → `Trace.TraceModel.ParsedTrace` (handler data now under `.data`); CSS `*.css.js` imports are branded strings (drop `.cssText`); `getRegisteredViewExtensions` is now a `ViewManager` instance method.
**TypeScript 6.0 / build**: Export the `RNPerfMetrics` class (TS4094 on the re-exported singleton); convert the `check-license-header` eslint rule to ESM; add missing BUILD.gn deps (`ui/components/adorners`, `ui/components/icon_button`, `ui/kit`) and a dropped `Root` import in NetworkLogView; convert lantern metric test `it()` callbacks to `function()` so `this` is the Mocha context.
**Dependencies / lint**: Drop the fork's `nanoid`/`serialize-javascript`/`ws` dependency overrides (superseded by upstream's newer tree); exempt RN components from upstream's new `no-lit-render-outside-of-view` / `no-imperative-dom-api` / `no-adopted-style-sheets` rules pending a proper view-function migration.
See <x-linkhref="https://github.com/react-native-community/discussions-and-proposals/discussions/954" class="devtools-link" jslog=${VisualLogging.link().track({click: true,keydown:'Enter|Space'}).context('multi-host-learn-more')}>discussions/954</x-link>.
211
+
See <devtools-linkhref="https://github.com/react-native-community/discussions-and-proposals/discussions/954" class="devtools-link" jslog=${VisualLogging.link().track({click: true,keydown:'Enter|Space'}).context('multi-host-learn-more')}>discussions/954</devtools-link>.
0 commit comments