Skip to content

Releases: ijl/orjson

2.6.1

19 Mar 23:02
@ijl ijl

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

Choose a tag to compare

Added

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

2.5.2

07 Mar 22:49
@ijl ijl

Choose a tag to compare

Changed

  • Publish manylinux2014 wheels for aarch64.
  • numpy support now includes numpy.uint32 and numpy.uint64.

2.5.1

24 Feb 23:00
@ijl ijl

Choose a tag to compare

Changed

  • manylinux1 wheels for 3.6, 3.7, and 3.8 are now compliant with the spec by
    not depending on glibc 2.18.

2.5.0

19 Feb 12:58
@ijl ijl

Choose a tag to compare

Added

  • orjson.dumps() serializes dict keys of type other than str if
    option=orjson.OPT_NON_STR_KEYS is specified.

2.4.0

14 Feb 14:24
@ijl ijl

Choose a tag to compare

Added

  • orjson.dumps() serializes numpy.ndarray instances if
    option=orjson.OPT_SERIALIZE_NUMPY is specified.

Fixed

  • Fix dataclasses.dataclass attributes that are dict to be effected by
    orjson.OPT_SORT_KEYS.

2.3.0

12 Feb 13:53
@ijl ijl

Choose a tag to compare

Added

  • orjson.dumps() serializes dict instances sorted by keys, equivalent to
    sort_keys in other implementations, if option=orjson.OPT_SORT_KEYS is
    specified.

Changed

  • dataclasses.dataclass instances without __slots__ now serialize faster.

Fixed

  • Fix documentation on default, in particular documenting the need to raise
    an exception if the type cannot be handled.

2.2.2

10 Feb 14:33
@ijl ijl

Choose a tag to compare

Changed

  • Performance improvements to serializing a list containing elements of the
    same type.

2.2.1

04 Feb 14:11
@ijl ijl

Choose a tag to compare

Fixed

  • orjson.loads() rejects floats that do not have a digit following
    the decimal, e.g., -2., 2.e-3.

Changed

  • Build Linux, macOS, and Windows wheels on more recent distributions.

2.2.0

22 Jan 14:46
@ijl ijl

Choose a tag to compare

Added

  • orjson.dumps() serializes uuid.UUID instances if
    option=orjson.OPT_SERIALIZE_UUID is specified.

Changed

  • Minor performance improvements.
  • Publish Python 3.9 wheel for Linux.