Releases: davidecaroselli/jsonthis
v1.1.0
Features
- Add support for dynamic virtual attributes in Sequelize following issue sequelize/sequelize#17589 [a387e6a]
Bugfixes
v1.0.0
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
v1.0.0-alpha.2
Bug Fixes
- Add missing
JsonSerializer
export inindex.ts
[3bfe334]
v1.0.0-alpha.1
v1.0.0-alpha.0
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
v0.5.0
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
v0.4.2
v0.4.1
Highlights
The @Json
decorator has been deprecated as it is no longer required. You can safely remove it from your code.