Skip to content

Merge main branch from upstream facebook/react (particularly for compatibility with ESLint 8.x) #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1604 commits
Select commit Hold shift + click to select a range
852f10b
fix a bug in console.log with non-string args (#24546)
mondaychen May 12, 2022
52c434b
React DevTools 4.24.5 -> 4.24.6 (#24547)
mondaychen May 12, 2022
6266263
Remove enableFlipOffscreenUnhideOrder (#24545)
rickhanlonii May 12, 2022
2c8a145
Fix ignored setState in Safari when iframe is touched (#24459)
gaearon May 12, 2022
0ecb77d
[DevTools] Fix formatWithStyles not styling the results if the first …
lunaruan May 13, 2022
4c03bb6
[DevTools] ignore tests without reactVersion pragma if REACT_VERSION …
lunaruan May 14, 2022
c5e039d
[DevTools] Add jest-cli --reactVersion argument (#24556)
lunaruan May 16, 2022
357a613
[DevTools][Transition Tracing] Added support for Suspense Boundaries …
lunaruan May 16, 2022
a412d78
Remove dependency on build artifacts mirror (#24575)
acdlite May 18, 2022
b77c125
[DevTools] Add React Version Pragma to Tests (#24576)
lunaruan May 18, 2022
7698758
Add option for source maps when running tests (#24577)
acdlite May 18, 2022
835d9c9
Handle github rate limiting response (#24573)
blakef May 18, 2022
d89657b
[DevTools] Use Inline Snapshots for storeStressTestSync (#24583)
lunaruan May 19, 2022
6e2f38f
[DevTools] Remove string.replaceAll Call in @reactVersion Pragma Func…
lunaruan May 19, 2022
82c64e1
Match Preact behavior for boolean props on custom elements (#24541)
eps1lon May 20, 2022
5a1e558
[DevTools] Regression Test Jest Config (#24598)
lunaruan May 23, 2022
210fee4
[DevTools] Make Devtools Regression Build (#24599)
lunaruan May 23, 2022
1e98682
[DevTools] Fix moduleNameMapper Order in DevTools Config #24602)
lunaruan May 23, 2022
a250579
[DevTools] Add CircleCI Chron Job For DevTools Regression Tests (#24…
lunaruan May 24, 2022
2c68776
fix scripts folder text (#24609)
alexandrutasica May 25, 2022
b2763d3
Move hydration code out of normal Suspense path (#24532)
acdlite May 25, 2022
05c34de
[Test] Outer boundary should not report errors from an inner boundary…
gnoff May 25, 2022
1328ff7
[DevTools] Regression-proof e2e Tests (#24620)
lunaruan May 26, 2022
3133dfa
DevTools] e2e Regression Testing App (#24619)
lunaruan May 26, 2022
1bed207
Add a module map option to the Webpack Flight Client (#24629)
sebmarkbage May 27, 2022
f786053
Fix typo in useSyncExternalStore main entry point error (#24631)
francoischalifour May 27, 2022
a276638
[Fizz] Improve text separator byte efficiency (#24630)
gnoff May 28, 2022
aec5759
[Fizz] Send errors down to client (#24551)
gnoff May 30, 2022
f534cc6
[DevTools] Add --replaceBuild option to Older React Builds Download S…
lunaruan May 31, 2022
0b54555
[DevTools] Modify DevTools e2e test script for regression tests (#24642)
lunaruan May 31, 2022
be1fd48
[DevTools] mock requestAnimationFrame with setTimeout as a temporary …
mondaychen May 31, 2022
25837ac
React DevTools 4.24.6 -> 4.24.7 (#24646)
lunaruan May 31, 2022
26a5b3c
Explicitly set `highWaterMark` to 0 for `ReadableStream` (#24641)
jplhomer May 31, 2022
dd4950c
[Flight] Implement useId hook (#24172)
gnoff May 31, 2022
b1858b1
[DevTools] devtools-test-shell Regression App fixes (#24644)
lunaruan May 31, 2022
d2c9e83
[DevTools] Run e2e Regression Tests Hourly on Circle CI (#24648)
lunaruan Jun 1, 2022
d300ceb
[DevTools] only polyfill requestAnimationFrame when necessary (#24651)
mondaychen Jun 1, 2022
7a5b822
Allow aritfacts download even if CI is broken (#24666)
acdlite Jun 3, 2022
a97a081
DevTools e2e workflow: Download build artifacts (#24676)
acdlite Jun 6, 2022
a621cb0
Fix CI: Download to build instead of base-build (#24677)
acdlite Jun 6, 2022
dfd6f96
Fix CI: Remove copypasta from sizebot download job
acdlite Jun 6, 2022
652dcf6
Fix CI: Persist build artifacts to workspace
acdlite Jun 6, 2022
4ddd8b4
Track revs that intentionally fork the reconciler (#24671)
acdlite Jun 6, 2022
1cd90d2
Refactor of interleaved ("concurrent") update queue (#24663)
acdlite Jun 6, 2022
254b49e
Add snapshot testing on e2e test failure (#24672)
lunaruan Jun 6, 2022
4f29ba1
support errorInfo in onRecoverableError (#24591)
gnoff Jun 6, 2022
bcbeb52
[Fizz] Disallow complex children in <title> elements (#24679)
gnoff Jun 7, 2022
3bb154b
[DevTools] Run Devtools Regression Tests Once a Day (#24678)
lunaruan Jun 7, 2022
7e8a020
Remove extra Server Context argument (#24683)
sebmarkbage Jun 7, 2022
79f54c1
Bugfix: Revealing a hidden update (#24685)
acdlite Jun 8, 2022
b345523
[Fizz] Support abort reasons (#24680)
gnoff Jun 8, 2022
4794414
`now` isn't part of the react-reconciler config anymore (#24689)
mathieudutour Jun 8, 2022
060505e
Fix misapplying prod error opt-out (#24688)
gnoff Jun 8, 2022
42b330c
Fix check_error_codes CI job (#24692)
acdlite Jun 8, 2022
3e92eb0
[DevTools] find best renderer when inspecting (#24665)
mondaychen Jun 8, 2022
9e3b772
Update error transform to allow excluding errors inside subexpression…
gnoff Jun 8, 2022
8186b19
Check for infinite update loops even if unmounted (#24697)
acdlite Jun 9, 2022
a8555c3
[Transition Tracing] Add Tracing Marker Stack (#24661)
lunaruan Jun 10, 2022
f7b4453
[DevTools] enable "reload & profile" button for timeline view (#24702)
mondaychen Jun 10, 2022
a8c9cb1
Land enableSuspenseLayoutEffectSemantics flag (#24713)
acdlite Jun 13, 2022
29c2c63
Land enableClientRenderFallbackOnTextMismatch (#24714)
acdlite Jun 13, 2022
327e4a1
[Follow-up] Land enableClientRenderFallbackOnTextMismatch
acdlite Jun 12, 2022
7cf8dfd
[Transition Tracing] Create/Process Marker Complete Callback (#24700)
lunaruan Jun 13, 2022
be229c5
Changelog for 18.2 (#24717)
gnoff Jun 13, 2022
54f17e4
[Transition Tracing] Fix Cache and Transitions Pop Order (#24719)
lunaruan Jun 14, 2022
89bae8f
Update Changelog release date for 18.2.0
gnoff Jun 14, 2022
5cc2487
bump versions for next release (#24725)
gnoff Jun 14, 2022
567500d
Move renderToString tests out of the streamable API tests (#24724)
sebmarkbage Jun 14, 2022
6522179
Enable no-longer experimental (#24727)
sebmarkbage Jun 14, 2022
256aefb
Typo
gaearon Jun 14, 2022
522f473
Move the Error creation to be lazy (#24728)
sebmarkbage Jun 15, 2022
fcd720d
[Transition Tracing] Push Transition When Offscreen Becomes Visible (…
lunaruan Jun 15, 2022
c3d7a7e
Bugfix: Offscreen instance is null during setState (#24734)
acdlite Jun 16, 2022
229c86a
Revert "Land enableClientRenderFallbackOnTextMismatch" (#24738)
acdlite Jun 16, 2022
7cf9f5e
Extra space (#24612)
buyukakyuz Jun 17, 2022
a7c322c
Fix typo in dangerfile.js (insiginificant -> insignificant) (#24393)
urunsiyabend Jun 17, 2022
72ebc70
[DevTools] fix useDeferredValue to match reconciler change (#24742)
mondaychen Jun 17, 2022
12a738f
[Transition Tracing] Add Support for Multiple Transitions on Root (#2…
lunaruan Jun 17, 2022
0f0aca3
Aborting early should not infinitely suspend (#24751)
sebmarkbage Jun 18, 2022
f796fa1
Rename Segment to Task in Flight (#24753)
sebmarkbage Jun 18, 2022
0f216ae
Add entry points for "static" server rendering passes (#24752)
sebmarkbage Jun 19, 2022
56389e8
Abort Flight (#24754)
sebmarkbage Jun 19, 2022
d6255f0
[DevTool] fix build-for-devtools script (#24764)
mondaychen Jun 20, 2022
cf665c4
[DevTools] Refactor incompleteTransitions field from Root Fiber memoi…
lunaruan Jun 21, 2022
9abe745
[DevTools][Timeline Profiler] Component Stacks Backend (#24776)
lunaruan Jun 23, 2022
955cad9
[DevTools] Clean Up DevTools Code (#24782)
lunaruan Jun 23, 2022
652e6c5
[sizebot] Add link to diff view (#24790)
acdlite Jun 25, 2022
1678530
fix hydration warning suppression in text comparisons (#24784)
gnoff Jun 26, 2022
a4bed46
[Transition Tracing] Add Tracing Markers (#24686)
lunaruan Jun 27, 2022
88574c1
Fix enableTransitionTracing flag (#24801)
lunaruan Jun 28, 2022
2e1c884
[DevTools] front-end for profiling event stack (#24805)
blakef Jun 28, 2022
d1432ba
[Transition Tracing] Fix excess calls to the transition start callbac…
lunaruan Jun 29, 2022
f01e119
[DevTools] Log page URL in internal build (#24799)
mondaychen Jun 29, 2022
cd80d32
[DevTools] Add column number to viewSourceLineFunction (#24814)
lunaruan Jun 29, 2022
1974d08
[DevTools] Fix Bugs With Component Stacks (#24815)
lunaruan Jun 29, 2022
4e1fcfa
[DevTools] Resign Timeline Profiler Sidebar (#24816)
lunaruan Jun 30, 2022
6b6cf83
Land forked reconciler changes (#24817)
acdlite Jun 30, 2022
a7b192e
Add test gate alias for Offscreen (#24749)
acdlite Jun 30, 2022
1859329
Track nearest Suspense handler on stack (#24585)
acdlite Jun 30, 2022
4012963
[Transition Tracing] Refactor Transition Tracing Root Code (#24766)
lunaruan Jun 30, 2022
e61fd91
Revert "[Transition Tracing] Refactor Transition Tracing Root Code (#…
acdlite Jun 30, 2022
4cd788a
Revert "Revert [Transition Tracing] Refactor Transition Tracing Root …
lunaruan Jun 30, 2022
c1f5884
Add missing null checks to OffscreenInstance code (#24846)
acdlite Jul 5, 2022
82e9e99
Suspending inside a hidden tree should not cause fallbacks to appear …
acdlite Jul 5, 2022
deab126
[Transition Tracing] Change Transition Type Passed Pending Transition…
lunaruan Jul 6, 2022
8e35b50
[Transition Tracing] Refactor Code to Remove OffscreeInstance TODOs (…
lunaruan Jul 6, 2022
c3b1857
[DevTools][Bugfix] Fix DevTools Perf Issue When Unmounting Large Reac…
lunaruan Jul 7, 2022
95e22ff
Delete Partial Renderer SSR implementation (#24868)
acdlite Jul 7, 2022
5e4e2da
Defer setState callbacks until component is visible (#24872)
acdlite Jul 8, 2022
30eb267
Land forked reconciler changes (#24878)
acdlite Jul 8, 2022
80208e7
[Transition Tracing] Add onTransitionProgress Callback (#24833)
lunaruan Jul 8, 2022
dd2d652
[Transition Tracing] Tracing Marker Name Change in Update Warning (#2…
lunaruan Jul 8, 2022
e225fa4
[Transition Tracing] Don't call transition callbacks if no transition…
lunaruan Jul 11, 2022
b8c96b1
Move ref commit effects inside switch statement
acdlite Jul 8, 2022
3df7e8f
Move flag check into each switch case
acdlite Jul 8, 2022
a1b1e39
Wrap try-catch directly around each user function
acdlite Jul 12, 2022
b641d02
Use recursion to traverse during layout phase
acdlite Jul 12, 2022
5e8c196
[Transition Tracing] onMarkerProgress (#24861)
lunaruan Jul 12, 2022
fa20b31
[Transition Tracing] Code Cleanup (#24880)
lunaruan Jul 12, 2022
f5916d1
[Transition Tracing][Code Cleanup] Delete Marker Name Change Tests (#…
lunaruan Jul 12, 2022
de3c069
Move flag check into each switch case
acdlite Jul 12, 2022
bb1357b
Wrap try-catch directly around each user function
acdlite Jul 12, 2022
7a4336c
Use recursion to traverse during passive mount phase
acdlite Jul 12, 2022
4bc83e6
[DevTools] enable `enableProfilerComponentTree` flag for all builds (…
mondaychen Jul 13, 2022
f629495
[Transition Tracing] Rename transitionCallbacks to unstable_transitio…
lunaruan Jul 13, 2022
d54880d
React DevTools 4.24.7 -> 4.25.0 (#24919)
mondaychen Jul 13, 2022
0220609
Use recursion to traverse during passive unmount phase (#24918)
acdlite Jul 14, 2022
6daf600
add transistion callbacks to hydrateRoot (#24937)
lunaruan Jul 18, 2022
9929119
[DevTools] add simple usage events for internal logging (#24888)
mondaychen Jul 18, 2022
697702b
Use recursion to traverse during "disappear layout" phase
acdlite Jul 13, 2022
41287d4
Use recursion to traverse during "reappear layout" phase
acdlite Jul 14, 2022
679eea3
Extract layout effects to separate functions
acdlite Jul 14, 2022
cfb6cfa
Reused components commit with timing as new ones
acdlite Jul 15, 2022
3ddbedd
[devtools] log more events + metadata (#24951)
mondaychen Jul 19, 2022
59bc52a
Add 4.5.0 release to eslint rules CHANGELOG (#24853)
eps1lon Jul 21, 2022
9bd0dd4
test(react-debug-tools): Improve coverage of currentDispatcher.curren…
eps1lon Jul 21, 2022
6b28bc9
test: Throw custom error instead of relying on runtime error (#24946)
eps1lon Jul 21, 2022
49f8254
Bug fix for <App /> vs. <Counter /> (#24972)
davidrenne Jul 22, 2022
b66936e
devtools: Remove ForwardRef/Memo from display name if `displayName` i…
eps1lon Jul 25, 2022
5f34b05
[Devtools] add logs for profiler tab switch & settings change (#24966)
mondaychen Jul 25, 2022
2c7dea7
Implement Offscreen in Fizz (#24988)
acdlite Jul 26, 2022
4ea064e
Don't fire passive effects during initial mount of a hidden Offscreen…
acdlite Jul 29, 2022
80f3d88
Mount/unmount passive effects when Offscreen visibility changes (#24977)
acdlite Jul 29, 2022
3f3b46c
docs(react-devtools-inline): `react-dom@experimental` instead of `rea…
Saber2pr Jul 30, 2022
9fcaf88
Remove rootContainerInstance from unnecessary places (#25024)
sebmarkbage Aug 2, 2022
e193be8
[Transition Tracing] Add Offscreen Test (#25035)
lunaruan Aug 3, 2022
b4204ed
Clean up unused Deletion flag (#24992)
acdlite Aug 3, 2022
ca990e9
Add API to force Scheduler to yield for macrotask (#25044)
acdlite Aug 5, 2022
17e2a15
Added a comma to understand better the Readme file for the contributo…
Krishnamohan-Yerrabilli Aug 8, 2022
7a22727
revert last grammatical edit (#25067)
zahad-a-s Aug 10, 2022
7bcc687
Remove argument committedLanes from reappearLayoutEffects and recursi…
sammy-SC Aug 11, 2022
4e60dbd
[easy] Clarify folders in react devtools readme #25077
rbalicki2 Aug 11, 2022
8ef3a7c
Resume immediately pinged fiber without unwinding (#25074)
acdlite Aug 12, 2022
32baab3
[Transition Tracing] Add Tag Field to Marker Instance (#25085)
lunaruan Aug 12, 2022
796d318
Implement basic stylesheet Resources for react-dom (#25060)
gnoff Aug 12, 2022
6ef466c
make preamble and postamble types explicit and fix typo (#25102)
gnoff Aug 16, 2022
1e5245d
support subresource integrity for bootstrapScripts and bootstrapModul…
gnoff Aug 17, 2022
19e9a4c
Add missing createServerContext for experimental shared subset (#25114)
huozhi Aug 18, 2022
26ba5fb
[DevTools] Add events necessary for click to inspect on RN (#25111)
tyao1 Aug 19, 2022
1b69a8b
fixture: Fix typo from perfomrance to performance (#25100)
evrenkaraarslan Aug 21, 2022
e25648b
devtools: Fix typo from directores to directories (#25124)
taiga39 Aug 22, 2022
9e67e7a
Scaffolding for useMemoCache hook (#25123)
josephsavona Aug 23, 2022
5d1ce65
Align StrictMode behaviour with production (#25049)
sammy-SC Aug 23, 2022
3d443ca
Update fixtures/flight to webpack 5 (#25115)
timneutkens Aug 24, 2022
1815253
[DevTools] Highlight RN elements on hover (#25106)
tyao1 Aug 24, 2022
3f70e68
Return closestInstance in `getInspectorDataForViewAtPoint` (#25118)
tyao1 Aug 24, 2022
38c5d8a
Test the node-register hooks in unit tests (#25132)
sebmarkbage Aug 24, 2022
d0f3966
Allow functions to be used as module references (#25137)
sebmarkbage Aug 25, 2022
c8b778b
Fix typo: supportsMicrotask -> supportsMicrotasks (#25142)
kvvzr Aug 25, 2022
b798942
[Flight] Add support for Webpack Async Modules (#25138)
sebmarkbage Aug 25, 2022
11ed701
[Transition Tracing] onMarkerIncomplete - Tracing Marker/Suspense Bou…
lunaruan Aug 25, 2022
b6978bc
experimental_use(promise) (#25084)
acdlite Aug 25, 2022
b36f722
Remove ReactFiberFlags MountLayoutDev and MountPassiveDev (#25091)
sammy-SC Aug 25, 2022
0de3ddf
Remove Symbol Polyfill (again) (#25144)
rickhanlonii Aug 25, 2022
9ff738f
[devtools][easy] Fix flow type (#25147)
tyao1 Aug 27, 2022
aa80a30
[react devtools][easy] Rename LOCAL_STORAGE_SHOULD_PATCH_CONSOLE_KEY …
rbalicki2 Aug 30, 2022
a40ddf3
Fix CI: run `yarn prettier-all` (#25163)
kassens Aug 31, 2022
47867a7
[react devtools][easy] Fix code highlighting in VSCode (#25155)
rbalicki2 Aug 31, 2022
7e5322c
run prettier (#25164)
rbalicki2 Aug 31, 2022
8d1b057
[Flight] Minor error handling fixes (#25151)
sebmarkbage Aug 31, 2022
36c908a
Don't use the Flight terminology in public error messages (#25166)
sebmarkbage Sep 1, 2022
2c2d9a1
[eslint-plugin-react-hooks] only allow capitalized component names (#…
kassens Sep 1, 2022
2e7f422
Refactor: its type is Container (#25153)
bubucuo Sep 1, 2022
f0efa11
[flow] remove custom suppress comment config (#25170)
kassens Sep 1, 2022
81b79c7
Added the word 'own' to the README file for design consistency (#25185)
Bchan1999 Sep 6, 2022
a9dc73c
Handle info, group, and groupCollapsed in Strict Mode logging (#25172)
timneutkens Sep 6, 2022
bfb6568
experimental_use(context)(#25202)
mofeiZ Sep 7, 2022
c80e541
[DevTools][Bugfix] Don't hide fragment if it has a key (#25197)
lunaruan Sep 7, 2022
7028ce7
experimental_use(promise) for Server Components (#25207)
acdlite Sep 8, 2022
79e2671
Bump jszip from 2.6.1 to 2.7.0 (#25208)
dependabot[bot] Sep 8, 2022
b3ebca7
Bump moment from 2.29.1 to 2.29.4 in /fixtures/ssr (#24879)
dependabot[bot] Sep 8, 2022
a233134
Bump async from 2.6.3 to 2.6.4 in /fixtures/blocks (#24668)
dependabot[bot] Sep 8, 2022
5ecc656
Bump async from 2.6.3 to 2.6.4 in /fixtures/dom (#24664)
dependabot[bot] Sep 8, 2022
126d3bf
Bump shell-quote in /fixtures/packaging/browserify/prod (#24772)
dependabot[bot] Sep 8, 2022
43aa6f4
Bump jpeg-js from 0.4.3 to 0.4.4 (#24747)
dependabot[bot] Sep 8, 2022
e1020aa
Bump moment from 2.24.0 to 2.29.4 (#24875)
dependabot[bot] Sep 8, 2022
84d7e37
Bump shell-quote in /fixtures/packaging/browserify/dev (#24773)
dependabot[bot] Sep 8, 2022
15d6bd7
Bump terser from 4.8.0 to 4.8.1 in /fixtures/fizz (#24974)
dependabot[bot] Sep 8, 2022
eaf8a13
Bump terser from 4.6.7 to 4.8.1 in /fixtures/blocks (#24970)
dependabot[bot] Sep 8, 2022
0d095a3
Bump cross-fetch from 3.1.4 to 3.1.5 (#24462)
dependabot[bot] Sep 8, 2022
f094ee5
Bump terser from 4.6.13 to 4.8.1 (#24971)
dependabot[bot] Sep 8, 2022
fe55c0e
Bump jsdom from 16.4.0 to 16.7.0 in /fixtures/legacy-jsx-runtimes (#2…
dependabot[bot] Sep 8, 2022
a473d08
Update to Flow from 0.97 to 0.122 (#25204)
kassens Sep 8, 2022
d6f9628
Remove some RSC subset entry points that were removed in the main ent…
sebmarkbage Sep 8, 2022
c28f313
experimental_use(promise) for SSR (#25214)
acdlite Sep 9, 2022
37cc6bf
Remove useDeferredValue and useTransition from Flight subset (#25215)
sebmarkbage Sep 9, 2022
8a9e7b6
Flow: implicit-inexact-object=error (#25210)
kassens Sep 9, 2022
b0593dd
Bump async from 2.6.3 to 2.6.4 in /fixtures/concurrent/time-slicing (…
dependabot[bot] Sep 9, 2022
540ba5b
[react devtools][easy] Change variable names, etc. (#25211)
rbalicki2 Sep 9, 2022
425f9fb
[react devtools] Don't check for NODE_ENV==='test' because it never i…
rbalicki2 Sep 9, 2022
bbd56b2
Flow: enable exact_by_default (#25220)
kassens Sep 9, 2022
492c6e2
Flow: upgrade to 0.127 (#25221)
kassens Sep 9, 2022
8003ab9
Flow: remove explicit object syntax (#25223)
kassens Sep 9, 2022
269c4e9
Prevent infinite re-renders in StrictMode + Offscreen (#25203)
sammy-SC Sep 9, 2022
d5ddc65
Flow: upgrade to 0.131 (#25224)
kassens Sep 9, 2022
3613284
experimental_use(context) for server components and ssr (#25226)
mofeiZ Sep 10, 2022
c156ecd
Add some test coverage for some error cases (#25240)
sebmarkbage Sep 12, 2022
c739cef
Flow: ReactFiberHotReloading recursive type (#25225)
kassens Sep 12, 2022
9328988
Flow: fix Fiber typed as any (#25241)
kassens Sep 12, 2022
ba7b6f4
Flow: upgrade to 0.132 (#25244)
kassens Sep 12, 2022
6aa38e7
Flow: enable unsafe-addition error (#25242)
kassens Sep 12, 2022
f2e4ff0
fix: prettier ignore removed and fixed (#24811)
akulsr0 Sep 13, 2022
e52fa4c
Add early exit to strict mode (#25235)
sammy-SC Sep 13, 2022
5c43c6f
Unwind the current workInProgress if it's suspended (#25247)
sebmarkbage Sep 13, 2022
271bf90
[react devtools][easy] Centralize calls to patchConsoleUsingWindowVal…
rbalicki2 Sep 13, 2022
e6a062b
Flow: add simple explicit export types to Devtools (#25251)
kassens Sep 13, 2022
5fdcd23
Flow: upgrade to 0.140 (#25252)
kassens Sep 13, 2022
0556bab
[Transition Tracing] More Accurate End Time (#25105)
lunaruan Sep 13, 2022
3401e92
useMemoCache implementation (#25143)
josephsavona Sep 13, 2022
aca7f30
CI: extract node_modules cache key computation (#25258)
kassens Sep 13, 2022
346c7d4
straightford explicit types (#25253)
kassens Sep 13, 2022
afe664d
Flow: upgrade to 0.142 (#25255)
kassens Sep 13, 2022
c327b91
CI: try to make caching more reliable (#25259)
kassens Sep 14, 2022
2248dcc
[DevTools] Show DevTools icons in Edge browser panel (#25257)
itskolli Sep 14, 2022
c91a1e0
experimental_useEvent (#25229)
poteto Sep 14, 2022
60fbb7b
[Flight] Implement FlightClient in terms of Thenable/Promises instead…
sebmarkbage Sep 15, 2022
975b644
[Flight] response.readRoot() -> use(response) (#25267)
sebmarkbage Sep 15, 2022
c5d06fd
[Flight] Fix Webpack Chunk Loading (#25271)
sebmarkbage Sep 15, 2022
0b54e00
Handle rejections to avoid uncaught rejections (#25272)
sebmarkbage Sep 15, 2022
fc16293
Flow: well_formed_exports for devtools (#25266)
kassens Sep 15, 2022
e7fc04b
[react-dom] Reorganize react-dom internals to match react (#25277)
gnoff Sep 15, 2022
8951c5f
[DevTools][BE] Read username using gh in release script (#25270)
tyao1 Sep 16, 2022
6e3bc8a
[DevTools] Check if Proxy exists before creating DispatcherProxy (#25…
tyao1 Sep 16, 2022
e099e1d
React DevTools 4.25.0 -> 4.26.0 (#25283)
tyao1 Sep 16, 2022
3d615fc
Grammar. Removed doubles of the word "the". (#25295)
Vicachu42 Sep 19, 2022
b274890
Updated the URL link for serve (#25296)
Bchan1999 Sep 19, 2022
0cac4d5
Double invoked effects on suspended children (#25307)
sammy-SC Sep 21, 2022
d1bb1c5
Fix memory leak after repeated setState bailouts (#25309)
acdlite Sep 22, 2022
112d049
[Fizz] Move digest from errorInfo to Error instance (#25313)
gnoff Sep 22, 2022
e9b071a
Merge remote-tracking branch 'facebook/main' into eslint-plugin-react…
luketanner Sep 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
804 changes: 460 additions & 344 deletions .circleci/config.yml

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"packages": ["packages/react", "packages/react-dom", "packages/scheduler"],
"buildCommand": "build --type=NODE react/index,react-dom/index,react-dom/server,react-dom/test-utils,scheduler/index,scheduler/tracing",
"buildCommand": "download-build-in-codesandbox-ci",
"node": "14",
"publishDirectory": {
"react": "build/node_modules/react",
"react-dom": "build/node_modules/react-dom",
"scheduler": "build/node_modules/scheduler"
"react": "build/oss-experimental/react",
"react-dom": "build/oss-experimental/react-dom",
"scheduler": "build/oss-experimental/scheduler"
},
"sandboxes": ["new"]
"sandboxes": ["new"],
"silent": true
}
7 changes: 5 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ packages/react-devtools-core/dist
packages/react-devtools-extensions/chrome/build
packages/react-devtools-extensions/firefox/build
packages/react-devtools-extensions/shared/build
packages/react-devtools-extensions/src/ErrorTesterCompiled.js
packages/react-devtools-inline/dist
packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/
packages/react-devtools-shared/src/hooks/__tests__/__source__/__untransformed__/
packages/react-devtools-shell/dist
packages/react-devtools-scheduling-profiler/dist
packages/react-devtools-scheduling-profiler/static
packages/react-devtools-timeline/dist
packages/react-devtools-timeline/static
127 changes: 98 additions & 29 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ module.exports = {

parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 8,
ecmaVersion: 9,
sourceType: 'script',
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},

// We're stricter than the default config, mostly. We'll override a few rules
Expand All @@ -48,6 +45,7 @@ module.exports = {
'jsx-quotes': [ERROR, 'prefer-double'],
'keyword-spacing': [ERROR, {after: true, before: true}],
'no-bitwise': OFF,
'no-console': OFF,
'no-inner-declarations': [ERROR, 'functions'],
'no-multi-spaces': ERROR,
'no-restricted-globals': [ERROR].concat(restrictedGlobals),
Expand All @@ -61,6 +59,8 @@ module.exports = {
'space-before-blocks': ERROR,
'space-before-function-paren': OFF,
'valid-typeof': [ERROR, {requireStringLiterals: true}],
// Flow fails with with non-string literal keys
'no-useless-computed-key': OFF,

// We apply these settings to files that should run on Node.
// They can't use JSX or ES6 modules, and must be in strict mode.
Expand All @@ -74,6 +74,8 @@ module.exports = {
// deal. But I turned it off because loading the plugin causes some obscure
// syntax error and it didn't seem worth investigating.
'max-len': OFF,
// Prettier forces semicolons in a few places
'flowtype/object-type-delimiter': OFF,

// React & JSX
// Our transforms set this automatically
Expand Down Expand Up @@ -103,26 +105,59 @@ module.exports = {
// CUSTOM RULES
// the second argument of warning/invariant should be a literal string
'react-internal/no-primitive-constructors': ERROR,
'react-internal/safe-string-coercion': [
ERROR,
{isProductionUserAppCode: true},
],
'react-internal/no-to-warn-dev-within-to-throw': ERROR,
'react-internal/invariant-args': ERROR,
'react-internal/warning-args': ERROR,
'react-internal/no-production-logging': ERROR,
'react-internal/no-cross-fork-imports': ERROR,
'react-internal/no-cross-fork-types': [
ERROR,
{
old: [
'firstEffect',
'nextEffect',
// Disabled because it's also used by the Hook type.
// 'lastEffect',
],
new: ['subtreeFlags'],
old: [],
new: [],
},
],
},

overrides: [
{
// By default, anything error message that appears the packages directory
// must have a corresponding error code. The exceptions are defined
// in the next override entry.
files: ['packages/**/*.js'],
rules: {
'react-internal/prod-error-codes': ERROR,
},
},
{
// These are files where it's OK to have unminified error messages. These
// are environments where bundle size isn't a concern, like tests
// or Node.
files: [
'packages/react-dom/src/test-utils/**/*.js',
'packages/react-devtools-shared/**/*.js',
'packages/react-noop-renderer/**/*.js',
'packages/react-pg/**/*.js',
'packages/react-fs/**/*.js',
'packages/react-refresh/**/*.js',
'packages/react-server-dom-webpack/**/*.js',
'packages/react-test-renderer/**/*.js',
'packages/react-debug-tools/**/*.js',
'packages/react-devtools-extensions/**/*.js',
'packages/react-devtools-timeline/**/*.js',
'packages/react-native-renderer/**/*.js',
'packages/eslint-plugin-react-hooks/**/*.js',
'packages/jest-react/**/*.js',
'packages/**/__tests__/*.js',
'packages/**/npm/*.js',
],
rules: {
'react-internal/prod-error-codes': OFF,
},
},
{
// We apply these settings to files that we ship through npm.
// They must be ES5.
Expand Down Expand Up @@ -168,44 +203,78 @@ module.exports = {
'packages/*/npm/**/*.js',
'packages/dom-event-testing-library/**/*.js',
'packages/react-devtools*/**/*.js',
'dangerfile.js',
'fixtures',
'packages/react-dom/src/test-utils/*.js',
],
rules: {
'react-internal/no-production-logging': OFF,
'react-internal/warning-args': OFF,
'react-internal/safe-string-coercion': [
ERROR,
{isProductionUserAppCode: false},
],

// Disable accessibility checks
'jsx-a11y/aria-role': OFF,
'jsx-a11y/no-noninteractive-element-interactions': OFF,
'jsx-a11y/no-static-element-interactions': OFF,
'jsx-a11y/role-has-required-aria-props': OFF,
'jsx-a11y/no-noninteractive-tabindex': OFF,
'jsx-a11y/tabindex-no-positive': OFF,
},
},
{
files: [
'scripts/eslint-rules/*.js',
'packages/eslint-plugin-react-hooks/src/*.js',
],
plugins: ['eslint-plugin'],
rules: {
'eslint-plugin/prefer-object-rule': ERROR,
'eslint-plugin/require-meta-fixable': [
ERROR,
{catchNoFixerButFixableProperty: true},
],
'eslint-plugin/require-meta-has-suggestions': ERROR,
},
},
{
files: ['packages/react-native-renderer/**/*.js'],
files: [
'packages/react-native-renderer/**/*.js',
'packages/react-server-native-relay/**/*.js',
],
globals: {
nativeFabricUIManager: true,
nativeFabricUIManager: 'readonly',
},
},
{
files: ['packages/react-transport-dom-webpack/**/*.js'],
files: ['packages/react-server-dom-webpack/**/*.js'],
globals: {
__webpack_chunk_load__: true,
__webpack_require__: true,
__webpack_chunk_load__: 'readonly',
__webpack_require__: 'readonly',
},
},
{
files: ['packages/scheduler/**/*.js'],
globals: {
TaskController: true,
TaskController: 'readonly',
},
},
],

globals: {
SharedArrayBuffer: true,

spyOnDev: true,
spyOnDevAndProd: true,
spyOnProd: true,
__PROFILE__: true,
__UMD__: true,
__EXPERIMENTAL__: true,
__VARIANT__: true,
gate: true,
trustedTypes: true,
spyOnDev: 'readonly',
spyOnDevAndProd: 'readonly',
spyOnProd: 'readonly',
__EXPERIMENTAL__: 'readonly',
__EXTENSION__: 'readonly',
__PROFILE__: 'readonly',
__TEST__: 'readonly',
__UMD__: 'readonly',
__VARIANT__: 'readonly',
gate: 'readonly',
trustedTypes: 'readonly',
IS_REACT_ACT_ENVIRONMENT: 'readonly',
},
};
81 changes: 81 additions & 0 deletions .github/ISSUE_TEMPLATE/devtools_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: "⚛️ 🛠 DevTools bug report"
description: "Report a problem with React DevTools. Please provide enough information that we can reproduce the problem."
title: "[DevTools Bug]: "
labels: ["Component: Developer Tools", "Type: Bug", "Status: Unconfirmed"]
body:
- type: input
attributes:
label: Website or app
description: |
Which website or app were you using when the bug happened?

This should be a public URL, GitHub repo, or Code Sandbox app so the React team can reproduce the error being reported. (Please no localhost URLs.)
placeholder: |
e.g. website URL, public GitHub repo, or Code Sandbox app
validations:
required: true
- type: textarea
attributes:
label: Repro steps
description: |
What were you doing on the website or app when the bug happened? Detailed information helps maintainers reproduce and fix bugs.

Issues filed without repro steps will be closed.
placeholder: |
Example bug report:
1. Log in with username/password
2. Click "Messages" on the left menu
3. Open any message in the list
validations:
required: true
- type: dropdown
attributes:
label: How often does this bug happen?
description: |
Following the repro steps above, how easily are you able to reproduce this bug?
options:
- Every time
- Often
- Sometimes
- Only once
validations:
required: true
- type: input
id: automated_package
attributes:
label: DevTools package (automated)
description: |
Please do not edit this field.
- type: input
id: automated_version
attributes:
label: DevTools version (automated)
description: |
Please do not edit this field.
- type: input
id: automated_error_message
attributes:
label: Error message (automated)
description: |
Please do not edit this field.
- type: textarea
id: automated_call_stack
attributes:
label: Error call stack (automated)
description: |
Please do not edit this field.
render: text
- type: textarea
id: automated_component_stack
attributes:
label: Error component stack (automated)
description: |
Please do not edit this field.
render: text
- type: textarea
id: automated_github_query_string
attributes:
label: GitHub query string (automated)
description: |
Please do not edit this field.
render: text
16 changes: 11 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

Before submitting a pull request, please make sure the following is done:

1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
Expand All @@ -20,8 +20,14 @@

## Summary

<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!--
Explain the **motivation** for making this change. What existing problem does the pull request solve?
-->

## Test Plan
## How did you test this change?

<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
<!--
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface.
How exactly did you verify that your PR solves the issue you wanted to solve?
If you leave this empty, your PR will very likely be closed.
-->
Loading