From 07d0860a37f6bf429f5bdaeae050c14cbccd5d9b Mon Sep 17 00:00:00 2001 From: ijl Date: Tue, 2 Apr 2019 22:23:10 +0000 Subject: [PATCH] 2.0.4 --- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 15 +++++---------- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a02779b0..848e13e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.0.4 - 2019-04-02 + +### Changed +- `orjson.dumps()` now serializes `datetime.datetime` objects without a +`tzinfo` rather than raising `JSONEncodeError`. + ## 2.0.3 - 2019-03-23 ### Changed diff --git a/Cargo.lock b/Cargo.lock index fc99a5e8..c0038c97 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,7 +106,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "orjson" -version = "2.0.3" +version = "2.0.4" dependencies = [ "encoding_rs 0.8.17 (registry+https://github.com/rust-lang/crates.io-index)", "itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 170df932..8ca7386d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "orjson" -version = "2.0.3" +version = "2.0.4" authors = ["ijl "] description = "Fast, correct Python JSON library" edition = "2018" diff --git a/README.md b/README.md index 7f9b4958..f412c3c6 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,11 @@ conformance on NaN/Infinity/-Infinity, having an option for strict JSON conformance on 53-bit integers, not supporting pretty printing, and not supporting all standard library options. -It supports CPython 3.5, 3.6, 3.7, and 3.8. It distributes wheels for Linux, -macOS, and Windows. The repository and issue tracker is -[github.com/ijl/orjson](https://github.com/ijl/orjson). +orjson supports CPython 3.5, 3.6, 3.7, and 3.8. It distributes wheels for Linux, +macOS, and Windows. It is dual licensed under the Apache 2.0 and MIT licenses. +The repository and issue tracker is +[github.com/ijl/orjson](https://github.com/ijl/orjson), and patches may be +submitted there. ## Usage @@ -408,10 +410,3 @@ This was measured using Python 3.7.2 on Linux with orjson 2.0.3, ujson 1.35, python-rapidson 0.7.0, and simplejson 3.16.0. The results can be reproduced using the `pybench` and `graph` scripts. - -## License - -orjson is dual licensed under the Apache 2.0 and MIT licenses. It contains -tests from the hyperjson and ultrajson libraries. It is implemented using -the [serde_json](https://github.com/serde-rs/json) and -[pyo3](https://github.com/PyO3/pyo3) libraries.