All Versions
5
Latest Version
Avg Release Cycle
92 days
Latest Release
1430 days ago
Changelog History
Changelog History
-
v1.3.0 Changes
October 09, 2020- Feature: Added
warn_on_fail
parameter todefault_list_deserializer
that allows to continue deserialization upon errors. - ๐ Feature: Added
transform
that can transform an object to an object of another type. - ๐ Feature: Added serializer and deserializer for
pathlib.Path
(thanks to alexmirrington). - ๐ Change: When loading a list fails, the error message now points to the failing index.
- ๐ Bugfix: Fixed bug when dumping an object with an innerclass.
- Feature: Added
-
v1.2.0 Changes
July 03, 2020- ๐ Bugfix: Fixed bug with postponed typehints (PEP-563).
- ๐ Bugfix: Loading an invalid value targeting an optional did not raise.
- ๐ Bugfix: Loading a dict did not properly pass key_transformers.
- ๐ Bugfix: Loading a namedtuple did not properly use key_transformers.
- Bugfix: Utilized
__annotations__
in favor_field_types
because of deprecation as of 3.8.
-
v1.1.1 Changes
December 22, 2019๐ Changes
- ๐ Feature: Added a serializer for
Union
types. - ๐ Change: Exceptions are more clear upon deserialization failure (thanks to haluzpav).
- ๐ Change: You can no longer announce a class with a custom name.
- ๐ Bugfix: Fixed dumping optional attributes.
- ๐ Bugfix: Dataclasses inheriting from
JsonSerializable
always dumped their attributes as if in strict mode.
- ๐ Feature: Added a serializer for
-
v1.1.0 Changes
December 04, 2019๐ Changes
- ๐ Feature: Added
strict
parameter todump
to indicate that dumping a certaincls
will ignore any extra data. - Feature: When using
dump(obj, cls=x)
,x
can now be any class (previously, only a class with__slots__
). - ๐ Feature: Support for dumping
Decimal
(thanks to herdigiorgi). - ๐ Feature: Primitives are now cast if possible when dumping (e.g.
dump(5, str)
). - ๐ Feature: Dumping iterables with generic types (e.g.
dump(obj, List[str])
) will now dump with respect to that types (ifstrict
) - ๐ Feature: The
default_dict
serializer now optionally accepts types:Optional[Dict[str, type]]
. - ๐ Change: Improved performance when dumping using
strict=True
(up to 4 times faster!). - ๐ Bugfix:
set_validator
with multiple types did not work.
- ๐ Feature: Added
-
v1.0.0 Changes
October 07, 2019๐ Changes
- ๐ Feature: Added a serializer/deserializer for
time
. - ๐ Feature: Added a serializer/deserializer for
timezone
. - ๐ Feature: Added a serializer/deserializer for
timedelta
. - ๐ Feature: Added a serializer/deserializer for
date
. - ๐ Bugfix: Dumping verbose did not store the types of dicts (
Dict[K, V]
). - ๐ Bugfix: Loading with
List
(no generic type) failed. - ๐ Bugfix: Loading with
Dict
(no generic type) failed. - ๐ Bugfix: Loading with
Tuple
(no generic type) failed.
- ๐ Feature: Added a serializer/deserializer for