Skip to content

Releases: davidecaroselli/jsonthis

v1.1.0

08 Nov 10:16
Compare
Choose a tag to compare

Features

Bugfixes

  • Make JsonSchema getters more resilient to undefined parameters [ae090bd]
  • Remove dev-dependency to Sequelize to prevent import errors [faa15ec]
  • Update dependencies for security fixes [1e4bead]

v1.0.0

11 May 09:27
Compare
Choose a tag to compare

Highlights

🚀 Stable API Debut: Version 1.0.0 marks the official debut of a stable API for my project. I'm thrilled to bring you a solid foundation that you can rely on for your development needs.

Backward Compatibility Commitment: With this release, I'm making a firm commitment to maintain backward compatibility moving forward. Rest assured, any future updates will strive to preserve compatibility with the 1.0.0 API until a major release.

🛠️ Enhanced Features: Explore a suite of enhanced features tailored to elevate your development experience. From simplified signatures to customizable JSON serializers, this release is designed to empower your workflow.

Breaking Changes

  • The JsonTraversalFn<R> signature has been changed to simplify its usage. However, this makes it incompatible with the previous version.
  • The deprecated @Json decorator has been removed.

Features

  • Drop deprecated @Json decorator [30d1ead]
  • Improve JsonTraversalFn with three alternative signatures (#9) [80b1c87]
  • Create a unit test module to cover all documentation examples (#11) [95dbf55]
  • Add JsonSerializer to set up custom JSON serializers at the class level (#12) [be5c06a]
  • Internal JsonSchema naming convention changed to reflect JS standard [4547f2b]
  • Create new option transformBigInt to control BigInt serialization (#13) [b8342df]

v1.0.0-alpha.3

05 May 18:15
Compare
Choose a tag to compare
v1.0.0-alpha.3 Pre-release
Pre-release

Features

  • Create new option transformBigInt to control BigInt serialization (#13) [b8342df]

v1.0.0-alpha.2

29 Apr 17:13
Compare
Choose a tag to compare
v1.0.0-alpha.2 Pre-release
Pre-release

Bug Fixes

  • Add missing JsonSerializer export in index.ts [3bfe334]

v1.0.0-alpha.1

29 Apr 10:10
Compare
Choose a tag to compare
v1.0.0-alpha.1 Pre-release
Pre-release

Features

  • Add JsonSerializer to set up custom JSON serializers at the class level (#12) [be5c06a]
  • Internal JsonSchema naming convention changed to reflect JS standard [4547f2b]

v1.0.0-alpha.0

28 Apr 18:12
Compare
Choose a tag to compare
v1.0.0-alpha.0 Pre-release
Pre-release

Breaking Changes

  • The JsonTraversalFn<R> signature has been changed to simplify its usage. However, this makes it incompatible with the previous version.
  • The deprecated @Json decorator has been removed.

Features

  • Drop deprecated @Json decorator [30d1ead]
  • Improve JsonTraversalFn with three alternative signatures (#9) [80b1c87]
  • Create a unit test module to cover all documentation examples (#11) [95dbf55]

v0.5.0

28 Apr 08:57
Compare
Choose a tag to compare

Highlights

This version introduces the models option in the Jsonthis constructor to automatically add a toJSON() method to the specified classes. Jsonthis models are now compatible with Javascript's JSON.stringify() method.

Features

  • Add support for JSON.stringify() compliant classes in Jsonthis constructor with models option (#8) [eec2912]
  • Add "allowOverride" option to Jsonthis.registerGlobalSerializer() (#7) [e922c9c]
  • Add maxDepth option to JsonthisOptions and ToJsonOptions to limit depth of traversal (#6) [fcb0882]
  • Add contextual serialization test cases [395dc71]

v0.4.3

20 Apr 13:02
Compare
Choose a tag to compare

Bug Fixes

  • Fix missing override of the default SequelizeModel.toJSON() method [ca2ed69]

v0.4.2

20 Apr 12:17
Compare
Choose a tag to compare

Changelog

  • Add more tricky tests for circular-reference cases [fbf1ecf]

v0.4.1

20 Apr 11:43
Compare
Choose a tag to compare

Highlights

The @Json decorator has been deprecated as it is no longer required. You can safely remove it from your code.

Features

  • Deprecate @Json decorator as it is now completely unnecessary [00c3125]
  • Drastically improve circular-references detection via the new VisitMap class [1554181]
  • Add support for simple data types and object serialization [c9eb3a6]