diff --git a/config/redirects b/config/redirects index 94a85463..24adc3fe 100644 --- a/config/redirects +++ b/config/redirects @@ -1,6 +1,6 @@ define: prefix docs/languages/python/pymongo-driver define: base https://www.mongodb.com/${prefix} -define: versions v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 4.10 master +define: versions v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 4.10 4.11 master symlink: current -> master diff --git a/snooty.toml b/snooty.toml index e23ffda8..d64523b6 100644 --- a/snooty.toml +++ b/snooty.toml @@ -31,8 +31,8 @@ mdb-server = "MongoDB Server" mongo-community = "MongoDB Community Edition" mongo-enterprise = "MongoDB Enterprise Edition" docs-branch = "master" # always set this to the docs branch (i.e. master, 1.7, 1.8, etc.) -version-number = "4.10" -patch-version-number = "{+version-number+}.1" # always set this to the driver branch (i.e. 1.7.0, 1.8.0, etc.) +version-number = "4.11" +patch-version-number = "{+version-number+}" # always set this to the driver branch (i.e. 1.7.0, 1.8.0, etc.) version = "v{+version-number+}" stable-api = "Stable API" api-root = "https://pymongo.readthedocs.io/en/{+patch-version-number+}/api/" diff --git a/source/includes/language-compatibility-table-pymongo.rst b/source/includes/language-compatibility-table-pymongo.rst index a70c0231..6ae014a9 100644 --- a/source/includes/language-compatibility-table-pymongo.rst +++ b/source/includes/language-compatibility-table-pymongo.rst @@ -19,20 +19,20 @@ Python 3 - CPython 3.4 - PyPy3 - * - 4.10 - - ✓ + * - 4.11 - ✓ - ✓ - ✓ - ✓ - ✓ + - - - - - - - * - 4.9 + * - 4.9 to 4.10 - ✓ - ✓ - ✓ @@ -193,10 +193,6 @@ Python 3 :ref:`TLS ` section of the Troubleshooting guide. .. [#three-six-compat] Pymongo 4.1 requires Python 3.6.2 or later. -.. note:: - - PyPy3 is a Python 3.2-compatible alternative interpreter. - Python 2 ~~~~~~~~ diff --git a/source/includes/mongodb-compatibility-table-pymongo.rst b/source/includes/mongodb-compatibility-table-pymongo.rst index 8c087e17..92862262 100644 --- a/source/includes/mongodb-compatibility-table-pymongo.rst +++ b/source/includes/mongodb-compatibility-table-pymongo.rst @@ -23,17 +23,7 @@ - ✓ - - * - 4.10 - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - * - 4.9 + * - 4.9 to 4.10 - ✓ - ✓ - ✓ diff --git a/source/upgrade.txt b/source/upgrade.txt index 7ad8b39d..5b0a0634 100644 --- a/source/upgrade.txt +++ b/source/upgrade.txt @@ -109,10 +109,20 @@ and upgrade versions. Version 4.11 Breaking Changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- {+mdb-server+} v3.6 is no longer supported. The minimum supported {+mdb-server+} +- Drops support for {+mdb-server+} v3.6. The minimum supported {+mdb-server+} version is now v4.0. - -- The minimum wire version is now 7. See :manual:`minWireVersion `. +- Deprecates support for {+mdb-server+} v4.0. In accordance with the `MongoDB + Software Lifecycle Schedules + `__, an upcoming + minor version of {+driver-short+} will raise the minimum {+mdb-server+} + version from 4.0 to 4.2. +- Drops support for Python v3.8. The minimum supported Python version is + now v3.9. +- Drops support for PyPy v3.9. The minimum supported PyPy version is now + v3.10. +- Drops support for the ``MONGODB-CR`` authentication mechanism. For more + information about authentication, see the :ref:`Authentication Mechanisms + ` guide. .. _version-4.9-breaking-changes: diff --git a/source/whats-new.txt b/source/whats-new.txt index e7e6d69b..dae80463 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -27,6 +27,15 @@ Learn what's new in: .. _upcoming-breaking-changes: +Upcoming Breaking Changes +------------------------- + +In accordance with the `MongoDB Software Lifecycle Schedules +`__, an upcoming minor +version of {+driver-short+} will raise the minimum {+mdb-server+} version from +4.0 to 4.2. {+driver-short+} will no longer support {+mdb-server+} 4.0. To learn +how to upgrade your driver version, see the :ref:`pymongo-upgrade` guide. + .. _version-4.11: What's New in 4.11 @@ -42,6 +51,25 @@ The {+driver-short+} v4.11 release includes the following new features: - Adds support for free-threaded CPython when running Python v3.13+. For more information about free threading, see the `Python documentation `__. +- In-use encryption requires ``pymongocrypt`` v1.12 or later. +- The ``MongoClient.address()`` and ``AsyncMongoClient.address()`` methods correctly block + when called on unconnected clients. +- Adds ``__repr__`` support for the ``IndexModel`` and ``SearchIndexModel`` classes. +- Adds a ``sort`` parameter to the following methods: + + - ``Collection.update_one()`` + - ``Collection.replace_one()`` + - ``operations.UpdateOne()`` + - ``operations.UpdateMany()`` + +- The ``MongoClient.bulkWrite()`` and ``AsyncMongoClient.bulk_write()`` methods throw an + error error if you use them with unacknowledged writes when the + ``ordered`` or ``verboseResults`` options are set to ``True``. +- Fixes a bug that caused ``DatetimeMS`` to be incorrectly encoded as + ``'{"$date": "X"}'`` instead of ``'{"$date": X}'`` when using the the legacy + MongoDB Extended JSON datetime representation. +- Fixes a bug that caused the ``bson.json_util.loads()`` method to raise an ``IndexError`` + instead of a ``ValueError`` when parsing an invalid ``$date`` value. .. _version-4.10: