Skip to content

Changelog

Beanie project

1.11.4 - 2022-13-06

Improvement

  • Link as FastAPI output

1.11.3 - 2022-10-06

Improvement

  • Motor3 support

Implementation

1.11.2 - 2022-06-06

Fix

  • Dnt inherit excludes

Implementation

1.11.1 - 2022-05-31

Features

  • Allow extra
  • Distinct

Implementation

1.11.0 - 2022-05-06

Features

  • Multi-model mode
  • Views

1.10.9 - 2022-05-06

Improvement

  • pymongo_kwargs for insert many

1.10.8 - 2022-04-13

Fix

  • Match step after limit step

Implementation

1.10.7 - 2022-04-12

Fix

  • Empty update fails on revision id turned on

Implementation

1.10.6 - 2022-04-12

Improvement

  • Single syntax for find by id

Implementation

1.10.5 - 2022-04-11

Improvement

  • Avoid creating redundant query object

Implementation

1.10.4 - 2022-03-24

Improvement

  • Allow custom MigrationNode for build

Implementation

1.10.3 - 2022-02-29

Improvement

  • Delete action

Implementation

1.10.2 - 2022-02-28

Improvement

  • Bulk writer for upsert

Implementation

1.10.1 - 2022-02-24

Improvement

  • Skip actions

Implementation

1.10.0 - 2022-02-24

Improvement

  • Timeseries collections support
  • Pymongo kwargs for find, aggregate, update and delete operations

Implementation

1.9.2 - 2022-02-22

Improvement

  • First or None for find queries

Implementation

1.9.1 - 2022-02-11

Improvement

  • Add support for py.typed file

Implementation

1.9.0 - 2022-02-11

Breaking Change

  • Property allow_index_dropping to be default False. Indexes will not be deleted by default

Implementation

1.8.13 - 2022-02-10

Improvement

  • Add state_management_replace_objects setting

Implementation

1.8.12 - 2022-01-06

Improvement

  • Add exclude_hidden to dict() to be able to keep hidden fields hidden when the exclude parameter set

Implementation

1.8.11 - 2021-12-30

Improvement

  • Only safe pydantic version are allowed. https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh

1.8.10 - 2021-12-29

Fix

  • Revision didn't swap previous revision id and the current one on getting objects from db

1.8.9 - 2021-12-23

Improvement

  • Deep search of updates for the save_changes() method

Kudos

1.8.8 - 2021-12-17

Added

  • Search by linked documents fields (for pre-fetching search only)

1.8.7 - 2021-12-12

Fixed

  • Binary encoder issue

1.8.6 - 2021-12-14

Improved

  • Encoder

1.8.5 - 2021-12-09

Added

  • Optional[Link[Sample]] is allowed field type syntax now

1.8.4 - 2021-12-12

Fixed

  • DateTime bson type

1.8.3 - 2021-12-07

Added

  • Subclasses inherit event-based actions

1.8.2 - 2021-12-04

Fixed

  • Encoder priority

1.8.1 - 2021-11-30

Added

  • Key-based call of subfields in the query builders

1.8.0 - 2021-11-30

Added

  • Relations

Implementation

1.7.2 - 2021-11-03

Fixed

  • revision_id is hidden in the api schema

Implementation

1.7.1 - 2021-11-02

Fixed

  • revision_id is hidden in the outputs

Implementation

1.7.0 - 2021-10-12

Added

  • Cache
  • Bulk write
  • exists - find query's method

Implementation

1.6.1 - 2021-10-06

Update

  • Customization support. It is possible to change query builder classes, used in the classes, which are inherited from the Document class

Implementation

1.6.0 - 2021-09-30

Update

  • Validate on save

Implementation

1.5.1 - 2021-09-27

Update

  • Simplification for init_beanie function

Implementation

1.5.0 - 2021-09-27

Update

  • Custom encoders to be able to configure, how specific type should be presented in the database

Implementation

1.4.0 - 2021-09-13

Added

  • Document state management

Implementation

1.3.0 - 2021-09-08

Added

  • Active record pattern

Implementation

1.2.8 - 2021-09-01

Fix

  • Delete's return annotation

Implementation

1.2.7 - 2021-09-01

Update

  • Annotations for update and delete

Implementation

1.2.6 - 2021-08-25

Fixed

  • MongoDB 5.0 in GH actions

Implementation

1.2.5 - 2021-07-21

Fixed

  • Indexed fields work with aliases now

Implementation

1.2.4 - 2021-07-13

Fixed

  • Aggregation preset method outputs

Implementation

1.2.3 - 2021-07-08

Fixed

  • Pyright issues

Added

  • Doc publishing on merge to the main branch

Implementation

1.2.2 - 2021-07-06

Fixed

  • Bool types in search criteria

Implementation

1.2.1 - 2021-07-06

Fixed

  • Document, FindQuery, Aggregation typings

Implementation

1.2.0 - 2021-06-25

Added

  • Upsert

Implementation

1.1.6 - 2021-06-21

Fix

  • Pydantic dependency version ^1.5

Implementation

1.1.5 - 2021-06-17

Fix

  • Convert document id to the right type in the get() method

Implementation

1.1.4 - 2021-06-15

Changed

  • Stricter flake8 and fixing resulting errors

Implementation

1.1.3 - 2021-06-15

Added

  • MyPy to pre-commit

Fixed

  • Typing errors

Implementation

1.1.2 - 2021-06-14

Changed

  • Skip migration test when transactions not available

Implementation

1.1.1 - 2021-06-14

Added

  • Save method

Implementation

1.1.0 - 2021-06-02

Added

  • Custom id types.

Implementation

1.0.6 - 2021-06-01

Fixed

  • Typo in the module name.

Implementation

1.0.5 - 2021-05-25

Fixed

  • Typing.

Implementation

1.0.4 - 2021-05-18

Fixed

  • aggregation_model -> projection_model

Implementation

1.0.3 - 2021-05-16

Added

  • Index kwargs in the Indexed field

Implementation

1.0.2 - 2021-05-16

Fixed

  • Deprecated import

Implementation

1.0.1 - 2021-05-14

Fixed

  • Document self annotation

Implementation

1.0.0 - 2021-05-10

Added

  • QueryBuilder

Changed

Implementation

0.4.3 - 2021-04-25

Fixed

  • PydanticObjectId openapi generation

0.4.2 - 2021-04-20

Added

  • Python ^3.6.1 support.

Fixed

  • Documents init order in migrations

0.4.1 - 2021-04-19

Added

  • Projections support to reduce database load

Implementation

0.4.0 - 2021-04-18

Added

Changed

0.4.0b1 - 2021-04-14

Added

  • Migrations
  • inspect_collection Document method
  • count_documents Document method

Changed

  • Session can be provided to the most of the Document methods

Removed

  • Internal DocumentMeta class.

0.3.4 - 2021-04-09

Changed

  • Indexed(...) field supports index types.

Implementation

0.3.3 - 2021-04-09

Added

  • Simple indexes via type hints.

Implementation

0.3.2 - 2021-03-25

Added

  • init_beanie supports also lists of strings with model paths as thedocument_models parameter.

Implementation

0.3.1 - 2021-03-21

Added

  • skip, limit and sort parameters in the find_many and find_all methods. Documentation

0.3.0 - 2021-03-19

Added

  • Collection - internal class of the Document to set up additional properties.
  • Indexes support.

Changed

  • Breaking change: init_beanie is async function now.

Deprecated

  • Internal DocumentMeta class. Will be removed in 0.4.0.