Files
react-native/packages
Alex Hunt d75fc992a2 Replace "type" with "capabilities" in /json response (#42884)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42884

## Context

We're introducing the concept of **capability flags** to provide granular control of behaviours in the Inspector Proxy, to replace the recently added `type: 'Legacy' | 'Modern'` target switch.

A capability flag disables a specific feature/hack in the Inspector Proxy layer by indicating that the target supports one or more modern CDP features.

## This diff

This updates the pages response in `jsinspector-modern` to send a capability flags configuration, replacing `InspectorPageType`/`"type"`.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D53355413

fbshipit-source-id: 710f9eb11fcc61ab06bfc3051517dd4dd204c68a
2024-02-06 04:09:53 -08:00
..