- Refactored
checkJsonCompatibletoisJsonCompatiblefor improved clarity and performance in JSON compatibility checks. Updated related tests accordingly.
- Fixed bug that
JsonCompatiblecalculated error in nested type, refactored thecheckJsonCompatiblepart.
- Fixed bug that
Pick<Union,Date>[]won't decodeDatefield
- Fixed bug that
Omit<Base, 'a'|'b'> & { a: string; }won't encodeafield
decodeJSONerror when usingOverwritewith{xxx: Date}
- Update dependencies
- Infinite loop when using
encodeJSONif there are circular reference in types.
- Missing
errMsgondecodeJSON
- Add
errPhaseto return type ofdecodemethod
- Support validate
keyoftypes (by @774653363)
- Fixed encode error when union type members has optional property
NonNullablecannot be encoded and decoded when as a property in interface
- Support
keyof - Support using type alias in
PickandOmit - Support
Pick<Intersection>andOmit<Intersection>
cjstojsto fixreact-scripts@5
- Remove unused code from
Base64Util(Thanks @JasonZhou) - Update
Utf8CoderJsfrom latest protobuf.js (Thanks @JasonZhou)
encodeJSONwould convertDatetostring
- Fixed bug that
encodeJSONnot transformObjectIdtostring
- Add
encodeJSONanddecodeJSON
- Default option of
strictNullCheckschanged tofalse
CustomTypeSchemasupportscustomTypessupport for constructor options ofTSBuffer
- IDBlock: 2Bit LengthType