Releases: appvision-gmbh/json2typescript
Releases · appvision-gmbh/json2typescript
v1.2.5
v1.2.3
v1.2.2
v1.2.1
v1.2.0
Features
- Allow optional properties to be null, closes #58
Breaking Changes
- If a property is declared optional (by
@JsonProperty(name, Type, true)
), thennull
is now ignored in both serialization and deserialization.
Before this version,json2typescript
would have thrown an error ifValueChecking.DISABLE_NULL
was used.
v1.1.1
Features
- Improved documentation for v1.1.0
v1.1.0
Bug Fixes
- Implemented pull request that fixes an issue with child class properties, closes #80
- Fixed bug in constructor parameters, closes #82
Features
- Added generics in order to allow the compiler to detect types, closes #73
- Allow case insensitive lookup in json deserializing, closes #81
Breaking Changes
- It is not possible to serialize
undefined
anymore; instead, an error is thrown. Before this version,json2typescript
serializedundefined
tonull
.
v1.0.4
Bug Fixes
- Fixed bug in serialization mode
v1.0.3
v1.0.2
Bug Fixes
- Fixed issue with
ValueCheckingMode
by using an enum instead of a nested class, closes #10 and #11 - Added missing js references, closes #11 and #16
Features
- Allow serialization the same way as deserialization, closes #4
- Added smart methods
serialize()
anddeserialize()
for simplified usage - Added custom converters, closes #6
- Use class methods instead of static methods, closes #14
Breaking Changes
- Use an instance of
JsonConvert
and its class methods instead of the static methods - The static class properties
valueCheckingMode
anddebugMode
are not static anymore.debugMode
has been renamed tooperationMode
. Their values should be assigned through the given enums with the same name - Removed the string method
deserializeString()
due to the fact that it is the same asjsonConvert.deserialize()
combined withJSON.stringify()