Related release note of
typia
: https://github.com/samchon/typia/releases/tag/v5.1.5
export namespace http {
export function parameter<T extends boolean | bigint | number | string>(input: string): T;
export function headers<T extends object>(input: Record<string, string | string[] | undefined>): Resolved<T>;
export function isHeaders<T extends object>(input: Record<string, string | string[] | undefined>): Resolved<T> | null;
export function assertHeaders<T extends object>(input: Record<string, string | string[] | undefined>): Resolved<T>;
export function validateHeaders<T extends object>(input: Record<string, string | string[] | undefined>): IValidation<Resolved<T>>;
export function query<T extends object>(input: URLSearchParams): Resolved<T>;
export function isQuery<T extends object>(input: URLSearchParams): Resolved<T> | null;
export function assertQuery<T extends object>(input: URLSearchParams): Resolved<T>;
export function validateQuery<T extends object>(input: URLSearchParams): IValidation<Resolved<T>>;
}
typia
has started supporting http
related functions by migrating @TypedParam()
, @TypedQuery()
and @TypedHeaders()
functions of this nestia
. The reason of such migration is to make typia
to support not only NestJS
, but also Fastify
like this nestia
case. Also, during the migration, those http
functions have been enhanced by strong test functions of typia
.
Therefore, from nestia
v2.1 update, decorators @TypedParam()
, @TypedQuery()
and @TypedHeaders()
do not have main logic, but adapt of typia
. Also, during the v2.1 update, I've found some bugs of @nestia/core
and @nestia/sdk
, by enhancing test programs much more stronger. Therefore, fixed all of those bugs. I think most bugs of nestia
have been resolved.
Additionally, have changed naming strategy of JSON schema components to make them easy to read.
What's Changed
- Adapt typia v5.1 update by @samchon in #623
- Fix
decompose
option's bug on swagger generator with comment tags. by @samchon in #624 - Fix #622 - recursive DTO type cloning. by @samchon in #625
- Deprecated property of
fastify
. by @samchon in #626 - Fix #628 - enhance test programs of DTO clone mode. by @samchon in #629
- Enhance test programs much more. by @samchon in #630
- add new test/features for test partial clone type in exactOptionalProperty mode. by @industriously in #633
- Fix #633 - DTO clone bug when
exactOptionalProperty
mode by @samchon in #634
New Contributors
- @industriously made their first contribution in #633
Full Changelog: v2.0.6...v2.1.5