From c2171b5c59b774a4ab6a7e90b46537d865261c5c Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Tue, 4 Mar 2025 05:05:00 -0800 Subject: [PATCH] v0.263.0 Reviewed By: alexmckenley Differential Revision: D70538131 ------------------------------------------------------------------------ (from 2da84fb7522fb3e0e86febba675c2091f11fc897) fbshipit-source-id: 64b37b157f5f22fc403cdce3038473143d1cbdc6 --- Changelog.md | 19 +++++++++++++++++++ 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, 28 insertions(+), 9 deletions(-) diff --git a/Changelog.md b/Changelog.md index 116d5ba8c03..3df449faefe 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,22 @@ +### 0.263.0 + +Likely to cause new Flow errors: +* Signature verification errors will now show up for libdef files + +New Features: +* Declaration merging for `declare namespace` is now supported in toplevel library definitions. + +Notable bug fixes: +* In component type annotation, the ref prop can now have any type. + +Library Definitions: +* Since the last version, most of the bundled libdefs will no longer be maintained and shipped with Flow. Going forward, they should be downloaded from flow-typed. Starting from this version, we will also no longer ship a set of precise typing definition for jsx intrinsics. To maintain the same behavior as before, you should have a `flow-typed.config.json` in the root of your project with the following content: +``` +{ + "env": ["node", "dom", "bom", "intl", "cssom", "indexeddb", "serviceworkers", "webassembly", "jsx"] +} +``` + ### 0.262.0 Likely to cause new Flow errors: diff --git a/flow_parser.opam b/flow_parser.opam index 9bb9ab1f935..d992aa76a2e 100644 --- a/flow_parser.opam +++ b/flow_parser.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "flow_parser" -version: "0.262.0" +version: "0.263.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 577b65bac32..0ff9d4ffca7 100644 --- a/flowtype.opam +++ b/flowtype.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "flowtype" -version: "0.262.0" +version: "0.263.0" maintainer: "flow@fb.com" authors: "Flow Team " license: "MIT" @@ -15,7 +15,7 @@ depends: [ "camlp-streams" {>= "5.0.1"} "dtoa" {>= "0.3.2"} "fileutils" {>= "0.6.4"} - "flow_parser" {= "0.262.0"} + "flow_parser" {= "0.263.0"} "inotify" {os = "linux" & >= "2.4.1"} "ounit2" {with-test} "lwt" {>= "5.7.0"} diff --git a/packages/flow-parser-bin/package.json b/packages/flow-parser-bin/package.json index deb9261d0c8..a39e86be2f1 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.262.0", + "version": "0.263.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 6f649882a7d..210bd12002e 100644 --- a/packages/flow-parser/package.json +++ b/packages/flow-parser/package.json @@ -1,6 +1,6 @@ { "name": "flow-parser", - "version": "0.262.0", + "version": "0.263.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 61a5d9af4f0..a44de783989 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.262.0", + "version": "2.263.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 2faf73f2926..47d1200b0a0 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.262.0", + "version": "0.263.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 5f500b2725f..036adce32e5 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.262.0" +let version = "0.263.0" diff --git a/website/docs/install.md b/website/docs/install.md index 00444e5fe4c..7c4eb75f79d 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.262.0" + "flow-bin": "^0.263.0" }, "scripts": { "flow": "flow"