Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 2520e69

Browse files
Brian Vaughnfacebook-github-bot
authored andcommitted
Update React DevTools to ^4.13.0
Summary: React DevTools has gotten pretty outdated in React Native. Let's fix that! Last time I tried this it caused a lot of churn for tools like Flipper, so I approached this in two steps ([detailed in this post](https://fb.workplace.com/groups/rnsyncsquad/permalink/808063140086959/)). First was a short term plan (as implemented in [PR 21344](facebook/react#21344)) to: 1. Branch and make a patch release of DevTools 4.10 that adds a protocol check to the frontend (to detect any newer backends). 2. Upgrade Flipper (and recommend upgrade for the OSS React Native Debugger as well) to this new frontend. 3. Wait for the updated frontend to roll out. The short term plan is now done, at least for the internal build of Flipper, and both GitHub PRs to update Flipper and React Native Debugger have been merged. So this diff moves forward with the longer term plan (implemented in [PR 21331](facebook/react#21331)): 1. Add an explicit version to the protocol used by the DevTools "backend" and "frontend" components to talk to each other. 2. Check this protocol during initialization to ensure it matches. 3. Show upgrade/downgrade instructions if there's a mismatch (or if the check times out without a response– indicating an older backend). 4. Release this as 4.13. --- Changelog: [General][Changed] - Upgrade `react-devtools-core` from ~4.6.0 to ^4.13.0 Reviewed By: yungsters Differential Revision: D28103394 fbshipit-source-id: 21114294144bde9aede63cb3ba98a240082299bd
1 parent 699343a commit 2520e69

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

desktop/plugins/public/reactdevtools/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"version": "0.0.0",
66
"pluginType": "device",
77
"supportedDevices": [
8-
{"os": "Metro", "archived": false}
8+
{
9+
"os": "Metro",
10+
"archived": false
11+
}
912
],
1013
"main": "dist/bundle.js",
1114
"flipperBundlerEntry": "index.tsx",
@@ -16,7 +19,7 @@
1619
"dependencies": {
1720
"address": "^1.1.2",
1821
"get-port": "^5.0.0",
19-
"react-devtools-core": "~4.10.3"
22+
"react-devtools-core": "^4.13.0"
2023
},
2124
"title": "React DevTools",
2225
"icon": "app-react",

desktop/plugins/public/yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,10 +1270,10 @@ raf@^3.4.0:
12701270
dependencies:
12711271
performance-now "^2.1.0"
12721272

1273-
react-devtools-core@~4.10.3:
1274-
version "4.10.3"
1275-
resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.10.3.tgz#30580721d7e9a1568a55b7107f2b6cdce6502e63"
1276-
integrity sha512-2CtceOczycfR1Th5B+lIPA1NnGODdbeTLTLZVCYmdXfdmvR5h1+cgr0f+R7HtWbTeIcG5PXUK1/YDnELP5opQA==
1273+
react-devtools-core@^4.13.0:
1274+
version "4.13.0"
1275+
resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.13.0.tgz#fa80ee03b1a975c1d9898e24de841e45a4b22d30"
1276+
integrity sha512-KR+0pLw8wTjOVr+9AECe5ctmycaAjbmxN3bbdB0vmlwm0JkxNnKMxDzanf+4V8IuPBQWgm8qdWpbSOqhu1l14g==
12771277
dependencies:
12781278
shell-quote "^1.6.1"
12791279
ws "^7"
@@ -1465,9 +1465,9 @@ safe-regex@^1.1.0:
14651465
ret "~0.1.10"
14661466

14671467
scheduler@^0.20.1:
1468-
version "0.20.1"
1469-
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.1.tgz#da0b907e24026b01181ecbc75efdc7f27b5a000c"
1470-
integrity sha512-LKTe+2xNJBNxu/QhHvDR14wUXHRQbVY5ZOYpOGWRzhydZUqrLb2JBvLPY7cAqFmqrWuDED0Mjk7013SZiOz6Bw==
1468+
version "0.20.2"
1469+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91"
1470+
integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==
14711471
dependencies:
14721472
loose-envify "^1.1.0"
14731473
object-assign "^4.1.1"

0 commit comments

Comments
 (0)