Skip to content

Commit 1716655

Browse files
SamChou19815facebook-github-bot
authored andcommitted
v0.268.0
Reviewed By: alexmckenley Differential Revision: D73071668 fbshipit-source-id: e7d473fcc29dc7dc58842b3434dafa5e4f5103e6
1 parent 9bc9966 commit 1716655

File tree

9 files changed

+25
-9
lines changed

9 files changed

+25
-9
lines changed

Changelog.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
### 0.268.0
2+
3+
Breaking:
4+
* The Linux x86 build is now built from `ubuntu-22.04`. It might make Flow not runnable on older linux distributions.
5+
6+
Likely to cause new Flow errors:
7+
* Code like the ([example](https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+h46fNRLuKxJIGWh8MeT0ZfhYlCStpHzNsFBAMIQkIEQwJODAQfiEyfBE4eWw2fDgofDBMsAALfAA3KjgsXGxxZC4eAw0G-GhcWn9aY3wWZldu-g1mbGqJUoBaCRHEzrcDEgBrbAk62kXhXFxJ923d-cPRHEpTgyEoMDaqZdW7vKgoOfaSKgOKpqmDA+d4gB5fMA-P6LCCMLLQbiLOoYCqgh6-GDYRYIXYLSgkRZkCR4jpddwPfJLZjpOBkO4AX34kA0SVqxC2AAJKQAxYgACgAlBzgAAdKAcjkAISoAH4rJTpZRBQBuMX0sVitkQTkKqiC4XqqBijRPKjYDm2exSqjIDky4C6yi2lbGCAwLlkRWG3IgBomEhwaBJBoABisACYAGwAdisIZA9KAA)) will have `[react-rule-hook-conditional]` instead of `[react-rule-hook-naming-convention]` errors.
8+
* `$Diff` support is removed. If you have trouble migrating, you can try to polyfill it by [this](https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+h46fNRLuKxJIGWh8MeT0ZfhYlCStpHzNsFBAMIQkIEQwJODAQfiEyfBE4eWw2fDgofDBMsAALfAA3KjgsXGxxZC4eAw0G-GhcWn9aY3wWZldu-g1mbGqJUoBaCRHEzrcDEgBrbAk62kXhXFxJ923d-cPRHEpTgyEoMDaqZdW7vKgoOfaSKgOKpqmDA+d4gB5fMA-P6LCCMLLQbiLOoYCqgh6-GDYRYIXYLSgkRZkCR4jpddwPfJLZjpOBkO4AX34kA0SRWxgABAASAAicBgMAAPAB5ZDsip4riQ9nARnsgDSos5cuwtBIAs5ADEiAB3DXFACy2AAfEb2QBedkAHSg7PZQvZCgWUDYJDFPhMkuwMvZAH52QAFbJbYW8dkAUXkTyEGnVytVwqNoblJvZoqFAG5rbkQA0TCQ4NAkg0AAxWABMADYAOxWYsgelAA). However, `$Diff` has surprising behavior with regard to optional props in the second type parameter, which cannot be easily polyfilled ([example](https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+h46fNRLuKxJIGWh8MeT0ZfhYlCStpHzNsFBAMIQkIEQwJODAQfiEyfBE4eWw2fDgofDBMsAALfAA3KjgsXGxxZC4eAw0G-GhcWn9aY3wWZldu-g1mbGqJUoBaCRHEzrcDEgBrbAk62kXhXFxJ923d-cPRHEpTgyEoMDaqZdW7vKgoOfaSKgOKpqmDA+d4gB5fMA-P6LCCMLLQbiLOoYCqgh6-GDYRYIXYLSgkRZkCR4jpddwPfJLZjpOBkO4AX34kA0SRWxgABAAxYgARnZAF52QASAAicBgMAAPMAYMRkOz7KYoAhGeyZcQAPzyxUVFUAPgA3OyAPTGtWyiBahVSXX0gA6PlWXOIACYBcKxRLpRarTrlar1ZbtTb-YaTWbA76QyreOyLezqYx2VAIBJ2WxKLDjGwAIQO3IgBomEhwaBJBoABisLoAbAB2KwVkD0oA)).
9+
10+
New Features:
11+
* We now allow you to configure certain error code to be unsuppressable. For example, to make `react-rule-hook-naming-convention` and `react-rule-hook-conditional` errors unsuppressable, you can add the following to the `[options]` section in flowconfig:
12+
```
13+
unsuppressable_error_codes=react-rule-hook-naming-convention
14+
unsuppressable_error_codes=react-rule-hook-conditional
15+
```
16+
117
### 0.267.0
218

319
Likely to cause new Flow errors:

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.267.0"
3+
version: "0.268.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.267.0"
3+
version: "0.268.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.267.0"}
18+
"flow_parser" {= "0.268.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.267.0",
3+
"version": "0.268.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.267.0",
3+
"version": "0.268.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.267.0",
3+
"version": "2.268.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.267.0",
3+
"version": "0.268.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.267.0"
8+
let version = "0.268.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.267.0"
129+
"flow-bin": "^0.268.0"
130130
},
131131
"scripts": {
132132
"flow": "flow"

0 commit comments

Comments
 (0)