From 4c34bbf6fde49ff7182e2019df991f2bf92d1464 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 16 Sep 2025 09:32:19 -0500 Subject: [PATCH 1/2] PYTHON-5542 Prepare for 4.15.1 Release --- doc/changelog.rst | 35 +++++++++++++++++++++++++++++------ pymongo/_version.py | 2 +- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 64c61e5877..6b3cb65870 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,6 +1,28 @@ Changelog ========= +Changes in Version 4.15.1 (2025/09/16) +-------------------------------------- + +Version 4.15.1 is a bug fix release. + +- Fixed a bug in :meth:`~pymongo.synchronous.encryption.ClientEncryption.encrypt` + and :meth:`~pymongo.asynchronous.encryption.AsyncClientEncryption.encrypt` + that would cause a ``TypeError`` when using ``pymongocrypt<1.16`` by passing + an unsupported ``type_opts`` parameter even if Queryable Encryption text + queries beta was not used. + +- Fixed a bug in ``AsyncMongoClient`` that caused a ``ServerSelectionTimeoutError`` + when used with ``uvicorn``, ``FastAPI``, or ``uvloop``. + +Issues Resolved +............... + +See the `PyMongo 4.15.1 release notes in JIRA`_ for the list of resolved issues +in this release. + +.. _PyMongo 4.15.1 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=46486 + Changes in Version 4.15.0 (2025/09/10) -------------------------------------- @@ -13,8 +35,10 @@ PyMongo 4.15 brings a number of changes including: :attr:`~pymongo.encryption.QueryType.SUBSTRINGPREVIEW`, as part of the experimental Queryable Encryption text queries beta. ``pymongocrypt>=1.16`` is required for text query support. -- Added :class:`bson.decimal128.DecimalEncoder` and :class:`bson.decimal128.DecimalDecoder` - to support encoding and decoding of BSON Decimal128 values to decimal.Decimal values using the TypeRegistry API. +- Added :class:`bson.decimal128.DecimalEncoder` and + :class:`bson.decimal128.DecimalDecoder` + to support encoding and decoding of BSON Decimal128 values to + decimal.Decimal values using the TypeRegistry API. - Added support for Windows ``arm64`` wheels. Changes in Version 4.14.1 (2025/08/19) @@ -22,8 +46,9 @@ Changes in Version 4.14.1 (2025/08/19) Version 4.14.1 is a bug fix release. - - Fixed a bug in ``MongoClient.append_metadata()`` and ``AsyncMongoClient.append_metadata()`` - that allowed duplicate ``DriverInfo.name`` to be appended to the metadata. +- Fixed a bug in ``MongoClient.append_metadata()`` and + ``AsyncMongoClient.append_metadata()`` + that allowed duplicate ``DriverInfo.name`` to be appended to the metadata. Issues Resolved ............... @@ -31,8 +56,6 @@ Issues Resolved See the `PyMongo 4.14.1 release notes in JIRA`_ for the list of resolved issues in this release. -.. _PyMongo 4.14.1 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=45256 - Changes in Version 4.14.0 (2025/08/06) -------------------------------------- diff --git a/pymongo/_version.py b/pymongo/_version.py index c6ba82ab13..7abecf4416 100644 --- a/pymongo/_version.py +++ b/pymongo/_version.py @@ -18,7 +18,7 @@ import re from typing import List, Tuple, Union -__version__ = "4.16.0.dev0" +__version__ = "4.15.1" def get_version_tuple(version: str) -> Tuple[Union[int, str], ...]: From ce4505d47dd7e67ee588c4a1eea508b30240d806 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 16 Sep 2025 09:37:12 -0500 Subject: [PATCH 2/2] fix changelog --- doc/changelog.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/changelog.rst b/doc/changelog.rst index 6b3cb65870..082c22fafc 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -56,6 +56,8 @@ Issues Resolved See the `PyMongo 4.14.1 release notes in JIRA`_ for the list of resolved issues in this release. +.. _PyMongo 4.14.1 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=45256 + Changes in Version 4.14.0 (2025/08/06) --------------------------------------