Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Releases: stackia/test2doc.js

v0.4.2

11 May 17:05
Compare
Choose a tag to compare

Bug Fixes

  • Upgrade outdated unsafe dependencies.

v0.4.1

13 Jan 18:09
Compare
Choose a tag to compare

Bug Fixes

  • Upgrade outdated unsafe dependencies.

v0.4.0

16 Mar 11:56
Compare
Choose a tag to compare

Breaking Changes

  • Dropped support for node 8.

v0.3.6

02 Dec 13:37
Compare
Choose a tag to compare

Bug Fixes

  • Upgrade every dependencies to make this lib looks not so outdated in 2019.

v0.3.5

11 May 12:51
Compare
Choose a tag to compare

Bug Fixes

  • Fix non-first occurrence route parameter not being properly converted. Thanks to @ducky-hong (#5).

v0.3.4

09 Mar 10:58
Compare
Choose a tag to compare

What's New

  • We now provide an extension for supertest called supertest-test2doc, which makes it much easier to integrate test2doc.js with supertest.

Bug Fixes

  • Fix problems caused by content-type header containing ;.

v0.3.3

08 Mar 22:23
Compare
Choose a tag to compare

Bug Fixes

  • Fix multi-line value breaks MSON structure.

v0.3.2

08 Mar 21:54
Compare
Choose a tag to compare

Bug Fixes

  • Fix apib title render error for groups without basePath.
  • Fix Swagger response render error if no responseBodies are given.

v0.3.1

08 Mar 21:01
Compare
Choose a tag to compare

Breaking Changes

  • action.status(statusCode) now returns the statusCode itself, instead of this action.

v0.3.0

08 Mar 20:18
Compare
Choose a tag to compare

What's New

  • Add headers support. You can now use group.reqHeaders() / action.reqHeader() / action.reqHeaders() / action.resHeaders() to make headers appear in your documents.

Bug Fixes

  • Parameters / queries / headers set on group will affect all actions in this group, instead of direct child action only.

Breaking Changes

  • status(statusCode) has been moved to Action class. Now you need to use action.status() instead of <captured response body>.status() to set response status code.
  • Parameter returnProxy on group.params() and group.queries() has been removed. Now they will return the group itself.