Releases: NatLabs/serde
Releases · NatLabs/serde
v3.0.0 - One shot Encoding and Decoding
What's Changed
- rename forked json dependency with float support to prevent conflicts in other mops packages by @tomijaga in #28
- One shot Encoding and Decoding by @tomijaga in #29
Full Changelog: v2.3.0...v3.0.0
ICRC3 Value type to Candid
- Added support for converting to and from ICRC3 value type
- Added new options field (
use_icrc_3_value_type : Bool
) for returning icrc3 specific types.
v2.1.1 - Fix redundant self-describe tag insertions in CBOR
Merge pull request #21 from NatLabs/dev [Fix]: fix the redundant addition of the self-describe tag
v2.1.0 - Add support for CBOR
Merge pull request #20 from NatLabs/dev [Feat]: Add support for converting between candid and CBOR
v2.0.0 - Select the most Optimal Data Type
- Update the function in the repo (
toText()
,fromText()
,encode()
,decode()
...) to return aResult
type for better debugging. - Update
Candid.encode()
fn to return the intended type for a given set of data to fix issues with misaligned data types and values as found in this issue #11
1.0.1
New Feature for renaming keys and variants during serialization
- Added an optional record parameter to the
toText
andfromText
functions with a field calledrenamekeys
renameKeys
takes an array ofText
tuples for mapping field keys in records and variant to their new names.
- Solves the issue of using reserved Motoko keywords as record fields
- credits to @janusdotai for finding the bug