Skip to content

v4.11 release #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/redirects
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
10 changes: 3 additions & 7 deletions source/includes/language-compatibility-table-pymongo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ Python 3
- CPython 3.4
- PyPy3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page says "PyPy3 is a Python 3.2-compatible alternative interpreter" but that's incorrect. PyMongo 4.11 supports PyPy3.10+ which is a Python 3.10-compatible alternative interpreter. The compat table should also be updated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's a ticket to address this separately (as discussed on Slack)
https://jira.mongodb.org/browse/DOCSP-46954


* - 4.10
- ✓
* - 4.11
- ✓
- ✓
- ✓
- ✓
- ✓
-
-
-
-
-
-

* - 4.9
* - 4.9 to 4.10
- ✓
- ✓
- ✓
Expand Down Expand Up @@ -193,10 +193,6 @@ Python 3
:ref:`TLS <pymongo-troubleshoot-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
~~~~~~~~

Expand Down
12 changes: 1 addition & 11 deletions source/includes/mongodb-compatibility-table-pymongo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,7 @@
- ✓
-

* - 4.10
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓

* - 4.9
* - 4.9 to 4.10
- ✓
- ✓
- ✓
Expand Down
16 changes: 13 additions & 3 deletions source/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 </reference/command/hello/#mongodb-data-hello.minWireVersion>`.
- Deprecates support for {+mdb-server+} v4.0. In accordance with the `MongoDB
Software Lifecycle Schedules
<https://www.mongodb.com/legal/support-policy/lifecycles>`__, 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
<pymongo-authentication-mechanisms>` guide.

.. _version-4.9-breaking-changes:

Expand Down
28 changes: 28 additions & 0 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ Learn what's new in:

.. _upcoming-breaking-changes:

Upcoming Breaking Changes
-------------------------

In accordance with the `MongoDB Software Lifecycle Schedules
<https://www.mongodb.com/legal/support-policy/lifecycles>`__, 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
Expand All @@ -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 <https://docs.python.org/3/howto/free-threading-python.html>`__.
- 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:

Expand Down
Loading