Skip to content

Releases: ijl/orjson

3.0.0

01 May 14:38
@ijl ijl
Compare
Choose a tag to compare

Added

  • orjson.dumps() serializes subclasses of str, int, list, and dict.

Changed

  • orjson.dumps() serializes dataclasses.dataclass and uuid.UUID
    instances by default. The options OPT_SERIALIZE_DATACLASS and
    OPT_SERIALIZE_UUID can still be specified but have no effect.

2.6.8

30 Apr 13:46
@ijl ijl
Compare
Choose a tag to compare

Changed

  • The source distribution vendors a forked dependency.

2.6.7

30 Apr 12:27
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Fix integer overflows in debug builds.

Changed

  • The source distribution sets the recommended RUSTFLAGS in .cargo/config.

2.6.6

24 Apr 01:06
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Import numpy only on first use of OPT_SERIALIZE_NUMPY to reduce
    interpreter start time when not used.
  • Reduce build time by half.

2.6.5

08 Apr 17:05
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Fix deserialization raising JSONDecodeError on some valid negative
    floats with large exponents.

2.6.4

08 Apr 13:23
@ijl ijl
Compare
Choose a tag to compare

Changed

  • Improve deserialization performance of floats by about 40%.

2.6.3

01 Apr 22:50
@ijl ijl
Compare
Choose a tag to compare

Changed

  • Serialize enum.Enum objects.
  • Minor performance improvements.

2.6.2

27 Mar 13:35
@ijl ijl
Compare
Choose a tag to compare

Changed

  • Publish python3.9 manylinux2014 wheel instead of manylinux1 for x86_64.
  • Publish python3.9 manylinux2014 wheel for aarch64.

Fixed

  • Fix compilation failure on 32-bit.

2.6.1

19 Mar 23:02
@ijl ijl
Compare
Choose a tag to compare

Changed

  • Serialization is 10-20% faster and uses about 50% less memory by writing
    directly to the returned bytes object.

2.6.0

10 Mar 00:46
@ijl ijl
Compare
Choose a tag to compare

Added

  • orjson.dumps() pretty prints with an indentation of two spaces if
    option=orjson.OPT_INDENT_2 is specified.