μMongo v3.0.0.b9 Release Notes

Release Date: 2020-10-05 // over 3 years ago
  • 🔋 Features:

    • ➕ Add support for motor 2.2 (see #294). (Picked from 2.3.0.)
    • Backwards-incompatible: Add ExposeMissing context manager to return missing rather than None when dumping. Replace FromUmongoSchema with RemoveMissingSchema. This schema removes missing fields when dumping by using ExposeMissing internally. Make this feature opt-in by requiring the user to specify RemoveMissingSchema as MA_BASE_SCHEMA_CLS. (see #261)
    • Backwards-incompatible: Remove mongo_world parameter from Schema.as_marshmallow_schema. Schemas generated by this method are meant to (de)serialize umongo objects, not dict straight from database. (see #299)
    • Backwards-incompatible: Remove umongo.Schema. Schemas should inherit from umongo.abstract.BaseSchema. Expose RemoveMissingSchema as umongo.RemoveMissingSchema. (see #301)

    Other changes:

    • Backwards-incompatible: Drop Python 3.6 support (see #298).