Releases: lukeautry/tsoa
v4.1.2
In order to fix breaking changes in TypeScript and it's API, we pinned our TypeScript version to <4.8.
New builds with the 4.8 API will be released in tsoa v5. Please check out the next tag on npm and let us know.
What's Changed
- Fix: Add HttpStatusCodeLiteral 451 by @jokj624 in #1284
- Allow a single body param to included in the schema by @jacksyatwork in #1288
- Fix: Pin typescript to <4.8 by @WoH in 59fcdd8
New Contributors
- @jokj624 made their first contribution in #1284
- @jacksyatwork made their first contribution in #1288
Full Changelog: v4.1.1...v4.1.2
v5.0.0-alpha.1
Breaking Change
Remove deprecated commands (swagger-and-routes
, swagger
) by @WoH in 84dd609
Fixes:
Fix an issue with calling the cli by @WoH in 84dd609
Full Changelog: v5.0.0-alpha.0...v5.0.0-alpha.1
v5.0.0-alpha.0
Due to TypeScript 4.8's breaking changes, this is the initial alpha for TS 4.8. Big thanks to @simllll for the PR.
yarn add tsoa@next
Breaking Changes
- Some Types may not produce correct results for now. We will try to fix whatever the new version of the compiler api broke step by step
- Dropped support for node 12 which is EOL
What's Changed
- Fix: Add HttpStatusCodeLiteral 451 by @jokj624 in #1284
- Allow a single body param to included in the schema by @jacksyatwork in #1288
- fix: throw an error when there are no controllers found by @simllll in #1303
- fix: typescript 4.8 support and improve test suite by @simllll in #1302
New Contributors
- @jokj624 made their first contribution in #1284
- @jacksyatwork made their first contribution in #1288
Full Changelog: v4.1.1...v5.0.0-alpha.0
v4.1.1
Fixes
- File uploads for ESM by @FrozenKiwi in #1283
- Support using Examples with Produces by @YiTingLee in #1275
- Generated routes overlap in koa by @Shiou-Ju in #1262, @ClemWiz in #1265
- Fixed a few typos by @cosmicSnek in #1273
Chores
- chore(deps): bump parse-url from 6.0.0 to 6.0.2 by @dependabot in #1281
New Contributors
- @cosmicSnek made their first contribution in #1273
- @YiTingLee made their first contribution in #1275
- @Shiou-Ju made their first contribution in #1262
- @ClemWiz made their first contribution in #1265
- @FrozenKiwi made their first contribution in #1283
Full Changelog: v4.1.0...v4.1.1
v4.1.0
What's Changed
- fix(cli): add description for multipart/form-data params by @anton-iskryzhytskyi in #1249
- types: fix types for response schema and examples by @simllll in #1253
- feat: add title to interface to inline requestBody and responses by @simllll in #1244
New Contributors
- @anton-iskryzhytskyi made their first contribution in #1249
Full Changelog: v4.0.0...v4.1.0
v4.0.0
What's Changed
No changes since the last RC.
For a formatted list of changes, please see the previous pre-release notes.
What's changed since 3.14
- feat(spec): allow defining custom media type of responses + fix(koa): dont overwrite content-type of response by @mrl5 in #1129
- allow custom middlewares for controllers and methods by @cheng81 in #1123
- feat(spec): allow defining multiple media types per response, custom media type of requestBody by @mrl5 in #1140
- Require Node 12, TS 4.1 by @WoH in #1009
- feat(): Distrubute property validators over unions by @WoH in #997
- tsoa yargs dependency update by @grahamplata in #1098
- chore(ci): Node 17 by @WoH in #1146
- feat: Add support for js config file (closes #745) by @AudunWA in #1144
- add support for esm by @noamokman in #1053
- Remove need for useSuccessResponseCode:true by @devnev in #1154
- fix(cli): support types indexed by their own keys by @fgnass in #1160
- fix(resolver): Resolve
keyof
using the type checker by @WoH in #1163 - Support multerOpts in tsoa.json by @cma-skedulo in #1148
- TS 4.5 Compiler API, strict tsconfig in test packages, chores by @WoH in #1167
- Remove eslint config rules with no issues by @jayeclark in #1166
- feat: Add support for labels on @example decorator by @Albertowska in #1168
- Support for undefined type alone and in union by @Hi-Fi in #1127
- Do not use cjs require in generated routes if esm is true by @BradenM in #1177
- Fix issue/516 by @pkotov in #1179
- fix(cli): Don't truncate synthetic type nodes by @WoH in #1190
- chore(deps): bump pathval from 1.1.0 to 1.1.1 in /tests by @dependabot in #1189
- chore(deps): bump node-fetch from 2.6.2 to 2.6.7 by @dependabot in #1192
- chore(deps): bump pathval from 1.1.0 to 1.1.1 by @dependabot in #1193
- Fix: (#1046) | Prefixed Unused Arguments for validateBuffer by @ParundeepSingh in #1195
- chore(deps): bump urijs from 1.19.7 to 1.19.8 in /tests by @dependabot in #1201
- chore(deps): bump urijs from 1.19.7 to 1.19.8 by @dependabot in #1200
- chore(deps): bump urijs from 1.19.8 to 1.19.9 in /tests by @dependabot in #1206
- chore(deps): bump urijs from 1.19.8 to 1.19.9 by @dependabot in #1207
- chore(deps): bump urijs from 1.19.9 to 1.19.10 in /tests by @dependabot in #1209
- chore(deps): bump urijs from 1.19.9 to 1.19.10 by @dependabot in #1210
- chore(deps): bump minimist from 1.2.5 to 1.2.6 by @dependabot in #1218
- Generate correct esm import(s) in middleware templates by @BradenM in #1215
- chore(deps): bump minimist from 1.2.5 to 1.2.6 in /tests by @dependabot in #1219
- Implement
operationIdTemplate
config parameter. by @BradenM in #1196 - fix(cli): indexed types by their own keys when using TypeReferences by @marudor in #1221
- chore(deps): bump urijs from 1.19.10 to 1.19.11 by @dependabot in #1233
- chore(deps): bump urijs from 1.19.10 to 1.19.11 in /tests by @dependabot in #1234
- chore(deps): bump ansi-regex from 3.0.0 to 3.0.1 in /tests by @dependabot in #1235
- Only export dist in published package bundles. by @BradenM in #1216
- Add support for
termsOfService
Spec field by @smkoyan in #1227 - feat(cli): Add labels to parameter examples by @thetrevdev in #1236
New Contributors
- @mrl5 made their first contribution in #1129
- @cheng81 made their first contribution in #1123
- @grahamplata made their first contribution in #1098
- @AudunWA made their first contribution in #1144
- @noamokman made their first contribution in #1053
- @fgnass made their first contribution in #1160
- @cma-skedulo made their first contribution in #1148
- @jayeclark made their first contribution in #1166
- @Albertowska made their first contribution in #1168
- @Hi-Fi made their first contribution in #1127
- @BradenM made their first contribution in #1177
- @pkotov made their first contribution in #1179
- @ParundeepSingh made their first contribution in #1195
- @marudor made their first contribution in #1221
- @smkoyan made their first contribution in #1227
- @thetrevdev made their first contribution in #1236
Full Changelog: v3.14.1...v4.0.0
v4.0.0-rc.2
Installation
yarn add tsoa@next
Assuming everything works as planned, I intend to release 4.0.0 in a few days with no changes.
What's Changed
- fix(cli): indexed types by their own keys when using TypeReferences by @marudor in #1221
- chore(deps): bump urijs from 1.19.10 to 1.19.11 by @dependabot in #1233
- chore(deps): bump urijs from 1.19.10 to 1.19.11 in /tests by @dependabot in #1234
- chore(deps): bump ansi-regex from 3.0.0 to 3.0.1 in /tests by @dependabot in #1235
- Only export dist in published package bundles. by @BradenM in #1216
- Add support for
termsOfService
Spec field by @smkoyan in #1227 - feat(cli): Add labels to parameter examples by @thetrevdev in #1236
New Contributors
- @marudor made their first contribution in #1221
- @smkoyan made their first contribution in #1227
- @thetrevdev made their first contribution in #1236
Full Changelog: v4.0.0-rc.1...v4.0.0-rc.2
v4.0.0-rc.1
Features
Fixes
- Fix: TypeScript: Target node 12+ (ES2019) by @WoH in e53e6b4
- Fix: (#1046) | Prefixed Unused Arguments for validateBuffer by @ParundeepSingh in #1195
- Generate correct esm import(s) in middleware templates by @BradenM in #1215
Chores
- chore(deps): bump urijs from 1.19.7 to 1.19.8 in /tests by @dependabot in #1201
- chore(deps): bump urijs from 1.19.7 to 1.19.8 by @dependabot in #1200
- chore(deps): bump urijs from 1.19.8 to 1.19.9 in /tests by @dependabot in #1206
- chore(deps): bump urijs from 1.19.8 to 1.19.9 by @dependabot in #1207
- chore(deps): bump urijs from 1.19.9 to 1.19.10 in /tests by @dependabot in #1209
- chore(deps): bump urijs from 1.19.9 to 1.19.10 by @dependabot in #1210
- chore(deps): bump minimist from 1.2.5 to 1.2.6 by @dependabot in #1218
- chore(deps): bump minimist from 1.2.5 to 1.2.6 in /tests by @dependabot in #1219
New Contributors
- @ParundeepSingh made their first contribution in #1195
Full Changelog: v4.0.0-rc.0...v4.0.0-rc.1
v4.0.0-rc.0
What's Changed
Fixes:
- fix(cli):
@BodyParam
in OpenAPI by @pkotov in #1179 - fix(cli): Don't truncate synthetic type nodes by @WoH in #1190
Chores:
- chore(deps): bump pathval from 1.1.0 to 1.1.1 in /tests by @dependabot in #1189
- chore(deps): bump node-fetch from 2.6.2 to 2.6.7 by @dependabot in #1192
- chore(deps): bump pathval from 1.1.0 to 1.1.1 by @dependabot in #1193
New Contributors
Full Changelog: v4.0.0-beta.0...v4.0.0-rc.0
v4.0.0-beta.0
Installation
yarn add tsoa@next
Breaking Changes
Remapped keys of deprecated properties are no longer considered deprecated themselves. This is now consistent with how TypeScript handles it.
Example:
interface A {
/**
* @deprecated
*/
one: string
}
type B = {
[K in keyof A as `${K}Prop`]: boolean;
}
no longer marks B.oneProp
as deprecated.
Features:
- Support for undefined type alone and in union by @Hi-Fi in #1127
- feat: Add support for labels on @example decorator by @Albertowska in #1168
Fixes & chores:
- Remove eslint config rules with no issues by @jayeclark in #1166
- Do not use cjs require in generated routes if esm is true by @BradenM in #1177
- fix(esm-spec): Paths, register pretest by @WoH in bbfcf30
- strict tsconfig in test packages, chores by @WoH in #1167
New Contributors
- @jayeclark made their first contribution in #1166
- @Albertowska made their first contribution in #1168
- @Hi-Fi made their first contribution in #1127
- @BradenM made their first contribution in #1177
Full Changelog: v4.0.0-alpha.2...v4.0.0-beta.0