Skip to content

Releases: JohnWeisz/TypedJSON

v1.8.0

13 Oct 09:44
Compare
Choose a tag to compare
  • Extra parameter for custom serializers/deserializers to fallback to the normal serialisation flow. Thanks @amoscatelli!
  • Export missing MapShape. Thanks @sebastianst!
  • Docs improvements. Thanks @NeoWu1216!

v1.7.0

28 Feb 12:49
Compare
Choose a tag to compare
  • support for lazy types
  • Any type handling
  • deferred known types
  • better safety with no builtin prototype usage

This release would not be possible without @MatthiasKunnen. Thanks a lot!

v1.6.0

22 Jan 00:08
Compare
Choose a tag to compare
  • better output package
  • improved error handling
  • registering custom type mappings
  • support for defining complex serialisation types (ex. Set<String, Array<MyObject>)
  • better date handling

Thanks to @MatthiasKunnen, this release would not have happened without him!

Release 1.5.2

12 Jul 20:03
Compare
Choose a tag to compare

Fixes deserialisation where input object has a data property as Date object instead of a date string. Thanks @sumbricht!

Thanks to other contributors as well for improving the library!

Release 1.5.1

28 Oct 23:12
Compare
Choose a tag to compare
  • improved messages for misconfigured reflect-metadata
  • removed Array.prototype.includes which is not supported in IE11
  • reduced minified size by about 1kB

Release 1.5.0

13 Oct 13:39
Compare
Choose a tag to compare

Added beforeSerialization option for calling a method before object is serialised. Thanks to m55c55 for submitting this feature.

Release 1.4.0

30 Jul 23:43
Compare
Choose a tag to compare

This release adds preserveNull option that keeps the null values when serialising/deserialising.

Release 1.3.1

30 Jul 23:41
Compare
Choose a tag to compare

Fixed onDeserialize option to work with member methods

Release 1.3.0

14 Mar 22:59
Compare
Choose a tag to compare

Added @toJson decorator that makes JSON.stringify usage simpler.

Release 1.2.3

09 Dec 11:27
Compare
Choose a tag to compare

A lot of changes, that many that it is hard to list them all, some among:

  • new api
  • polymorphic deserialization
  • custom serializers
  • serialization to json (useful in testing!)