Release notes
*Sourced from [mongodb/mongodb's releases](https://github.com/mongodb/mongo-php-library/releases).*
> ## 1.5.1
> The PHP team is happy to announce that version 1.5.1 of the MongoDB PHP library is now available. This library is a high-level abstraction for the [`mongodb`](http://php.net/mongodb) extension.
>
> **Release Highlights**
>
> This release fixes passing an aggregation pipeline to update operations in a bulk write. The `distinct` helper in `MongoDB\Collection` now also correctly inherits the collection's type map when it wasn't passed using the `$options` argument.
>
> A complete list of resolved issues in this release may be found at:
> https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12483&version=24300
>
> **Documentation**
>
> Documentation for this library may be found at:
> https://docs.mongodb.com/php-library/
>
> **Feedback**
>
> If you encounter any bugs or issues with this library, please report them via this form:
> https://jira.mongodb.org/secure/CreateIssue.jspa?pid=12483&issuetype=1
>
> **Installation**
>
> This library may be installed or upgraded with:
>
> composer require mongodb/mongodb^1.5.1
>
> Installation instructions for the `mongodb` extension may be found in the [PHP.net documentation](http://php.net/manual/en/mongodb.installation.php).
>
> ## 1.5.0
> The PHP team is happy to announce that version 1.5.0 of the MongoDB PHP library is now available. This library is a high-level abstraction for the [`mongodb`](http://php.net/mongodb) extension. This release adds support for new features in [MongoDB 4.2](https://docs.mongodb.com/manual/release-notes/4.2/).
>
> **Release Highlights**
>
> Together with version 1.6.0 of the `mongodb` extension, this release allows running multi-document transactions on sharded clusters when connected to MongoDB 4.2.
>
> To make working with transactions easier, this release introduces a new, more convenient API for executing transactions. The new `MongoDB\with_transaction()` function takes a `MongoDB\Driver\Session` argument and a callback that will be run within a transaction for the given session. The function itself handles starting and committing the transaction, as well as handling any retryable errors that occur during the process.
>
> Change stream iterators now provide a `MongoDB\ChangeStream::getResumeToken()` method, which allows retrieving a token that can be used to resume the change stream after the current position. This token can be used with the `resumeAfter` option, as well as the new `startAfter` option introduced in MongoDB 4.2. The latter allows resuming a change stream after an "invalidate" event, such as dropping or renaming a collection.
>
> Update methods (e.g. `updateMany()`, `findOneAndUpdate()`) now support passing an aggregation pipeline for the `update` argument. This allows for more complex atomic updates than before. See [Update with an Aggregation Pipeline](https://docs.mongodb.com/master/reference/command/update/#update-with-an-aggregation-pipeline) in the MongoDB manual for more information on this new feature.
>
> This release adds compatibility with PHP 7.4 and drops support for PHP 5.5.
>
> This release upgrades the `mongodb` extension requirement to 1.6.0.
>
> A complete list of resolved issues in this release may be found at: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12483&version=21085
>
> **Documentation**
>
> Documentation for this library may be found at:
> ... (truncated)
Commits
- [`32cfb9b`](https://github.com/mongodb/mongo-php-library/commit/32cfb9bbd0bc60a5a13ca9eab7e4803226a5d4a7) Merge pull request [#688](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/688) from alcaeus/phplib-485
- [`f088c10`](https://github.com/mongodb/mongo-php-library/commit/f088c10d89b4f75de20222289fc49ae0cf2e2c13) PHPLIB-485: Inherit collection's typeMap in distinct
- [`b6b972c`](https://github.com/mongodb/mongo-php-library/commit/b6b972c209b03712cbc22db1412a034d290409de) Merge pull request [#684](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/684) from alcaeus/fix-bulkwrite-pipeline
- [`d44bd16`](https://github.com/mongodb/mongo-php-library/commit/d44bd1627340f176371cf1a1de166d8e21afd55a) PHPLIB-481: Add functional test for pipeline-style bulk updates
- [`738022d`](https://github.com/mongodb/mongo-php-library/commit/738022df054acc9ee235bd62f09bf47728b80011) PHPLIB-481: Remove duplicated bulk write tests
- [`d4b5e8d`](https://github.com/mongodb/mongo-php-library/commit/d4b5e8d9619416e81dae573f1a8f9c26beb10f1f) PHPLIB-481: Add the ability to specify a pipeline to an update within bulk write
- [`9a56bda`](https://github.com/mongodb/mongo-php-library/commit/9a56bda8c7fa80d62f88624c7e68714a46326d06) Merge pull request [#686](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/686)
- [`5fdf482`](https://github.com/mongodb/mongo-php-library/commit/5fdf4822677f8d2fa9881290864fed174a987d83) Revise Collection API section in upgrade guide
- [`09116d5`](https://github.com/mongodb/mongo-php-library/commit/09116d552f970242bbbff70b9b976eb5bb75bf90) Merge pull request [#685](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/685)
- [`8974bcf`](https://github.com/mongodb/mongo-php-library/commit/8974bcf5e0ecb91c65d4e964823efb12ab5f2b30) PHPLIB-455: Footnotes for upgrade guide BSON table
- Additional commits viewable in [compare view](https://github.com/mongodb/mongo-php-library/compare/1.4.3...1.5.1)
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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps mongodb/mongodb from 1.4.3 to 1.5.1.
Release notes
*Sourced from [mongodb/mongodb's releases](https://github.com/mongodb/mongo-php-library/releases).* > ## 1.5.1 > The PHP team is happy to announce that version 1.5.1 of the MongoDB PHP library is now available. This library is a high-level abstraction for the [`mongodb`](http://php.net/mongodb) extension. > > **Release Highlights** > > This release fixes passing an aggregation pipeline to update operations in a bulk write. The `distinct` helper in `MongoDB\Collection` now also correctly inherits the collection's type map when it wasn't passed using the `$options` argument. > > A complete list of resolved issues in this release may be found at: > https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12483&version=24300 > > **Documentation** > > Documentation for this library may be found at: > https://docs.mongodb.com/php-library/ > > **Feedback** > > If you encounter any bugs or issues with this library, please report them via this form: > https://jira.mongodb.org/secure/CreateIssue.jspa?pid=12483&issuetype=1 > > **Installation** > > This library may be installed or upgraded with: > > composer require mongodb/mongodb^1.5.1 > > Installation instructions for the `mongodb` extension may be found in the [PHP.net documentation](http://php.net/manual/en/mongodb.installation.php). > > ## 1.5.0 > The PHP team is happy to announce that version 1.5.0 of the MongoDB PHP library is now available. This library is a high-level abstraction for the [`mongodb`](http://php.net/mongodb) extension. This release adds support for new features in [MongoDB 4.2](https://docs.mongodb.com/manual/release-notes/4.2/). > > **Release Highlights** > > Together with version 1.6.0 of the `mongodb` extension, this release allows running multi-document transactions on sharded clusters when connected to MongoDB 4.2. > > To make working with transactions easier, this release introduces a new, more convenient API for executing transactions. The new `MongoDB\with_transaction()` function takes a `MongoDB\Driver\Session` argument and a callback that will be run within a transaction for the given session. The function itself handles starting and committing the transaction, as well as handling any retryable errors that occur during the process. > > Change stream iterators now provide a `MongoDB\ChangeStream::getResumeToken()` method, which allows retrieving a token that can be used to resume the change stream after the current position. This token can be used with the `resumeAfter` option, as well as the new `startAfter` option introduced in MongoDB 4.2. The latter allows resuming a change stream after an "invalidate" event, such as dropping or renaming a collection. > > Update methods (e.g. `updateMany()`, `findOneAndUpdate()`) now support passing an aggregation pipeline for the `update` argument. This allows for more complex atomic updates than before. See [Update with an Aggregation Pipeline](https://docs.mongodb.com/master/reference/command/update/#update-with-an-aggregation-pipeline) in the MongoDB manual for more information on this new feature. > > This release adds compatibility with PHP 7.4 and drops support for PHP 5.5. > > This release upgrades the `mongodb` extension requirement to 1.6.0. > > A complete list of resolved issues in this release may be found at: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12483&version=21085 > > **Documentation** > > Documentation for this library may be found at: > ... (truncated)Commits
- [`32cfb9b`](https://github.com/mongodb/mongo-php-library/commit/32cfb9bbd0bc60a5a13ca9eab7e4803226a5d4a7) Merge pull request [#688](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/688) from alcaeus/phplib-485 - [`f088c10`](https://github.com/mongodb/mongo-php-library/commit/f088c10d89b4f75de20222289fc49ae0cf2e2c13) PHPLIB-485: Inherit collection's typeMap in distinct - [`b6b972c`](https://github.com/mongodb/mongo-php-library/commit/b6b972c209b03712cbc22db1412a034d290409de) Merge pull request [#684](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/684) from alcaeus/fix-bulkwrite-pipeline - [`d44bd16`](https://github.com/mongodb/mongo-php-library/commit/d44bd1627340f176371cf1a1de166d8e21afd55a) PHPLIB-481: Add functional test for pipeline-style bulk updates - [`738022d`](https://github.com/mongodb/mongo-php-library/commit/738022df054acc9ee235bd62f09bf47728b80011) PHPLIB-481: Remove duplicated bulk write tests - [`d4b5e8d`](https://github.com/mongodb/mongo-php-library/commit/d4b5e8d9619416e81dae573f1a8f9c26beb10f1f) PHPLIB-481: Add the ability to specify a pipeline to an update within bulk write - [`9a56bda`](https://github.com/mongodb/mongo-php-library/commit/9a56bda8c7fa80d62f88624c7e68714a46326d06) Merge pull request [#686](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/686) - [`5fdf482`](https://github.com/mongodb/mongo-php-library/commit/5fdf4822677f8d2fa9881290864fed174a987d83) Revise Collection API section in upgrade guide - [`09116d5`](https://github.com/mongodb/mongo-php-library/commit/09116d552f970242bbbff70b9b976eb5bb75bf90) Merge pull request [#685](https://github-redirect.dependabot.com/mongodb/mongo-php-library/issues/685) - [`8974bcf`](https://github.com/mongodb/mongo-php-library/commit/8974bcf5e0ecb91c65d4e964823efb12ab5f2b30) PHPLIB-455: Footnotes for upgrade guide BSON table - Additional commits viewable in [compare view](https://github.com/mongodb/mongo-php-library/compare/1.4.3...1.5.1)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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)