From 29511e284de7ef9ffee27001ee218a8fc00a4f5a Mon Sep 17 00:00:00 2001 From: "mongodb-dbx-release-bot[bot]" <167856002+mongodb-dbx-release-bot[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 13:44:58 +0000 Subject: [PATCH 1/4] BUMP 4.15.0.dev0 Signed-off-by: mongodb-dbx-release-bot[bot] <167856002+mongodb-dbx-release-bot[bot]@users.noreply.github.com> --- pymongo/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/_version.py b/pymongo/_version.py index 9e7924773b..6eb73ba97c 100644 --- a/pymongo/_version.py +++ b/pymongo/_version.py @@ -18,7 +18,7 @@ import re from typing import List, Tuple, Union -__version__ = "4.14.0.dev0" +__version__ = "4.15.0.dev0" def get_version_tuple(version: str) -> Tuple[Union[int, str], ...]: From dd3760a98692cf5b1210b548e171b7522338507f Mon Sep 17 00:00:00 2001 From: "Jeffrey A. Clark" Date: Wed, 6 Aug 2025 08:52:42 -0400 Subject: [PATCH 2/4] Prepare 4.14.0 release (#2458) --- doc/changelog.rst | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index d88b114fc6..7ed50da28a 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,25 +1,35 @@ Changelog ========= -Changes in Version 4.14.0 (XXXX/XX/XX) +Changes in Version 4.14.0 (2025/08/06) -------------------------------------- + PyMongo 4.14 brings a number of changes including: -- Added preliminary support for Python 3.14 and 3.14 with free-threading. We do not yet support the following with Python 3.14: - - Subinterpreters (``concurrent.interpreters``) - - Free-threading with Encryption - - mod_wsgi +- Added preliminary support for Python 3.14 and 3.14 with free-threading. We do + not yet support the following with Python 3.14: + + - Subinterpreters (``concurrent.interpreters``) + - Free-threading with Encryption + - mod_wsgi + - Removed experimental support for free-threading support in Python 3.13. -- Added :attr:`bson.codec_options.TypeRegistry.codecs` and :attr:`bson.codec_options.TypeRegistry.fallback_encoder` properties - to allow users to directly access the type codecs and fallback encoder for a given :class:`bson.codec_options.TypeRegistry`. -- Added :meth:`pymongo.asynchronous.mongo_client.AsyncMongoClient.append_metadata` and - :meth:`pymongo.mongo_client.MongoClient.append_metadata` to allow instantiated MongoClients to send client metadata - on-demand +- Added :attr:`bson.codec_options.TypeRegistry.codecs` and + :attr:`bson.codec_options.TypeRegistry.fallback_encoder` properties + to allow users to directly access the type codecs and fallback encoder for a + given :class:`bson.codec_options.TypeRegistry`. +- Added + :meth:`pymongo.asynchronous.mongo_client.AsyncMongoClient.append_metadata` and + :meth:`pymongo.mongo_client.MongoClient.append_metadata` to allow instantiated + MongoClients to send client metadata on-demand - Improved performance of selecting a server with the Primary selector. -- Introduces a minor breaking change. When encoding :class:`bson.binary.BinaryVector`, a ``ValueError`` will be raised - if the 'padding' metadata field is < 0 or > 7, or non-zero for any type other than PACKED_BIT. -- Changed :meth:`~pymongo.uri_parser.parse_uri`'s ``options`` parameter to be type ``dict`` instead of ``_CaseInsensitiveDictionary``. +- Introduces a minor breaking change. When encoding + :class:`bson.binary.BinaryVector`, a ``ValueError`` will be raised if the + 'padding' metadata field is < 0 or > 7, or non-zero for any type other than + PACKED_BIT. +- Changed :meth:`~pymongo.uri_parser.parse_uri`'s ``options`` parameter to be + type ``dict`` instead of ``_CaseInsensitiveDictionary``. Changes in Version 4.13.2 (2025/06/17) -------------------------------------- From f08c19b8a87fd2cd6914ccb1518f54a2eef00285 Mon Sep 17 00:00:00 2001 From: "Jeffrey A. Clark" Date: Thu, 7 Aug 2025 09:20:13 -0400 Subject: [PATCH 3/4] Update 4.14 changelog Update 4.14 changelog to mention MongoDB 4.0 is no longer supported --- doc/changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 7ed50da28a..0b6c035964 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -6,6 +6,7 @@ Changes in Version 4.14.0 (2025/08/06) PyMongo 4.14 brings a number of changes including: +- Dropped support for MongoDB 4.0. - Added preliminary support for Python 3.14 and 3.14 with free-threading. We do not yet support the following with Python 3.14: @@ -23,7 +24,6 @@ PyMongo 4.14 brings a number of changes including: :meth:`pymongo.mongo_client.MongoClient.append_metadata` to allow instantiated MongoClients to send client metadata on-demand - Improved performance of selecting a server with the Primary selector. - - Introduces a minor breaking change. When encoding :class:`bson.binary.BinaryVector`, a ``ValueError`` will be raised if the 'padding' metadata field is < 0 or > 7, or non-zero for any type other than From 1efd94dd6ab23d67ba11184eea479a7831cfd436 Mon Sep 17 00:00:00 2001 From: "Jeffrey A. Clark" Date: Thu, 7 Aug 2025 12:20:38 -0400 Subject: [PATCH 4/4] Add warning --- doc/changelog.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 0b6c035964..8011c42c1f 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -4,6 +4,9 @@ Changelog Changes in Version 4.14.0 (2025/08/06) -------------------------------------- +.. warning:: PyMongo 4.14 drops support for MongoDB 4.0. PyMongo now supports + MongoDB 4.2+. + PyMongo 4.14 brings a number of changes including: - Dropped support for MongoDB 4.0. @@ -28,7 +31,7 @@ PyMongo 4.14 brings a number of changes including: :class:`bson.binary.BinaryVector`, a ``ValueError`` will be raised if the 'padding' metadata field is < 0 or > 7, or non-zero for any type other than PACKED_BIT. -- Changed :meth:`~pymongo.uri_parser.parse_uri`'s ``options`` parameter to be +- Changed :meth:`~pymongo.uri_parser.parse_uri`'s ``options`` return value to be type ``dict`` instead of ``_CaseInsensitiveDictionary``. Changes in Version 4.13.2 (2025/06/17)