Releases: samchon/typia
Releases · samchon/typia
v6.0.2
What's Changed
- Update typescript requirement from ^5.4.2 to ^5.4.5 in /test in the ecosystem group by @dependabot in #1026
- Benhmark on v6 by @samchon in #1027
- No more keep
test/src/generated
by @samchon in #1028 - Fix bug of
application_plugin()
function. by @samchon in #1029
Full Changelog: v6.0.1...v6.0.2
v6.0.1
typia.json.application()
function has been changed to support standard OpenAPI v3.0/v3.1 specified JSON schema.
About the detailed OpenAPI spec's JSON schema structures, visit one of below:
- OpenAPI v3.1: https://github.com/samchon/openapi/blob/master/src/OpenApi.ts
- OpenAPI v3.0: https://github.com/samchon/openapi/blob/master/src/OpenApiV3.ts
You can use it like below:
typia.json.application<[X, Y, Z], "3.0">();
typia.json.application<[X, Y, Z], "3.1">();
What's Changed
- Update typescript requirement from ^5.4.3 to ^5.4.4 by @dependabot in #1021
- Update typescript requirement from ^5.4.4 to ^5.4.5 by @dependabot in #1023
- Close #920: support standard JSON schema (OpenAPI). by @samchon in #1024
- Fix
Record<string, string>
bug oftypia.json.application<"3.1">()
function. by @samchon in #1025
Full Changelog: v5.5.10...v6.0.1
v5.5.10
v5.5.8
What's Changed
- Print typia version on the footer of playground by @samchon in #1010
- Update typescript requirement from ^5.4.2 to ^5.4.3 by @dependabot in #1011
- Adapt TSTL v3 update by @samchon in #1016
- Fix samchon/nestia#859: JSON schema of dynamic object. by @samchon in #1019
Full Changelog: v5.5.7...v5.5.8
v5.5.7
v5.5.5
v5.5.4
v5.5.3
v5.5.2
New module functional
for entire function level validation.
export namespace functional {
export function assertFunction<T extends Function>(func: T): T;
export function isFunction<T extends (...args: any[]) => any>(
func: T,
): T extends (...args: infer Arguments) => infer Output
? Output extends Promise<infer R>
? (...args: Arguments) => Promise<R | null>
: (...args: Arguments) => Output | null
: never;
export function validateFunction<T extends (...args: any[]) => any>(
func: T,
): T extends (...args: infer Arguments) => infer Output
? Output extends Promise<infer R>
? (...args: Arguments) => Promise<IValidation<R>>
: (...args: Arguments) => IValidation<Output>
: never;
}
Also, when using assert
functions, you can customize the error class to throw.
import typia from "typia";
class MyCustomError extends Error {
public constructor(props: typia.TypeGuard.IProps);
}
typia.assert<number>("not-a-number", (props) => MyCustomError(props));
Additionally, checked that no problem on the new TypeScript v5.4 update.
What's Changed
- Prepare #954 - custom type assertion error. by @samchon in #985
- Documentation of #954 by @samchon in #987
- docs: fix typo by @KhooHaoYit in #988
- Close #954 -
typia.functional.assertFunction()
. by @samchon in #989 - Complement #954 -
isFunction()
andvalidateFunction()
. by @samchon in #992 - Publish v5.5 and documentation by @samchon in #993
- Fix
typia.functional
module for async or implicit return type case. by @samchon in #994 - Update typescript requirement from ^5.3.3 to ^5.4.2 by @dependabot in #995
- Fix mis-generated type bug of async
functional
module when generation mode by @samchon in #997
New Contributors
- @KhooHaoYit made their first contribution in #988
Full Changelog: v5.4.14...v5.5.2