Skip to content

Commit cc911d0

Browse files
committed
Merge with master
1 parent 9776fd1 commit cc911d0

File tree

196 files changed

+25563
-2578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+25563
-2578
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ module.exports = {
9898
'react-internal/invariant-args': ERROR,
9999
'react-internal/warning-args': ERROR,
100100
'react-internal/no-production-logging': ERROR,
101+
'react-internal/no-cross-fork-imports': ERROR,
101102
},
102103

103104
overrides: [
@@ -161,8 +162,8 @@ module.exports = {
161162
{
162163
files: ['packages/react-flight-dom-webpack/**/*.js'],
163164
globals: {
164-
'__webpack_chunk_load__': true,
165-
'__webpack_require__': true,
165+
__webpack_chunk_load__: true,
166+
__webpack_require__: true,
166167
},
167168
},
168169
],

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ issues:
1919
markComment: >
2020
This issue has been automatically marked as stale.
2121
**If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open.
22-
We are sorry that we haven't been able to prioritize it yet. If you have any additional information, please include with in your comment!
22+
We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
2323
# Comment to post when closing a stale issue.
2424
closeComment: >
2525
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
"flow-ci": "node ./scripts/tasks/flow-ci.js",
125125
"prettier": "node ./scripts/prettier/index.js write-changed",
126126
"prettier-all": "node ./scripts/prettier/index.js write",
127-
"version-check": "node ./scripts/tasks/version-check.js"
127+
"version-check": "node ./scripts/tasks/version-check.js",
128+
"merge-fork": "node ./scripts/merge-fork/merge-fork.js"
128129
}
129130
}

packages/create-subscription/src/__tests__/createSubscription-test.internal.js renamed to packages/create-subscription/src/__tests__/createSubscription-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
let createSubscription;
1313
let BehaviorSubject;
14-
let ReactFeatureFlags;
1514
let React;
1615
let ReactNoop;
1716
let Scheduler;
@@ -21,8 +20,7 @@ describe('createSubscription', () => {
2120
beforeEach(() => {
2221
jest.resetModules();
2322
createSubscription = require('create-subscription').createSubscription;
24-
ReactFeatureFlags = require('shared/ReactFeatureFlags');
25-
ReactFeatureFlags.debugRenderPhaseSideEffectsForStrictMode = false;
23+
2624
React = require('react');
2725
ReactNoop = require('react-noop-renderer');
2826
Scheduler = require('scheduler');

packages/legacy-events/PluginModuleType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @flow
88
*/
99

10-
import type {Fiber} from 'react-reconciler/src/ReactFiber';
10+
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
1111
import type {
1212
DispatchConfig,
1313
ReactSyntheticEvent,

packages/legacy-events/ReactSyntheticEventType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @flow
99
*/
1010

11-
import type {Fiber} from 'react-reconciler/src/ReactFiber';
11+
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
1212
import type {EventPriority} from 'shared/ReactTypes';
1313
import type {TopLevelType} from './TopLevelEventTypes';
1414

packages/react-art/src/__tests__/ReactART-test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ describe('ReactART', () => {
391391
</CurrentRendererContext.Provider>,
392392
);
393393

394-
expect(Scheduler).toFlushAndYieldThrough(__DEV__ ? ['A', 'A'] : ['A']);
394+
expect(Scheduler).toFlushAndYieldThrough(['A']);
395395

396396
ReactDOM.render(
397397
<Surface>
@@ -406,9 +406,7 @@ describe('ReactART', () => {
406406
expect(ops).toEqual([null, 'ART']);
407407

408408
ops = [];
409-
expect(Scheduler).toFlushAndYield(
410-
__DEV__ ? ['B', 'B', 'C', 'C'] : ['B', 'C'],
411-
);
409+
expect(Scheduler).toFlushAndYield(['B', 'C']);
412410

413411
expect(ops).toEqual(['Test']);
414412
});

packages/react-cache/src/__tests__/ReactCache-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('ReactCache', () => {
2424
jest.resetModules();
2525

2626
ReactFeatureFlags = require('shared/ReactFeatureFlags');
27-
ReactFeatureFlags.debugRenderPhaseSideEffectsForStrictMode = false;
27+
2828
ReactFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback = false;
2929
React = require('react');
3030
Suspense = React.Suspense;

packages/react-debug-tools/src/ReactDebugHooks.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ import type {
1717
ReactEventResponderListener,
1818
ReactScopeMethods,
1919
} from 'shared/ReactTypes';
20-
import type {Fiber} from 'react-reconciler/src/ReactFiber';
20+
import type {
21+
Fiber,
22+
Dispatcher as DispatcherType,
23+
} from 'react-reconciler/src/ReactInternalTypes';
2124
import type {OpaqueIDType} from 'react-reconciler/src/ReactFiberHostConfig';
2225

23-
import type {Hook, TimeoutConfig} from 'react-reconciler/src/ReactFiberHooks';
24-
import type {Dispatcher as DispatcherType} from 'react-reconciler/src/ReactFiberHooks';
2526
import type {SuspenseConfig} from 'react-reconciler/src/ReactFiberSuspenseConfig';
2627
import {NoMode} from 'react-reconciler/src/ReactTypeOfMode';
2728

@@ -67,6 +68,15 @@ let primitiveStackCache: null | Map<string, Array<any>> = null;
6768

6869
let currentFiber: Fiber | null = null;
6970

71+
type Hook = {
72+
memoizedState: any,
73+
next: Hook | null,
74+
};
75+
76+
type TimeoutConfig = {|
77+
timeoutMs: number,
78+
|};
79+
7080
function getPrimitiveStackCache(): Map<string, Array<any>> {
7181
// This initializes a cache of all primitive hooks so that the top
7282
// most stack frames added by calling the primitive hook can be removed.

packages/react-devtools-shared/src/backend/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import {getInternalReactConstants} from './renderer';
1111
import describeComponentFrame from './describeComponentFrame';
1212

13-
import type {Fiber} from 'react-reconciler/src/ReactFiber';
13+
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
1414
import type {ReactRenderer} from './types';
1515

1616
const APPEND_STACK_TO_METHODS = ['error', 'trace', 'warn'];

0 commit comments

Comments
 (0)