Skip to content

Commit

Permalink
deploy Flow 0.125.1 to xplat
Browse files Browse the repository at this point in the history
Summary:
Changelog: [Internal]
allow-large-files

Reviewed By: gkz

Differential Revision: D21597387

fbshipit-source-id: dddec43885daa5a9c5c4dfe8e338ecedc9abcd1e
  • Loading branch information
mvitousek authored and facebook-github-bot committed May 19, 2020
1 parent f0bf4b0 commit 37e7b41
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ untyped-import
untyped-type-import

[version]
^0.124.0
^0.125.0
2 changes: 1 addition & 1 deletion .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ untyped-import
untyped-type-import

[version]
^0.124.0
^0.125.0
20 changes: 10 additions & 10 deletions Libraries/Utilities/ReactNativeTestTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const React = require('react');

const ReactTestRenderer = require('react-test-renderer');
const ShallowRenderer = require('react-test-renderer/shallow');
/* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.122.0 was deployed. To see the error, delete this comment
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an error
* found when Flow v0.125.1 was deployed. To see the error, delete this comment
* and run Flow. */
const shallowRenderer = new ShallowRenderer();

Expand All @@ -28,8 +28,8 @@ export type ReactTestInstance = $PropertyType<ReactTestRendererType, 'root'>;
export type Predicate = (node: ReactTestInstance) => boolean;

type $ReturnType<Fn> = $Call<<Ret, A>((...A) => Ret) => Ret, Fn>;
/* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.122.0 was deployed. To see the error, delete this comment
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an error
* found when Flow v0.125.1 was deployed. To see the error, delete this comment
* and run Flow. */
export type ReactTestRendererJSON = $ReturnType<ReactTestRenderer.create.toJSON>;

Expand All @@ -56,12 +56,12 @@ function byClickable(): Predicate {
// HACK: Find components that use `Pressability`.
node.instance?.state?.pressability != null ||
// TODO: Remove this after deleting `Touchable`.
/* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.122.0 was deployed. To see the error, delete
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an
* error found when Flow v0.125.1 was deployed. To see the error, delete
* this comment and run Flow. */
(node.instance &&
/* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.122.0 was deployed. To see the error,
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses
* an error found when Flow v0.125.1 was deployed. To see the error,
* delete this comment and run Flow. */
typeof node.instance.touchableHandlePress === 'function'),
'is clickable',
Expand All @@ -77,8 +77,8 @@ function byTestID(testID: string): Predicate {

function byTextMatching(regex: RegExp): Predicate {
return withMessage(
/* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.122.0 was deployed. To see the error, delete
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an
* error found when Flow v0.125.1 was deployed. To see the error, delete
* this comment and run Flow. */
node => node.props && regex.exec(node.props.children),
`text content matches ${regex.toString()}`,
Expand Down
4 changes: 2 additions & 2 deletions jest/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const React = require('react');
const ShallowRenderer = require('react-test-renderer/shallow');
const TestRenderer = require('react-test-renderer');

/* $FlowFixMe(>=0.122.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.122.0 was deployed. To see the error, delete this comment
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an error
* found when Flow v0.125.1 was deployed. To see the error, delete this comment
* and run Flow. */
const renderer = new ShallowRenderer();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-react-native": "3.8.1",
"eslint-plugin-relay": "1.7.1",
"flow-bin": "^0.124.0",
"flow-bin": "^0.125.1",
"jest": "^26.0.1",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.9.0",
Expand Down
2 changes: 1 addition & 1 deletion template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ untyped-import
untyped-type-import

[version]
^0.124.0
^0.125.0
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3349,10 +3349,10 @@ flat-cache@^1.2.1:
rimraf "~2.6.2"
write "^0.2.1"

flow-bin@^0.124.0:
version "0.124.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.124.0.tgz#24b2e55874e1e2041f9247f42473b3db2ef32758"
integrity sha512-KEtDJ7CFUjcuhw6N52FTZshDd1krf1fxpp4APSIrwhVm+IrlcKJ+EMXpeXKM1kKNSZ347dYGh8wEvXQl4pHZEA==
flow-bin@^0.125.1:
version "0.125.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.125.1.tgz#7edbc71e7dc39ddef18086ef75c714bbf1c5917f"
integrity sha512-jEury9NTXylxQEOAXLWEE945BjBwYcMwwKVnb+5XORNwMQE7i5hQYF0ysYfsaaYOa7rW/U16rHBfwLuaZfWV7A==

flow-parser@0.*:
version "0.89.0"
Expand Down

0 comments on commit 37e7b41

Please sign in to comment.