Fixed a bug where pymongo would raise a ConfigurationError: Invalid SRV host
error when connecting to a "mongodb+srv://" URI that included capital letters
in the SRV hosts returned from DNS. (PYTHON-3800_).
Fixed a minor reference counting bug in the C extension (PYTHON-3798_).
Issues Resolved
...............
See the PyMongo 4.4.1 release notes in JIRA_ for the list of resolved issues
in this release.
PyMongo 4.4 brings a number of improvements including:
Added support for MongoDB 7.0.
Added support for Python 3.11.
Added support for passing a list containing (key, direction) pairs
or keys to :meth:~pymongo.collection.Collection.create_index.
Improved bson encoding performance (PYTHON-3717_ and PYTHON-3718_).
Improved support for Pyright to improve typing support for IDEs like Visual Studio Code
or Visual Studio.
Improved support for type-checking with MyPy "strict" mode (--strict).
Added :meth:~pymongo.encryption.ClientEncryption.create_encrypted_collection,
:class:~pymongo.errors.EncryptedCollectionError,
:meth:~pymongo.encryption.ClientEncryption.encrypt_expression,
:class:~pymongo.encryption_options.RangeOpts,
and :attr:~pymongo.encryption.Algorithm.RANGEPREVIEW as part of the experimental
Queryable Encryption beta.
pymongocrypt 1.6.0 or later is now required for :ref:In-Use Encryption support. MongoDB
Server 7.0 introduced a backwards breaking change to the QE protocol. Users taking
advantage of the Queryable Encryption beta must now upgrade to MongoDB 7.0+ and
PyMongo 4.4+.
Previously, PyMongo's docs recommended using :meth:datetime.datetime.utcnow and
:meth:datetime.datetime.utcfromtimestamp. utcnow and utcfromtimestamp are deprecated
in Python 3.12, for reasons explained in this Github issue_. Instead, users should
use :meth:datetime.datetime.now(tz=timezone.utc) and
:meth:datetime.datetime.fromtimestamp(tz=timezone.utc) instead.
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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 from 3.12.1 to 4.4.1.
Release notes
Sourced from pymongo's releases.
Changelog
Sourced from pymongo's changelog.
... (truncated)
Commits
aab9bcb
BUMP 4.4.1 (#1299)724dee8
PYTHON-3818 Create unique key vault index in auto QE example (#1300)61dca84
PYTHON-3762 Remove global code owners (#1256)fb7e522
PYTHON-3800 Add test for SRV URI with uppercase hostname (#1293)c7432db
PYTHON-3798 add error checking and visit for _type_marker_str (#1291)32b2b32
PYTHON-3800 Add lower() to node when validate hosts of srv records (#1289)8212683
BUMP 4.4.1.dev055a9bee
BUMP 4.4 (#1251)bc66d83
PYTHON-3738 Use tox for sphinx doc instead of setup.py (#1245)82d87dc
PYTHON-3744 Fix utcnow deprecation build regressions (#1244)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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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)