Release Notes¶
0.10.8¶
Added¶
- Support for NullableObjectId allowing special object ids to be declared in the document and null.
0.10.7¶
Added¶
- Support for
startswith
,endswith
,istartswith
andiendswith
filters.
Changed¶
- Internal metaclasses checks for annotations.
- Code cleaning and organisations.
0.10.6¶
Added¶
- Support for multi-tenancy on a document level.
0.10.5¶
Added¶
- exists() allowing to query for a document existance in the database.
0.10.4¶
Fix¶
- Native
decimal.Decimal
internal convertion tobson.decimal128.Decimal128
to updates.
0.10.3¶
Fix¶
- Convert decimal to Decimal128 was causing issues for insert lists.
0.10.2¶
This was missed from the version 0.10.1
Changed¶
- Update internals of embedded documents to allow arbitraty types.
0.10.1¶
Fix¶
- Native
decimal.Decimal
internal convertion tobson.decimal128.Decimal128
.
0.10.0¶
Added¶
- Translations to Portuguese.
Fixed¶
- Regression when specifying the
collection
name in theMeta
class of a document.
0.9.0¶
Added¶
create_indexes_for_multiple_databases
allowing to iterate for each document the creating of the indexes in multiple databases.- Registry document checks allowing to check beforehand all the index changes in a document.
- Model check indexes to do the same checks for the indexes but for each document.
- create_indexes_for_multiple_databases.
- drop_indexes_for_multiple_databases.
Changed¶
- Cleaned up logic to design indexes in the
metaclass
.
0.8.0¶
Changed¶
- Internal support for
hatch
and removed the need for aMakefile
- Documentation references
- Add using method to QuerySet manager #28 by @harshalizode.
0.7.0¶
Added¶
- Support for
QuerySetManagers
. Users can now build their own custom managers and add into the documents. - Documentation for the QuerySetManager.
Fixed¶
- Validation for abstract classes with multiple
managers
.
0.6.0¶
Changed¶
- New lazy loading settings working side by side with
dymmond-settings
.
0.5.1¶
Changed¶
- Update internal
dymmond-settings
minimum requirement.
0.5.0¶
Changed¶
BREAKING CHANGE
SETTINGS_MODULE
was renamed toMONGOZ_SETTINGS_MODULE
.
0.4.1¶
Added¶
unique
validation for indexing in the metaclass.
0.4.0¶
Added¶
- New
run_sync
allowing to run sync operations within Mongoz.
Changed¶
- Deprecating internal settings from Pydantic in favour of Dymmond Settings.
Breaking changes¶
Mongoz now uses Dymmond Settings which this simply affects the way the settings module is loaded. Prior to version 0.4.0 it was like this:
MONGOZ_SETTINGS_MODULE=...
From version 0.4.0 is:
SETTINGS_MODULE=...
The rest remains as it. More information about how to use it in the official documentation.
0.3.3¶
Fix¶
- Codec options as defaults were not loading properly.
0.3.2¶
Fix¶
- Codec options for
UuidRepresentation.STANDARD
.
0.3.1¶
Fix¶
- Hotfix in introduced
alias
for ids when generating metaclasses.
0.3.0¶
Added¶
none()
added to manager.none()
added to queryset.
Changed¶
autogenerate_index
in the Meta is now defaulting toFalse
.
Fixed¶
model_dump()
for all the fields onall()
was not populating the id.- Internal validations when parsing results from the cursor.
0.2.0¶
Added¶
- Support for
only()
query. - Support for
defer()
query. - Support for
values()
query. - Support for
values_list
query. - Support for
exclude()
query.
Changed¶
- Updated documentation with new queries.
- Added Tips and Tricks.
Fixed¶
Q.not_
was not returning proper values and denying the query.
0.1.1¶
Fixed¶
- Internal assertation for the
eq
andneq
wasn't allowing booleans to be passed.
0.1.0¶
This is the initial release of Edgy.
Key features¶
- Document inheritance - For those cases where you don't want to repeat yourself while maintaining integrity of the documents.
- Abstract classes - That's right! Sometimes you simply want a document that holds common fields that doesn't need to created as a document in the database.
- Meta classes - If you are familiar with Django, this is not new to you and Mongoz offers this in the same fashion.
- Filters - Filter by any field you want and need.
- Model operators - Classic operations such as
update
,get
,get_or_none
and many others. - Indexes - Unique indexes through meta fields.
- Signals - Quite useful feature if you want to "listen" to what is happening with your documents.
And a lot more you can do here.