Skip to content

Latest commit

 

History

History
172 lines (110 loc) · 5.36 KB

CHANGELOG.md

File metadata and controls

172 lines (110 loc) · 5.36 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

1.0.1 - 2024-01-23

Changed

  • Add recursion limit to deserialization (#65).

1.0.0 - 2023-08-04

Changed

  • Introduce std (enabled by default) and unstable features (#58). They enable corresponding serde’s features and if either is enabled, Error implements std::error::Error trait. By itself, serde-json-wasm is now no_std; it’s up to serde’s features whether the entire build is.
    Please note: this potentially breaks default-features = false builds. If you need the Error trait impl, enable one of the two features explicitly.

  • Serialize / deserialize u128/i128 types as numbers instead of strings (#59).
    Please note: this breaks deserialization of u128/i128 serialized with older versions of serde-json-wasm.

0.5.1 - 2023-04-11

Added

  • Add support for collect_str serialization (#51, #55).

0.5.0 - 2022-12-06

Added

  • Add support for map (de)serialization.
  • Add support for #[serde(flatten)] (de)serialization (#20).

Changed

  • Bump min supported Rust version to 1.59.0 (same as cosmwasm-std)
  • Upgrade codebase to Rust edition 2021

0.4.1 - 2022-05-05

Changed

  • Properly serialize u128/i128 types when embedded in structs

0.4.0 - 2022-03-29

Added

  • Add support for #[serde(untagged)] enums representation

0.3.2 - 2021-12-14

Added

0.3.1 - 2021-01-19

Added

  • Add support for Unit () deserialization.

0.3.0 - 2021-01-14

Changed

Maintenance release:

  • Update clippy version in CI to 1.49.0.
  • Fix clippy::manual-non-exhaustive warnings.

0.2.3 - 2021-01-14

Changed

  • Optimize string serialization / deserialization.

0.2.2 - 2021-01-13

Added

  • Add support for unit structs serialization / deserialization.
  • Add support for tuple variants serialization / deserialization.
  • Add support for unit serialization / deserialization.

0.2.1 - 2020-05-07

Changed

  • Remove unused Travis CI config
  • Polish Cargo.toml

0.2.0 - 2020-05-07

Fixed

  • The end of strings is now detected correctly in deserialization (#11)

Changed

  • Strings are now escaped during serialization (#10)
  • from_str/from_slice now work for T: DeserializeOwned instead of T: Deserialize<'de>, making it impossible to deserialize into non-owned reference fields. This is necessary since string unescaping requires creating a mutated copy of the source data and only JSON strings without escape sequences can be deserialized copy-free. The same limitation applies to serde_json, where the problem shows up at runtime instead of compile time.
  • Strings are now unescaped during deserialization (#13)

0.1.3 - 2020-03-12

  • Expose deserializer and serializer

0.1.2 - 2019-12-20

  • Add newtype string support

0.1.1 - 2019-10-27

  • Fix embeded enums

0.1.0 - 2019-10-27

Initial release after forking from serde-json-core at bf5533a0.