diff --git a/config/redirects b/config/redirects index 79959d8a..d437be97 100644 --- a/config/redirects +++ b/config/redirects @@ -1,9 +1,10 @@ define: base https://www.mongodb.com/docs/php-library define: prefix docs/php-library raw: ${prefix}/ -> ${base}/current -define: versions v1.16 v1.17 v1.18 v1.19 v1.20 v1.21 master +define: versions v1.16 v1.17 v1.18 v1.19 v1.20 v1.21 v2.0 master + symlink: upcoming -> master -symlink: current -> v1.21 +symlink: current -> v2.0 # general redirects [v1.17-v1.19]: ${prefix}/${version}/tutorial/client-side-encryption/ -> ${base}/${version}/tutorial/encryption/ diff --git a/snooty.toml b/snooty.toml index f8653240..50630236 100644 --- a/snooty.toml +++ b/snooty.toml @@ -38,8 +38,8 @@ php-library = "MongoDB PHP Library" [constants] php-library = "MongoDB PHP Library" -version = "1.21" -source-gh-branch = "v1.x" +version = "2.0" +source-gh-branch = "v2.x" full-version = "{+version+}.0" extension-short = "PHP extension" mdb-server = "MongoDB Server" diff --git a/source/includes/language-compatibility-table-php.rst b/source/includes/language-compatibility-table-php.rst index d8826b58..2c6432b4 100644 --- a/source/includes/language-compatibility-table-php.rst +++ b/source/includes/language-compatibility-table-php.rst @@ -13,7 +13,7 @@ - PHP 7.3 - PHP 7.2 - * - ext + lib 1.21 + * - ext + lib 1.21 to 2.0 - ✓ - ✓ - ✓ diff --git a/source/includes/mongodb-compatibility-table-php.rst b/source/includes/mongodb-compatibility-table-php.rst index a815e328..cdcba413 100644 --- a/source/includes/mongodb-compatibility-table-php.rst +++ b/source/includes/mongodb-compatibility-table-php.rst @@ -13,7 +13,17 @@ - MongoDB 4.0 - MongoDB 3.6 - * - ext + lib 1.20 to 1.21 + * - ext + lib 1.21 to 2.0 + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ [#deprecation-note]_ + - + + * - ext + lib 1.20 - ✓ - ✓ - ✓ @@ -42,3 +52,5 @@ - ✓ - ✓ - ✓ + +.. [#deprecation-note] Support for this MongoDB version is deprecated and will be removed in a future release. diff --git a/source/whats-new.txt b/source/whats-new.txt index 3183d6a1..ad60d98c 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -70,6 +70,9 @@ and removals: examples that use this construction, see the :ref:`php-aggregation-builder-api` section of the Aggregation guide. +- Replaces ``Cursor`` type hints with ``CursorInterface`` for better + extensibility and compatibility. + - Removes deprecated fields in GridFS types. - The library does not calculate the ``md5`` field when a file is