Releases: acacode/swagger-typescript-api
13.0.5
13.0.4
What's Changed
- chore(deps-dev): bump eslint from 8.45.0 to 8.52.0 by @dependabot in #651
- Update GitHub Actions by @smorimoto in #723
- chore(deps-dev): bump @types/lodash from 4.14.195 to 4.17.1 by @dependabot in #707
- chore(deps-dev): bump axios from 1.4.0 to 1.6.8 by @dependabot in #709
- chore(deps): bump @types/swagger-schema-official from 2.0.22 to 2.0.25 by @dependabot in #710
- chore(deps-dev): bump eslint-plugin-prettier from 5.0.0 to 5.1.3 by @dependabot in #708
- chore(deps-dev): bump husky from 8.0.3 to 9.0.11 by @dependabot in #713
- chore(deps-dev): bump dotenv from 16.3.1 to 16.4.5 by @dependabot in #716
- chore(deps-dev): bump @types/node from 20.4.4 to 20.12.8 by @dependabot in #721
- chore(deps-dev): bump pretty-quick from 3.1.3 to 4.0.0 by @dependabot in #712
- chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 9.1.0 by @dependabot in #722
- chore(deps): bump typescript from 5.1.6 to 5.4.5 by @dependabot in #720
- npm -> yarn by @smorimoto in #724
- chore(deps): bump node-emoji from 2.1.0 to 2.1.3 by @dependabot in #715
- Biome by @smorimoto in #725
- chore(deps): bump cosmiconfig from 8.2.0 to 9.0.0 by @dependabot in #717
- chore(deps): bump prettier and @types/prettier by @dependabot in #726
- Cleanup dependencies by @smorimoto in #727
- add missing apiClassName to GenerateApiParamsBase by @Mearman in #635
- fix: fix options manipulation by @vgprst in #631
- Some chores by @smorimoto in #729
- chore(deps-dev): bump @biomejs/biome from 1.7.2 to 1.7.3 by @dependabot in #730
- chore(deps-dev): bump @types/node from 20.12.8 to 20.12.9 by @dependabot in #731
- chore(deps-dev): bump @types/node from 20.12.9 to 20.12.10 by @dependabot in #732
- Fix typos by @szepeviktor in #698
- Remove unnecessary files by @smorimoto in #734
- The default branch has been renamed and the next branch has been deprecated by @smorimoto in #735
- chore(deps-dev): bump @types/node from 20.12.10 to 20.12.11 by @dependabot in #737
- Clone the response in fetch HTTP client by @depsimon in #670
- chore(deps-dev): bump @types/node from 20.12.11 to 20.12.12 by @dependabot in #739
- chore(deps-dev): bump @types/lodash from 4.17.1 to 4.17.3 by @dependabot in #740
- chore(deps-dev): bump @types/lodash from 4.17.3 to 4.17.4 by @dependabot in #741
- chore(deps-dev): bump axios from 1.6.8 to 1.7.1 by @dependabot in #743
- chore(deps-dev): bump axios from 1.7.1 to 1.7.2 by @dependabot in #744
- chore(deps-dev): bump @types/node from 20.12.12 to 20.12.13 by @dependabot in #752
- chore(deps-dev): bump @types/node from 20.12.13 to 20.13.0 by @dependabot in #753
- chore(deps): bump prettier from 3.2.5 to 3.3.0 by @dependabot in #754
- Prepare 13.0.4 by @smorimoto in #755
New Contributors
- @Mearman made their first contribution in #635
- @vgprst made their first contribution in #631
- @szepeviktor made their first contribution in #698
- @depsimon made their first contribution in #670
Full Changelog: 13.0.3...13.0.4
13.0.3 Release
fix: problem with type any
as base type of discriminator schema (cases when schema without discriminator is empty)
13.0.2 Release
fix: problem with incorrect settings type suffix for internal discriminator mappings
13.0.1 Release
feat: const
keyword OpenAPI 3.0 draft
fix: problem with using anyOf
feat: --extract-responses
(nodejs: extractResponses
) option to extract all schemas from /components/responses
fix: discriminator and mapping with invalid discriminator property name (#551)
fix: problem with incorrect resolving type name of discriminator mapping types data contracts
Full Changelog: 13.0.0...13.0.1
13.0.0 Release
BREAKING_CHANGE: disable support NodeJS 14.x
BREAKING_CHANGE: change swagger-typescript-api NodeJS "generateApi" function return type
BREAKING_CHANGE: remove rawModelTypes
from output api configuration
feat: --custom-config <string>
option (#503)
feat: --sort-routes
option, ability to sort routes;
fix: critical bugs based with extract types and enums
fix: sort types option (sort was not correctly work with nested or extracted types)
fix: problems based with extracting enums;
fix: nullable enum with integer values (#543)
fix: generation enum numbers as strings one (#534)
chore: refactoring the axios imports
fix: non-object custom spec extensions (#500)
fix(docs): input instead of output in readme
internal: remove redundant internal scripts
internal: change process with using custom templates
interface GenerateApiOutput {
...
- files: { name: string; content: string; declaration: { name: string; content: string } | null }[];
+ files: { fileName: string; fileContent: string; fileExtension: string }[];
...
}
internal: refactor schema parser code (preparing it for async code execution)
fix: problem with filtering primitive in complex types (#459)
feat: add discriminator property support (#456)
internal: prepare code + templates for async code execution (next plans)
fix: problems with dot in query params (hard fix) (#460)
feature: ability to send custom Ts output code translator to js. Example:
const { Translator } = require("swagger-typescript-api/src/translators/translator");
const { JavascriptTranslator } = require("swagger-typescript-api/src/translators/javascript");
class MyTranslator extends Translator { // or use extends JavascriptTranslator
translate({ fileName, fileExtension, fileContent }) {
// format ts\js code with using this codeFormatter (prettier + ts import fixer)
this.codeFormatter.format(fileContent)
// config of the code gen process
this.config.
// logger
this.logger.
return [
{
fileName,
fileExtension,
fileContent,
}
]
}
}
Full Changelog: 12.0.4...13.0.0
12.0.4 Release
What's Changed
fix: onCreateRoute skip behaviour
fix: problems with prefixes\suffixes for extracted requests params, enums
Full Changelog: 12.0.3...12.0.4
12.0.3 Release
What's Changed
- security: update the
eta
package to address CVE-2022-25967
Full Changelog: 12.0.2...12.0.3
12.0.2 Release
fix: missing option --extract-enums
(#344)
12.0.1 Release
fix: problem based with http requests and disableStrictSSL
option (#453)
docs: update docs for requestOptions
nodejs option