@@ -604,6 +604,135 @@ in this release.
604604.. _PyMongo 4.0 release notes in JIRA : https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=18463
605605.. _DBRef specification : https://github.com/mongodb/specifications/blob/5a8c8d7/source/dbref.rst
606606
607+ Changes in Version 3.13.0
608+ -------------------------
609+
610+ Version 3.13 provides an upgrade path to PyMongo 4.x. Most of the API changes
611+ from PyMongo 4.0 have been backported in a backward compatible way, allowing
612+ applications to be written against PyMongo >= 3.13, rather then PyMongo 3.x or
613+ PyMongo 4.x. See the `PyMongo 4 Migration Guide `_ for detailed examples.
614+
615+ Notable improvements
616+ ....................
617+ - Added :attr: `pymongo.mongo_client.MongoClient.options ` for read-only access
618+ to a client's configuration options.
619+
620+
621+ Issues Resolved
622+ ...............
623+
624+ PyMongo 3.13 drops support for Python 3.4.
625+
626+ Bug fixes
627+ .........
628+
629+ - Fixed a memory leak bug when calling :func: `~bson.decode_all ` without a
630+ ``codec_options `` argument (`PYTHON-3222 `_).
631+ - Fixed a bug where :func: `~bson.decode_all ` did not accept ``codec_options ``
632+ as a keyword argument (`PYTHON-3222 `_).
633+
634+ Deprecations
635+ ............
636+ - Deprecated :meth: `~pymongo.collection.Collection.map_reduce ` and
637+ :meth: `~pymongo.collection.Collection.inline_map_reduce `.
638+ Use :meth: `~pymongo.collection.Collection.aggregate ` instead.
639+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.event_listeners `.
640+ Use :attr: `~pymongo.mongo_client.options.event_listeners ` instead.
641+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.max_pool_size `.
642+ Use :attr: `~pymongo.mongo_client.options.pool_options.max_pool_size ` instead.
643+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.max_idle_time_ms `.
644+ Use :attr: `~pymongo.mongo_client.options.pool_options.max_idle_time_seconds ` instead.
645+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.local_threshold_ms `.
646+ Use :attr: `~pymongo.mongo_client.options.local_threshold_ms ` instead.
647+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.server_selection_timeout `.
648+ Use :attr: `~pymongo.mongo_client.options.server_selection_timeout ` instead.
649+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.retry_writes `.
650+ Use :attr: `~pymongo.mongo_client.options.retry_writes ` instead.
651+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.retry_reads `.
652+ Use :attr: `~pymongo.mongo_client.options.retry_reads ` instead.
653+ - Deprecated :attr: `pymongo.mongo_client.MongoClient.max_bson_size `,
654+ :attr: `pymongo.mongo_client.MongoClient.max_message_size `, and
655+ :attr: `pymongo.mongo_client.MongoClient.max_write_batch_size `. These helpers
656+ were incorrect when in ``loadBalanced=true mode `` and ambiguous in clusters
657+ with mixed versions. Use the `hello command `_ to get the authoritative
658+ value from the remote server instead. Code like this::
659+
660+ max_bson_size = client.max_bson_size
661+ max_message_size = client.max_message_size
662+ max_write_batch_size = client.max_write_batch_size
663+
664+ can be changed to this::
665+
666+ doc = client.admin.command('hello')
667+ max_bson_size = doc['maxBsonObjectSize']
668+ max_message_size = doc['maxMessageSizeBytes']
669+ max_write_batch_size = doc['maxWriteBatchSize']
670+
671+ .. _hello command : https://docs.mongodb.com/manual/reference/command/hello/
672+
673+ See the `PyMongo 3.13.0 release notes in JIRA `_ for the list of resolved issues
674+ in this release.
675+
676+ .. _PyMongo 4 Migration Guide : https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html
677+ .. _PYTHON-3222 : https://jira.mongodb.org/browse/PYTHON-3222
678+ .. _PyMongo 3.13.0 release notes in JIRA : https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=31570
679+
680+ Changes in Version 3.12.3
681+ -------------------------
682+
683+ Issues Resolved
684+ ...............
685+
686+ Version 3.12.3 fixes a bug that prevented :meth: `bson.json_util.loads ` from
687+ decoding a document with a non-string "$regex" field (`PYTHON-3028 `_).
688+
689+ See the `PyMongo 3.12.3 release notes in JIRA `_ for the list of resolved issues
690+ in this release.
691+
692+ .. _PYTHON-3028 : https://jira.mongodb.org/browse/PYTHON-3028
693+ .. _PyMongo 3.12.3 release notes in JIRA : https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=32505
694+
695+ Changes in Version 3.12.2
696+ -------------------------
697+
698+ Issues Resolved
699+ ...............
700+
701+ Version 3.12.2 fixes a number of bugs:
702+
703+ - Fixed a bug that prevented PyMongo from retrying bulk writes
704+ after a ``writeConcernError `` on MongoDB 4.4+ (`PYTHON-2984 `_).
705+ - Fixed a bug that could cause the driver to hang during automatic
706+ client side field level encryption (`PYTHON-3017 `_).
707+
708+ See the `PyMongo 3.12.2 release notes in JIRA `_ for the list of resolved issues
709+ in this release.
710+
711+ .. _PYTHON-2984 : https://jira.mongodb.org/browse/PYTHON-2984
712+ .. _PYTHON-3017 : https://jira.mongodb.org/browse/PYTHON-3017
713+ .. _PyMongo 3.12.2 release notes in JIRA : https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=32310
714+
715+ Changes in Version 3.12.1
716+ -------------------------
717+
718+ Issues Resolved
719+ ...............
720+
721+ Version 3.12.1 fixes a number of bugs:
722+
723+ - Fixed a bug that caused a multi-document transaction to fail when the first
724+ operation was large bulk write (>48MB) that required splitting a batched
725+ write command (`PYTHON-2915 `_).
726+ - Fixed a bug that caused the ``tlsDisableOCSPEndpointCheck `` URI option to
727+ be applied incorrectly (`PYTHON-2866 `_).
728+
729+ See the `PyMongo 3.12.1 release notes in JIRA `_ for the list of resolved issues
730+ in this release.
731+
732+ .. _PYTHON-2915 : https://jira.mongodb.org/browse/PYTHON-2915
733+ .. _PYTHON-2866 : https://jira.mongodb.org/browse/PYTHON-2866
734+ .. _PyMongo 3.12.1 release notes in JIRA : https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=31527
735+
607736Changes in Version 3.12.0
608737-------------------------
609738
0 commit comments