Skip to content

Releases: Surnet/swagger-jsdoc

7.0.0-rc.1

17 Feb 09:05
6431a56
Compare
Choose a tag to compare
7.0.0-rc.1 Pre-release
Pre-release

The first 7.x release. It's a major refactoring of v6 reaching 100% test coverage and a few major changes on the way:

  • Written in ESM instead of CommonJS

  • CLI has been moved to be an example => breaking change and a need for the user to create a CLI. Reason: too many varying requests for changes in the CLI which was based on commander. The module loading utility has been left in the examples' folder together with tests, so migration should be very straight-forward to your preferred CLI package. Library authors have already made alternative CLIs in parallel such https://github.com/lmammino/swagger-jsdoc-generator

  • The main function is now returning a promise. It's because during the rewrite, many sync functions have been changed to promises, especially file reading operations. This change can be considered as imminent as other features in the future will also require it to be async.

6.0.6

16 Feb 09:03
Compare
Choose a tag to compare

Update documentation

6.0.5

15 Feb 15:54
Compare
Choose a tag to compare

Solves #239

6.0.3

15 Feb 08:44
3bb003a
Compare
Choose a tag to compare

Fixes a repeated regression reported in #244

6.0.2

29 Jan 11:04
Compare
Choose a tag to compare

Remove confusing message from CLI about missing API files #241

6.0.1

07 Jan 06:24
Compare
Choose a tag to compare

Fixes regressions reported in #237

6.0.0

23 Dec 09:59
7aaa3e0
Compare
Choose a tag to compare

No major changes since last release candidate. Rather, just a pre-new-year release.

Please see this blog post for changes overview.

6.0.0-rc.5

16 Dec 09:04
52adefd
Compare
Choose a tag to compare

Support for x-webhooks. See the original request for details on this extension.

6.0.0-rc.4

12 Dec 17:30
863ee2c
Compare
Choose a tag to compare

This change affects only the CLI and can be a breaking one if you pass apis information through the swaggerDefinition/openAPIObject. The change no longer reads apis property from that object, as it's not part of the OpenAPI specification.

See the pull request for more details #234

Example swaggerDefinition.js:

{
  "info": {
    "title": "Hello World",
    "version": "1.0.0",
    "description": "A sample API"
  },
-  "apis": ["./**/*/routes.js"]
}

Pass this information as input files parameter:

swagger-jsdoc -d swaggerDefinition.js ./**/*/routes.js

6.0.0-rc.3

28 Nov 15:39
Compare
Choose a tag to compare

Adds support for custom encoding requested in #206