Skip to content

Commit

Permalink
PYTHON-4183: Unavoidable breaking change with BSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibola committed Feb 1, 2024
1 parent b185e50 commit e37ac41
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ PyMongo 4.7 brings a number of improvements including:
: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.
- Replaced usage of :class:`bson.son.SON` on all internal classes and commands to dict,
:attr:`options.pool_options.metadata` is now of type ``dict`` as opposed to :class:`bson.son.SON`.
- Significantly improved the performance of encoding BSON documents to JSON.
- Support for named KMS providers for client side field level encryption.
Previously supported KMS providers were only: aws, azure, gcp, kmip, and local.
Expand All @@ -29,6 +27,15 @@ PyMongo 4.7 brings a number of improvements including:

.. _orjson: https://github.com/ijl/orjson

Unavoidable breaking changes
............................

- Replaced usage of :class:`bson.son.SON` on all internal classes and commands to dict,
:attr:`options.pool_options.metadata` is now of type ``dict`` as opposed to :class:`bson.son.SON`.
Here's an example of how this changes expected output::

>>> ...

Changes in Version 4.6.1
------------------------

Expand Down

0 comments on commit e37ac41

Please sign in to comment.