Skip to content

Commit b5625f0

Browse files
pietervfacebook-github-bot
authored andcommitted
v0.273.0
Summary: flow_dance Reviewed By: SamChou19815, marcoww6 Differential Revision: D76083686 ------------------------------------------------------------------------ (from 2895ec2d71c0254187a700490afb2a8af8f5c414) fbshipit-source-id: 6c0d7d13375b55baa0cb85b4b226ad59b50fff04
1 parent 085ef0c commit b5625f0

File tree

9 files changed

+21
-9
lines changed

9 files changed

+21
-9
lines changed

Changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
### 0.273.0
2+
3+
Likely to cause new Flow errors:
4+
* We are announcing Natural Inference for Flow, an improved way to infer types for primitive values, that resolves a long-standing correctness gap and source of confusion. See more in [this post](https://medium.com/flow-type/flow-natural-inference-for-primitives-df27149109bb).
5+
* Added `nested-hook` and `nested-component` lint errors which detect nested hook or component syntax within component or hook syntax. This is on by default.
6+
7+
Notable bug fixes:
8+
* For default imports, the autoimport ranking will now consider the names of the importing side. (e.g. Previously we completely ignored the name of `foo` in `import foo from './bar'`, but now we will count foo. If the pattern of `import foo from './bar'` happens a lot, then the autoimport algorithm will be more likely to suggest `import foo from './bar'` rather than `import bar from './bar'`).
9+
* Flow will infer a correct type when viewing the type of an object literal as a dictionary type. For example, the error in [this try-Flow](https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+h46fNRLuKxJIGWh8MeT0ZfhYlCStpHzNsFBAMIQkIEQwJODAQfiEyfBE4eWw2fDgofDBMsAALfAA3KjgsXGxxZC4eAw0G-GhcWn9aY3wWZldu-g1mbGqJUoBaCRHEzrcDEgBrbAk62kXhXFxJ923d-cPRHEpTgyEoMDaqZdW7vKgoOfaSKgOKpqmDA+d4gB5fMA-P6LCCMLLQbiLOoYCqgh6-GDYRYIXYLSgkRZkCR4jpddwPfJLZjpOBkUEKTwJEJ+DAkMiUFSwkyZCC3dbdAC+-EgGiSGieVGwAAIYA9lHBoFKcRIANLYWgkAA8ABU1bQAHwACnkyClwAA2jtaKbdeqALqmoolNgCgCUpoAgtQ6Dq9fqANwAHSgwds9il8ilAF4lbs9SRDcAMKaAOQYFO8KVoVNoFNuoMhqBwGCGqQyV1m4NSiPmgAMdujUpTYBT-qlAHp21KAOqsqVQCASKXAqUmSi8rOaXmyKUAdzgx37EFnk+HUFH1F5wYFweD8jrDb7aZTAB8U7m252pRAtnRJzBp2u2MOYHjd1BciAGiYSAqP8gv1rKwACYAHZgJAkABSAA) will be raised.
10+
* Previously, we undercounted some imports during indexing, which causes autoimport ranking to behave incorrectly. The issue is now fixed.
11+
* Flow will no longer emit `react-rule-hook-conditional` error for hooks called in a conditionally defined nested component.
12+
113
### 0.272.2
214

315
Notable bug fixes:

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.272.2"
3+
version: "0.273.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.272.2"
3+
version: "0.273.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.272.2"}
18+
"flow_parser" {= "0.273.0"}
1919
"inotify" {os = "linux" & >= "2.4.1"}
2020
"ounit2" {with-test}
2121
"lwt" {>= "5.7.0"}

packages/flow-parser-bin/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-bin",
3-
"version": "0.272.2",
3+
"version": "0.273.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

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.272.2",
3+
"version": "0.273.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.272.2",
3+
"version": "2.273.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.272.2",
3+
"version": "0.273.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.272.2"
8+
let version = "0.273.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.272.2"
129+
"flow-bin": "^0.273.0"
130130
},
131131
"scripts": {
132132
"flow": "flow"

0 commit comments

Comments
 (0)