Skip to content

Commit

Permalink
v0.56.0
Browse files Browse the repository at this point in the history
Reviewed By: calebmer

Differential Revision: D5933614

fbshipit-source-id: 7a581c824301f14b2d442c77b4debc137d739fbf
  • Loading branch information
samwgoldman authored and Sam Goldman committed Sep 28, 2017
1 parent 61328b2 commit e18b3f0
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 10 deletions.
24 changes: 24 additions & 0 deletions Changelog.md
@@ -1,3 +1,27 @@
### 0.56.0

New Features:

* Added a `$Rest<A,B>` type, which models the semantics of object rest
* Added support for `null` prototypes, a la Object.create(null)
* Added support `__proto__` property in object literals and object type annotations

Notable bug fixes:

* Improved support for React higher-order components, e.g. Relay fragment containers
* Improved performance of `flow focus-check` for multiple files
* Fixed type-at-post support for $ReadOnlyArray types
* Fixed many cases where error messages were reported far away from the root cause.
* Fixed find-refs for named exports

Misc:

* Added experimental lazy mode for IDEs
* Added `<VERSION>` token for `suppress_comment` option in `.flowconfig`
* Removed support for $Abstract utility type
* Removed support for `flow typecheck-contents --graphml`


### 0.55.0

Likely to cause new Flow errors:
Expand Down
2 changes: 1 addition & 1 deletion opam
@@ -1,6 +1,6 @@
opam-version: "1.2"
name: "flowtype"
version: "0.55.0"
version: "0.56.0"
maintainer: "gabe@fb.com"
homepage: "https://flow.org"
dev-repo: "https://github.com/facebook/flow.git"
Expand Down
2 changes: 1 addition & 1 deletion src/common/flow_version.ml
Expand Up @@ -8,4 +8,4 @@
*
*)

