Skip to content

Commit

Permalink
Flow v0.76.0
Browse files Browse the repository at this point in the history
Reviewed By: TheSavior

Differential Revision: D8754160

fbshipit-source-id: 2f02240b6d65edecba5d9ed603c7703462547a7f
  • Loading branch information
gabelevi authored and facebook-github-bot committed Jul 9, 2018
1 parent fd8b975 commit bab9259
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Expand Up @@ -19,4 +19,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
munge_underscores=true

[version]
^0.75.0
^0.76.0
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.6.1",
"eslint-plugin-relay": "0.0.23",
"flow-bin": "^0.75.0",
"flow-bin": "^0.76.0",
"glob": "^7.1.1",
"istanbul-api": "^1.1.0",
"istanbul-lib-coverage": "^1.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/metro/src/commands/build.js
Expand Up @@ -56,7 +56,6 @@ module.exports = () => ({

// eslint-disable-next-line lint/no-unclear-flowtypes
handler: makeAsyncCommand(async (argv: any) => {
// $FlowFixMe: Flow + Promises don't work consistently https://fb.facebook.com/groups/flow/permalink/1772334656148475/
const config = await MetroApi.loadMetroConfig(argv.config);

if (argv.projectRoots) {
Expand Down
1 change: 0 additions & 1 deletion packages/metro/src/commands/serve.js
Expand Up @@ -65,7 +65,6 @@ module.exports = () => ({
await promisify(server.close).call(server);
}

// $FlowFixMe: Flow + Promises don't work consistently https://fb.facebook.com/groups/flow/permalink/1772334656148475/
const config = await MetroApi.loadMetroConfig(argv.config);

if (argv.projectRoots) {
Expand Down
11 changes: 2 additions & 9 deletions packages/metro/src/node-haste/Package.js
Expand Up @@ -97,10 +97,7 @@ class Package {
if (!name.startsWith('.') && !path.isAbsolute(name)) {
const replacement = replacements[name];
// support exclude with "someDependency": false
return replacement === false
? false
: /* $FlowFixMe: type of replacements is not being validated */
replacement || name;
return replacement === false ? false : replacement || name;
}

let relPath =
Expand All @@ -126,11 +123,7 @@ class Package {
}

if (redirect) {
return path.join(
this._root,
/* $FlowFixMe: `getReplacements` doesn't validate the return value. */
redirect,
);
return path.join(this._root, redirect);
}

return name;
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -2629,9 +2629,9 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

flow-bin@^0.75.0:
version "0.75.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.75.0.tgz#b96d1ee99d3b446a3226be66b4013224ce9df260"
flow-bin@^0.76.0:
version "0.76.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.76.0.tgz#eb00036991c3abc106743fcbc7ee321f02aa4faa"

for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit bab9259

Please sign in to comment.