Xorjson

Latest version: v3.10.5

Safety actively analyzes 688917 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 14 of 22

3.2.1

Fixed

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

3.2.0

Added

- `orjson.OPT_APPEND_NEWLINE` appends a newline to output.

Changed

- Improve deserialization performance of `str`.

3.1.2

Fixed

- Fix serializing zero-dimension `numpy.ndarray`.

3.1.1

Fixed

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

3.1.0

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

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.

Page 14 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.