Skip to content

Commit

Permalink
Flow: upgrade to version 0.192.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml authored and kodiakhq[bot] committed Nov 4, 2022
1 parent 779ed4c commit d56bb16
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
1 change: 0 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ untyped-import
[options]
emoji=true
exact_by_default=true
exact_empty_objects=true
include_warnings=true
inference_mode=constrain_writes

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"babel-loader": "^8.3.0",
"eslint": "^8.26.0",
"eslint-formatter-codeframe": "^7.32.1",
"flow-bin": "^0.191.0",
"flow-bin": "^0.192.0",
"glob": "^8.0.3",
"hermes-eslint": "^0.9.0",
"jest": "^29.2.2",
Expand Down
9 changes: 9 additions & 0 deletions src/fetch/src/__tests__/Deferred.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ it('works as expected - resolves', async () => {

const handleThen = jest.fn();
const handleCatch = jest.fn();
/* $FlowFixMe[unused-promise-in-async-scope] This comment suppresses an error
* when upgrading Flow to version 0.192.0. To see the error delete this
* comment and run Flow. */
promise.then(handleThen).catch(handleCatch);

expect(deferred.isSettled()).toBe(false);
Expand All @@ -29,6 +32,9 @@ it('works as expected - rejects', async () => {

const handleThen = jest.fn();
const handleCatch = jest.fn();
/* $FlowFixMe[unused-promise-in-async-scope] This comment suppresses an error
* when upgrading Flow to version 0.192.0. To see the error delete this
* comment and run Flow. */
promise.then(handleThen).catch(handleCatch);

expect(deferred.isSettled()).toBe(false);
Expand All @@ -46,6 +52,9 @@ it('works as expected - alternative approach to resolve', async () => {

const handleThen = jest.fn();
const handleCatch = jest.fn();
/* $FlowFixMe[unused-promise-in-async-scope] This comment suppresses an error
* when upgrading Flow to version 0.192.0. To see the error delete this
* comment and run Flow. */
deferred.then(handleThen).catch(handleCatch);

expect(deferred.isSettled()).toBe(false);
Expand Down
3 changes: 3 additions & 0 deletions src/icons/generator/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const TEMPLATES_PATH = path.join(__dirname, 'templates');
const sourceFile = path.join(SOURCE_PATH, originalFilename);
const destinationFile = path.join(DESTINATION_PATH, `${componentNamePascalCase}.js`);

/* $FlowFixMe[unused-promise-in-async-scope] This comment suppresses an
* error when upgrading Flow to version 0.192.0. To see the error delete
* this comment and run Flow. */
svg2jsx(fs.readFileSync(sourceFile, 'utf8'), componentNamePascalCase).then(
(transformedIcon) => {
warning(false, destinationFile);
Expand Down
3 changes: 3 additions & 0 deletions src/sx/src/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export default function create<T: SheetDefinitions>(sheetDefinitions: T): Create

// expose the hash registry for external styles merging
for (const sheetDefinitionKey of Object.keys(sheetDefinitions)) {
/* $FlowFixMe[prop-missing] This comment suppresses an error when upgrading
* Flow to version 0.192.0. To see the error delete this comment and run
* Flow. */
sxFunction[sheetDefinitionKey] = sheetDefinitions[sheetDefinitionKey];
}

Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10386,12 +10386,12 @@ __metadata:
languageName: node
linkType: hard

"flow-bin@npm:^0.191.0":
version: 0.191.0
resolution: "flow-bin@npm:0.191.0"
"flow-bin@npm:^0.192.0":
version: 0.192.0
resolution: "flow-bin@npm:0.192.0"
bin:
flow: cli.js
checksum: 84b3ba07521c2253d069e090fb3a076371ee4926b78bdbc241a32ed725a1bf19656ed9831367c1e8f93884f893548649cd069bd3d6f4f08523b5fa97bf1e0b96
checksum: 48574caf681ec1cf7d3eb7ba6fe31dfad88f37db8c34f06101c2791435eb1070d869c6936e351a3e900ac0d3be6c74d8044614276ce51a52cbcef7ac0b57f3e7
languageName: node
linkType: hard

Expand Down Expand Up @@ -17333,7 +17333,7 @@ __metadata:
babel-loader: ^8.3.0
eslint: ^8.26.0
eslint-formatter-codeframe: ^7.32.1
flow-bin: ^0.191.0
flow-bin: ^0.192.0
glob: ^8.0.3
hermes-eslint: ^0.9.0
jest: ^29.2.2
Expand Down

0 comments on commit d56bb16

Please sign in to comment.