Skip to content

Commit

Permalink
Update xplat to Flow v0.155.0
Browse files Browse the repository at this point in the history
Summary:
Update flow version to v0.155.0

Changelog: [Internal]

Reviewed By: pieterv

Differential Revision: D29641055

fbshipit-source-id: 601a82fe4fa4ce548a790347a84aea4014c418d9
  • Loading branch information
evanyeung authored and facebook-github-bot committed Jul 14, 2021
1 parent fa0518d commit efd4daf
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ untyped-import
untyped-type-import

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

[version]
^0.154.0
^0.155.0
1 change: 1 addition & 0 deletions Libraries/Performance/QuickPerformanceLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const QuickPerformanceLogger = {
markerId: number,
instanceKey?: number = DUMMY_INSTANCE_KEY,
): void {
// $FlowFixMe[object-this-reference]
this.markerDrop(markerId, instanceKey);
},

Expand Down
1 change: 1 addition & 0 deletions Libraries/ReactNative/AppRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ const AppRegistry = {
* See https://reactnative.dev/docs/appregistry.html#registerheadlesstask
*/
registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void {
// $FlowFixMe[object-this-reference]
this.registerCancellableHeadlessTask(taskKey, taskProvider, () => () => {
/* Cancel is no-op */
});
Expand Down
4 changes: 4 additions & 0 deletions Libraries/Settings/Settings.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ const Settings = {
NativeSettingsManager.getConstants().settings: any),

get(key: string): mixed {
// $FlowFixMe[object-this-reference]
return this._settings[key];
},

set(settings: Object) {
// $FlowFixMe[object-this-reference]
this._settings = Object.assign(this._settings, settings);
NativeSettingsManager.setValues(settings);
},
Expand Down Expand Up @@ -55,7 +57,9 @@ const Settings = {
_sendObservations(body: Object) {
Object.keys(body).forEach(key => {
const newValue = body[key];
// $FlowFixMe[object-this-reference]
const didChange = this._settings[key] !== newValue;
// $FlowFixMe[object-this-reference]
this._settings[key] = newValue;

if (didChange) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"ws": "^6.1.4"
},
"devDependencies": {
"flow-bin": "^0.154.0",
"flow-bin": "^0.155.0",
"react": "17.0.2"
},
"detox": {
Expand Down
2 changes: 1 addition & 1 deletion repo-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-native": "3.10.0",
"eslint-plugin-relay": "1.8.1",
"flow-bin": "^0.154.0",
"flow-bin": "^0.155.0",
"jest": "^26.6.3",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.11.0",
Expand Down
2 changes: 1 addition & 1 deletion template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ untyped-import
untyped-type-import

[version]
^0.154.0
^0.155.0
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3023,10 +3023,10 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==

flow-bin@^0.154.0:
version "0.154.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.154.0.tgz#e086964398e671daa8f56ed8663d7876337f77e5"
integrity sha512-I6u2ETdkAyard+8C5na6bfZp4EM0zIMB7O5zH4GKzBLv9/y8/NYRTxEXQe5T0hvj9R9DxFBUoPsFK76ziweUFw==
flow-bin@^0.155.0:
version "0.155.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.155.0.tgz#db2a9712b13f66e9318e167a89f6f28bcb1c49dc"
integrity sha512-OTMVh3KJDNYkmLT/txrpgpJK5FCHxfbxSK7IM2V4YQx+BQibEkrJEufSwB6cyKieFKRcO3F46NqgfNgLw+RWUA==

flow-parser@0.*, flow-parser@^0.121.0:
version "0.121.0"
Expand Down

0 comments on commit efd4daf

Please sign in to comment.