Skip to content

Releases: samchon/typia

v3.3.17

30 Oct 16:29
c7e7341
Compare
Choose a tag to compare

Performance tunings on assertType() , validate() and related functions are done.

Therefore, those became faster.

Before

image

After

image

What's Changed

New Contributors

Full Changelog: v3.3.16...v3.3.17

v3.3.16

26 Oct 04:02
Compare
Choose a tag to compare

Fix error of #269

I've taken a mistake omitting an @internal tag, therefore hotfix it

Full Changelog: v3.3.15...v3.3.16

v3.3.15

25 Oct 11:01
a97181c
Compare
Choose a tag to compare
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

24 Oct 19:12
cf7f4ab
Compare
Choose a tag to compare
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

23 Oct 08:21
1f63f13
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v3.3.12...v3.3.13

v3.3.12

18 Oct 03:17
ac7e4d9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.3.11...v3.3.12

v3.3.11

16 Oct 06:26
bc22959
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.3.10...v3.3.11

v3.3.10

11 Oct 12:11
8b4895e
Compare
Choose a tag to compare

I'd thought that I had supported full spec of TypeScript type, but it was not.

The enumeration typed property key was the one had not been supported, but now support it.

What's Changed

Full Changelog: v3.3.9...v3.3.10

v3.3.9

10 Oct 13:00
6d5ad22
Compare
Choose a tag to compare

Dynamic propertied array, it was the only one I'd ommitted in the test program.

Therefore, from now on, test program covers all of the TypeScript types and there would not be validation error more, maybe?

What's Changed

Full Changelog: v3.3.8...v3.3.9

v3.3.8

08 Oct 15:34
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.3.7...v3.3.8