Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 8c5ef78

Browse files
committed
Upgrade to flow 0.17.0
Also simplify the `.flowconfig` as we don't make use of these extra options.
1 parent ca7d0e4 commit 8c5ef78

3 files changed

Lines changed: 6 additions & 19 deletions

File tree

.flowconfig

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@
99
flow
1010

1111
[options]
12-
suppress_type=$FlowIssue
13-
suppress_type=$FlowFixMe
14-
suppress_type=$FixMe
15-
16-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-6]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
17-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-6]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
18-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
12+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
13+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
1914

2015
[version]
21-
0.16.0
16+
0.17.0

agent/inject.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@
1010
*/
1111
'use strict';
1212

13-
import type {DataType, RendererID, OpaqueNodeHandle, Helpers, Hook} from '../backend/types';
13+
import type {Hook} from '../backend/types';
14+
import type Agent from './Agent';
1415

1516
var setupBackend = require('../backend/backend');
1617

17-
type Agent = {
18-
addRoot: (renderer: RendererID, el: OpaqueNodeHandle) => void,
19-
onMounted: (renderer: RendererID, el: OpaqueNodeHandle, data: DataType) => void,
20-
onUpdated: (el: OpaqueNodeHandle, data: DataType) => void,
21-
onUnmounted: (el: OpaqueNodeHandle) => void,
22-
setReactInternals: (renderer: RendererID, internals: Helpers) => void,
23-
on: (evt: string, fn: (...args: Array<any>) => any) => any,
24-
};
25-
2618
module.exports = function(hook: Hook, agent: Agent) {
2719
var subs = [
2820
hook.sub('renderer-attached', ({id, renderer, helpers}) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"babel-loader": "^5.1.4",
3434
"eslint": "^1.5.1",
3535
"eslint-plugin-react": "^3.5.0",
36-
"flow-bin": "0.16.0",
36+
"flow-bin": "0.17.0",
3737
"jest-cli": "^0.5.0",
3838
"json-loader": "^0.5.2",
3939
"node-libs-browser": "^0.5.2",

0 commit comments

Comments
 (0)