From d3b42372824ca7df1bb8461e063daa2cd46c0371 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Tue, 23 Apr 2024 17:26:00 -0700 Subject: [PATCH] v0.235.0 Reviewed By: gkz Differential Revision: D56499207 fbshipit-source-id: a7a5acbaccb668e4a1acafdf61fc7c09c6710e08 --- Changelog.md | 6 ++++++ flow_parser.opam | 2 +- flowtype.opam | 4 ++-- packages/flow-parser-bin/package.json | 2 +- packages/flow-parser/package.json | 2 +- packages/flow-remove-types/package.json | 2 +- packages/try-flow-website-js/package.json | 2 +- src/common/flow_version.ml | 2 +- website/docs/install.md | 2 +- 9 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Changelog.md b/Changelog.md index 295c98f95a4..b225bb8a3ca 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,9 @@ +### 0.235.0 + +Likely to cause new Flow errors: +* Flow's react-rule enforcement now detects reads from `ref.current` within nested functions of hooks and components that are called during rendering. +* `obj[key]` where `obj` is not a dictionary object and `key` is a string used to not error and just silently return `any`. We now error on this pattern. + ### 0.234.0 Likely to cause new Flow errors: diff --git a/flow_parser.opam b/flow_parser.opam index b74d35ed409..e5e9164ef3b 100644 --- a/flow_parser.opam +++ b/flow_parser.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "flow_parser" -version: "0.234.0" +version: "0.235.0" maintainer: "flow@fb.com" authors: ["Flow Team "] homepage: "https://github.com/facebook/flow/tree/master/src/parser" diff --git a/flowtype.opam b/flowtype.opam index 15458aca7dc..e10c8ee23a0 100644 --- a/flowtype.opam +++ b/flowtype.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "flowtype" -version: "0.234.0" +version: "0.235.0" maintainer: "flow@fb.com" authors: "Flow Team " license: "MIT" @@ -15,7 +15,7 @@ depends: [ "core_kernel" {>= "v0.14.1" & <= "v0.16.0"} "dtoa" {>= "0.3.2"} "fileutils" {>= "0.6.3"} - "flow_parser" {= "0.234.0"} + "flow_parser" {= "0.235.0"} "inotify" {os = "linux" & >= "2.4.1"} "ounit2" {with-test} "lwt" {>= "5.4.0"} diff --git a/packages/flow-parser-bin/package.json b/packages/flow-parser-bin/package.json index 4d423af5285..e3a89f46b58 100644 --- a/packages/flow-parser-bin/package.json +++ b/packages/flow-parser-bin/package.json @@ -1,6 +1,6 @@ { "name": "flow-parser-bin", - "version": "0.234.0", + "version": "0.235.0", "description": "The Flow JavaScript parser, via bindings to the native OCaml implementation", "main": "index.js", "repository": "https://github.com/facebook/flow.git", diff --git a/packages/flow-parser/package.json b/packages/flow-parser/package.json index 5c48d9ce99b..93fc419de81 100644 --- a/packages/flow-parser/package.json +++ b/packages/flow-parser/package.json @@ -1,6 +1,6 @@ { "name": "flow-parser", - "version": "0.234.0", + "version": "0.235.0", "description": "JavaScript parser written in OCaml. Produces ESTree AST", "homepage": "https://flow.org", "license": "MIT", diff --git a/packages/flow-remove-types/package.json b/packages/flow-remove-types/package.json index 4e50b914bc4..dee6faf0e8b 100644 --- a/packages/flow-remove-types/package.json +++ b/packages/flow-remove-types/package.json @@ -1,6 +1,6 @@ { "name": "flow-remove-types", - "version": "2.234.0", + "version": "2.235.0", "description": "Removes Flow type annotations from JavaScript files with speed and simplicity.", "author": { "name": "Flow Team", diff --git a/packages/try-flow-website-js/package.json b/packages/try-flow-website-js/package.json index a51555219ad..b047e358619 100644 --- a/packages/try-flow-website-js/package.json +++ b/packages/try-flow-website-js/package.json @@ -1,6 +1,6 @@ { "name": "try-flow-website-js", - "version": "0.234.0", + "version": "0.235.0", "description": "An NPM package to hold compiled `flow.js` and libdefs for every Flow version.", "license": "MIT", "repository": "facebook/flow", diff --git a/src/common/flow_version.ml b/src/common/flow_version.ml index 43707555590..2d55ba62fd2 100644 --- a/src/common/flow_version.ml +++ b/src/common/flow_version.ml @@ -5,4 +5,4 @@ * LICENSE file in the root directory of this source tree. *) -let version = "0.234.0" +let version = "0.235.0" diff --git a/website/docs/install.md b/website/docs/install.md index 54def03fc5c..f76b41ed64d 100644 --- a/website/docs/install.md +++ b/website/docs/install.md @@ -126,7 +126,7 @@ npm install --save-dev flow-bin "name": "my-flow-project", "version": "1.0.0", "devDependencies": { - "flow-bin": "^0.234.0" + "flow-bin": "^0.235.0" }, "scripts": { "flow": "flow"