Ruslan Lesiutin and GitHub
77d3b02e5c
React DevTools 4.27.4 -> 4.27.5 ( #26637 )
...
Full list of changes (not everything included in changelog):
* refactor[devtools]: copy to clipboard only on frontend side
([hoxyq](https://github.com/hoxyq ) in
[#26604 ](https://github.com/facebook/react/pull/26604 ))
* Provide icon to edge devtools.
([harrygz889](https://github.com/harrygz889 ) in
[#26543 ](https://github.com/facebook/react/pull/26543 ))
* [BE] move shared types & constants to consolidated locations
([mondaychen](https://github.com/mondaychen ) in
[#26572 ](https://github.com/facebook/react/pull/26572 ))
* remove backend dependency from the global hook
([mondaychen](https://github.com/mondaychen ) in
[#26563 ](https://github.com/facebook/react/pull/26563 ))
* Replace deprecated `new-window` with
`webContents.setWindowOpenHandler()`
([Willie-Boy](https://github.com/Willie-Boy ) in
[#26559 ](https://github.com/facebook/react/pull/26559 ))
* DevTools: Inline references to fiber flags
([acdlite](https://github.com/acdlite ) in
[#26542 ](https://github.com/facebook/react/pull/26542 ))
* refactor[devtools]: forbid editing class instances in props
([hoxyq](https://github.com/hoxyq ) in
[#26522 ](https://github.com/facebook/react/pull/26522 ))
* Move update scheduling to microtask
([acdlite](https://github.com/acdlite ) in
[#26512 ](https://github.com/facebook/react/pull/26512 ))
* Remove unnecessary CIRCLE_CI_API_TOKEN checks
([mondaychen](https://github.com/mondaychen ) in
[#26499 ](https://github.com/facebook/react/pull/26499 ))
* browser extension: improve script injection logic
([mondaychen](https://github.com/mondaychen ) in
[#26492 ](https://github.com/facebook/react/pull/26492 ))
* [flow] make Flow suppressions explicit on the error
([kassens](https://github.com/kassens ) in
[#26487 ](https://github.com/facebook/react/pull/26487 ))
2023-04-17 17:42:02 +01:00
Mengdi Chen and GitHub
dd5365878d
[DevTools] remove backend dependency from the global hook ( #26563 )
...
## Summary
- #26234 is reverted and replaced with a better approach
- introduce a new global devtools variable to decouple the global hook's
dependency on backend/console.js, and add it to react-devtools-inline
and react-devtools-standalone
With this PR, I want to introduce a new principle to hook.js: we should
always be alert when editing this file and avoid importing from other
files.
In the past, we try to inline a lot of the implementation because we use
`.toString()` to inject this function from the extension (we still have
some old comments left). Although it is no longer inlined that way, it
has became now more important to keep it clean as it is a de facto
global API people are using (9.9K files contains it on Github search as
of today).
**File size change for extension:**
Before:
379K installHook.js
After:
21K installHook.js
363K renderer.js
2023-04-07 03:35:36 -04:00
f718199313
[DevTools] browser extension: improve script injection logic ( #26492 )
...
## Summary
- Drop extension support for Chrome / Edge <v102 since they have less
than 0.1% usage ([see data](https://caniuse.com/usage-table ))
- Improve script injection logic when possible so that the scripts
injected by the extension are no longer shown in Network (which caused a
lot of confusion in the past)
## How did you test this change?
Built and tested locally, works as usual on Firefox.
For Chrome/Edge
**Before:**
Scripts shown in Network tab
<img width="1279" alt="Untitled 2"
src="https://user-images.githubusercontent.com/1001890/228074363-1d00d503-d4b5-4339-8dd6-fd0467e36e3e.png ">
**After:**
No scripts shown
<img width="1329" alt="image"
src="https://user-images.githubusercontent.com/1001890/228074596-2084722b-bf3c-495e-a852-15f122233155.png ">
---------
Co-authored-by: Ruslan Lesiutin <rdlesyutin@gmail.com >
2023-03-28 12:45:53 -04:00
Mengdi Chen and GitHub
3fcf209ea4
React DevTools 4.27.3 -> 4.27.4 ( #26470 )
2023-03-24 15:45:26 -04:00
Mengdi Chen and GitHub
8bdf162bcc
React DevTools 4.27.2 -> 4.27.3 ( #26459 )
...
bump version
2023-03-22 11:20:10 -04:00
Mengdi Chen and GitHub
fcf2187919
[DevTools] Remove renderer.js from extension build ( #26234 )
...
## Summary
When looking into the compiled code of `installHook.js` of the extension
build, I noticed that it actually includes the large `attach` function
(from renderer.js). I don't think it was expected.
This is because `hook.js` imports from `backend/console.js` which
imports from `backend/renderer.js` for `getInternalReactConstants`
A straightforward way is to extract function
`getInternalReactConstants`. However, I think it's more simplified to
just merge these two files and save the 361K renderer.js from the
extension build since we have always been loading this code anyways.
I changed the execution check from `__REACT_DEVTOOLS_ATTACH__ ` to the
session storage.
## How did you test this change?
Everything works normal in my local build.
2023-03-03 14:01:58 -05:00
Mengdi Chen and GitHub
42106558ed
React DevTools 4.27.1 -> 4.27.2 ( #26185 )
2023-02-16 16:46:23 -05:00
Mengdi Chen and GitHub
827cbdbcc6
React DevTools 4.27.0 -> 4.27.1 ( #25835 )
...
patch for devtools bug
2022-12-07 12:23:52 -05:00
Mengdi Chen and GitHub
f197ca997b
React DevTools 4.26.1 -> 4.27.0 ( #25753 )
2022-11-30 19:14:11 -05:00
Mengdi Chen and GitHub
6dbccb9249
[DevTools] upgrade to Manifest V3 ( #25145 )
...
## Summary
resolves #24522
To upgrade to Manifest V3, one of the biggest issue is that we are no
longer allowed to add a script element with code in textContent so that
it would run synchronously. It's necessary for us because we need to
inject a global hook for react reconciler to detect whether devtools
exist.
To do that, we'll leverage a new API
`chrome.scripting.registerContentScripts` in V3. Particularly, we rely
on the "world" option (added in Chrome v102
[commit](https://chromium.googlesource.com/chromium/src/+/e5ad3451c17b21341b0b9019b074801c44c92c9f ))
to run it in the "main world" on the page.
This PR also renames a few content script files so that it's easier to
tell them apart from other extension scripts and understand the purpose
of each of them.
Manifest V3 is not yet ready for Firefox, so we need to keep some code
for compatibility.
## How did you test this change?
`yarn build:chrome && yarn test:chrome`
`yarn build:edge && yarn test:edge`
`yarn build:firefox && yarn test:firefox`
2022-10-21 22:52:18 -04:00
Tianyu Yao and GitHub
44e2ca393e
React DevTools 4.26.0 -> 4.26.1 ( #25478 )
2022-10-14 10:36:52 -07:00
Tianyu Yao and GitHub
e099e1dc0e
React DevTools 4.25.0 -> 4.26.0 ( #25283 )
2022-09-16 12:35:00 -07:00
Mengdi Chen and GitHub
d54880d424
React DevTools 4.24.7 -> 4.25.0 ( #24919 )
2022-07-13 15:57:50 -04:00
Luna Ruan and GitHub
25837acfee
React DevTools 4.24.6 -> 4.24.7 ( #24646 )
2022-05-31 16:16:07 -04:00
Mengdi "Monday" Chen and GitHub
52c434be1d
React DevTools 4.24.5 -> 4.24.6 ( #24547 )
2022-05-12 10:52:55 -04:00
Brian Vaughn and GitHub
547b707493
React DevTools 4.24.4 -> 4.24.5 ( #24503 )
2022-05-05 10:19:08 -07:00
Brian Vaughn and GitHub
5b2e7253f9
React DevTools 4.24.3 -> 4.24.4 ( #24315 )
2022-04-08 11:38:07 -04:00
Mengdi "Monday" Chen and GitHub
adb8ebc927
React DevTools 4.24.2 -> 4.24.3 ( #24198 )
2022-03-29 14:44:32 -04:00
Brian Vaughn and GitHub
8df8a57edd
React DevTools 4.24.1 -> 4.24.2 ( #24150 )
2022-03-24 09:06:10 -04:00
Luna Ruan and GitHub
ac574d6883
React DevTools 4.24.0 -> 4.24.1 ( #24100 )
2022-03-15 14:13:00 -04:00
Brian Vaughn and GitHub
f6c130f614
React DevTools 4.23.0 -> 4.24.0 ( #23400 )
...
* React DevTools 4.23.0 -> 4.24.0
* Fixed CHANGELOG header format
* Add separator line beween header version numbers
2022-03-02 13:28:42 -05:00
Brian Vaughn
e28a0db224
React DevTools 4.22.1 -> 4.23.0
2022-01-24 09:29:18 -05:00
Brian Vaughn and GitHub
5b69c94eed
React DevTools 4.22.0 -> 4.22.1 ( #22962 )
2021-12-14 23:52:50 -05:00
jstejada and GitHub
0229baee21
React DevTools 4.21.0 -> 4.22.0 ( #22951 )
2021-12-14 14:19:21 -05:00
Juan and GitHub
6c7ef3fce5
React DevTools 4.20.2 -> 4.21.0 ( #22661 )
2021-10-31 19:19:02 -04:00
Juan and GitHub
c213030b49
React DevTools 4.20.1 -> 4.20.2 ( #22605 )
2021-10-20 16:00:13 -04:00
Juan and GitHub
b81de86332
React DevTools 4.20.0 -> 4.20.1 ( #22583 )
2021-10-19 10:55:39 -04:00
Juan and GitHub
e5f486b5a8
React DevTools 4.19.2 -> 4.20.2 ( #22569 )
2021-10-15 12:50:17 -04:00
Brian Vaughn
20ca9b565a
React DevTools 4.19.1 -> 4.19.2
2021-10-08 13:51:25 -04:00
Brian Vaughn and GitHub
bdd6d5064d
React DevTools 4.19.0 -> 4.19.1 ( #22480 )
2021-10-01 11:50:05 -04:00
Luna Ruan and GitHub
0883c4cd3a
React DevTools 4.18.0 -> 4.19.0 ( #22461 )
2021-09-29 12:06:13 -04:00
Luna Ruan and GitHub
3385b377f7
React DevTools 4.17.0 -> 4.18.0 ( #22234 )
2021-09-01 13:39:36 -07:00
Brian Vaughn
582858083e
React DevTools 4.16.0 -> 4.17.0
2021-08-24 11:12:42 -07:00
Brian Vaughn and GitHub
b5fbf5464b
Automated DevTools release process ( #22161 )
2021-08-24 14:05:50 -04:00
Brian Vaughn and GitHub
64f83a6fd2
Replace "source-map" library with "source-map-js" ( #22126 )
2021-08-19 11:25:38 -04:00
Luna Ruan and GitHub
152ecce117
DevTools 4.15.0 -> 4.16.0 ( #22104 )
2021-08-16 14:55:47 -07:00
Juan and GitHub
c6f2188ed6
DevTools 4.14.0 -> 4.15.0
2021-08-11 16:47:20 -04:00
Brian Vaughn
d0ec283819
DevTools 4.13.5 -> 4.14.0
2021-07-16 00:25:01 -04:00
c5cfa71948
DevTools: Show hook names based on variable usage ( #21641 )
...
Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com >
Co-authored-by: Saphal Patro <saphal1998@gmail.com >
Co-authored-by: VibhorCodecianGupta <vibhordelgupta@gmail.com >
2021-07-01 14:39:18 -04:00
Brian Vaughn
0ae5290b54
DevTools 4.13.4 -> 4.13.5
2021-05-25 15:18:47 -04:00
Brian Vaughn
132b72d7b6
DevTools 4.13.3 -> 4.13.4
2021-05-20 11:24:30 -04:00
Brian Vaughn
4d402cdda0
Preparing DevTools 4.13.2 -> 4.13.3 for release
2021-05-18 13:23:06 -04:00
Brian Vaughn
0a8fefca4c
DevTools 4.13.1 -> 4.13.2
2021-05-07 08:52:02 -04:00
Brian Vaughn
014edf1980
Prepare DevTools 4.13.1 release
2021-05-04 22:35:30 -04:00
Brian Vaughn and GitHub
2a7bb41548
Preparing DevTools 4.12.4 -> 4.13.0 release ( #21378 )
2021-04-28 12:36:24 -04:00
Brian Vaughn
7becb2ff1b
DevTools version bump 4.12.3 -> 4.12.4
2021-04-19 21:23:01 -04:00
Brian Vaughn
8f202a7c8d
DevTools version bump 4.12.2 -> 4.12.3
2021-04-19 13:09:07 -04:00
Brian Vaughn
d14b6a4bdd
DevTools version bump 4.12.1 -> 4.12.2
2021-04-16 12:35:29 -04:00
Brian Vaughn and GitHub
6b3d86a2e9
Fixed bug in react-detools-inline frontend init method ( #21265 )
2021-04-14 13:27:21 -04:00
Brian Vaughn and GitHub
84c06fef81
Add createBridge and createStore exports to react-devtools-inline (for Replay integration) ( #21032 )
2021-04-12 17:07:14 -04:00