Skip to content

PYTHON-4228 Update changelog and bump to 4.7 version #1617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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