Skip to content

Commit 6cdc6a2

Browse files
authored
PYTHON-2797 Update changelog for 5.0 support (#675)
1 parent 7f5df56 commit 6cdc6a2

File tree

5 files changed

+39
-8
lines changed

5 files changed

+39
-8
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ is a `gridfs
1717
<http://www.mongodb.org/display/DOCS/GridFS+Specification>`_
1818
implementation on top of ``pymongo``.
1919

20-
PyMongo supports MongoDB 2.6, 3.0, 3.2, 3.4, 3.6, 4.0, 4.2, and 4.4.
20+
PyMongo supports MongoDB 2.6, 3.0, 3.2, 3.4, 3.6, 4.0, 4.2, 4.4, and 5.0.
2121

2222
Support / Feedback
2323
==================

doc/api/pymongo/collection.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
.. automethod:: aggregate_raw_batches
4949
.. automethod:: watch
5050
.. automethod:: find(filter=None, projection=None, skip=0, limit=0, no_cursor_timeout=False, cursor_type=CursorType.NON_TAILABLE, sort=None, allow_partial_results=False, oplog_replay=False, modifiers=None, batch_size=0, manipulate=True, collation=None, hint=None, max_scan=None, max_time_ms=None, max=None, min=None, return_key=False, show_record_id=False, snapshot=False, comment=None, session=None, allow_disk_use=None)
51-
.. automethod:: find_raw_batches(filter=None, projection=None, skip=0, limit=0, no_cursor_timeout=False, cursor_type=CursorType.NON_TAILABLE, sort=None, allow_partial_results=False, oplog_replay=False, modifiers=None, batch_size=0, manipulate=True, collation=None, hint=None, max_scan=None, max_time_ms=None, max=None, min=None, return_key=False, show_record_id=False, snapshot=False, comment=None, allow_disk_use=None)
51+
.. automethod:: find_raw_batches(filter=None, projection=None, skip=0, limit=0, no_cursor_timeout=False, cursor_type=CursorType.NON_TAILABLE, sort=None, allow_partial_results=False, oplog_replay=False, modifiers=None, batch_size=0, manipulate=True, collation=None, hint=None, max_scan=None, max_time_ms=None, max=None, min=None, return_key=False, show_record_id=False, snapshot=False, comment=None, session=None, allow_disk_use=None)
5252
.. automethod:: find_one(filter=None, *args, **kwargs)
5353
.. automethod:: find_one_and_delete
5454
.. automethod:: find_one_and_replace(filter, replacement, projection=None, sort=None, return_document=ReturnDocument.BEFORE, hint=None, session=None, **kwargs)

doc/changelog.rst

+30-1
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,46 @@ Changes in Version 3.12.0
1616
Notable improvements
1717
....................
1818

19+
- Added support for MongoDB 5.0.
1920
- 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`.
2033
- Added :attr:`pymongo.mongo_client.MongoClient.topology_description`.
2134
- Added hash support to :class:`~pymongo.mongo_client.MongoClient`,
2235
:class:`~pymongo.database.Database` and
2336
:class:`~pymongo.collection.Collection` (`PYTHON-2466`_).
2437
- Improved the error message returned by
2538
:meth:`~pymongo.collection.Collection.insert_many` when supplied with an
2639
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`.
2743

2844
Bug fixes
2945
.........
3046

3147
- Fixed a bug that could cause the driver to deadlock during automatic
3248
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.
3359

3460
Deprecations
3561
............
@@ -46,7 +72,10 @@ Deprecations
4672
- Deprecated :class:`~pymongo.ismaster.IsMaster` and :mod:`~pymongo.ismaster`
4773
which will be removed in PyMongo 4.0 and are replaced by
4874
: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`).
5079

5180
.. _PYTHON-2466: https://jira.mongodb.org/browse/PYTHON-2466
5281
.. _PYTHON-1690: https://jira.mongodb.org/browse/PYTHON-1690

pymongo/client_session.py

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
9494
.. mongodoc:: transactions
9595
96+
.. _snapshot-reads-ref:
97+
9698
Snapshot Reads
9799
==============
98100

pymongo/database.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,14 @@ def create_collection(self, name, codec_options=None,
360360
Options should be passed as keyword arguments to this method. Supported
361361
options vary with MongoDB release. Some examples include:
362362
363-
- "size": desired initial size for the collection (in
363+
- ``size``: desired initial size for the collection (in
364364
bytes). For capped collections this size is the max
365365
size of the collection.
366-
- "capped": if True, this is a capped collection
367-
- "max": maximum number of objects if capped (optional)
368-
- `timeseries`: a document specifying configuration options for
366+
- ``capped``: if True, this is a capped collection
367+
- ``max``: maximum number of objects if capped (optional)
368+
- ``timeseries``: a document specifying configuration options for
369369
timeseries collections
370-
- `expireAfterSeconds`: the number of seconds after which a
370+
- ``expireAfterSeconds``: the number of seconds after which a
371371
document in a timeseries collection expires
372372
373373
See the MongoDB documentation for a full list of supported options by

0 commit comments

Comments
 (0)