Airflow Summit 2025 is coming October 07-09. Register now to secure your spot!

apache-airflow-providers-mongo

Changelog

5.2.2

Release Date: 2025-08-02

Misc

  • Remove mongomock dependency from mongo provider and introduce MongoDbContainer testcontainer for testing. (#53773)

  • Fix: ignore connection schema when schema is none in mongo hook (#53780)

  • Add Python 3.13 support for Airflow. (#46891)

  • Remove type ignore across codebase after mypy upgrade (#53243)

  • Remove upper-binding for "python-requires" (#52980)

  • Temporarily switch to use >=,< pattern instead of '~=' (#52967)

  • Move all BaseHook usages to version_compat in MongoDB (#52857)

5.2.1

Release Date: 2025-07-06

Misc

  • Move 'BaseHook' implementation to task SDK (#51873)

  • Replace models.BaseOperator to Task SDK one for Mongo (#52566)

  • Drop support for Python 3.9 (#52072)

  • Use BaseSensorOperator from task sdk in providers (#52296)

5.2.0

Release Date: 2025-06-18

Features

  • feat: add create_collection function to MongoHook (#50518)

5.1.0

Release Date: 2025-05-18

Note

This release of provider is only available for Airflow 2.10+ as explained in the Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>_.

Misc

  • Bump min Airflow version in providers to 2.10 (#49843)

5.0.3

Release Date: 2025-04-19

Misc

  • remove superfluous else block (#49199)

5.0.2

Release Date: 2025-03-13

Misc

  • Add explanation to why pymongo is limited to 4.11.0 (#47338)

  • Restrict pymongo to less than 4.11 for our CI (#47336)

  • Upgrade flit to 3.11.0 (#46938)

5.0.1

Release Date: 2025-02-26

Bug Fixes

  • Fix side effect of not tearing down mongo hook in tests (#46291)

  • Fix pymongo generated dependencies not updated in pymongo fix (#46220)

  • Bugfix/prevent pymongo 4.11 (#46216)

Misc

  • Disallow pymongo: 4.11.1 to fix CI tests (#46636)

  • AIP-72: Support better type-hinting for Context dict in SDK  (#45583)

5.0.0

Release Date: 2024-12-26

Note

This release of provider is only available for Airflow 2.9+ as explained in the Apache Airflow providers support policy.

Breaking changes

Warning

All deprecated classes, parameters and features have been removed from the MongoDB provider package. The following breaking changes were introduced:

  • Hooks

    • Removed conn_id parameter from MongoHook. Use mongo_conn_id instead

  • Remove Provider Deprecations in Mongo (#44632)

Misc

  • Bump minimum Airflow version in providers to Airflow 2.9.0 (#44956)

4.2.2

Release Date: 2024-10-31

Bug Fixes

  • fix(providers/mongo): prevent applying lower method on boolean field (#43024)

4.2.1

Release Date: 2024-09-24

Misc

  • Adjust typing in Mongo hook to prevent mypy errors (#42354)

  • Improve Mongo connection validation and UI (#41717)

4.2.0

Release Date: 2024-08-22

Note

This release of provider is only available for Airflow 2.8+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump minimum Airflow version in providers to Airflow 2.8.0 (#41396)

4.1.2

Release Date: 2024-06-27

Misc

  • implement per-provider tests with lowest-direct dependency resolution (#39946)

4.1.1

Release Date: 2024-05-30

Misc

  • Faster 'airflow_version' imports (#39552)

  • Simplify 'airflow_version' imports (#39497)

4.1.0

Release Date: 2024-05-06

Note

This release of provider is only available for Airflow 2.7+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump minimum Airflow version in providers to Airflow 2.7.0 (#39240)

4.0.0

Release Date: 2024-02-15

Breaking changes

Introduced the allow_insecure flag in the extras field for the MongoDB connection. This flag allows users to control whether insecure connections are permitted when using SSL encryption. By default, the allow_insecure flag is set to False. This means that when SSL encryption is enabled (ssl=True), insecure connections are not allowed unless explicitly specified by the user.

  • Adding certificate validation for ssl in mongo hook (#37214)

  • Fixing the version for mongo provider (#37250)

Misc

  • Change 'MongoHook.conn_name_attr' to 'mongo_conn_id' (#37104)

  • Change docs type in insert_many to list of dicts (#37230)

3.6.0

Release Date: 2024-01-27

Features

  • Switch to 'mongo_conn_id' argument into the MongoHook constructor (#36896)

3.5.0

Release Date: 2023-12-12

Note

This release of provider is only available for Airflow 2.6+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump minimum Airflow version in providers to Airflow 2.6.0 (#36017)

3.4.0

Release Date: 2023-10-31

Features

  • Add distinct function to MongoHook in apache-airflow-providers-mongo (#34466)

3.3.0

Release Date: 2023-10-17

Note

This release of provider is only available for Airflow 2.5+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump min airflow version of providers (#34728)

3.2.2

Release Date: 2023-09-12

Misc

  • Always use 'Literal' from 'typing_extensions' (#33794)

3.2.1

Release Date: 2023-06-23

Note

This release dropped support for Python 3.7

Misc

  • Add note about dropping Python 3.7 for providers (#32015)

3.2.0

Release Date: 2023-05-22

Note

This release of provider is only available for Airflow 2.4+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump minimum Airflow version in providers (#30917)

  • Remove the upper version bound on pymongo (#31189)

  • Add future-compatible mongo Hook typing (#31289)

3.1.1

Release Date: 2023-01-17

Misc

  • MongoHook optimization (#28675)

3.1.0

Release Date: 2022-11-18

Note

This release of provider is only available for Airflow 2.3+ as explained in the Apache Airflow providers support policy.

Misc

  • Move min airflow version to 2.3.0 for all providers (#27196)

  • Fix links to sources for examples (#24386)

3.0.0

Release Date: 2022-06-13

Breaking changes

Note

This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow providers support policy.

2.3.3

Release Date: 2022-03-26

Bug Fixes

  • Fix mistakenly added install_requires for all providers (#22382)

2.3.2

Release Date: 2022-03-19

Misc

  • Add Trove classifiers in PyPI (Framework :: Apache Airflow :: Provider)

2.3.1

Release Date: 2022-03-10

Misc

  • Support for Python 3.10

2.3.0

Release Date: 2022-01-06

Misc

  • Fix: pin pymongo < 4.0.0 (#20511)

  • add mongo_db param to function doc string (#19280)

2.2.0

Release Date: 2021-11-04

Features

  • #19223 add mongo_db param to MongoSensor (#19276)

2.1.0

Release Date: 2021-09-03

Features

  • Add Mongo projections to hook and transfer (#17379)

Misc

  • Optimise connection importing for Airflow 2.2.0 (#17682)

2.0.0

Release Date: 2021-06-23

Breaking changes

  • Auto-apply apply_default decorator (#15667)

Warning

Due to apply_default decorator removal, this version of the provider requires Airflow 2.1.0+. If your Airflow version is < 2.1.0, and you want to install this provider version, first upgrade Airflow to at least version 2.1.0. Otherwise your Airflow package version will be upgraded automatically and you will have to manually run airflow upgrade db to complete the migration.

1.0.1

Release Date: 2021-02-08

Updated documentation and readme files.

1.0.0

Release Date: 2020-12-14

Initial version of the provider.

Was this entry helpful?