Skip to content

Commit

Permalink
PYTHON-4228 Update changelog and bump to 4.7 version (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Apr 24, 2024
1 parent b6f0081 commit 3664925
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,26 @@ Changes in Version 4.7

PyMongo 4.7 brings a number of improvements including:

- Added the :class:`pymongo.hello.Hello.connection_id`,
:attr:`pymongo.monitoring.CommandStartedEvent.server_connection_id`,
:attr:`pymongo.monitoring.CommandSucceededEvent.server_connection_id`, and
:attr:`pymongo.monitoring.CommandFailedEvent.server_connection_id` properties.
- Fixed a bug where inflating a :class:`~bson.raw_bson.RawBSONDocument` containing a :class:`~bson.code.Code` would cause an error.
- Added support for ``MONGODB-OIDC`` authentication. The MONGODB-OIDC mechanism authenticates
using an OpenID Connect (OIDC) access token.
The driver supports OIDC for workload identity, defined as an identity you assign to a software workload
(such as an application, service, script, or container) to authenticate and access other services and resources.
Please see :doc:`examples/authentication` for more information.
- Added support for Python's `native logging library <https://docs.python.org/3/howto/logging.html>`_,
enabling developers to customize the verbosity of log messages for their applications.
Please see :doc:`examples/logging` for more information.
- Significantly improved the performance of encoding BSON documents to JSON.
- Support for named KMS providers for client side field level encryption.
- Added support for named KMS providers for client side field level encryption.
Previously supported KMS providers were only: aws, azure, gcp, kmip, and local.
The KMS provider is now expanded to support name suffixes (e.g. local:myname).
Named KMS providers enables more than one of each KMS provider type to be configured.
See the docstring for :class:`~pymongo.encryption_options.AutoEncryptionOpts`.
Note that named KMS providers requires pymongocrypt >=1.9 and libmongocrypt >=1.9.
- Added the :class:`pymongo.hello.Hello.connection_id`,
:attr:`pymongo.monitoring.CommandStartedEvent.server_connection_id`,
:attr:`pymongo.monitoring.CommandSucceededEvent.server_connection_id`, and
:attr:`pymongo.monitoring.CommandFailedEvent.server_connection_id` properties.
- Fixed a bug where inflating a :class:`~bson.raw_bson.RawBSONDocument` containing a :class:`~bson.code.Code` would cause an error.
- :meth:`~pymongo.encryption.ClientEncryption.encrypt` and
:meth:`~pymongo.encryption.ClientEncryption.encrypt_expression` now allow ``key_id``
to be passed in as a :class:`uuid.UUID`.
Expand Down
2 changes: 1 addition & 1 deletion pymongo/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from typing import Tuple, Union

version_tuple: Tuple[Union[int, str], ...] = (4, 7, 0, ".dev0")
version_tuple: Tuple[Union[int, str], ...] = (4, 7, 0)


def get_version_string() -> str:
Expand Down

0 comments on commit 3664925

Please sign in to comment.