Skip to content

Commit 082f23c

Browse files
committed
1 parent 393168f commit 082f23c

39 files changed

+273
-282
lines changed

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,6 @@ module.exports = {
427427
globals: {
428428
__webpack_chunk_load__: 'readonly',
429429
__webpack_require__: 'readonly',
430-
__webpack_public_path__: 'readonly',
431-
__webpack_nonce__: 'readonly',
432-
__WEBPACK_FLIGHT_CROSS_ORIGIN_CREDENTIALS__: 'readonly',
433-
__WEBPACK_FLIGHT_CROSS_ORIGIN_ANONYMOUS__: 'readonly',
434430
},
435431
},
436432
{

fixtures/flight/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18

fixtures/flight/server/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if (process.env.NODE_ENV === 'development') {
6969
serverSideRender: true,
7070
headers: () => {
7171
return {
72-
'Cache-Control': 'max-age=10, must-revalidate',
72+
'Cache-Control': 'no-store, must-revalidate',
7373
};
7474
},
7575
})

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
6666
"fbjs-scripts": "^3.0.1",
6767
"filesize": "^6.0.1",
68-
"flow-bin": "^0.202.0",
69-
"flow-remove-types": "^2.202.0",
68+
"flow-bin": "^0.205.1",
69+
"flow-remove-types": "^2.205.1",
7070
"glob": "^7.1.6",
7171
"glob-stream": "^6.1.0",
7272
"google-closure-compiler": "^20230206.0.0",

packages/react-client/src/ReactFlightReplyClient.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ export function processReply(
291291
// Possibly a Date, whose toJSON automatically calls toISOString
292292
// $FlowFixMe[incompatible-use]
293293
const originalValue = parent[key];
294-
// $FlowFixMe[method-unbinding]
295294
if (originalValue instanceof Date) {
296295
return serializeDateFromDateJSON(value);
297296
}

packages/react-client/src/forks/ReactFlightClientConfig.dom-bun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export * from 'react-client/src/ReactFlightClientConfigStream';
1212
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
1313

1414
export type Response = any;
15-
export opaque type SSRManifest = mixed;
15+
export opaque type BundleConfig = mixed;
1616
export opaque type ServerManifest = mixed;
1717
export opaque type ServerReferenceId = string;
1818
export opaque type ClientReferenceMetadata = mixed;

packages/react-devtools-core/src/standalone.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ function onDisconnected() {
167167
disconnectedCallback();
168168
}
169169

170-
// $FlowFixMe[missing-local-annot]
171170
function onError({code, message}: $FlowFixMe) {
172171
safeUnmount();
173172

packages/react-devtools-extensions/flow-typed/jest.js

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

1212
/* eslint-disable no-unused-vars */
1313

14-
type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = {
14+
type JestMockFn<TArguments: $ReadOnlyArray<any>, TReturn> = {
1515
(...args: TArguments): TReturn,
1616
/**
1717
* An object for introspecting mock calls
@@ -626,7 +626,7 @@ interface JestExpectType {
626626
* Use .toBeInstanceOf(Class) to check that an object is an instance of a
627627
* class.
628628
*/
629-
toBeInstanceOf(cls: Class<*>): void;
629+
toBeInstanceOf(cls: Class<any>): void;
630630
/**
631631
* .toBeNull() is the same as .toBe(null) but the error messages are a bit
632632
* nicer.
@@ -815,7 +815,7 @@ type JestObjectType = {
815815
* Returns a new, unused mock function. Optionally takes a mock
816816
* implementation.
817817
*/
818-
fn<TArguments: $ReadOnlyArray<*>, TReturn>(
818+
fn<TArguments: $ReadOnlyArray<any>, TReturn>(
819819
implementation?: (...args: TArguments) => TReturn
820820
): JestMockFn<TArguments, TReturn>,
821821
/**

packages/react-devtools-extensions/src/backendManager.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {COMPACT_VERSION_NAME} from './utils';
1616

1717
let welcomeHasInitialized = false;
1818

19-
// $FlowFixMe[missing-local-annot]
2019
function welcome(event: $FlowFixMe) {
2120
if (
2221
event.source !== window ||

packages/react-devtools-shared/src/backend/legacy/renderer.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ export function attach(
244244
parentIDStack.pop();
245245
return result;
246246
} catch (err) {
247-
// $FlowFixMe[incompatible-type] found when upgrading Flow
248247
parentIDStack = [];
249248
throw err;
250249
} finally {
@@ -281,7 +280,6 @@ export function attach(
281280
parentIDStack.pop();
282281
return result;
283282
} catch (err) {
284-
// $FlowFixMe[incompatible-type] found when upgrading Flow
285283
parentIDStack = [];
286284
throw err;
287285
} finally {
@@ -318,7 +316,6 @@ export function attach(
318316
parentIDStack.pop();
319317
return result;
320318
} catch (err) {
321-
// $FlowFixMe[incompatible-type] found when upgrading Flow
322319
parentIDStack = [];
323320
throw err;
324321
} finally {
@@ -350,7 +347,6 @@ export function attach(
350347

351348
return result;
352349
} catch (err) {
353-
// $FlowFixMe[incompatible-type] found when upgrading Flow
354350
parentIDStack = [];
355351
throw err;
356352
} finally {

0 commit comments

Comments
 (0)