Skip to content

Releases: Unnoen/UntypedJSON

v2.0.0

24 Jul 09:37
60ae265
Compare
Choose a tag to compare

The Big Update

  • Features
    • You can now configure things!
    • Inferred types from default values!
      • Types can now be inferred if you provide a default value.
    • You can now use the built-in JavaScript constructors, String, Number, and Boolean for the types.

Note: Support for Node 16 has been dropped.

Full Changelog: v1.3.0...v2.0.0

v2.0.0-beta.0

23 Nov 04:01
4a5958b
Compare
Choose a tag to compare
v2.0.0-beta.0 Pre-release
Pre-release

The First v2 Beta Release!

  • Features
    • You can now configure things!
    • Inferred types from default values!
      • Types can now be inferred if you provide a default value.
    • You can now use the built-in JavaScript constructors, String, Number, and Boolean for the types.

Note: Support for Node 16 has been dropped.

Full Changelog: v1.3.0...v2.0.0-beta.0

v1.3.0

16 Oct 01:25
dbb5dd6
Compare
Choose a tag to compare

That Wasn't Meant To Happen

  • Fix
    • Fixed array of class type not processing correctly, passing in the default JSON object.
  • Refactor
    • Made wrong type exception print the JSON property, not the mapped property.

v1.2.2

15 Oct 23:57
2554348
Compare
Choose a tag to compare

Unit Tests Only Work If They're Correct

  • Fix
    • Fixed issue where deserializing an object with a null value would throw a type error, even when PropertyNullability.IGNORE was used.

v1.2.1

15 Oct 08:00
b22842c
Compare
Choose a tag to compare

Chores

  • Tests
    • Switched from Jest to Vitest.
  • Chores
    • Bumped packages.
    • Bumped Yarn version.

v1.2.0

24 Jun 08:57
74da9c2
Compare
Choose a tag to compare

Quality of Life

  • Features
    • On property not defined error, prints the JSON object.
    • Optimized the file size by merging some exceptions.
  • Build
    • Switched from Rollup + SWC to Vite.
  • Chore
    • Bumped packages.
    • Made the mapping process clearer in the README.

v1.1.0

16 Apr 09:51
38e6631
Compare
Choose a tag to compare

Mixins!

You can now use @JsonMixin to inherit properties from multiple classes.
This has a huge advantage in letting you split up and modularise your classes a lot easier than with just inheritance.

Check the updated README for how to use it.

v1.0.4

03 Apr 09:19
be068b0
Compare
Choose a tag to compare

README updates.

v1.0.3

03 Apr 08:48
59aad31
Compare
Choose a tag to compare
  • Fixes:
    • Deserializing an undefined array property when set to IGNORE would throw a TypeError.

v1.0.2

03 Apr 08:14
4aa3b78
Compare
Choose a tag to compare

Minification

  • Rollup is now used to optimize the release build.