From efd4dafc54275abd0e09497cb7f269503a137693 Mon Sep 17 00:00:00 2001 From: Evan Yeung Date: Wed, 14 Jul 2021 09:12:12 -0700 Subject: [PATCH] Update xplat to Flow v0.155.0 Summary: Update flow version to v0.155.0 Changelog: [Internal] Reviewed By: pieterv Differential Revision: D29641055 fbshipit-source-id: 601a82fe4fa4ce548a790347a84aea4014c418d9 --- .flowconfig | 2 +- .flowconfig.android | 2 +- Libraries/Performance/QuickPerformanceLogger.js | 1 + Libraries/ReactNative/AppRegistry.js | 1 + Libraries/Settings/Settings.ios.js | 4 ++++ package.json | 2 +- repo-config/package.json | 2 +- template/_flowconfig | 2 +- yarn.lock | 8 ++++---- 9 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.flowconfig b/.flowconfig index 51a10b7445..8d83331dec 100644 --- a/.flowconfig +++ b/.flowconfig @@ -71,4 +71,4 @@ untyped-import untyped-type-import [version] -^0.154.0 +^0.155.0 diff --git a/.flowconfig.android b/.flowconfig.android index e2d2dc14d1..0c3ca20034 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -71,4 +71,4 @@ untyped-import untyped-type-import [version] -^0.154.0 +^0.155.0 diff --git a/Libraries/Performance/QuickPerformanceLogger.js b/Libraries/Performance/QuickPerformanceLogger.js index 09a1118d18..bb3f768a50 100644 --- a/Libraries/Performance/QuickPerformanceLogger.js +++ b/Libraries/Performance/QuickPerformanceLogger.js @@ -65,6 +65,7 @@ const QuickPerformanceLogger = { markerId: number, instanceKey?: number = DUMMY_INSTANCE_KEY, ): void { + // $FlowFixMe[object-this-reference] this.markerDrop(markerId, instanceKey); }, diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index 65de45fb80..098db6c305 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -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 */ }); diff --git a/Libraries/Settings/Settings.ios.js b/Libraries/Settings/Settings.ios.js index 28609d2528..d920e3502f 100644 --- a/Libraries/Settings/Settings.ios.js +++ b/Libraries/Settings/Settings.ios.js @@ -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); }, @@ -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) { diff --git a/package.json b/package.json index 65e4361685..839a6472a7 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "ws": "^6.1.4" }, "devDependencies": { - "flow-bin": "^0.154.0", + "flow-bin": "^0.155.0", "react": "17.0.2" }, "detox": { diff --git a/repo-config/package.json b/repo-config/package.json index 81017d8c15..d898404be8 100644 --- a/repo-config/package.json +++ b/repo-config/package.json @@ -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", diff --git a/template/_flowconfig b/template/_flowconfig index d7e59642f7..eef7ac78c5 100644 --- a/template/_flowconfig +++ b/template/_flowconfig @@ -62,4 +62,4 @@ untyped-import untyped-type-import [version] -^0.154.0 +^0.155.0 diff --git a/yarn.lock b/yarn.lock index 1143079c5a..23a07e5917 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"