-
Notifications
You must be signed in to change notification settings - Fork 34
DOCSP-41991 What's New #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
265476f
13ff962
99c571d
de61ae1
122f58f
c4b9611
83aa662
f3de45a
d6803c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _api-mongodb-collection-class: | ||
|
||
========================= | ||
MongoDB\\Collection Class | ||
========================= | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _api-add-logger: | ||
|
||
===================== | ||
MongoDB\\add_logger() | ||
===================== | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _api-remove-logger: | ||
|
||
======================== | ||
MongoDB\\remove_logger() | ||
======================== | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,14 @@ | |
|
||
* :ref:`Version 1.20 <php-lib-version-1.20>` | ||
|
||
* :ref:`Version 1.18 <php-lib-version-1.18>` | ||
|
||
* :ref:`Version 1.17 <php-lib-version-1.17>` | ||
|
||
* :ref:`Version 1.16 <php-lib-version-1.16>` | ||
|
||
* :ref:`Version 1.15 <php-lib-version-1.15>` | ||
|
||
.. _php-lib-version-1.20: | ||
|
||
What's New in 1.20 | ||
|
@@ -32,4 +40,89 @@ | |
Support for MongoDB Server v3.6 is removed in this release of the | ||
library. | ||
|
||
- Adds support for MongoDB Server v8.0. | ||
- Adds support for MongoDB Server v8.0. | ||
|
||
.. _php-lib-version-1.18: | ||
|
||
What's New in 1.18 | ||
------------------ | ||
|
||
- Adds a new GridFS API to make it more convenient to work with files using PHP's | ||
existing filesystem functions. The :ref:`MongoDB\GridFS\Bucket::registerGlobalStreamWrapperAlias() <api-gridfs-bucket-register-global>` | ||
method may be used to register a global alias for a GridFS bucket. After | ||
doing so, files within that bucket can be accessed using only a file URI | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
(e.g. "gridfs://mybucket/hello.txt"). A demonstration of this API can be found | ||
in the `gridfs_stream_wrapper.php <https://github.com/mongodb/mongo-php-library/blob/1.18.0/examples/gridfs_stream_wrapper.php>`__ | ||
example script. | ||
|
||
- Adds :ref:`addSubscriber() <api-client-add-subscriber>` and | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
:ref:`removeSubscriber()<api-client-remove-subscriber>` methods to the | ||
``MongoDB\Client`` class to make it easier to register monitoring classes | ||
on the underlying ``MongoDB\Driver\Manager`` object. | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
To learn more about this release, see the `v1.18 Release Notes | ||
<https://github.com/mongodb/mongo-php-library/releases/tag/1.18.0>`__ on GitHub. | ||
|
||
.. _php-lib-version-1.17: | ||
|
||
What's New in 1.17 | ||
------------------ | ||
|
||
- Introduces a new "codec" API for converting BSON to and from PHP objects. | ||
More information on this feature may be found in the | ||
:ref:`Codecs tutorial <php-codecs>`. | ||
|
||
- Adds :ref:`MongoDB\add_logger() <api-add-logger>` and | ||
:ref:`MongoDB\remove_logger() <api-remove-logger>` functions to the library. | ||
These functions allow applications to register a `PSR-3 Logger <https://www.php-fig.org/psr/psr-3/>`__ | ||
to receive log messages emitted by the driver. Previously, logs were only | ||
accessible via the extension's `mongodb.debug <https://www.php.net/manual/en/mongodb.configuration.php#ini.mongodb.debug>`__ | ||
Check failure on line 79 in source/whats-new.txt
|
||
INI setting. | ||
|
||
- Introduces new :ref:`MongoDB\Collection <api-mongodb-collection-class>` methods | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
to create and manage :atlas:`Atlas Search indexes </atlas-search>`. Atlas | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. S: since this link takes readers out of the PHP docs, I'd clarify where the link is going. You could remove the link here and add a sentence to the end of this bullet point ("To learn more about Atlas Search indexes, see the :atlas:`Atlas Search documentation `.") There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Applies to all inline links that go to the Atlas/server docs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! What do you think of changes? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks good! |
||
Search indexes can be queried using the :manual:`$search </reference/operator/aggregation/search/>` | ||
aggregation pipeline stage, which is supported in all versions of the library. | ||
|
||
- Upgrades the ``mongodb`` extension requirement to 1.17.0. Support for PHP | ||
7.2 and 7.3 has been removed and the library now requires PHP 7.4 or newer. | ||
|
||
To learn more about this release, see the `v1.17 Release Notes | ||
<https://github.com/mongodb/mongo-php-library/releases/tag/1.17.0>`__ on GitHub. | ||
|
||
.. _php-lib-version-1.16: | ||
|
||
What's New in 1.16 | ||
------------------ | ||
|
||
- Introduces support for :v7.0:`MongoDB 7.0 </release-notes/7.0>`. | ||
|
||
- Introduces :ref:`MongoDB\Database::createEncryptedCollection() <api-database-create-encrypted>`. | ||
This method automatically creates data encryption keys when creating a new | ||
encrypted collection. | ||
|
||
- This release upgrades the ``mongodb`` extension requirement to 1.16.0. | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
To learn more about this release, see the `v1.16 Release Notes | ||
<https://github.com/mongodb/mongo-php-library/releases/tag/1.16.0>`__ on GitHub. | ||
|
||
.. _php-lib-version-1.15: | ||
|
||
What's New in 1.15 | ||
------------------ | ||
|
||
- Adds new ``examples/`` and ``tools/`` directories to library repository, | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
which contain code snippets and scripts that may prove useful when writing | ||
or debugging applications, respectively. These directories are intended to | ||
Check failure on line 116 in source/whats-new.txt
|
||
supplement the library's existing documentation, and will be added to over time. | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- Various backwards compatible typing improvements have been made throughout the | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
library. Downstream impact for these changes are discussed in | ||
`UPGRADE-1.15.md <https://github.com/mongodb/mongo-php-library/blob/1.15.0/UPGRADE-1.15.md>`__. | ||
|
||
- Integrates `Psalm <https://psalm.dev/>`__ for static analysis. | ||
|
||
- This release upgrades the ``mongodb`` extension requirement to 1.15.0. | ||
lindseymoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
To learn more about this release, see the `v1.15 Release Notes | ||
<https://github.com/mongodb/mongo-php-library/releases/tag/1.15.0>`__ on GitHub. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: you can use the mdb-server constant here (applies to all mentions of MongoDB Server):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are constants helpful? Does it help with load speeds? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I missed this question, but I think it just helps with consistency (if a product name or syntax changes we wouldn't have to fix it multiple times, for example). Not sure about load speeds but that would make sense.