Releases: samchon/typia
v3.3.20
v3.3.19
v3.3.18
Measured on AMD R9 5900HX
typescript-json
become more faster.
From now on, I'll use the keyword, 6,000x faster validator
.
What's Changed
Full Changelog: v3.3.17...v3.3.18
v3.3.17
Performance tunings on assertType()
, validate()
and related functions are done.
Therefore, those became faster.
Before
After
What's Changed
- Correct typo 'Undefied' to 'Undefined' by @utilForever in #273
- Correct minor typos by @jongwooo in #274
- Close #268 - refactored entire benchmark program for TypeBox by @samchon in #277
- Correct typo 'Funtional' to 'Functional' by @utilForever in #275
- Close #276 - block duplicted checking by @samchon in #278
- Correct several typos by @utilForever in #280
- fix: Correct spelling and grammar mistakes in comments by @jongwooo in #283
- Close #281 - optimize
assertType()
andvalidate()
by @samchon in #284 - Complement #281 - make
validate()
shorter by @samchon in #285 - Complement #281 -
assertType@v3
became faster by @samchon in #286 - Benchmark #281 with my computers by @samchon in #287
New Contributors
- @utilForever made their first contribution in #273
- @jongwooo made their first contribution in #274
Full Changelog: v3.3.16...v3.3.17
v3.3.16
v3.3.15
export function stringify<T>(input: T): string; // unsafe but fatest
export function assertStringify<T>(input: T): string; // throws TypeGuardError
export function isStringify<T>(input: T): string | null; // wrong type be null
export function createStringify<T>(): (input: T) => string;
export function createAssertStringify<T>(): (input: T) => string;
export function createIsStringify<T>(): (input: T) => string | null;
JSON string converters are enhanced.
What's Changed
Full Changelog: v3.3.14...v3.3.15
v3.3.14
export function assertStringify<T>(input: T): string;
export function createAssertStringify<T>(): (input: T) => string;
Two functions assertStringify()
and createAssertStringify()
have been newly added.
They're composite functions combined assertType()
and stringify()
, so that much safer and even than JSON.stringify()
.
I hope them to be killer functions of typescript-json
.
What's Changed
Full Changelog: v3.3.13...v3.3.14
v3.3.13
Reusable functions are newly added:
TSON.createAssertType()
TSON.createIs()
TSON.createValidate()
TSON.createAssertEquals()
TSON.createEquals()
TSON.createValidateEquals()
TSON.createStringify()
Also, TypeBox
author @sinclairzx81 has helped me and benchmarked each libraries.
It seems that TypeBox
is much faster than my library when comparing is()
and equals()
functions.
TypeBox
would be the best choice when using JavaScript or TypeScript environment which cannot utilize transformer.
What's Changed
- Complement #245 - benchmark
class-validator
by @samchon in #248 - JSON Schema | TypeBox Benchmark by @sinclairzx81 in #253
- Develop #254 - special benchmark for
TypeBox
by @samchon in #255 - Add ajv-spec benchmarks by @sinclairzx81 in #256
- Developing #257 - spoiler functions are reusable by @samchon in #258
- Close #257 - spoilers being resued by @samchon in #260
- Develop #247 - reusable factory functions by @samchon in #261
New Contributors
- @sinclairzx81 made their first contribution in #253
Full Changelog: v3.3.12...v3.3.13