diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e76f8f0..a9860049 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.6.7 - 2022-04-15 + +### Fixed + +- Fix serialization of `numpy.datetime64("NaT")` to raise on an +unsupported type. + ## 3.6.7 - 2022-02-14 ### Changed diff --git a/Cargo.lock b/Cargo.lock index c8da6302..f3b67b5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -131,7 +131,7 @@ checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9" [[package]] name = "orjson" -version = "3.6.7" +version = "3.6.8" dependencies = [ "ahash", "arrayvec", diff --git a/Cargo.toml b/Cargo.toml index d715bdd2..4e969cdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "orjson" -version = "3.6.7" +version = "3.6.8" authors = ["ijl "] description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy" edition = "2018" diff --git a/README.md b/README.md index 4e6f159f..9944ca77 100644 --- a/README.md +++ b/README.md @@ -643,11 +643,6 @@ class Object: >>> orjson.dumps(Object(1, "a", [Member(1, True), Member(2)])) b'{"id":1,"name":"a","members":[{"id":1,"active":true},{"id":2,"active":false}]}' ``` -Users may wish to control how dataclass instances are serialized, e.g., -to not serialize an attribute or to change the name of an -attribute when serialized. orjson may implement support using the -metadata mapping on `field` attributes, -e.g., `field(metadata={"json_serialize": False})`, if use cases are clear. ### datetime