Skip to content

Commit 03bf2a9

Browse files
thymikeecpojer
authored andcommitted
chore: Use Flow 0.64.0 (#5419)
1 parent 1f6e35c commit 03bf2a9

5 files changed

Lines changed: 24 additions & 14 deletions

File tree

.flowconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[ignore]
22
.*/examples/.*
3+
.*/node_modules/metro-bundler/.*
34

45
[options]
56
module.name_mapper='^pretty-format$' -> '<PROJECT_ROOT>/packages/pretty-format/src/index.js'
@@ -9,4 +10,4 @@ include_warnings=true
910
emoji=true
1011

1112
[version]
12-
^0.61.0
13+
^0.64.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint-plugin-react": "^7.1.0",
3838
"eslint-plugin-relay": "~0.0.19",
3939
"eslint-plugin-unicorn": "^3.0.0",
40-
"flow-bin": "^0.61.0",
40+
"flow-bin": "^0.64.0",
4141
"glob": "^7.1.1",
4242
"graceful-fs": "^4.1.11",
4343
"immutable": "^4.0.0-rc.7",

packages/jest-cli/src/reporters/Status.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class Status {
7070
_emitScheduled: boolean;
7171
_estimatedTime: number;
7272
_height: number;
73-
_interval: number;
73+
_interval: IntervalID;
7474
_aggregatedResults: AggregatedResult;
7575
_lastUpdated: number;
7676
_showStatus: boolean;

packages/jest-haste-map/src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type {
1818
MockData,
1919
} from 'types/HasteMap';
2020

21-
import typeof {worker} from './worker';
21+
import {worker} from './worker';
2222

2323
// eslint-disable-next-line import/no-duplicates
2424
import typeof HType from './constants';
@@ -87,7 +87,7 @@ type Watcher = {
8787
close(callback: () => void): void,
8888
};
8989

90-
type WorkerInterface = {worker: worker};
90+
type WorkerInterface = {worker: typeof worker};
9191

9292
export type ModuleMap = HasteModuleMap;
9393
export type FS = HasteFS;
@@ -199,7 +199,7 @@ const getWhiteList = (list: ?Array<string>): ?RegExp => {
199199
class HasteMap extends EventEmitter {
200200
_buildPromise: ?Promise<HasteMapObject>;
201201
_cachePath: Path;
202-
_changeInterval: number;
202+
_changeInterval: IntervalID;
203203
_console: Console;
204204
_options: InternalOptions;
205205
_watchers: Array<Watcher>;
@@ -519,14 +519,14 @@ class HasteMap extends EventEmitter {
519519
_getWorker(options: ?{forceInBand: boolean}): WorkerInterface {
520520
if (!this._worker) {
521521
if ((options && options.forceInBand) || this._options.maxWorkers <= 1) {
522-
this._worker = require('./worker');
522+
this._worker = {worker};
523523
} else {
524524
// $FlowFixMe: assignment of a worker with custom properties.
525-
this._worker = new Worker(require.resolve('./worker'), {
525+
this._worker = (new Worker(require.resolve('./worker'), {
526526
exposedMethods: ['worker'],
527527
maxRetries: 3,
528528
numWorkers: this._options.maxWorkers,
529-
});
529+
}): {worker: typeof worker});
530530
}
531531
}
532532

yarn.lock

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3325,9 +3325,9 @@ flat-cache@^1.2.1:
33253325
graceful-fs "^4.1.2"
33263326
write "^0.2.1"
33273327

3328-
flow-bin@^0.61.0:
3329-
version "0.61.0"
3330-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.61.0.tgz#d0473a8c35dbbf4de573823f4932124397d32d35"
3328+
flow-bin@^0.64.0:
3329+
version "0.64.0"
3330+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.64.0.tgz#ddd3fb3b183ab1ab35a5d5dec9caf5ebbcded167"
33313331

33323332
flow-remove-types@^1.1.0:
33333333
version "1.2.3"
@@ -5598,6 +5598,15 @@ node-notifier@^5.1.2:
55985598
shellwords "^0.1.0"
55995599
which "^1.2.12"
56005600

5601+
node-notifier@^5.2.1:
5602+
version "5.2.1"
5603+
resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea"
5604+
dependencies:
5605+
growly "^1.3.0"
5606+
semver "^5.4.1"
5607+
shellwords "^0.1.1"
5608+
which "^1.3.0"
5609+
56015610
node-pre-gyp@^0.6.39:
56025611
version "0.6.39"
56035612
resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649"
@@ -7222,7 +7231,7 @@ shelljs@^0.7.8:
72227231
interpret "^1.0.0"
72237232
rechoir "^0.6.2"
72247233

7225-
shellwords@^0.1.0:
7234+
shellwords@^0.1.0, shellwords@^0.1.1:
72267235
version "0.1.1"
72277236
resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"
72287237

@@ -8196,7 +8205,7 @@ which-module@^2.0.0:
81968205
version "2.0.0"
81978206
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
81988207

8199-
which@^1.2.1, which@^1.2.12, which@^1.2.14, which@^1.2.9:
8208+
which@^1.2.1, which@^1.2.12, which@^1.2.14, which@^1.2.9, which@^1.3.0:
82008209
version "1.3.0"
82018210
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
82028211
dependencies:

0 commit comments

Comments
 (0)