Skip to content

Releases: Unnoen/UntypedJSON

v2.0.0

Choose a tag to compare

@Unnoen Unnoen released this 24 Jul 09:37
60ae265

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

v2.0.0-beta.0 Pre-release
Pre-release

Choose a tag to compare

@Unnoen Unnoen released this 23 Nov 04:01
4a5958b

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

Choose a tag to compare

@Unnoen Unnoen released this 16 Oct 01:25
dbb5dd6

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

Choose a tag to compare

@Unnoen Unnoen released this 15 Oct 23:57
2554348

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

Choose a tag to compare

@Unnoen Unnoen released this 15 Oct 08:00
b22842c

Chores

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

v1.2.0

Choose a tag to compare

@Unnoen Unnoen released this 24 Jun 08:57
74da9c2

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

Choose a tag to compare

@Unnoen Unnoen released this 16 Apr 09:51
38e6631

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

Choose a tag to compare

@Unnoen Unnoen released this 03 Apr 09:19
be068b0

README updates.

v1.0.3

Choose a tag to compare

@Unnoen Unnoen released this 03 Apr 08:48
59aad31
  • Fixes:
    • Deserializing an undefined array property when set to IGNORE would throw a TypeError.

v1.0.2

Choose a tag to compare

@Unnoen Unnoen released this 03 Apr 08:14
4aa3b78

Minification

  • Rollup is now used to optimize the release build.