Releases: edcarroll/ta-json
Releases · edcarroll/ta-json
v2.5.0
- Added
TaJson
export to allow for easy importing by those wanting to avoid using the reserved name JSON
- Fixed references to
global
causing errors in the browser
v2.4.0
- Updated to Typescript 3.0
- Added check to ensure Buffer class isn't referenced in the browser
v2.3.0
- Added support for both CommonJS and ES6 modules
package.json
now has a module
field that can be used for tree shaking e.t.c.
- Added support for strict null checks
v2.2.4
deserialize
now take any
as its first argument (closes #11)
serialize
now returns type any
v2.2.2
- Fixed
@JsonConstructor
not running on JSON.parse()
v2.2.1
- Added support for mapping nested subclasses using a single discriminator property
- Fixed property converters not working on primitives (closes #6)
- Fixed deserializing breaking for non typed objects after first parse
ta-json v2.1.0
- Added
@JsonConstructor
decorator
- Specify a method to be _optionally_ run after class initialisation but before deserialization. See docs for example.
- Different functionality to feature with same name from v1!
ta-json v2.0.0
- Renamed @JsonConstructor to @OnDeserialized [BREAKING]
- Added @BeforeDeserialized
ta-json v1.1.0
- Added @JsonWriteonly decorator.
- Added full support for inheritance.