Orjson

Latest version: v3.10.3

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

Scan your dependencies

Page 17 of 21

2.4.0

Not secure
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

Not secure
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

Not secure
Changed

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

2.2.1

Not secure
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

Not secure
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.

2.1.4

Not secure
Fixed

- Specify a text signature for `orjson.loads()`.

Changed

- Improve documentation.

Page 17 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.