Flow upgrade to 0.152
- 0.147 removes access to Object.prototype via the global object. - 0.149 removed deprecated config options ghstack-source-id: c77f9b3739796547dd2d82a549b6dc24d502af54 Pull Request resolved: https://github.com/facebook/react/pull/25411
Jan Kassens committed
Oct 4, 2022 at 11:04 UTC
adb58f529d861882418274966f53767f60501c01
6 files changed
+13
-9
package.json
+1
-1
@@ -63,7 +63,7 @@
63
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
64
"fbjs-scripts": "1.2.0",
65
"filesize": "^6.0.1",
66
- "flow-bin": "^0.146.0",
66
+ "flow-bin": "^0.152.0",
67
"glob": "^7.1.6",
68
"glob-stream": "^6.1.0",
69
"google-closure-compiler": "^20200517.0.0",
packages/react-devtools-shared/src/devtools/views/Components/KeyValue.js
+2
@@ -33,6 +33,8 @@ import type {Element} from 'react-devtools-shared/src/devtools/views/Components/
33
import type {Element as ReactElement} from 'react';
34
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
35
36
+const hasOwnProperty = Object.prototype.hasOwnProperty;
37
+
38
type Type = 'props' | 'state' | 'context' | 'hooks';
39
40
type KeyValueProps = {
packages/react-devtools-shared/src/devtools/views/utils.js
+2
@@ -14,6 +14,8 @@ import isArray from 'react-devtools-shared/src/isArray';
14
15
import type {HooksTree} from 'react-debug-tools/src/ReactDebugHooks';
16
17
+const hasOwnProperty = Object.prototype.hasOwnProperty;
18
+
19
export function alphaSortEntries(
20
entryA: [string, mixed],
21
entryB: [string, mixed],
packages/react-devtools-shared/src/utils.js
+2
@@ -56,6 +56,8 @@ import isArray from './isArray';
56
import type {ComponentFilter, ElementType} from './types';
57
import type {LRUCache} from 'react-devtools-shared/src/types';
58
59
+const hasOwnProperty = Object.prototype.hasOwnProperty;
60
+
61
const cachedDisplayNames: WeakMap<Function, string> = new WeakMap();
62
63
// On large trees, encoding takes significant time.
scripts/flow/config/flowconfig
+1
-4
@@ -40,9 +40,6 @@ untyped-type-import=error
40
41
[options]
42
%CI_MAX_WORKERS%
43
-esproposal.class_static_fields=enable
44
-esproposal.class_instance_fields=enable
45
-esproposal.optional_chaining=enable
43
exact_by_default=true
44
munge_underscores=false
45
@@ -50,4 +47,4 @@ munge_underscores=false
47
%REACT_RENDERER_FLOW_OPTIONS%
48
49
[version]
53
-^0.146.0
50
+^0.152.0
yarn.lock
+5
-4
@@ -6901,6 +6901,7 @@ eslint-plugin-no-unsanitized@3.1.2:
6901
6902
"eslint-plugin-react-internal@link:./scripts/eslint-rules":
6903
version "0.0.0"
6904
+ uid ""
6905
6906
eslint-plugin-react@^6.7.1:
6907
version "6.10.3"
@@ -7911,10 +7912,10 @@ flatted@^2.0.0:
7912
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
7913
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
7914
7914
-flow-bin@^0.146.0:
7915
- version "0.146.0"
7916
- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.146.0.tgz#fafa002663a0e13bf3c08c3972dd93d68289ccc6"
7917
- integrity sha512-TP8eCwltqc7fo6ad5klgsrZ2veZIK2qM1vHf1A/cnXTStPh8hLAz1cOXmlQIFZR/7fjSMI39TS3CgF6M/HUhAw==
7915
+flow-bin@^0.152.0:
7916
+ version "0.152.0"
7917
+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.152.0.tgz#6980d0cd58f59e9aefd580b11109a1d56eba46b1"
7918
+ integrity sha512-b4ijbZIQovcx5l/T7VnwyBPIikj60A2qk7hKqQKVWiuftQMrUmC5ct2/0SuVvheX6ZbPdZfeyw2EHO1/n3eAmw==
7919
7920
fluent-syntax@0.13.0:
7921
version "0.13.0"