let version = "0.55.0"
let version = "0.56.0"
2 changes: 1 addition & 1 deletion src/parser/META
@@ -1,5 +1,5 @@
name="parser_flow"
version="0.55.0"
version="0.56.0"
description="flow parser ocamlfind package"
archive(byte)="parser_flow.cma"
archive(native)="parser_flow.cmxa"
2 changes: 1 addition & 1 deletion src/parser/opam
@@ -1,6 +1,6 @@
opam-version: "1.2"
name: "flow_parser"
version: "0.55.0"
version: "0.56.0"
maintainer: "gabe@fb.com"
authors: [
"Avik Chaudhuri"
Expand Down
2 changes: 1 addition & 1 deletion src/parser/package.json
@@ -1,6 +1,6 @@
{
"name": "flow-parser",
"version": "0.55.0",
"version": "0.56.0",
"description": "JavaScript parser written in OCaml. Produces SpiderMonkey AST",
"homepage": "https://flow.org",
"license": "BSD-3-Clause",
Expand Down
8 changes: 4 additions & 4 deletions tests/json_exit/json_exit.exp
@@ -1,15 +1,15 @@
{"flowVersion":"0.55.0","exit":{"code":12,"reason":"Could_not_find_flowconfig","msg":"Could not find file or directory pants; canceling search for .flowconfig.\nSee \"flow init --help\" for more info"}}
{"flowVersion":"0.56.0","exit":{"code":12,"reason":"Could_not_find_flowconfig","msg":"Could not find file or directory pants; canceling search for .flowconfig.\nSee \"flow init --help\" for more info"}}
{
"flowVersion":"0.55.0",
"flowVersion":"0.56.0",
"exit":{
"code":12,
"reason":"Could_not_find_flowconfig",
"msg":"Could not find file or directory pants; canceling search for .flowconfig.\nSee \"flow init --help\" for more info"
}
}
{"flowVersion":"0.55.0","exit":{"code":64,"reason":"Commandline_usage_error","msg":"flow: --pants unknown option\nUsage: flow check [OPTION]... [ROOT]\n\nDoes a full Flow check and prints the results.\n\nFlow will search upward for a .flowconfig file, beginning at ROOT.\nROOT is assumed to be the current directory if unspecified.\n\n --all Typecheck all files, not just @flow\n --color Display terminal output in color. never, always, auto (default: auto)\n --debug Print debug info during typecheck\n --from Specify client (for use by editor plugins)\n --help This list of options\n --ignore Specify one or more ignore patterns, comma separated\n --ignore-version Ignore the version constraint in .flowconfig\n --include Specify one or more include patterns, comma separated\n --include-suppressed Ignore any `suppress_comment` lines in .flowconfig\n --include-warnings Include warnings in the error output (warnings are excluded by default)\n --json Output results in JSON format\n --lib Specify one or more lib files/directories, comma separated\n --lints Specify one or more lint rules, comma separated\n --max-workers Maximum number of workers to create (capped by number of cores)\n --munge-underscore-members Treat any class member name with a leading underscore as private\n --no-flowlib Do not include embedded declarations\n --one-line Escapes newlines so that each error prints on one line\n --pretty Pretty-print JSON output (implies --json)\n --profile Output profiling information\n --quiet Suppress output about server startup\n --sharedmemory-dep-table-pow The exponent for the size of the shared memory dependency table. The default is 17, implying a size of 2^17 bytes\n --sharedmemory-dirs Directory in which to store shared memory heap (default: /dev/shm/)\n --sharedmemory-hash-table-pow The exponent for the size of the shared memory hash table. The default is 19, implying a size of 2^19 bytes\n --sharedmemory-log-level The logging level for shared memory statistics. 0=none, 1=some\n --sharedmemory-minimum-available Flow will only use a filesystem for shared memory if it has at least these many bytes available (default: 536870912 - which is 512MB)\n --show-all-errors Print all errors (the default is to truncate after 50 errors)\n --strip-root Print paths without the root\n --temp-dir Directory in which to store temp files (default: FLOW_TEMP_DIR, or /tmp/flow/)\n --traces Outline an error path up to a specified level\n --verbose Print verbose info during typecheck\n --verbose-depth Recursively print types up to specified depth (default 1, implies --verbose)\n --verbose-indent Indent verbose info during typecheck (implies --verbose)\n --weak Typecheck with weak inference, assuming dynamic types by default"}}
{"flowVersion":"0.56.0","exit":{"code":64,"reason":"Commandline_usage_error","msg":"flow: --pants unknown option\nUsage: flow check [OPTION]... [ROOT]\n\nDoes a full Flow check and prints the results.\n\nFlow will search upward for a .flowconfig file, beginning at ROOT.\nROOT is assumed to be the current directory if unspecified.\n\n --all Typecheck all files, not just @flow\n --color Display terminal output in color. never, always, auto (default: auto)\n --debug Print debug info during typecheck\n --from Specify client (for use by editor plugins)\n --help This list of options\n --ignore Specify one or more ignore patterns, comma separated\n --ignore-version Ignore the version constraint in .flowconfig\n --include Specify one or more include patterns, comma separated\n --include-suppressed Ignore any `suppress_comment` lines in .flowconfig\n --include-warnings Include warnings in the error output (warnings are excluded by default)\n --json Output results in JSON format\n --lib Specify one or more lib files/directories, comma separated\n --lints Specify one or more lint rules, comma separated\n --max-workers Maximum number of workers to create (capped by number of cores)\n --munge-underscore-members Treat any class member name with a leading underscore as private\n --no-flowlib Do not include embedded declarations\n --one-line Escapes newlines so that each error prints on one line\n --pretty Pretty-print JSON output (implies --json)\n --profile Output profiling information\n --quiet Suppress output about server startup\n --sharedmemory-dep-table-pow The exponent for the size of the shared memory dependency table. The default is 17, implying a size of 2^17 bytes\n --sharedmemory-dirs Directory in which to store shared memory heap (default: /dev/shm/)\n --sharedmemory-hash-table-pow The exponent for the size of the shared memory hash table. The default is 19, implying a size of 2^19 bytes\n --sharedmemory-log-level The logging level for shared memory statistics. 0=none, 1=some\n --sharedmemory-minimum-available Flow will only use a filesystem for shared memory if it has at least these many bytes available (default: 536870912 - which is 512MB)\n --show-all-errors Print all errors (the default is to truncate after 50 errors)\n --strip-root Print paths without the root\n --temp-dir Directory in which to store temp files (default: FLOW_TEMP_DIR, or /tmp/flow/)\n --traces Outline an error path up to a specified level\n --verbose Print verbose info during typecheck\n --verbose-depth Recursively print types up to specified depth (default 1, implies --verbose)\n --verbose-indent Indent verbose info during typecheck (implies --verbose)\n --weak Typecheck with weak inference, assuming dynamic types by default"}}
{
"flowVersion":"0.55.0",
"flowVersion":"0.56.0",
"exit":{
"code":64,
"reason":"Commandline_usage_error",
Expand Down
2 changes: 1 addition & 1 deletion tests/version/version.exp
@@ -1 +1 @@
Wrong version of Flow. The config specifies version 0.1.0 but this is version 0.55.0
Wrong version of Flow. The config specifies version 0.1.0 but this is version 0.56.0

0 comments on commit e18b3f0

Please sign in to comment.