Skip to content

Commit 44611d7

Browse files
SamChou19815facebook-github-bot
authored andcommitted
v0.255.0
Reviewed By: alexmckenley Differential Revision: D66468500 fbshipit-source-id: 62874e30ccab0212474f828f99b10039379821ef
1 parent 05e62a2 commit 44611d7

File tree

9 files changed

+21
-9
lines changed

9 files changed

+21
-9
lines changed

Changelog.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
### 0.255.0
2+
3+
Likely to cause new Flow errors:
4+
* Referencing a react-component typed value in type position will now create a `React$RendersExactly<typeof Component>` type instead of `React$Element<typeof Component>` type. All existing usages intended to create an exact react element will now error as a result. Using it as type passed to render type, `React.PropsOf`, `React.PropOf` and `React.RefOf` is unaffected and will not be affected in the future. If you want exact react elements, the only way that doesn't trigger Flow error is by `ExactReactElement_DEPRECATED<typeof Component>`.
5+
6+
Library Definitions:
7+
* `React.Config` type is marked as deprecated and will be removed soon. You can create your own equivalent type with
8+
```js
9+
type ReactConfigShim<Props, DefaultProps> = $ReadOnly<{
10+
...Omit<Props, $Keys<DefaultProps>>, ...Partial<DefaultProps>
11+
}>;
12+
113
### 0.254.2
214

315
Misc:

flow_parser.opam

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

flowtype.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "flowtype"
3-
version: "0.254.2"
3+
version: "0.255.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.254.2"}
18+
"flow_parser" {= "0.255.0"}
1919
"inotify" {os = "linux" & >= "2.4.1"}
2020
"ounit2" {with-test}
2121
"lwt" {>= "5.7.0"}

packages/flow-parser-bin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow-parser-bin",
3-
"version": "0.254.2",
3+
"version": "0.255.0",
44
"description": "The Flow JavaScript parser, via bindings to the native OCaml implementation",
55
"main": "index.js",
66
"repository": "https://github.com/facebook/flow.git",

packages/flow-parser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow-parser",
3-
"version": "0.254.2",
3+
"version": "0.255.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow-remove-types",
3-
"version": "2.254.2",
3+
"version": "2.255.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "try-flow-website-js",
3-
"version": "0.254.2",
3+
"version": "0.255.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

+1-1
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.254.2"
8+
let version = "0.255.0"

website/docs/install.md

+1-1
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.254.2"
129+
"flow-bin": "^0.255.0"
130130
},
131131
"scripts": {
132132
"flow": "flow"

0 commit comments

Comments
 (0)