Skip to content

Update dependency mongodb/mongodb to v2 #380

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 1, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongodb/mongodb (source) ^1.20.0 -> ^2.0.0 age adoption passing confidence

Release Notes

mongodb/mongo-php-library (mongodb/mongodb)

v2.1.0

Compare Source

The PHP team is happy to announce that version 2.1.0 of the MongoDB PHP library is now available.

Release Highlights

This release introduces the new Client::bulkWrite() method using the bulkWrite command added in MongoDB 8.0 and supported by mongodb extension v2.1.0. Support for MongoDB 4.0 has been removed.

A complete list of resolved issues in this release may be found in JIRA.

Documentation

Documentation for this library may be found in the PHP Library Manual, including the new Client Bulk Write.

Installation

This library may be installed or upgraded with:

composer require mongodb/mongodb:2.1.0

Installation instructions for the mongodb extension may be found in the PHP.net documentation.

v2.0.0

Compare Source

The PHP team is happy to announce that version 2.0.0 of the MongoDB PHP library is now available.

Release Highlights

  • PHP Driver Major Release 2.0: This is a major release that introduces numerous changes and improvements across the library.
  • Aggregation Builder Enhancement: Now allows passing an Aggregation Builder Pipeline directly to the aggregate method.
  • Cursor Interface: Replaced the Cursor type hints with CursorInterface for better extensibility and compatibility.
  • Removed Deprecated Methods: Methods and constants have been removed, ensuring cleaner and more streamlined code.

A complete list of resolved issues in this release may be found in JIRA.

New Features and Enhancements
  • Aggregation Builder: The aggregate method now supports passing an aggregation builder Pipeline for more flexible and readable queries. (PHPLIB-1617).
  • Cursor Interface: Type hints for cursor-related functionality have been replaced by CursorInterface to allow more flexibility for custom cursor implementations. (PHPLIB-1114).
Deprecated and Removed Features
  • GridFS Deprecated Fields: GridFS fields (md5, contentType, aliases) have been removed, which may affect older implementations. (PHPLIB-1218).
  • Removed Watch::FULL_DOCUMENT_DEFAULT Constant: The FULL_DOCUMENT_DEFAULT constant in Watch has been removed (PHPLIB-818).
  • Deprecated Find Options Removed: Various deprecated Find options have been removed as part of streamlining the API (PHPLIB-1511).
  • Removal of mapReduce Helper: The mapReduce helper has been removed from Collection due to its deprecation in favor of other aggregation methods (PHPLIB-1513).
  • Removal of autoIndexId Option: The autoIndexId option has been removed from CreateCollection, simplifying collection creation (PHPLIB-1159).
Compatibility Updates
  • MongoDB Extension 2.0: This release requires MongoDB extension version 2.0.0 or higher.
  • PHP 8.1+ Required: The minimum required PHP version is now 8.1, as support for older versions (PHP 7.4 and 8.0) has been dropped.
  • MongoDB 4.2+ Required: Future versions of the library will require MongoDB 4.2 or later. MongoDB 4.0 support is deprecated.

Documentation

Documentation for this library may be found in the PHP Library Manual.

Installation

This library may be installed or upgraded with:

composer require mongodb/mongodb:2.0.0

Installation instructions for the mongodb extension may be found in the PHP.net documentation.


Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

codecov bot commented May 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.43%. Comparing base (9cce090) to head (c3a17b0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #380   +/-   ##
=======================================
  Coverage   94.43%   94.43%           
=======================================
  Files          40       40           
  Lines        1061     1061           
=======================================
  Hits         1002     1002           
  Misses         59       59           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot changed the title Update dependency mongodb/mongodb to v2 Update dependency mongodb/mongodb to v2 - autoclosed May 28, 2025
@renovate renovate bot closed this May 28, 2025
@renovate renovate bot deleted the renovate/mongodb-mongodb-2.x branch May 28, 2025 15:30
@renovate renovate bot changed the title Update dependency mongodb/mongodb to v2 - autoclosed Update dependency mongodb/mongodb to v2 Jun 1, 2025
@renovate renovate bot reopened this Jun 1, 2025
@renovate renovate bot force-pushed the renovate/mongodb-mongodb-2.x branch from 4bb39ab to c3a17b0 Compare June 1, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants