[flow] upgrade to 0.206.0 (#26850)
Small upgrade. The one impact was deprecation of `$Shape` where it seems like we can just use a plain object with optional key.
Jan Kassens committed
May 25, 2023 at 13:37 UTC
18dedde6a7d63ffafd2f7e135f9edf424eee0bcd
4 files changed
+22
-23
package.json
+2
-2
@@ -65,8 +65,8 @@
65
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
66
"fbjs-scripts": "^3.0.1",
67
"filesize": "^6.0.1",
68
- "flow-bin": "^0.205.1",
69
- "flow-remove-types": "^2.205.1",
68
+ "flow-bin": "^0.206.0",
69
+ "flow-remove-types": "^2.206.0",
70
"glob": "^7.1.6",
71
"glob-stream": "^6.1.0",
72
"google-closure-compiler": "^20230206.0.0",
packages/react-test-renderer/src/ReactTestRenderer.js
+3
-4
@@ -74,12 +74,11 @@ type ReactTestRendererJSON = {
74
};
75
type ReactTestRendererNode = ReactTestRendererJSON | string;
76
77
-type FindOptions = $Shape<{
77
+type FindOptions = {
78
// performs a "greedy" search: if a matching node is found, will continue
79
// to search within the matching node's children. (default: true)
80
- deep: boolean,
81
- ...
82
-}>;
80
+ deep?: boolean,
81
+};
82
83
export type Predicate = (node: ReactTestInstance) => ?boolean;
84
scripts/flow/config/flowconfig
+1
-1
@@ -36,4 +36,4 @@ munge_underscores=false
36
%REACT_RENDERER_FLOW_OPTIONS%
37
38
[version]
39
-^0.205.1
39
+^0.206.0
yarn.lock
+16
-16
@@ -8050,22 +8050,22 @@ flatted@^3.1.0:
8050
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
8051
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==
8052
8053
-flow-bin@^0.205.1:
8054
- version "0.205.1"
8055
- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.205.1.tgz#5faf24e60df8d36f4deafef20e44863c5b295315"
8056
- integrity sha512-pGQ/ZFr9hnbhRmc+K3K1Ui9BwDivlesNEd2mZbm5pCnxEUvbbj9nXHlTD4s4qO0k+LBKYLMZzQwBVYyRUE380g==
8057
-
8058
-flow-parser@^0.205.1:
8059
- version "0.205.1"
8060
- resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.205.1.tgz#337464aaf027b00b2514610386cf21a5f7c94137"
8061
- integrity sha512-+RF/e1Et6ZX2I/UG7SGAz3Z8+ulj9xKYLu5AD7Wi8H2llzncU8ZpdKfLR50pPvj4g2a/FbZWkXYL7qHc+zXJNA==
8062
-
8063
-flow-remove-types@^2.205.1:
8064
- version "2.205.1"
8065
- resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.205.1.tgz#76ff3ab6386e6bb9eb7eb170ce7688931a9b7e5e"
8066
- integrity sha512-HExM8nCVx9dpNAAe7zKH45Ii+FL6ufoQAGntMdvfCtYjhTVSkaO3MfHp/r0D8qNeAwcvGBfw7+GqQtgXm/zr2g==
8067
- dependencies:
8068
- flow-parser "^0.205.1"
8053
+flow-bin@^0.206.0:
8054
+ version "0.206.0"
8055
+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.206.0.tgz#a593304be5440a965ae773efcef55071b6d33178"
8056
+ integrity sha512-cZTEs/OEWcbxfvb8BP+Fw0Cep5wrEyEzQHGpXyjVpQXrAraRA5wZUXvTf1C5YHufQaAYY9YkKY5WAr461JvmOA==
8057
+
8058
+flow-parser@^0.206.0:
8059
+ version "0.206.0"
8060
+ resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.206.0.tgz#f4f794f8026535278393308e01ea72f31000bfef"
8061
+ integrity sha512-HVzoK3r6Vsg+lKvlIZzaWNBVai+FXTX1wdYhz/wVlH13tb/gOdLXmlTqy6odmTBhT5UoWUbq0k8263Qhr9d88w==
8062
+
8063
+flow-remove-types@^2.206.0:
8064
+ version "2.206.0"
8065
+ resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.206.0.tgz#d65389bea555e91c2273e441a70d5916cf1feab7"
8066
+ integrity sha512-ARHcZ4NFYI+TOnLDW+yO70t4F+5mlZ4Gj0RWZfFq7FUPeDpGvQKxQh8UPXvKOkIfqghmvGOfcz9Y2mVzfjGtiA==
8067
+ dependencies:
8068
+ flow-parser "^0.206.0"
8069
pirates "^3.0.2"
8070
vlq "^0.2.1"
8071