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
- Add recursion limit to deserialization (#65).
1.0.0 - 2023-08-04
-
Introduce
std
(enabled by default) andunstable
features (#58). They enable corresponding serde’s features and if either is enabled,Error
implementsstd::error::Error
trait. By itself,serde-json-wasm
is nowno_std
; it’s up to serde’s features whether the entire build is.
Please note: this potentially breaksdefault-features = false
builds. If you need theError
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 ofu128
/i128
serialized with older versions ofserde-json-wasm
.
0.5.1 - 2023-04-11
0.5.0 - 2022-12-06
- Add support for map (de)serialization.
- Add support for
#[serde(flatten)]
(de)serialization (#20).
- 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
- Properly serialize
u128
/i128
types when embedded in structs
0.4.0 - 2022-03-29
- Add support for
#[serde(untagged)]
enums representation
0.3.2 - 2021-12-14
- Add support for u128/i128 serialization and deserialization (#32,
#33).
Please note: this is incompatible with serde-json and schemars and for this reason discouraged to use.
0.3.1 - 2021-01-19
- Add support for Unit () deserialization.
0.3.0 - 2021-01-14
Maintenance release:
- Update clippy version in CI to 1.49.0.
- Fix
clippy::manual-non-exhaustive
warnings.
0.2.3 - 2021-01-14
- Optimize string serialization / deserialization.
0.2.2 - 2021-01-13
- 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
- Remove unused Travis CI config
- Polish Cargo.toml
0.2.0 - 2020-05-07
- The end of strings is now detected correctly in deserialization (#11)
- Strings are now escaped during serialization (#10)
from_str
/from_slice
now work forT: DeserializeOwned
instead ofT: 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.