From 46e2256b6bd976bcfdfbdc7e6893c078ae42a277 Mon Sep 17 00:00:00 2001 From: Jordan Smith Date: Wed, 2 Oct 2024 12:52:08 -0700 Subject: [PATCH 1/5] v4.10 release --- config/redirects | 2 +- snooty.toml | 4 +-- .../language-compatibility-table-pymongo.rst | 13 ++++++++ .../mongodb-compatibility-table-pymongo.rst | 32 ++++++++++++++----- source/whats-new.txt | 22 ++++++++++++- 5 files changed, 61 insertions(+), 12 deletions(-) diff --git a/config/redirects b/config/redirects index 1b4d0e35..b265d576 100644 --- a/config/redirects +++ b/config/redirects @@ -1,6 +1,6 @@ define: prefix docs/languages/python/pymongo-driver define: base https://www.mongodb.com/${prefix} -define: versions v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 master +define: versions v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 4.10 master symlink: current -> master diff --git a/snooty.toml b/snooty.toml index 30168b04..b4084b9d 100644 --- a/snooty.toml +++ b/snooty.toml @@ -29,8 +29,8 @@ mdb-server = "MongoDB Server" mongo-community = "MongoDB Community Edition" mongo-enterprise = "MongoDB Enterprise Edition" docs-branch = "master" # always set this to the docs branch (i.e. master, 1.7, 1.8, etc.) -version-number = "4.9" -patch-version-number = "{+version-number+}.0" # always set this to the driver branch (i.e. 1.7.0, 1.8.0, etc.) +version-number = "4.10" +patch-version-number = "{+version-number+}.1" # always set this to the driver branch (i.e. 1.7.0, 1.8.0, etc.) version = "v{+version-number+}" stable-api = "Stable API" api-root = "https://pymongo.readthedocs.io/en/{+patch-version-number+}/api/" diff --git a/source/includes/language-compatibility-table-pymongo.rst b/source/includes/language-compatibility-table-pymongo.rst index c17cbc39..a70c0231 100644 --- a/source/includes/language-compatibility-table-pymongo.rst +++ b/source/includes/language-compatibility-table-pymongo.rst @@ -19,6 +19,19 @@ Python 3 - CPython 3.4 - PyPy3 + * - 4.10 + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - + - + - + - + * - 4.9 - ✓ - ✓ diff --git a/source/includes/mongodb-compatibility-table-pymongo.rst b/source/includes/mongodb-compatibility-table-pymongo.rst index 623c8fe8..99077912 100644 --- a/source/includes/mongodb-compatibility-table-pymongo.rst +++ b/source/includes/mongodb-compatibility-table-pymongo.rst @@ -13,15 +13,31 @@ - MongoDB 4.0 - MongoDB 3.6 + * - 4.10 + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - + - + - + - + * - 4.9 - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - + - + - + - * - 4.4 to 4.8 - ⊛ diff --git a/source/whats-new.txt b/source/whats-new.txt index 9b87fd7f..7f5ab254 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -15,21 +15,41 @@ What's New :values: reference .. meta:: - :keywords: update, new feature, deprecation, upgrade, driver v4.7, driver v4.8, driver v4.9 + :keywords: update, new feature, deprecation, upgrade, driver v4.7, driver v4.8, driver v4.9, driver v4.10 Learn what's new in: +* :ref:`Version 4.10 ` * :ref:`Version 4.9 ` * :ref:`Version 4.8 ` * :ref:`Version 4.7 ` .. _upcoming-breaking-changes: +.. _version-4.10: + +What's New in 4.10 +------------------ + +The {+driver-short+} v4.10 release includes the following new features: + +- Adds provisional support for a new binary BSON subtype (9), which can be used + for efficient storage and retrieval of vectors. This includes the new methods: + ``bson.binary.Binary.from_vector`` and ``bson.binary.Binary.as_vector``. + Support for BSON subtype 9 is in beta and is subject to change before the + generally available release. +- Adds ``"C"`` to client metadata when an application uses the C extension. +- Fixes a bug that could cause ``AsyncMongoClient`` to deadlock. +- Fixes a bug that caused Windows to fail when importing {+driver-short+} if + asyncio is misconfigured. + .. _version-4.9: What's New in 4.9 ----------------- +The {+driver-short+} v4.9 release includes the following new features: + - Adds support for {+mdb-server+} 8.0 and Python 3.13. - Adds support for Queryable Encryption range queries. To use this feature, your app must connect to {+mdb-server+} 8.0 or later. For From 28ab624bfa952d75cfe8e057fd47c41b7d833a42 Mon Sep 17 00:00:00 2001 From: Jordan Smith Date: Wed, 2 Oct 2024 13:02:40 -0700 Subject: [PATCH 2/5] add vector description link --- source/whats-new.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index 7f5ab254..5aa56f26 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -34,8 +34,9 @@ What's New in 4.10 The {+driver-short+} v4.10 release includes the following new features: - Adds provisional support for a new binary BSON subtype (9), which can be used - for efficient storage and retrieval of vectors. This includes the new methods: - ``bson.binary.Binary.from_vector`` and ``bson.binary.Binary.as_vector``. + for efficient storage and retrieval of :atlas:`vectors + `. This includes + the new methods: ``bson.binary.Binary.from_vector`` and ``bson.binary.Binary.as_vector``. Support for BSON subtype 9 is in beta and is subject to change before the generally available release. - Adds ``"C"`` to client metadata when an application uses the C extension. From 9fb21e4f7ba34db5327bb63de47d426133ef823a Mon Sep 17 00:00:00 2001 From: Jordan Smith Date: Wed, 2 Oct 2024 13:06:29 -0700 Subject: [PATCH 3/5] rewording --- source/whats-new.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index 5aa56f26..0fe22b0e 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -35,13 +35,13 @@ The {+driver-short+} v4.10 release includes the following new features: - Adds provisional support for a new binary BSON subtype (9), which can be used for efficient storage and retrieval of :atlas:`vectors - `. This includes - the new methods: ``bson.binary.Binary.from_vector`` and ``bson.binary.Binary.as_vector``. - Support for BSON subtype 9 is in beta and is subject to change before the + ` by using the + ``bson.binary.Binary.from_vector()`` and ``bson.binary.Binary.as_vector()`` + methods. Support for BSON subtype 9 is in beta and is subject to change before the generally available release. -- Adds ``"C"`` to client metadata when an application uses the C extension. +- Adds ``"c"`` to the ``driver.name``client metadata field when an application uses the C extension. - Fixes a bug that could cause ``AsyncMongoClient`` to deadlock. -- Fixes a bug that caused Windows to fail when importing {+driver-short+} if +- Fixes a bug that causes Windows to fail when importing {+driver-short+} if asyncio is misconfigured. .. _version-4.9: From e021e5256af34911f6fb831e97f55743e92f8bd8 Mon Sep 17 00:00:00 2001 From: Jordan Smith Date: Thu, 3 Oct 2024 06:37:25 -0700 Subject: [PATCH 4/5] typo --- source/whats-new.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index 0fe22b0e..61c398ed 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -39,7 +39,7 @@ The {+driver-short+} v4.10 release includes the following new features: ``bson.binary.Binary.from_vector()`` and ``bson.binary.Binary.as_vector()`` methods. Support for BSON subtype 9 is in beta and is subject to change before the generally available release. -- Adds ``"c"`` to the ``driver.name``client metadata field when an application uses the C extension. +- Adds ``"c"`` to the ``driver.name`` client metadata field when an application uses the C extension. - Fixes a bug that could cause ``AsyncMongoClient`` to deadlock. - Fixes a bug that causes Windows to fail when importing {+driver-short+} if asyncio is misconfigured. From 246208297a03c7b0f0d74935b40557d805272b98 Mon Sep 17 00:00:00 2001 From: Jordan Smith Date: Thu, 3 Oct 2024 08:50:08 -0700 Subject: [PATCH 5/5] tech feedback --- source/includes/mongodb-compatibility-table-pymongo.rst | 8 ++++---- source/whats-new.txt | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/source/includes/mongodb-compatibility-table-pymongo.rst b/source/includes/mongodb-compatibility-table-pymongo.rst index 99077912..a01d32e3 100644 --- a/source/includes/mongodb-compatibility-table-pymongo.rst +++ b/source/includes/mongodb-compatibility-table-pymongo.rst @@ -20,8 +20,8 @@ - ✓ - ✓ - ✓ - - - - + - ✓ + - ⊛ - - - @@ -33,8 +33,8 @@ - ✓ - ✓ - ✓ - - - - + - ✓ + - ⊛ - - - diff --git a/source/whats-new.txt b/source/whats-new.txt index 61c398ed..cae1f0ec 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -41,8 +41,6 @@ The {+driver-short+} v4.10 release includes the following new features: generally available release. - Adds ``"c"`` to the ``driver.name`` client metadata field when an application uses the C extension. - Fixes a bug that could cause ``AsyncMongoClient`` to deadlock. -- Fixes a bug that causes Windows to fail when importing {+driver-short+} if - asyncio is misconfigured. .. _version-4.9: