Update flow (0.61.0) and declare context type (#11840)
Raphael Amorim committed
Dec 18, 2017 at 10:04 UTC
ef9f1b6e23b92366b2e4521b7b99eab4e5cd0396
5 files changed
+8
-8
.flowconfig
+1
-1
@@ -39,4 +39,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
39
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
40
41
[version]
42
-^0.57.3
42
+^0.61.0
appveyor.yml
+1
-1
@@ -30,7 +30,7 @@ install:
30
test_script:
31
- node --version
32
- yarn lint
33
-# - yarn flow (TODO: investigate why it fails on Windows)
33
+ - yarn flow
34
- yarn build
35
- yarn test
36
package.json
+1
-1
@@ -60,7 +60,7 @@
60
"fbjs": "^0.8.16",
61
"fbjs-scripts": "^0.6.0",
62
"filesize": "^3.5.6",
63
- "flow-bin": "^0.57.3",
63
+ "flow-bin": "^0.61.0",
64
"git-branch": "^0.3.0",
65
"glob": "^6.0.4",
66
"glob-stream": "^6.1.0",
packages/react-reconciler/src/ReactFiberHostContext.js
+2
-2
@@ -82,8 +82,8 @@ export default function<T, P, I, TI, HI, PI, C, CC, CX, PL>(
82
}
83
84
function pushHostContext(fiber: Fiber): void {
85
- const rootInstance = requiredContext(rootInstanceStackCursor.current);
86
- const context = requiredContext(contextStackCursor.current);
85
+ const rootInstance: C = requiredContext(rootInstanceStackCursor.current);
86
+ const context: CX = requiredContext(contextStackCursor.current);
87
const nextContext = getChildHostContext(context, fiber.type, rootInstance);
88
89
// Don't push this Fiber's context unless it's unique.
yarn.lock
+3
-3
@@ -1979,9 +1979,9 @@ flat-cache@^1.2.1:
1979
graceful-fs "^4.1.2"
1980
write "^0.2.1"
1981
1982
-flow-bin@^0.57.3:
1983
- version "0.57.3"
1984
- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.57.3.tgz#843fb80a821b6d0c5847f7bb3f42365ffe53b27b"
1982
+flow-bin@^0.61.0:
1983
+ version "0.61.0"
1984
+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.61.0.tgz#d0473a8c35dbbf4de573823f4932124397d32d35"
1985
1986
for-in@^1.0.1:
1987
version "1.0.2"