Skip to content

Commit

Permalink
Upgrade Flow to 0.181.0 (#8244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jun 24, 2022
1 parent e10fcfc commit aa83272
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Expand Up @@ -36,4 +36,4 @@ untyped-import
untyped-type-import

[version]
0.180.0
0.181.0
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
"@types/node": "^15.12.4",
"cross-env": "^7.0.0",
"eslint": "^7.20.0",
"flow-bin": "0.180.0",
"flow-bin": "0.181.0",
"glob": "^7.1.6",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
Expand Down
5 changes: 0 additions & 5 deletions packages/core/core/src/dumpGraphToGraphViz.js
Expand Up @@ -33,7 +33,6 @@ const TYPE_COLORS = {
};

export default async function dumpGraphToGraphViz(
// $FlowFixMe
graph:
| Graph<AssetGraphNode>
| Graph<{|
Expand Down Expand Up @@ -137,23 +136,19 @@ export default async function dumpGraphToGraphViz(
}
} else if (node.type === 'asset_group') {
if (node.deferred) label += '(deferred)';
// $FlowFixMe
} else if (node.type === 'file') {
label += path.basename(node.value.filePath);
// $FlowFixMe
} else if (node.type === 'transformer_request') {
label +=
path.basename(node.value.filePath) +
` (${getEnvDescription(node.value.env)})`;
// $FlowFixMe
} else if (node.type === 'bundle') {
let parts = [];
if (node.value.needsStableName) parts.push('stable name');
parts.push(node.value.name);
parts.push('bb:' + (node.value.bundleBehavior ?? 'null'));
if (parts.length) label += ' (' + parts.join(', ') + ')';
if (node.value.env) label += ` (${getEnvDescription(node.value.env)})`;
// $FlowFixMe
} else if (node.type === 'request') {
label = node.value.type + ':' + node.id;
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/core/src/public/Symbols.js
Expand Up @@ -75,7 +75,6 @@ export class AssetSymbols implements IAssetSymbols {
}

exportSymbols(): Iterable<ISymbol> {
// $FlowFixMe
return this.#value.symbols?.keys() ?? [];
}
// $FlowFixMe
Expand Down
2 changes: 0 additions & 2 deletions packages/core/core/src/serializerCore.js
@@ -1,7 +1,5 @@
// @flow
import v8 from 'v8';

// $FlowFixMe - Flow doesn't know about this method yet
export let serializeRaw: any => Buffer = v8.serialize;
// $FlowFixMe - Flow doesn't know about this method yet
export let deserializeRaw: Buffer => any = v8.deserialize;
1 change: 0 additions & 1 deletion packages/core/test-utils/src/utils.js
Expand Up @@ -1130,7 +1130,6 @@ export async function assertNoFilePathInCache(
if (contents.includes(projectRoot)) {
let deserialized;
try {
// $FlowFixMe
deserialized = v8.deserialize(contents);
} catch (err) {
// rudimentary detection of binary files
Expand Down
1 change: 0 additions & 1 deletion packages/core/workers/src/child.js
Expand Up @@ -163,7 +163,6 @@ export class Child {
try {
let v8 = require('v8');
result = responseFromContent(
// $FlowFixMe
v8.writeHeapSnapshot(
'heap-' +
args[0] +
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -6050,10 +6050,10 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==

flow-bin@0.180.0:
version "0.180.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.180.0.tgz#7a26f3a0cff61e386267e72ef7971d1af73e317a"
integrity sha512-jEZoIwOxzrtQ0erUu94nEzlqUoX7OAMeVs0CjO0rN6b7SDBhI5IysVRvGSQkkFWBJpy5VQ9lvzBYzq5Sq9vcmg==
flow-bin@0.181.0:
version "0.181.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.181.0.tgz#0a0ceee391dea166232958826c09ac2973eec9ae"
integrity sha512-JVuD0GN9IhAj0WgS3e2BDstTOpx4KmYMTdiVSjeeLud49gs8EN5Ah/Jw59d7rdSXn1fTodoepPe1cKwleDoEag==

flush-write-stream@^1.0.0, flush-write-stream@^1.0.2:
version "1.1.1"
Expand Down

0 comments on commit aa83272

Please sign in to comment.