Minimum version supported is still nodejs 8, but upgrading to 10 is recommended.
Updates to @babel packages (v6 to v7) Updates some dependency versions to remove most security alerts.
Guard against @flow annotations that are after a code statement.
@flowcomment were incorrectly marked as having flow coverage when the flow interpreter would actually consider that file untyped. This release correctly identifies those as untyped. It is possible that this will cause new failures in existing projects that had incorrectly typed files.
Speedup AST generation at runtime by parsing file content in-process.
This is faster than shelling out with
flow ast and doing a
json output format available to the cli. You can output a report to stdout with
-o json or
--output json or put the json data directly in a file by using
Also adds the
--level flag which supercedes the existing
--allow-weak flag. Using
--level you can specify what type of strictness is allowed in your repo. For example using
--level=flowstrict requires that all files declare
@flow strict; any files with
@flow strict-local would cause the program to exit with an error code.
The default value is
--allow-weak is an alias for
--level=flowweak. If you never want to exit with an error code then set
--level=any and all @flow or no-flow files will be allowed.
Include all the
lib/ folders when pushing to npm.
--summary-file output option. This prints a text-format summary of your project to a file, in this format:
@flow 35 (92.11%) @flow strict 2 (5.26%) @flow strict-local 1 (2.63%) @flow weak 0 (0%) no flow 0 (0%) Total Files 38
The summary ignores any filters that are normally applied to the list output. The summary is also included in other output files such as
--html-file when combined with
Also updates dependencies.
Improve annotation detection to match flow internals. Now allows for other content to be on the same line such as
// @flow @preventMunge.
Adds support for detecting
@flow strict annotations and including them in the reports. See #44
--list-filesflag now allows the
flowstrictoption to only select the strict files. The
--allow-weakflag is always ignored with this option.
flowwill also include all strict files.
See the cli help, or parser-test.js.snap for the full arguments.
Also bumps all dependencies to the latest versions.