Skip to content

Releases: edcarroll/ta-json

v2.5.0

10 Aug 18:45
Compare
Choose a tag to compare
  • 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

10 Aug 08:40
Compare
Choose a tag to compare
  • Updated to Typescript 3.0
  • Added check to ensure Buffer class isn't referenced in the browser

v2.3.0

26 Jul 17:25
Compare
Choose a tag to compare
  • 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

03 Jun 02:32
Compare
Choose a tag to compare
  • deserialize now take any as its first argument (closes #11)
  • serialize now returns type any

v2.2.2

29 Mar 21:12
Compare
Choose a tag to compare
  • Fixed @JsonConstructor not running on JSON.parse()

v2.2.1

27 Mar 20:21
Compare
Choose a tag to compare
  • 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

07 Jan 00:25
Compare
Choose a tag to compare
  • 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

03 Jan 00:50
Compare
Choose a tag to compare
  • Renamed @JsonConstructor to @OnDeserialized [BREAKING]
  • Added @BeforeDeserialized

ta-json v1.1.0

02 Jan 22:01
Compare
Choose a tag to compare
  • Added @JsonWriteonly decorator.
  • Added full support for inheritance.

ta-json v1.0.2

01 Jan 10:47
Compare
Choose a tag to compare
  • Initial release 🎉