mongo breaking changes
mongo 2.0.0 (March 25, 2015) is its newest release with breaking changes. The first: Driver rewritten with no backwards compatibility in mongo 2.0.0. Every breaking API change we have recorded in mongo on RubyGems: 13 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.26.2, released November 19, 2026. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 1.0 to 2.0.0: 1 breaking change in 1 version.
- From 0.20 to 2.0.0: 3 breaking changes in 2 versions.
mongo 2.0.0 breaking changes
- Behavior changed
The 2.0.0 release is a rewrite that provides no backwards compatibility with earlier versions. Code must be updated to the new documented API. github.com
mongo 1.0 breaking changes
- Removed
Grid.put
The deprecated Grid#put calling syntax is removed, and the filename argument is no longer required. Code using the old syntax must be updated. github.com - Behavior changed
ObjectID
An inspected ObjectID is now shown in MongoDB extended JSON format. Code that parses the inspect output may need updating. github.com
mongo 0.20 breaking changes
- Removed
The mongo_ext component is removed; BSON code now lives in the separate bson and bson_ext gems. github.com - Removed
GridStore
The deprecated GridStore class is gone in 0.20. Use GridFS through Grid instead. github.com - Removed
RegexpOfHolding
The deprecated RegexpOfHolding class is removed in 0.20. github.com - Renamed
Binary
BSON::Binary replaces the previous top-level type name. github.com - Renamed
Mongo.InvalidDocument
The exception moved to the bson gem under the BSON namespace. Update rescue clauses and references. github.com - Renamed
Mongo.InvalidName
Mongo::InvalidName is replaced by Mongo::InvalidNSName and BSON::InvalidKeyName, depending on the case. github.com - Renamed
Mongo.InvalidObjectID
The exception moved to the bson gem under the BSON namespace. Update rescue clauses and references. github.com - Renamed
Mongo.InvalidStringEncoding
The exception moved to the bson gem under the BSON namespace. Update rescue clauses and references. github.com - Behavior changed
Indexes created on the GridFS chunks collection are unique now. Existing chunks collections may need cleanup. github.com - Behavior changed
Connection.paired
Paired connections must now be initialized with Connection.paired. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.