fac

flow-annotation-check

npm i flow-annotation-check

27 Versions

1.11.4

latest
2 years ago
  • Really ignore tests when packaging (#162)

1.11.3

2 years ago
  • 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.


1.11.2

3 years ago
Maintenance

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


1.11.0

3 years ago
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

1.10.1

3 years ago

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.

1.10.0

3 years ago

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.


1.9.1

4 years ago

Include all the lib/ folders when pushing to npm.


1.9.0

4 years ago

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.


1.8.1

4 years ago

1.8.1-0

4 years ago

1.8.0

4 years ago

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


1.7.0

4 years ago

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.


1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago

27 Versions

TagPublished
1.11.4latest2yrs ago
1.11.32yrs ago
1.11.23yrs ago
1.11.03yrs ago
1.10.13yrs ago
1.10.03yrs ago
1.9.14yrs ago
1.9.04yrs ago
1.8.14yrs ago
1.8.1-04yrs ago
1.8.04yrs ago
1.7.04yrs ago
1.6.25yrs ago
1.6.15yrs ago
1.6.05yrs ago
1.5.05yrs ago
1.4.15yrs ago
1.4.05yrs ago
1.3.25yrs ago
1.3.15yrs ago
1.3.05yrs ago
1.2.05yrs ago
1.1.25yrs ago
1.1.15yrs ago
1.1.05yrs ago
1.0.05yrs ago
0.0.15yrs ago