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
This commit is contained in:
Родитель
fa0518d3d3
Коммит
efd4dafc54
|
@ -71,4 +71,4 @@ untyped-import
|
||||||
untyped-type-import
|
untyped-type-import
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.154.0
|
^0.155.0
|
||||||
|
|
|
@ -71,4 +71,4 @@ untyped-import
|
||||||
untyped-type-import
|
untyped-type-import
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.154.0
|
^0.155.0
|
||||||
|
|
|
@ -65,6 +65,7 @@ const QuickPerformanceLogger = {
|
||||||
markerId: number,
|
markerId: number,
|
||||||
instanceKey?: number = DUMMY_INSTANCE_KEY,
|
instanceKey?: number = DUMMY_INSTANCE_KEY,
|
||||||
): void {
|
): void {
|
||||||
|
// $FlowFixMe[object-this-reference]
|
||||||
this.markerDrop(markerId, instanceKey);
|
this.markerDrop(markerId, instanceKey);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -257,6 +257,7 @@ const AppRegistry = {
|
||||||
* See https://reactnative.dev/docs/appregistry.html#registerheadlesstask
|
* See https://reactnative.dev/docs/appregistry.html#registerheadlesstask
|
||||||
*/
|
*/
|
||||||
registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void {
|
registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void {
|
||||||
|
// $FlowFixMe[object-this-reference]
|
||||||
this.registerCancellableHeadlessTask(taskKey, taskProvider, () => () => {
|
this.registerCancellableHeadlessTask(taskKey, taskProvider, () => () => {
|
||||||
/* Cancel is no-op */
|
/* Cancel is no-op */
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,10 +23,12 @@ const Settings = {
|
||||||
NativeSettingsManager.getConstants().settings: any),
|
NativeSettingsManager.getConstants().settings: any),
|
||||||
|
|
||||||
get(key: string): mixed {
|
get(key: string): mixed {
|
||||||
|
// $FlowFixMe[object-this-reference]
|
||||||
return this._settings[key];
|
return this._settings[key];
|
||||||
},
|
},
|
||||||
|
|
||||||
set(settings: Object) {
|
set(settings: Object) {
|
||||||
|
// $FlowFixMe[object-this-reference]
|
||||||
this._settings = Object.assign(this._settings, settings);
|
this._settings = Object.assign(this._settings, settings);
|
||||||
NativeSettingsManager.setValues(settings);
|
NativeSettingsManager.setValues(settings);
|
||||||
},
|
},
|
||||||
|
@ -55,7 +57,9 @@ const Settings = {
|
||||||
_sendObservations(body: Object) {
|
_sendObservations(body: Object) {
|
||||||
Object.keys(body).forEach(key => {
|
Object.keys(body).forEach(key => {
|
||||||
const newValue = body[key];
|
const newValue = body[key];
|
||||||
|
// $FlowFixMe[object-this-reference]
|
||||||
const didChange = this._settings[key] !== newValue;
|
const didChange = this._settings[key] !== newValue;
|
||||||
|
// $FlowFixMe[object-this-reference]
|
||||||
this._settings[key] = newValue;
|
this._settings[key] = newValue;
|
||||||
|
|
||||||
if (didChange) {
|
if (didChange) {
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
"ws": "^6.1.4"
|
"ws": "^6.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"flow-bin": "^0.154.0",
|
"flow-bin": "^0.155.0",
|
||||||
"react": "17.0.2"
|
"react": "17.0.2"
|
||||||
},
|
},
|
||||||
"detox": {
|
"detox": {
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
"eslint-plugin-react-native": "3.10.0",
|
"eslint-plugin-react-native": "3.10.0",
|
||||||
"eslint-plugin-relay": "1.8.1",
|
"eslint-plugin-relay": "1.8.1",
|
||||||
"flow-bin": "^0.154.0",
|
"flow-bin": "^0.155.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jest-junit": "^10.0.0",
|
"jest-junit": "^10.0.0",
|
||||||
"jscodeshift": "^0.11.0",
|
"jscodeshift": "^0.11.0",
|
||||||
|
|
|
@ -62,4 +62,4 @@ untyped-import
|
||||||
untyped-type-import
|
untyped-type-import
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.154.0
|
^0.155.0
|
||||||
|
|
|
@ -3023,10 +3023,10 @@ flatted@^2.0.0:
|
||||||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
|
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
|
||||||
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
|
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
|
||||||
|
|
||||||
flow-bin@^0.154.0:
|
flow-bin@^0.155.0:
|
||||||
version "0.154.0"
|
version "0.155.0"
|
||||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.154.0.tgz#e086964398e671daa8f56ed8663d7876337f77e5"
|
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.155.0.tgz#db2a9712b13f66e9318e167a89f6f28bcb1c49dc"
|
||||||
integrity sha512-I6u2ETdkAyard+8C5na6bfZp4EM0zIMB7O5zH4GKzBLv9/y8/NYRTxEXQe5T0hvj9R9DxFBUoPsFK76ziweUFw==
|
integrity sha512-OTMVh3KJDNYkmLT/txrpgpJK5FCHxfbxSK7IM2V4YQx+BQibEkrJEufSwB6cyKieFKRcO3F46NqgfNgLw+RWUA==
|
||||||
|
|
||||||
flow-parser@0.*, flow-parser@^0.121.0:
|
flow-parser@0.*, flow-parser@^0.121.0:
|
||||||
version "0.121.0"
|
version "0.121.0"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче