Skip to content

Conversation

@comandeo-mongo
Copy link
Contributor

The MongoDB Ruby team is pleased to announce version 2.22.0 of the mongo gem - a pure-Ruby driver for connecting to, querying, and manipulating MongoDB databases. This is a new minor release in the 2.x series of MongoDB Ruby Driver.

Install this release using RubyGems via the command line as follows:

gem install -v 2.22.0 mongo

Or simply add it to your Gemfile:

gem 'mongo', '2.22.0'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

  • RUBY-3520 Sort option for updateOne and replaceOne (PR)

Bug Fixes

Copilot AI review requested due to automatic review settings November 19, 2025 12:51
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner November 19, 2025 12:51
@comandeo-mongo comandeo-mongo added the release-candidate Identifies PR's that represent potential new releases. label Nov 19, 2025
@comandeo-mongo comandeo-mongo requested a review from jamis November 19, 2025 12:51
Copilot finished reviewing on behalf of comandeo-mongo November 19, 2025 12:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR prepares the MongoDB Ruby driver for the 2.22.0 release by updating version numbers across the codebase. The minor version bump from 2.21.3 to 2.22.0 appropriately reflects the inclusion of new features (sort option for updateOne and replaceOne operations) and bug fixes (ArgumentError handling and SocketError handling).

  • Version number updated from 2.21.3 to 2.22.0 in both configuration and code files
  • Consistent version numbering following semantic versioning conventions
  • Prepares the gem for release with documented new features and bug fixes

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
product.yml Updates the product version metadata to 2.22.0
lib/mongo/version.rb Updates the VERSION constant to 2.22.0 for the gem

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-candidate Identifies PR's that represent potential new releases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants