Super-fast/easy runtime validations and serializations through transformation
MIT License
Bot releases are visible (Hide)
Published by samchon almost 2 years ago
TS 4.9.4 patch has been delayed for a long time.
Therefore, blocked TS 4.9 by peerDependencies
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.39...v3.3.40
Published by samchon almost 2 years ago
From now on, typescript-json
supports built-in class validation.
Also, prohibit atomic class type like Boolean
, Number
and String
for type safety.
I know that it is a huge commit even LOC change is over 50k, but I decided to keep v3.3
version because there's not any change on facade controller. For reference, typescript-json
would be upgraded to v3.4
when Protocol Buffer being supported (maybe renamed to ttype
because typescript-json
is not supporting JSON only).
Date
Uint8Array
, Uint8ClampedArray
, Uint16Array
, Uint32Arry
, BigUint64Array
Int8Array
, Int16Array
, Int32Array
, BigInt64Array
Float32Array
, Float64Array
Buffer
, ArrayBuffer
, SharedArrayBuffer
, DataView
Set
, Map
, WeakSet
, WeakMap
Boolean
or Number
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.38...v3.3.39
Published by samchon almost 2 years ago
interface Date {
getVarDate: () => VarDate;
}
Suffering from Date.getVarDate()
function that never exists.
I'm considering erase of functional: false
option after #372 being completed, because the option had been developed to avoid the special TypeScript bug Date.getVarDate()
.
functional: false
by @samchon in https://github.com/samchon/typescript-json/pull/379
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.36...v3.3.38
Published by samchon almost 2 years ago
IValidation
type by @samchon in https://github.com/samchon/typescript-json/pull/353
IValidatin.ISuccess<T>.data
by @samchon in https://github.com/samchon/typescript-json/pull/360
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.35...v3.3.36
Published by samchon almost 2 years ago
equals()
function has been optimized
equals()
and related functions by @samchon in https://github.com/samchon/typescript-json/pull/366
equals()
on SP8 by @samchon in https://github.com/samchon/typescript-json/pull/367
equals()
on AMD-5900HX by @samchon in https://github.com/samchon/typescript-json/pull/368
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.34...v3.3.35
Published by samchon almost 2 years ago
TSON.stringify()
function has been enhanced by function inlining.
TSON.stringify()
function by inlining by @samchon in https://github.com/samchon/typescript-json/pull/357
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.33...v3.3.34
Published by samchon almost 2 years ago
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.32...v3.3.33
Published by samchon almost 2 years ago
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.31...v3.3.32
Published by samchon almost 2 years ago
Array<any>
type by @samchon in https://github.com/samchon/typescript-json/pull/343
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.30...v3.3.31
Published by samchon almost 2 years ago
false
by @samchon in https://github.com/samchon/typescript-json/pull/340
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.29...v3.3.30
Published by samchon almost 2 years ago
/
word on regex escaper by @samchon in https://github.com/samchon/typescript-json/pull/336
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.28...v3.3.29
Published by samchon almost 2 years ago
From now on, typescript-json
is maximum 15,000x times faster than class-validator
Measured on Intel i5-1135g7, Surface Pro 8
is()
function through inlining by @samchon in https://github.com/samchon/typescript-json/pull/333
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.27...v3.3.28
Published by samchon almost 2 years ago
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.26...v3.3.27
Published by samchon almost 2 years ago
Special thanks for @rojiwon0325
nestia
by @samchon in https://github.com/samchon/typescript-json/pull/329
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.23...v3.3.26
Published by samchon almost 2 years ago
Changed benchmark program to run on release mode.
Also, erased $join
function import statement when not required.
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.2.22...v3.3.23
Published by samchon almost 2 years ago
assertType()
to assert()
by @samchon in https://github.com/samchon/typescript-json/pull/321
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.21...v3.2.22
Published by samchon almost 2 years ago
New type and functions like below:
Primitive
clone()
isClone()
assertClone()
d3
by @samchon in https://github.com/samchon/typescript-json/pull/297
failure
label by @samchon in https://github.com/samchon/typescript-json/pull/299
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.20...v3.3.21
Published by samchon almost 2 years ago
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.19...v3.3.20
Published by samchon almost 2 years ago
Renamed to AssertProgrammer
for 3rd party libraries.
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.18...v3.3.19
Published by samchon almost 2 years ago
Measured on AMD R9 5900HX
typescript-json
become more faster.
From now on, I'll use the keyword, 6,000x faster validator
.
Full Changelog: https://github.com/samchon/typescript-json/compare/v3.3.17...v3.3.18