Skip to content

Commit

Permalink
Deploy v0.32.0
Browse files Browse the repository at this point in the history
Reviewed By: jeffmo

Differential Revision: D3821852

fbshipit-source-id: 01fd16707cba860a830d682a2af2bdd542605abf
  • Loading branch information
gabelevi authored and Facebook Github Bot 7 committed Sep 6, 2016
1 parent 300cb03 commit 85a6f01
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-1]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
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]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-2]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
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]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

unsafe.enable_getters_and_setters=true

[version]
^0.31.0
^0.32.0
2 changes: 0 additions & 2 deletions IntegrationTests/PromiseTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ class PromiseTest extends React.Component {
this.testShouldSucceedAsync(),
this.testShouldThrowAsync(),
]).then(() => TestModule.markTestPassed(
// $FlowFixMe found when converting React.createClass to ES6
this.shouldResolve && this.shouldReject &&
// $FlowFixMe found when converting React.createClass to ES6
this.shouldSucceedAsync && this.shouldThrowAsync
));
}
Expand Down
8 changes: 5 additions & 3 deletions Libraries/Experimental/SwipeableRow/SwipeableListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class SwipeableListView extends React.Component {
dataSource: this.props.dataSource,
};

_listViewRef: ?string = null;
_listViewRef: ?ReactElement<any> = null;
_shouldBounceFirstRowOnMount = false;

componentWillMount(): void {
Expand Down Expand Up @@ -132,7 +132,8 @@ class SwipeableListView extends React.Component {
* (from high 20s to almost consistently 60 fps)
*/
_setListViewScrollable = (value: boolean): void => {
if (this._listViewRef && this._listViewRef.setNativeProps) {
if (this._listViewRef &&
typeof this._listViewRef.setNativeProps === 'function') {
this._listViewRef.setNativeProps({
scrollEnabled: value,
});
Expand All @@ -141,7 +142,8 @@ class SwipeableListView extends React.Component {

// Passing through ListView's getScrollResponder() function
getScrollResponder = (): ?Object => {
if (this._listViewRef && this._listViewRef.getScrollResponder) {
if (this._listViewRef &&
typeof this._listViewRef.getScrollResponder === 'function') {
return this._listViewRef.getScrollResponder();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ function handleException(e: Error, isFatal: boolean) {
e = new Error(e);
}

(console._errorOriginal || console.error)(e.message);
if (typeof console._errorOriginal === 'function') {
console._errorOriginal(e.message);
} else {
console.error(e.message);
}
reportException(e, isFatal);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function parseErrorStack(e: Error): Array<StackFrame> {

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

var framesToPop = e.framesToPop || 0;
var framesToPop = typeof e.framesToPop === 'number' ? e.framesToPop : 0;
while (framesToPop--) {
stack.shift();
}
Expand Down
2 changes: 2 additions & 0 deletions Libraries/JavaScriptAppEngine/System/JSTimers/JSTimers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function _allocateCallback(func: Function, type: $Keys<typeof JSTimersExecution.
e.framesToPop = 1;
const stack = parseErrorStack(e);
if (stack) {
/* $FlowFixMe(>=0.32.0) - this seems to be putting something of the wrong
* type into identifiers */
JSTimersExecution.identifiers[freeIndex] = stack.shift();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const JSTimersExecution = {
timerIDs: [],
immediates: [],
requestIdleCallbacks: [],
identifiers: ([] : [{methodName: string}]),
identifiers: ([] : Array<null | {methodName: string}>),

errors: (null : ?[Error]),

Expand Down
1 change: 1 addition & 0 deletions Libraries/NavigationExperimental/NavigationTransitioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ function buildTransitionProps(
position,
progress,
scenes,
// $FlowFixMe(>=0.32.0) - find can return undefined
scene: scenes.find(isSceneActive),
};
}
Expand Down
2 changes: 1 addition & 1 deletion Libraries/ReactIOS/YellowBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function isWarningIgnored(warning: string): boolean {
return (
Array.isArray(console.ignoredYellowBox) &&
console.ignoredYellowBox.some(
ignorePrefix => warning.startsWith(ignorePrefix)
ignorePrefix => warning.startsWith(String(ignorePrefix))
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"eslint-plugin-babel": "^3.2.0",
"eslint-plugin-flow-vars": "^0.2.1",
"eslint-plugin-react": "^4.2.1",
"flow-bin": "^0.31.1",
"flow-bin": "^0.32.0",
"jest": "15.1.0",
"jest-repl": "15.1.0",
"jest-runtime": "15.1.0",
Expand Down

0 comments on commit 85a6f01

Please sign in to comment.