@@ -12,6 +12,7 @@ PyMongo 4.11 brings a number of changes including:
12
12
13
13
- Dropped support for Python 3.8.
14
14
- Dropped support for MongoDB 3.6.
15
+ - Dropped support for the MONGODB-CR authenticate mechanism, which is no longer supported by MongoDB 4.0+.
15
16
- Added support for free-threaded Python with the GIL disabled. For more information see:
16
17
`Free-threaded CPython <https://docs.python.org/3.13/whatsnew/3.13.html#whatsnew313-free-threaded-cpython >`_.
17
18
- :attr: `~pymongo.asynchronous.mongo_client.AsyncMongoClient.address ` and
@@ -23,6 +24,15 @@ PyMongo 4.11 brings a number of changes including:
23
24
:meth: `~pymongo.collection.Collection.update_one `, :meth: `~pymongo.collection.Collection.replace_one `,
24
25
:class: `~pymongo.operations.UpdateOne `, and
25
26
:class: `~pymongo.operations.UpdateMany `,
27
+ - :meth: `~pymongo.mongo_client.MongoClient.bulk_write ` and
28
+ :meth: `~pymongo.asynchronous.mongo_client.AsyncMongoClient.bulk_write ` now throw an error
29
+ when ``ordered=True `` or ``verboseResults=True `` are used with unacknowledged writes.
30
+ These are unavoidable breaking changes.
31
+ - Fixed a bug in :const: `bson.json_util.dumps ` where a :class: `bson.datetime_ms.DatetimeMS ` would
32
+ be incorrectly encoded as ``'{"$date": "X"}' `` instead of ``'{"$date": X}' `` when using the
33
+ legacy MongoDB Extended JSON datetime representation.
34
+ - Fixed a bug where :const: `bson.json_util.loads ` would raise an IndexError when parsing an invalid
35
+ ``"$date" `` instead of a ValueError.
26
36
27
37
Issues Resolved
28
38
...............
@@ -1022,7 +1032,7 @@ See the `PyMongo 4.0 release notes in JIRA`_ for the list of resolved issues
1022
1032
in this release.
1023
1033
1024
1034
.. _PyMongo 4.0 release notes in JIRA : https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=18463
1025
- .. _DBRef specification : https://github.com/mongodb/specifications/blob/5a8c8d7 /source/dbref.rst
1035
+ .. _DBRef specification : https://github.com/mongodb/specifications/blob/master /source/dbref/dbref.md
1026
1036
1027
1037
Changes in Version 3.13.0 (2022/11/01)
1028
1038
--------------------------------------
@@ -1557,7 +1567,7 @@ Unavoidable breaking changes:
1557
1567
bumped to 1.16.0. This is a breaking change for applications that use
1558
1568
PyMongo's SRV support with a version of ``dnspython `` older than 1.16.0.
1559
1569
1560
- .. _URI options specification : https://github.com/mongodb/specifications/blob/master/source/uri-options/uri-options.rst
1570
+ .. _URI options specification : https://github.com/mongodb/specifications/blob/master/source/uri-options/uri-options.md
1561
1571
1562
1572
1563
1573
Issues Resolved
@@ -1581,7 +1591,7 @@ Changes in Version 3.8.0 (2019/04/22)
1581
1591
must upgrade to PyPy3.5+.
1582
1592
1583
1593
- :class: `~bson.objectid.ObjectId ` now implements the `ObjectID specification
1584
- version 0.2 <https://github.com/mongodb/specifications/blob/master/source/objectid.rst > `_.
1594
+ version 0.2 <https://github.com/mongodb/specifications/blob/master/source/bson- objectid/objectid.md > `_.
1585
1595
- For better performance and to better follow the GridFS spec,
1586
1596
:class: `~gridfs.grid_file.GridOut ` now uses a single cursor to read all the
1587
1597
chunks in the file. Previously, each chunk in the file was queried
@@ -1943,7 +1953,7 @@ Highlights include:
1943
1953
:class: `~pymongo.operations.UpdateOne `, and
1944
1954
:class: `~pymongo.operations.UpdateMany `.
1945
1955
- Implemented the `MongoDB Extended JSON
1946
- <https://github.com/mongodb/specifications/blob/master/source/extended-json.rst > `_
1956
+ <https://github.com/mongodb/specifications/blob/master/source/extended-json/extended-json.md > `_
1947
1957
specification.
1948
1958
- :class: `~bson.decimal128.Decimal128 ` now works when cdecimal is installed.
1949
1959
- PyMongo is now tested against a wider array of operating systems and CPU
0 commit comments