diff --git a/doc/api/pymongo/encryption_options.rst b/doc/api/pymongo/encryption_options.rst index 08bfc157a9..b8a886ea68 100644 --- a/doc/api/pymongo/encryption_options.rst +++ b/doc/api/pymongo/encryption_options.rst @@ -3,6 +3,4 @@ .. automodule:: pymongo.encryption_options :synopsis: Support for automatic client-side field level encryption - - .. autoclass:: pymongo.encryption_options.AutoEncryptionOpts - :members: + :members: diff --git a/doc/changelog.rst b/doc/changelog.rst index e0e316e5b6..eae105b617 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -5,18 +5,28 @@ Changes in Version 4.4 ----------------------- - Added support for MongoDB 7.0. +- Added support for Python 3.11. - Added support for passing a list containing (key, direction) pairs or keys to :meth:`~pymongo.collection.Collection.create_index`. -- pymongocrypt 1.6.0 or later is now required for client side field level - encryption support. +- Improved bson encoding performance (`PYTHON-3717`_ and `PYTHON-3718`_). - Improved support for Pyright to improve typing support for IDEs like Visual Studio Code or Visual Studio. - Improved support for type-checking with MyPy "strict" mode (`--strict`). -- Added support for Python 3.11. -- pymongocrypt 1.6.0 or later is now required for :ref:`In-Use Encryption` support. MongoDB Server 7.0 introduced a backwards breaking - change to the QE protocol. Users taking advantage of the Queryable Encryption beta must now upgrade to - MongoDB 7.0+ and PyMongo 4.4+. -- Previously, PyMongo's docs recommended using :meth:`datetime.datetime.utcnow` and :meth:`datetime.datetime.utcfromtimestamp`. utcnow and utcfromtimestamp are deprecated in Python 3.12, for reasons explained `in this Github issue`_. Instead, users should use :meth:`datetime.datetime.now(tz=timezone.utc)` and :meth:`datetime.datetime.fromtimestamp(tz=timezone.utc)` instead. +- Added :meth:`~pymongo.encryption.ClientEncryption.create_encrypted_collection`, + :class:`~pymongo.errors.EncryptedCollectionError`, + :meth:`~pymongo.encryption.ClientEncryption.encrypt_expression`, + :class:`~pymongo.encryption_options.RangeOpts`, + and :attr:`~pymongo.encryption.Algorithm.RANGEPREVIEW` as part of the experimental + Queryable Encryption beta. +- pymongocrypt 1.6.0 or later is now required for :ref:`In-Use Encryption` support. MongoDB + Server 7.0 introduced a backwards breaking change to the QE protocol. Users taking + advantage of the Queryable Encryption beta must now upgrade to MongoDB 7.0+ and + PyMongo 4.4+. +- Previously, PyMongo's docs recommended using :meth:`datetime.datetime.utcnow` and + :meth:`datetime.datetime.utcfromtimestamp`. utcnow and utcfromtimestamp are deprecated + in Python 3.12, for reasons explained `in this Github issue`_. Instead, users should + use :meth:`datetime.datetime.now(tz=timezone.utc)` and + :meth:`datetime.datetime.fromtimestamp(tz=timezone.utc)` instead. .. _in this Github issue: https://github.com/python/cpython/issues/103857 @@ -28,6 +38,9 @@ in this release. .. _PyMongo 4.4 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=34354 +.. _PYTHON-3717: https://jira.mongodb.org/browse/PYTHON-3717 +.. _PYTHON-3718: https://jira.mongodb.org/browse/PYTHON-3718 + Changes in Version 4.3.3 ------------------------ diff --git a/pymongo/_version.py b/pymongo/_version.py index a5885d8cc5..14ba007944 100644 --- a/pymongo/_version.py +++ b/pymongo/_version.py @@ -15,7 +15,7 @@ """Current version of PyMongo.""" from typing import Tuple, Union -version_tuple: Tuple[Union[int, str], ...] = (4, 4, 0, ".dev1") +version_tuple: Tuple[Union[int, str], ...] = (4, 4, 0) def get_version_string() -> str: diff --git a/pymongo/client_options.py b/pymongo/client_options.py index c9f63dc95a..2e39b843ec 100644 --- a/pymongo/client_options.py +++ b/pymongo/client_options.py @@ -267,7 +267,7 @@ def read_concern(self): def timeout(self) -> Optional[float]: """The configured timeoutMS converted to seconds, or None. - ..versionadded: 4.2 + .. versionadded: 4.2 """ return self.__timeout