Skip to content

v0.5.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jan 05:32
v0.5.0
ac0eccd

Release Notes

Features

  • Added support for optional deserialization:

    • New functions were introduced to handle Option<T> types during deserialization:
      • as_opt_bool – Returns Option<bool>.
      • as_opt_f64 – Returns Option<f64>.
      • as_opt_i64 – Returns Option<i64>.
      • as_opt_string – Returns Option<String>.
      • as_opt_u64 – Returns Option<u64>.

    These functions ensure that null values in the JSON input or deserialization errors are correctly deserialized into
    None,
    while valid values will
    return the appropriate Some(T).

Bug Fixes

  • Resolved an issue where the existing deserialization functions did not handle Option<T> types, only direct types.
    Now,
    null values and errors are deserialized to None, making the handling of nulls more consistent with Serde's
    standard
    behavior.

Breaking Changes

  • No breaking changes introduced in this version.

What's Changed

  • Export as_opt_<type> helper functions by @rnag in #5

Full Changelog: v0.4.2...v0.5.0