Skip to content

Conversation

@jamis
Copy link
Contributor

@jamis jamis commented Nov 24, 2025

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

@jamis jamis requested a review from a team as a code owner November 24, 2025 18:27
Copilot AI review requested due to automatic review settings November 24, 2025 18:27
@jamis jamis added the release-candidate Identifies PR's that represent potential new releases. label Nov 24, 2025
@jamis jamis requested a review from comandeo-mongo November 24, 2025 18:28
Copilot finished reviewing on behalf of jamis November 24, 2025 18:29
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, which includes a new feature for sort options in updateOne/replaceOne operations and bug fixes for server state handling and socket error management.

  • Adds trailing newline to product.yml for consistency with YAML formatting standards
  • Version 2.22.0 is properly configured in version files
  • No functional code changes in the diff

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

@jamis
Copy link
Contributor Author

jamis commented Nov 24, 2025

When #2962 was merged, the release infrastructure was pointing at a defunct fork of drivers-github-tools. The release code has been updated, but in order to get the release automation to do its thing, we needed an empty change so we could create a new PR.

@jamis jamis merged commit 0b3078e into mongodb:master Nov 24, 2025
169 of 174 checks passed
@jamis jamis deleted the rc-2.22.0-2 branch November 24, 2025 21:25
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