Skip to content

Commit 85a6f01

Browse files
gabeleviFacebook Github Bot 7
authored andcommitted
Deploy v0.32.0
Reviewed By: jeffmo Differential Revision: D3821852 fbshipit-source-id: 01fd16707cba860a830d682a2af2bdd542605abf
1 parent 300cb03 commit 85a6f01

File tree

10 files changed

+20
-13
lines changed

10 files changed

+20
-13
lines changed

.flowconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ suppress_type=$FlowIssue
4747
suppress_type=$FlowFixMe
4848
suppress_type=$FixMe
4949

50-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-1]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
51-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-1]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
50+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-2]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
51+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-2]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
5252
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
5353

5454
unsafe.enable_getters_and_setters=true
5555

5656
[version]
57-
^0.31.0
57+
^0.32.0

IntegrationTests/PromiseTest.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class PromiseTest extends React.Component {
2828
this.testShouldSucceedAsync(),
2929
this.testShouldThrowAsync(),
3030
]).then(() => TestModule.markTestPassed(
31-
// $FlowFixMe found when converting React.createClass to ES6
3231
this.shouldResolve && this.shouldReject &&
33-
// $FlowFixMe found when converting React.createClass to ES6
3432
this.shouldSucceedAsync && this.shouldThrowAsync
3533
));
3634
}

Libraries/Experimental/SwipeableRow/SwipeableListView.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class SwipeableListView extends React.Component {
9494
dataSource: this.props.dataSource,
9595
};
9696

97-
_listViewRef: ?string = null;
97+
_listViewRef: ?ReactElement<any> = null;
9898
_shouldBounceFirstRowOnMount = false;
9999

100100
componentWillMount(): void {
@@ -132,7 +132,8 @@ class SwipeableListView extends React.Component {
132132
* (from high 20s to almost consistently 60 fps)
133133
*/
134134
_setListViewScrollable = (value: boolean): void => {
135-
if (this._listViewRef && this._listViewRef.setNativeProps) {
135+
if (this._listViewRef &&
136+
typeof this._listViewRef.setNativeProps === 'function') {
136137
this._listViewRef.setNativeProps({
137138
scrollEnabled: value,
138139
});
@@ -141,7 +142,8 @@ class SwipeableListView extends React.Component {
141142

142143
// Passing through ListView's getScrollResponder() function
143144
getScrollResponder = (): ?Object => {
144-
if (this._listViewRef && this._listViewRef.getScrollResponder) {
145+
if (this._listViewRef &&
146+
typeof this._listViewRef.getScrollResponder === 'function') {
145147
return this._listViewRef.getScrollResponder();
146148
}
147149
};

Libraries/JavaScriptAppEngine/Initialization/ExceptionsManager.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ function handleException(e: Error, isFatal: boolean) {
5858
e = new Error(e);
5959
}
6060

61-
(console._errorOriginal || console.error)(e.message);
61+
if (typeof console._errorOriginal === 'function') {
62+
console._errorOriginal(e.message);
63+
} else {
64+
console.error(e.message);
65+
}
6266
reportException(e, isFatal);
6367
}
6468

Libraries/JavaScriptAppEngine/Initialization/parseErrorStack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function parseErrorStack(e: Error): Array<StackFrame> {
2626

2727
var stack = Array.isArray(e.stack) ? e.stack : stacktraceParser.parse(e.stack);
2828

29-
var framesToPop = e.framesToPop || 0;
29+
var framesToPop = typeof e.framesToPop === 'number' ? e.framesToPop : 0;
3030
while (framesToPop--) {
3131
stack.shift();
3232
}

Libraries/JavaScriptAppEngine/System/JSTimers/JSTimers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ function _allocateCallback(func: Function, type: $Keys<typeof JSTimersExecution.
3737
e.framesToPop = 1;
3838
const stack = parseErrorStack(e);
3939
if (stack) {
40+
/* $FlowFixMe(>=0.32.0) - this seems to be putting something of the wrong
41+
* type into identifiers */
4042
JSTimersExecution.identifiers[freeIndex] = stack.shift();
4143
}
4244
}

Libraries/JavaScriptAppEngine/System/JSTimers/JSTimersExecution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const JSTimersExecution = {
4646
timerIDs: [],
4747
immediates: [],
4848
requestIdleCallbacks: [],
49-
identifiers: ([] : [{methodName: string}]),
49+
identifiers: ([] : Array<null | {methodName: string}>),
5050

5151
errors: (null : ?[Error]),
5252

Libraries/NavigationExperimental/NavigationTransitioner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ function buildTransitionProps(
251251
position,
252252
progress,
253253
scenes,
254+
// $FlowFixMe(>=0.32.0) - find can return undefined
254255
scene: scenes.find(isSceneActive),
255256
};
256257
}

Libraries/ReactIOS/YellowBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function isWarningIgnored(warning: string): boolean {
144144
return (
145145
Array.isArray(console.ignoredYellowBox) &&
146146
console.ignoredYellowBox.some(
147-
ignorePrefix => warning.startsWith(ignorePrefix)
147+
ignorePrefix => warning.startsWith(String(ignorePrefix))
148148
)
149149
);
150150
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
"eslint-plugin-babel": "^3.2.0",
208208
"eslint-plugin-flow-vars": "^0.2.1",
209209
"eslint-plugin-react": "^4.2.1",
210-
"flow-bin": "^0.31.1",
210+
"flow-bin": "^0.32.0",
211211
"jest": "15.1.0",
212212
"jest-repl": "15.1.0",
213213
"jest-runtime": "15.1.0",

0 commit comments

Comments
 (0)