# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ## [1.0.1] - 2024-01-23 ### Changed - Add recursion limit to deserialization ([#65]). [#65]: https://github.com/CosmWasm/serde-json-wasm/pull/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`. [#58]: https://github.com/CosmWasm/serde-json-wasm/pull/58 [#59]: https://github.com/CosmWasm/serde-json-wasm/pull/59 ## [0.5.1] - 2023-04-11 ### Added - Add support for `collect_str` serialization ([#51], [#55]). [#51]: https://github.com/CosmWasm/serde-json-wasm/pull/51 [#55]: https://github.com/CosmWasm/serde-json-wasm/pull/55 ## [0.5.0] - 2022-12-06 ### Added - Add support for map (de)serialization. - Add support for `#[serde(flatten)]` (de)serialization ([#20]). [#20]: https://github.com/CosmWasm/serde-json-wasm/issues/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 - Add support for u128/i128 serialization and deserialization ([#32], [#33]).
**Please note:** this is [incompatible with serde-json and schemars](https://github.com/CosmWasm/cosmwasm/issues/1605) and for this reason discouraged to use. [#32]: https://github.com/CosmWasm/serde-json-wasm/issues/32 [#33]: https://github.com/CosmWasm/serde-json-wasm/pull/33 ## [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](https://github.com/serde-rs/json/issues/530). - 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](https://github.com/japaric/serde-json-core) at [bf5533a0](https://github.com/japaric/serde-json-core/commit/bf5533a042a0). [unreleased]: https://github.com/CosmWasm/serde-json-wasm/compare/v1.0.0...HEAD [1.0.0]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.5.1...v1.0.0 [0.5.1]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.5.0...v0.5.1 [0.5.0]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.4.1...v0.5.0 [0.4.1]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.4.0...v0.4.1 [0.4.0]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.3.2...v0.4.0 [0.3.2]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.3.1...v0.3.2 [0.3.1]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.3.0...v0.3.1 [0.3.0]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.2.3...v0.3.0 [0.2.3]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.2.2...v0.2.3 [0.2.2]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.2.1...v0.2.2 [0.2.1]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.1.3...v0.2.0 [0.1.3]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.1.2...v0.1.3 [0.1.2]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.1.1...v0.1.2 [0.1.1]: https://github.com/CosmWasm/serde-json-wasm/compare/v0.1.0...v0.1.1 [0.1.0]: https://github.com/CosmWasm/serde-json-wasm/tree/v0.1.0