Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ packages/*/build/**
# this transient dep bundles tests with their package, which flow attempts to parse
# and crashes out as the test includes purposely malformed json
**/node_modules/resolve/test/**
**/node_modules/invariant/**

[options]
emoji=true
Expand Down Expand Up @@ -37,4 +38,4 @@ untyped-import
untyped-type-import

[version]
^0.336.0
^0.337.0
23 changes: 23 additions & 0 deletions flow-typed/npm/invariant_v2.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/

declare module 'invariant' {
declare module.exports: (
condition: unknown,
format?: string,
...args: Array<unknown>
) => asserts condition;
}

declare module 'invariant/invariant' {
import typeof Invariant from 'invariant';

declare module.exports: Invariant;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-relay": "^1.8.3",
"flow-api-translator": "0.336.0",
"flow-bin": "^0.336.0",
"flow-bin": "^0.337.0",
"flow-eslint": "0.336.0",
"flow-parser": "0.336.0",
"invariant": "^2.2.4",
Expand Down
1 change: 1 addition & 0 deletions packages/metro-file-map/src/__tests__/addRoot-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ describe('FileMap.addRoot', () => {
await fileMap.build();
await fileMap.addRoot(EXTERNAL_DIR);
const stopWatching = jest.spyOn(
// $FlowFixMe[incompatible-type] Flow 0.337
mockWatchers.get(EXTERNAL_DIR),
'stopWatching',
);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3307,10 +3307,10 @@ flow-api-translator@0.336.0:
flow-transform "0.336.0"
typescript "5.3.2"

flow-bin@^0.336.0:
version "0.336.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.336.0.tgz#ac946f9cdf134b83ab4f7a98a0de34324f6b94f4"
integrity sha512-I5sPg/GISpXH4W14eGWgiIsrDKY0uvvvXjlEDOI2t0pguEwbMgpnaYzMMMBoHZcYYtNJIF/0eGsbPnN7uP2zOQ==
flow-bin@^0.337.0:
version "0.337.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.337.0.tgz#419252403924033308160351e95f723bcf42597c"
integrity sha512-rpr+WvY30RdXPNHbioErMM8tLKUOKJ8/neXPpsDYRBp9z7WDkl4bpTBUMZiqh9ozfdcDWEACBTXwIl94h/ZA0A==

flow-enums-runtime@^0.0.6:
version "0.0.6"
Expand Down
Loading