Skip to content

Releases: acacode/swagger-typescript-api

6.0.0 Release

01 Mar 21:18
Compare
Choose a tag to compare

BREAKING_CHANGES:

  • Ability to override only one template (issue #166, thanks @Nihisil)
  • removed TPromise type for --responses options (perf. problem, issue #182, thanks @mixalbl4-127)
  • breaking changes in http-client.eta
  • securityWorker now can return Promise<RequestParams | void> | RequestParams | void

Features:

  • template path prefixes @base, @default, @modular (using in Eta templates, includeFile(), see README.md)
  • --axios option for axios http client (issue #142, thanks @msklvsk, @mixalbl4-127 )

5.1.7 Release (Bugfix)

24 Feb 01:33
f6d1c67
Compare
Choose a tag to compare

Fixes:

  • Do not fail if template file does not exist (issue #166, thanks @armsnyder )
    Caveat: With this fix it will still error if the overridden template uses includeFile on a template file that is not overridden

5.1.6 Release (Bugfix)

19 Feb 18:00
0efc754
Compare
Choose a tag to compare

Fixes:

  • The contentFormatter for ContentType:Json does not correctly format strings (issue #176, thanks @Styn)

5.1.5 Release

19 Feb 07:51
683311a
Compare
Choose a tag to compare

Fixes:

  • ContentType.FormData no longer sets the correct boundary (issue #172, thanks @Styn)

5.1.4 Release

18 Feb 08:15
Compare
Choose a tag to compare

Fixes:

  • header overwrite in default and modular API templates (issue #171 by @Styn, thanks @emilecantin for PR with fix)

5.1.3 Release

18 Feb 00:03
45b93bc
Compare
Choose a tag to compare

Fixes:

  • Ignored x-nullable field
  • Schema type names which starts with number or special characters

5.1.2 Release

15 Feb 12:07
5535462
Compare
Choose a tag to compare

Fixes:

  • Linter disable rules is not working (issue #164, thanks @Haritaso)

5.1.1 Release

15 Feb 08:52
798c8e9
Compare
Choose a tag to compare

Fixes:

  • The HttpResponse type is no longer exported from http-client (issue #161, thanks @Styn)

5.1.0 Release

15 Feb 00:44
21c64fd
Compare
Choose a tag to compare

Fixes:

  • Bug with optional nested properties of object schema type (issue #156, thanks @Fabiencdp)

Features:

  • onCreateRouteName(routeNameInfo: RouteNameInfo, rawRouteInfo: RawRouteInfo): RouteNameInfo | void hook
    Which allows to customize route name without customizing route-name.eta template
  • Improved content kinds for request infos
  • --single-http-client option which allows to send HttpClient instance to Api constructor and not to create many count of HttpClient instances with --modular api (issue #155)

Minor:

  • A bit improve type declaration file (index.d.ts) for this tool
  • make exportable ApiConfig interface

Internal:

  • clearing routeNameDuplicatesMap before each parseRoutes() function call
  • Changed templates:
    • http-client.eta
    • procedure-call.eta
    • api.eta

5.0.0 Release

12 Feb 23:39
baf3814
Compare
Choose a tag to compare

Fixes:

  • Request content types auto substitution
    i.e. if request body is form data, then request body content type will be multipart/form-data
  • Strange method name (issue #152, thanks @RoXuS)
  • Hardcoded Content-Type causes issues with some endpoints (issue #153, thanks @po5i)
  • Critical bug with :paramName path params (issue #154)

Features:

  • Ability to provide custom formatting fetch response
  • "IMAGE" content kind for response\request data objects
  • RequestParams RequestHeaders types for --route-types (routeTypes: true) option (issue #150, thanks @Fabiencdp )
  • --default-response option. Allows to set default type for empty response schema (default: void) (based on issue #14)
  • Request cancellation support (issue #96, thanks @ApacheEx)
    RequestParams type now have the cancelToken field
    HttpClient instance now have the abortRequest(cancelToken) method

BREAKING_CHANGES:

  • Fully refactored http-client.eta template, make it more flexible and simpler.
    HttpClient["request"] takes one argument with type FullRequestParams
    (previously it takes many count of arguments which was not flexible)
  • Changed the default response body type from any to void (issue #14)

Internal:

  • Changed templates:
    • http-client.eta
    • procedure-call.eta
    • api.eta

This version works with previous templates.