Skip to content

Releases: ijl/orjson

3.3.1

17 Aug 11:48
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Fix failure to deserialize some latin1 strings on some platforms. This
    was introduced in 3.2.0.
  • Fix annotation of optional parameters on orjson.dumps() for help().

Changed

  • Publish manylinux2014 wheels for amd64 in addition to manylinux1.

3.3.0

24 Jul 01:43
@ijl ijl
Compare
Choose a tag to compare

Added

  • orjson.dumps() now serializes individual numpy floats and integers, e.g.,
    numpy.float64(1.0).
  • orjson.OPT_PASSTHROUGH_DATACLASS causes orjson.dumps() to pass
    dataclasses.dataclass instances to default.

3.2.2

13 Jul 22:18
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Fix serializing dataclasses.dataclass that have no attributes.

Changed

  • Improve deserialization performance of str.

3.2.1

03 Jul 15:15
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Fix orjson.dumps(..., **{}) raising TypeError on python3.6.

3.2.0

30 Jun 21:22
@ijl ijl
Compare
Choose a tag to compare

Added

  • orjson.OPT_APPEND_NEWLINE appends a newline to output.

Changed

  • Improve deserialization performance of str.

3.1.2

23 Jun 21:16
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Fix serializing zero-dimension numpy.ndarray.

3.1.1

20 Jun 18:55
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • Fix repeated serialization of str that are ASCII-only and have a legacy
    (non-compact) layout.

3.1.0

08 Jun 13:26
@ijl ijl
Compare
Choose a tag to compare

Added

  • orjson.OPT_PASSTHROUGH_SUBCLASS causes orjson.dumps() to pass
    subclasses of builtin types to default so the caller can customize the
    output.
  • orjson.OPT_PASSTHROUGH_DATETIME causes orjson.dumps() to pass
    datetime objects to default so the caller can customize the
    output.

3.0.2

27 May 14:27
@ijl ijl
Compare
Choose a tag to compare

Changed

  • orjson.dumps() does not serialize dataclasses.dataclass attributes
    that begin with a leading underscore, e.g., _attr. This is because of the
    Python idiom that a leading underscores marks an attribute as "private."
  • orjson.dumps() does not serialize dataclasses.dataclass attributes that
    are InitVar or ClassVar whether using __slots__ or not.

3.0.1

19 May 14:06
@ijl ijl
Compare
Choose a tag to compare

Fixed

  • orjson.dumps() raises an exception if the object to be serialized
    is not given as a positional argument. orjson.dumps({}) is intended and ok
    while orjson.dumps(obj={}) is an error. This makes it consistent with the
    documentation, help() annotation, and type annotation.
  • Fix orphan reference in exception creation that leaks memory until the
    garbage collector runs.

Changed

  • Improve serialization performance marginally by using the fastcall/vectorcall
    calling convention on python3.7 and above.
  • Reduce build time.