Skip to content

Commit

Permalink
BUMP 4.4 (#1251)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey authored Jun 21, 2023
1 parent bc66d83 commit 55a9bee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
4 changes: 1 addition & 3 deletions doc/api/pymongo/encryption_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@

.. automodule:: pymongo.encryption_options
:synopsis: Support for automatic client-side field level encryption

.. autoclass:: pymongo.encryption_options.AutoEncryptionOpts
:members:
:members:
27 changes: 20 additions & 7 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
------------------------

Expand Down
2 changes: 1 addition & 1 deletion pymongo/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pymongo/client_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 55a9bee

Please sign in to comment.