@@ -16,20 +16,46 @@ Changes in Version 3.12.0
16
16
Notable improvements
17
17
....................
18
18
19
+ - Added support for MongoDB 5.0.
19
20
- Support for MongoDB Versioned API, see :class: `~pymongo.server_api.ServerApi `.
21
+ - Support for snapshot reads on secondaries (see :ref: `snapshot-reads-ref `).
22
+ - Support for Azure and GCP KMS providers for client side field level
23
+ encryption. See the docstring for :class: `~pymongo.mongo_client.MongoClient `,
24
+ :class: `~pymongo.encryption_options.AutoEncryptionOpts `,
25
+ and :mod: `~pymongo.encryption `.
26
+ - Support AWS authentication with temporary credentials when connecting to KMS
27
+ in client side field level encryption.
28
+ - Support for connecting to load balanced MongoDB clusters via the new
29
+ ``loadBalanced `` URI option.
30
+ - Support for creating timeseries collections via the ``timeseries `` and
31
+ ``expireAfterSeconds `` arguments to
32
+ :meth: `~pymongo.database.Database.create_collection `.
20
33
- Added :attr: `pymongo.mongo_client.MongoClient.topology_description `.
21
34
- Added hash support to :class: `~pymongo.mongo_client.MongoClient `,
22
35
:class: `~pymongo.database.Database ` and
23
36
:class: `~pymongo.collection.Collection ` (`PYTHON-2466 `_).
24
37
- Improved the error message returned by
25
38
:meth: `~pymongo.collection.Collection.insert_many ` when supplied with an
26
39
argument of incorrect type (`PYTHON-1690 `_).
40
+ - Added session and read concern support to
41
+ :meth: `~pymongo.collection.Collection.find_raw_batches `
42
+ and :meth: `~pymongo.collection.Collection.aggregate_raw_batches `.
27
43
28
44
Bug fixes
29
45
.........
30
46
31
47
- Fixed a bug that could cause the driver to deadlock during automatic
32
48
client side field level encryption (`PYTHON-2472 `_).
49
+ - Fixed a potential deadlock when garbage collecting an unclosed exhaust
50
+ :class: `~pymongo.cursor.Cursor `.
51
+ - Fixed an bug where using gevent.Timeout to timeout an operation could
52
+ lead to a deadlock.
53
+ - Fixed the following bug with Atlas Data Lake. When closing cursors,
54
+ pymongo now sends killCursors with the namespace returned the cursor's
55
+ initial command response.
56
+ - Fixed a bug in :class: `~pymongo.cursor.RawBatchCursor ` that caused it to
57
+ return an empty bytestring when the cursor contained no results. It now
58
+ raises :exc: `StopIteration ` instead.
33
59
34
60
Deprecations
35
61
............
@@ -46,7 +72,10 @@ Deprecations
46
72
- Deprecated :class: `~pymongo.ismaster.IsMaster ` and :mod: `~pymongo.ismaster `
47
73
which will be removed in PyMongo 4.0 and are replaced by
48
74
:class: `~pymongo.hello.Hello ` and :mod: `~pymongo.hello ` which provide the
49
- same API.
75
+ same API.
76
+ - Deprecated the :mod: `pymongo.messeage ` module.
77
+ - Deprecated the ``ssl_keyfile `` and ``ssl_certfile `` URI options in favor
78
+ of ``tlsCertificateKeyFile `` (see :doc: `examples/tls `).
50
79
51
80
.. _PYTHON-2466 : https://jira.mongodb.org/browse/PYTHON-2466
52
81
.. _PYTHON-1690 : https://jira.mongodb.org/browse/PYTHON-1690
0 commit comments