mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Changelog: [Internal] Before, we were relying on checking out the `devtools-protocol` Github repo at a specific commit and making special changes to the JSON file. In order to make it easier to update, use the officially published npm package. I found the closest package version that was published, but it had two differences: * `Runtime.getHeapUsage` was either missing (in earlier versions) or experimental (in later versions) * `isDefault` and `isPageContext` were removed. I'm not sure what these were used for anyway, the comment leads me to believe they're probably not necessary anymore There were some customizations made previously to annotate `recursive` on some properties. The npm package doesn't set these, so I wrote some checks to add it back in if it can be detected. This was mostly to handle one special case: `Runtime.StackTrace`. The workaround seems to be fine for that case. Reviewed By: willholen Differential Revision: D19386890 fbshipit-source-id: db0d85f6bc71cba77ee67d85efe2f38376d7cc87