μMongo v2.0.0 Release Notes
Release Date: 2019-03-18 // over 5 years ago-
🔋 Features:
- Backwards-incompatible:
missing
attribute is no longer used in umongo fields, onlydefault
is used.marshmallow_missing
andmarshmallow_default
attribute can be used to overwrite the value to use in the pure marshmallow field returned byas_marshmallow_field
method (see #36 and #107). - Backwards-incompatible:
as_marshmallow_field
does not passload_from
,dump_to
andattribute
to the pure marshmallow field anymore. It only passesvalidate
,required
,allow_none
,dump_only
,load_only
anderror_messages
, as well asdefault
andmissing
values inferred from umongo'sdefault
. Parameters prefixed withmarshmallow_
in the umongo field are passed to the pure marshmallow field and override their non-prefixed counterpart. (see #170) - Backwards-incompatible:
DictField
andListField
don't default to emptyDict
/List
. To keep old behaviour, passdict
/list
as default. (see #105) - Backwards-incompatible: Serialize empty
Dict
/List
as empty rather than missing (see #105). - Round datetimes to millisecond precision in
DateTimeField
,LocalDateTimeField
andStrictDateTimeField
to keep consistency between object and database representation (see #172 and #175). - ➕ Add
DateField
(see #178).
🐛 Bug fixes:
- 🛠 Fix passing a default value to a
DictField
/ListField
as a raw Pythondict
/list
(see #78). - 👀 The
default
parameter of a Field is deserialized and validated (see #174).
Other changes:
- 👌 Support Python 3.7 (see #181).
- Backwards-incompatible: Drop Python 3.4 support (see #176) and only use async/await coroutine style in asyncio framework (see #179).
- Backwards-incompatible: