Skip to content

Update requirements: Bump pymongo from 4.19.0 to 4.20.0 - #477

Open
dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/pip/pymongo-4.20.0
Open

dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/pip/pymongo-4.20.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps pymongo from 4.19.0 to 4.20.0.

Release notes

Sourced from pymongo's releases.

PyMongo 4.20.0

Community notes: https://www.mongodb.com/community/forums/t/pymongo-4-20-0-released/344893

Changelog

Sourced from pymongo's changelog.

Changes in Version 4.20.0 (2026/11/12)

  • The client handshake metadata now reports a detected coding agent in client.env.agent (PYTHON-5929_).
  • Removed the beta QueryType.PREFIXPREVIEW, QueryType.SUFFIXPREVIEW, and QueryType.SUBSTRINGPREVIEW query types. Use :attr:~pymongo.encryption.QueryType.PREFIX, :attr:~pymongo.encryption.QueryType.SUFFIX, and :attr:~pymongo.encryption.QueryType.SUBSTRING instead (requires MongoDB 9.0+ and pymongocrypt 1.21.0+) (PYTHON-5959_).
  • Removed the deprecated text_opts parameter of :meth:~pymongo.encryption.ClientEncryption.encrypt and :meth:~pymongo.asynchronous.encryption.AsyncClientEncryption.encrypt, and the TextOpts class. Use string_opts and :class:~pymongo.encryption_options.StringOpts instead (PYTHON-5959_).

Bug fixes .........

  • Fixed a disagreement between the C extension and pure-Python BSON decoders for binary elements with UUID subtypes (3 and 4) whose payload is not 16 bytes. Both now decode them to :class:~bson.binary.Binary under the default UNSPECIFIED UUID representation, and raise :class:~bson.errors.InvalidBSON when UUID conversion is requested (PYTHON-6172_).
  • Fixed a bug where MongoClient(maxPoolSize=0, minPoolSize>0) raised ValueError, even though maxPoolSize=0 means "no limit". The minPoolSize <= maxPoolSize validation now treats both 0 and None as unlimited (PYTHON-6149_).
  • Fixed a bug where :class:~bson.objectid.ObjectId accepted a 24-character string containing whitespace and created an ObjectId shorter than 12 bytes from it. It now raises :class:~bson.errors.InvalidId, and :meth:~bson.objectid.ObjectId.is_valid returns False for such a string (PYTHON-5873_).
  • Fixed the type annotation of the let argument of :class:~pymongo.cursor.Cursor and :class:~pymongo.asynchronous.cursor.AsyncCursor to be Optional[Mapping[str, Any]] instead of Optional[bool], matching what the argument accepts at runtime (PYTHON-6145_).
  • Disabled TLS session reuse on Python 3.11 due to a CPython memory leak bug (python/cpython#116810 <https://github.com/python/cpython/issues/116810>). The bug was fixed in Python 3.12.7 and Python 3.13.1. Users of Python 3.12 and 3.13 should upgrade to at least those versions (PYTHON-6182).
  • Fixed a bug where AsyncMongoClient could not recover after a replica set member removed itself from the topology with its own hello response (for example, during a node restart): the monitor's executor cancelled its own task, so the monitor never ran again (PYTHON-6226_).
  • Fixed undefined behavior in the C extension's BSON buffer growth: growing an encode buffer past 1GiB doubled a signed integer past its limit.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pymongo](https://github.com/mongodb/mongo-python-driver) from 4.19.0 to 4.20.0.
- [Release notes](https://github.com/mongodb/mongo-python-driver/releases)
- [Changelog](https://github.com/mongodb/mongo-python-driver/blob/main/doc/changelog.rst)
- [Commits](mongodb/mongo-python-driver@4.19.0...4.20.0)

---
updated-dependencies:
- dependency-name: pymongo
  dependency-version: 4.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant