Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Releases: ryan953/flow-annotation-check

v1.11.4

06 Oct 02:40

Choose a tag to compare

  • Really ignore tests when packaging (#162)

Maintenance

15 Jun 14:59

Choose a tag to compare

  • Convert from greenkeeper to dependabot
  • Update dependency versions to remove most dependabot alerts.

Minimum version supported is still nodejs 8, but upgrading to 10 is recommended.

v1.11.2

29 Jul 21:05

Choose a tag to compare

Maintenance

Updates to @babel packages (v6 to v7)
Updates some dependency versions to remove most security alerts.

v1.11.0

30 May 21:58

Choose a tag to compare

Likely to cause new failures:

Guard against @flow annotations that are after a code statement.

  • Previously files with some javascript above the first @flow comment 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.

Maintenance:

  • Bump glob to dependency v7.1.4
  • Bump flow-bin dependency to v0.98.1
  • improve internal flow type coverage

v1.10.1

30 Dec 23:34

Choose a tag to compare

Speedup AST generation at runtime by parsing file content in-process.

This is faster than shelling out with flow ast and doing a JSON.parse() call.

  • Our unit tests run about 8 seconds (20%) faster with this change.
  • On a large codebase of about 8,300 files runtime was reduced from ~10.5minutes to ~2minutes.

v1.10.0

06 Dec 06:26

Choose a tag to compare

Adds the 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 --json-file /path/to/file.json.

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 or @flow strict-local would cause the program to exit with an error code.

The default value is --level=flow, now --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.

You can read more about these flags in the updated README or by running npx flow-annotation-check --help to see the detailed cli flags & help.

v1.9.1

24 Sep 02:29

Choose a tag to compare

Include all the lib/ folders when pushing to npm.

v1.9.0

24 Sep 02:28

Choose a tag to compare

Adds a --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 --csv-file or --html-file when combined with --show-summary option.

Also updates dependencies.

v1.8.0

19 Jan 09:09

Choose a tag to compare

Improve annotation detection to match flow internals. Now allows for other content to be on the same line such as // @flow @preventMunge.

v1.7.0

20 Nov 07:35

Choose a tag to compare

Adds support for detecting @flow strict annotations and including them in the reports. See #44

  • The --list-files flag now allows the flowstrict option to only select the strict files. The --allow-weak flag is always ignored with this option.
  • Setting --list-files to flow will 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.