Skip to content

v5.0.0

Latest
Compare
Choose a tag to compare
@kevinoid kevinoid released this 17 Nov 03:26
· 46 commits to main since this release
v5.0.0

BREAKING CHANGES

  • Drop support for Node.js 15 and 14.17 and below.
  • The ? CLI option was dropped in favor of -h or --help.
  • Only index.js, cli.js, and package.json are exported from this package.
  • require('swagger-spec-validator/bin/swagger-spec-validator.js') has been renamed to require('swagger-spec-validator/cli.js').
  • The in, out, and err properties of the options argument of swagger-spec-validator/cli.js are now stdin, stdout, and stderr to match process for easier calling.
  • Default values for the args and options arguments of swagger-spec-validator/cli.js are no longer provided, due to lack of compelling use-case, to avoid ambiguity, and to reduce code.
  • swagger-spec-validator/cli.js no longer accepts a callback argument. It returns a Promise with exit code.

Features

  • Use commander instead of yargs for command-line parsing (2a7c9c8)
  • Switch from nyc to c8 for native V8 coverage collection (d72a313)
  • Set process.exitCode instead of calling process.exit() in cli.js (247de91)