Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

0.3.0

Pre-release
Pre-release

Choose a tag to compare

@phan-do phan-do released this 27 Jan 04:58

Release Notes

What's in 0.3.0

Features

  • With a new MapKeyDeserializer, maps with keys that are not strings (e.g., std.AutoHashMap(i32, i32)) can now be deserialized into. (1f533ef, 086dcf4)
  • deserializeAny has been implemented by Deserializer, allowing users to deserialize from multiple possible data types. (cec8be4)

Improvements

  • The custom integer formatting and math code we had has largely been replaced by std equivalents, which we were able to merge in. (03285fe, ca625fe)
  • StructAccess properly unescapes keys now. (487163a)
  • StructAccess now overrides isKeyAllocated, allowing it to specify to the visitor, on a key-by-key basis, whether or not a deserialized key was allocated. (487163a)
  • Elements and entries are no longer serialized once they're specified length is reached. (c9e7a5b).

Bug Fixes

  • The std.ArrayList used in toSliceWith and toPrettySliceWith are now properly freed. Before, they were only freed when an error arose. 7e8314b
  • Ending tokens are now properly parsed. Before, they didn't account for characters such as whitespace. (6f25a28)
    • Thank you to @LordMZTE for bringing this issue up!
  • deserializeIgnored now calls visitVoid instead of just returning a void value. (c9e7a5b).

Other Changes

There are other changes in the Getty JSON 0.3.0 release. You can see the full changelog here.