Skip to content

Commit ca79e2e

Browse files
marcoww6meta-codesync[bot]
authored andcommitted
v0.288.0 [PickRequest:665067152984006]
Summary: Plenty of updates this release! Reviewed By: SamChou19815 Differential Revision: D84321875 Merged By: marcoww Merged Revision: 6ba1ed7e3aff09bc4ff39d7b4e1cac910559f6a0 fbshipit-source-id: b3994dc53aa6457ed699fe284388f618301889e4
1 parent ca7f523 commit ca79e2e

File tree

8 files changed

+27
-8
lines changed

8 files changed

+27
-8
lines changed

Changelog.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
### 0.288.0
2+
3+
Likely to cause new Flow errors:
4+
* [`React.ElementProps`](https://flow.org/en/docs/react/types/#toc-react-elementprops) is removed. You should use [`React.ElementConfig`](https://flow.org/en/docs/react/types/#toc-react-elementconfig) instead.
5+
* For a function named as a hook but not annotated as a hook, it will no longer be treated like a hook when you try to use it from property access or property destructuring in component syntax components and hook syntax hooks. They will now cause `react-rule-hook-non-hook-syntax` errors. To fix, annotate them with hook annotation. [example](https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+h46fNRLuKxJIGWh8MeT0ZfhYlCStpHzNsFBAMIQkIEQwJODAQfiEyfBE4eWw2fDgofDBMsAALfAA3KjgsXGxxZC4eAw0G-GhcWn9aY3wWZldu-g1mbGqJUoBaCRHEzrcDEgBrbAk62kXhXFxJ923d-cPRHEpTgyEoMDaqZdW7vKgoOfaSKgOKpqmDA+d4gB5fMA-P6LCCMLLQbiLOoYCqgh6-GDYRYIXYLSgkRZkCR4jpddwPfJLZjpOBkUEKTwJEJ+DAkMiUFSwkyZCC3dbdAC+-EgGiStnsAAIAKpZHgAIXYEoAvBLgAAdKASiWUgCytAAEsQtsgJQAKACUyoAfKqBRq7VANZARIxoBYJQAVdoSACMpqsAeAuoNRoFJuA2rIesNEGNZstSptwAFEoFlvVmq10tlJAVbCswZjWwtAG4JQB6csSkyUXkarOR7DRo2litVmt1zNalgSISUKAl+0a2pGxte+x+oNRkOxsOqxvN2Mmi3W22p9P1rMyuDy9gF6dF1uV6vUTsNwst81l48dyib7u7PsDoeO18j2MLmfF9MO8USbM7iQADixBsMqqqbhesYvk66Sul8Piet6ABM-qBlBWxzhGGEmu+WzxquybrhBXYATwIEQPmGFHlW0GkdRV5tietZ3qRPZPoOUAOnhY4oaaU5Nl+WGfkWuGjiuiZrmmJENtu5GgfugmHoxx50eeB6XtetFbPeErsf2nEOrkIANCYJBwNASQZPYJggAKQA)
6+
* Calling functions passed to function and component with hook like name but not annotated as hook will now error. [example](https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+h46fNRLuKxJIGWh8MeT0ZfhYlCStpHzNsFBAMIQkIEQwJODAQfiEyfBE4eWw2fDgofDBMsAALfAA3KjgsXGxxZC4eAw0G-GhcWn9aY3wWZldu-g1mbGqJUoBaCRHEzrcDEgBrbAk62kXhXFxJ923d-cPRHEpTgyEoMDaqZdW7vKgoOfaSKgOKpqmDA+d4gB5fMA-P6LCCMLLQbiLOoYCqgh6-GDYRYIXYLSgkRZkCR4jpddwPfJLZjpOBkUEKTwJEJ+DAkMiUFSwkyZCC3dbdAC+-EgGiSkBEjGgFgABAAxYgAIXYAApKQBZWgACWIW2Q0uVAEppQBeAB80oASqxlFYAHIQDRG4AAHSg0vd0pYEiElDd6q1OsNAG5pQB6UPSkyUXmugWu13iyVfHxy4gAcWIbFVZA12oguultR1+qNZst1pi9sd0pdbo9Xp9fpzAfzwdjrtyIAaJhIcGgSQy9hMIAFQA).
7+
* `React$RefSetter<...>` and and `React$Context` are removed. It continues to be available in the form of `React.RefSetter<...>` and `React.Context<...>`, regardless of whether you have imported `React`.
8+
* `React$ElementRef<...>` was removed. It continues to be available in the form of `React.ElementRef<...>`, regardless of whether you have imported `React`.
9+
10+
Breaking Changes:
11+
* The config option `max_literal_length` was removed. Flow will always decide whether to infer a specific or general type of string literal based on the [natural inference algorithm](https://medium.com/flow-type/flow-natural-inference-for-primitives-df27149109bb).
12+
13+
Notable bug fixes:
14+
* You can now use `@@dispose` and `@@asyncDispose` in your library typings. You can access the respective properties with `obj[Symbol.dispose]` and `obj[Symbol.asyncDispose]`.
15+
* Allow comparisons of bigint singletons
16+
17+
Library Definitions:
18+
* The second type argument of `ExactReactElement` will be populated by `React.ElementConfig<C>` instead of `React.ElementProps<C>`. Most of the code that doesn't depend on exact react element types won't be affected.
19+
120
### 0.287.0
221

322
Breaking Changes:

flow_parser.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "flow_parser"
3-
version: "0.287.0"
3+
version: "0.288.0"
44
maintainer: "[email protected]"
55
authors: ["Flow Team <[email protected]>"]
66
homepage: "https://github.com/facebook/flow/tree/master/src/parser"

flowtype.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "flowtype"
3-
version: "0.287.0"
3+
version: "0.288.0"
44
maintainer: "[email protected]"
55
authors: "Flow Team <[email protected]>"
66
license: "MIT"
@@ -15,7 +15,7 @@ depends: [
1515
"camlp-streams" {>= "5.0.1"}
1616
"dtoa" {>= "0.3.2"}
1717
"fileutils" {>= "0.6.4"}
18-
"flow_parser" {= "0.287.0"}
18+
"flow_parser" {= "0.288.0"}
1919
"inotify" {os = "linux" & >= "2.4.1"}
2020
"ounit2" {with-test}
2121
"lwt" {>= "5.7.0"}

packages/flow-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow-parser",
3-
"version": "0.287.0",
3+
"version": "0.288.0",
44
"description": "JavaScript parser written in OCaml. Produces ESTree AST",
55
"homepage": "https://flow.org",
66
"license": "MIT",

packages/flow-remove-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow-remove-types",
3-
"version": "2.287.0",
3+
"version": "2.288.0",
44
"description": "Removes Flow type annotations from JavaScript files with speed and simplicity.",
55
"author": {
66
"name": "Flow Team",

packages/try-flow-website-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "try-flow-website-js",
3-
"version": "0.287.0",
3+
"version": "0.288.0",
44
"description": "An NPM package to hold compiled `flow.js` and libdefs for every Flow version.",
55
"license": "MIT",
66
"repository": "facebook/flow",

src/common/flow_version.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* LICENSE file in the root directory of this source tree.
66
*)
77

8-
let version = "0.287.0"
8+
let version = "0.288.0"

website/docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ npm install --save-dev flow-bin
126126
"name": "my-flow-project",
127127
"version": "1.0.0",
128128
"devDependencies": {
129-
"flow-bin": "^0.287.0"
129+
"flow-bin": "^0.288.0"
130130
},
131131
"scripts": {
132132
"flow": "flow"

0 commit comments

Comments
 (0)