@@ -20,6 +20,7 @@ What's New
20
20
Learn about new features, improvements, and fixes introduced in the
21
21
following versions of the {+php-library+}:
22
22
23
+ * :ref:`Version 2.2 <php-lib-version-2.2>`
23
24
* :ref:`Version 2.1 <php-lib-version-2.1>`
24
25
* :ref:`Version 2.0 <php-lib-version-2.0>`
25
26
* :ref:`Version 1.21 <php-lib-version-1.21>`
@@ -28,6 +29,17 @@ following versions of the {+php-library+}:
28
29
* :ref:`Version 1.18 <php-lib-version-1.18>`
29
30
* :ref:`Version 1.17 <php-lib-version-1.17>`
30
31
32
+ .. _php-lib-version-2.2:
33
+
34
+ What's New in 2.2
35
+ -----------------
36
+
37
+ The {+library-short+} v2.2 release includes the following features,
38
+ improvements, and fixes:
39
+
40
+ - Adds the :phpmethod:`MongoDB\Model\CollectionInfo::isView()` method to
41
+ determine whether a collection is a :manual:`view </core/views/>`.
42
+
31
43
.. _php-lib-version-2.1:
32
44
33
45
What's New in 2.1
@@ -61,13 +73,13 @@ What's New in 2.0
61
73
62
74
- The following methods return ``void`` instead of the raw command
63
75
response:
64
-
76
+
65
77
- ``MongoDB\Client``: ``dropDatabase()``
66
78
- ``MongoDB\Collection``: ``drop()``, ``dropIndex()``,
67
79
``dropIndexes()``, ``dropSearchIndex()``, ``rename()``
68
80
- ``MongoDB\Database``: ``createCollection()``, ``drop()``,
69
81
``dropCollection()``, ``renameCollection()``
70
-
82
+
71
83
To learn more about breaking changes in this release, see the
72
84
:ref:`Version 2.0 Breaking Changes <php-v2-breaking-changes>` section
73
85
in the Upgrade Library Versions guide.
@@ -80,7 +92,7 @@ and removals:
80
92
- :phpmethod:`MongoDB\Client::getDatabase()`: alias for :phpmethod:`MongoDB\Client::selectDatabase()`
81
93
- :phpmethod:`MongoDB\Client::getCollection()`: alias for :phpmethod:`MongoDB\Client::selectCollection()`
82
94
- :phpmethod:`MongoDB\Database::getCollection()`: alias for :phpmethod:`MongoDB\Database::selectCollection()`
83
-
95
+
84
96
The ``Client::selectCollection()``, ``Client::selectDatabase()``, and
85
97
``Database::selectCollection()`` methods will be deprecated and
86
98
replaced by these new methods in a future driver release, so consider
@@ -177,7 +189,7 @@ improvements, and fixes:
177
189
more type-safe and organized way. To learn more, see the
178
190
:ref:`php-atlas-search` and :ref:`php-vector-search` guides.
179
191
180
- - Deprecates the ``flags`` option, used for the deprecated MMAPv1 storage engine.
192
+ - Deprecates the ``flags`` option, used for the deprecated MMAPv1 storage engine.
181
193
This option will be removed in {+library-short+} v2.0.
182
194
183
195
- Adds a sort option to the :phpmethod:`MongoDB\Collection::updateOne()`
@@ -189,7 +201,7 @@ improvements, and fixes:
189
201
190
202
- :phpmethod:`Database constructor <MongoDB\Database::__construct()>`
191
203
- :phpmethod:`MongoDB\Database::withOptions()`
192
- - :phpmethod:`Collection constructor <MongoDB\Collection::__construct()>`
204
+ - :phpmethod:`Collection constructor <MongoDB\Collection::__construct()>`
193
205
- :phpmethod:`MongoDB\Collection::withOptions()`
194
206
195
207
For more information about the changes in this version, see the
@@ -246,48 +258,48 @@ and was added to keep version parity with the {+extension-short+}.
246
258
What's New in 1.18
247
259
------------------
248
260
249
- - Adds a new GridFS API to make it more convenient to work with files using PHP's
250
- existing filesystem functions. The :phpmethod:`MongoDB\GridFS\Bucket::registerGlobalStreamWrapperAlias()`
251
- method may be used to register a global alias for a GridFS bucket. After
252
- doing so, files within that bucket can be accessed by using only a file URI
261
+ - Adds a new GridFS API to make it more convenient to work with files using PHP's
262
+ existing filesystem functions. The :phpmethod:`MongoDB\GridFS\Bucket::registerGlobalStreamWrapperAlias()`
263
+ method may be used to register a global alias for a GridFS bucket. After
264
+ doing so, files within that bucket can be accessed by using only a file URI
253
265
(e.g. "gridfs://mybucket/hello.txt"). A demonstration of this API can be found
254
- in the `gridfs_stream_wrapper.php <https://github.com/mongodb/mongo-php-library/blob/1.18.0/examples/gridfs_stream_wrapper.php>`__
266
+ in the `gridfs_stream_wrapper.php <https://github.com/mongodb/mongo-php-library/blob/1.18.0/examples/gridfs_stream_wrapper.php>`__
255
267
example script.
256
268
257
- - Adds :phpmethod:`MongoDB\Client::addSubscriber()` and
258
- :phpmethod:`MongoDB\Client::removeSubscriber()` methods to the
259
- ``MongoDB\Client`` class to make it easier to register monitoring classes
269
+ - Adds :phpmethod:`MongoDB\Client::addSubscriber()` and
270
+ :phpmethod:`MongoDB\Client::removeSubscriber()` methods to the
271
+ ``MongoDB\Client`` class to make it easier to register monitoring classes
260
272
scoped to the underlying ``MongoDB\Driver\Manager`` object.
261
273
262
- To learn more about this release, see the `v1.18 Release Notes
274
+ To learn more about this release, see the `v1.18 Release Notes
263
275
<https://github.com/mongodb/mongo-php-library/releases/tag/1.18.0>`__ on GitHub.
264
276
265
277
.. _php-lib-version-1.17:
266
278
267
279
What's New in 1.17
268
280
------------------
269
281
270
- - Introduces a new "codec" API for converting BSON to and from PHP objects.
271
- More information on this feature may be found in the
282
+ - Introduces a new "codec" API for converting BSON to and from PHP objects.
283
+ More information on this feature may be found in the
272
284
:ref:`Codecs tutorial <php-codecs>`.
273
285
274
- - Adds :phpmethod:`MongoDB\add_logger()` and
275
- :phpmethod:`MongoDB\remove_logger()` functions to the library.
286
+ - Adds :phpmethod:`MongoDB\add_logger()` and
287
+ :phpmethod:`MongoDB\remove_logger()` functions to the library.
276
288
These functions allow applications to register a `PSR-3 Logger <https://www.php-fig.org/psr/psr-3/>`__
277
- to receive log messages emitted by the driver. Previously, logs were only
278
- available through the extension's `mongodb.debug <https://www.php.net/manual/en/mongodb.configuration.php#ini.mongodb.debug>`__
289
+ to receive log messages emitted by the driver. Previously, logs were only
290
+ available through the extension's `mongodb.debug <https://www.php.net/manual/en/mongodb.configuration.php#ini.mongodb.debug>`__
279
291
``INI`` setting.
280
292
281
- - Introduces new :phpclass:`MongoDB\Collection` methods to create and manage
282
- Atlas Search indexes. Atlas Search indexes can be queried using the ``$search``
293
+ - Introduces new :phpclass:`MongoDB\Collection` methods to create and manage
294
+ Atlas Search indexes. Atlas Search indexes can be queried using the ``$search``
283
295
aggregation pipeline stage, which is supported in all versions of the library.
284
- To learn more about Atlas Search indexes and the specifics of the ``$search``
285
- aggregation stage, see the :atlas:`Atlas Search indexes </atlas-search>`
296
+ To learn more about Atlas Search indexes and the specifics of the ``$search``
297
+ aggregation stage, see the :atlas:`Atlas Search indexes </atlas-search>`
286
298
documentation and :manual:`$search </reference/operator/aggregation/search/>`.
287
299
288
- - Upgrades the ``mongodb`` extension requirement to 1.17.0. Support for PHP
300
+ - Upgrades the ``mongodb`` extension requirement to 1.17.0. Support for PHP
289
301
7.2 and 7.3 has been removed and the library now requires PHP 7.4 or newer.
290
302
291
- To learn more about this release, see the `v1.17 Release Notes
303
+ To learn more about this release, see the `v1.17 Release Notes
292
304
<https://github.com/mongodb/mongo-php-library/releases/tag/1.17.0>`__ on
293
305
GitHub.
0 commit comments