---
title: "mongo 2.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each mongo release removed, renamed or changed: 13 breaking changes in 3 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/mongo
last_updated: 2026-12-04
---

# 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

Latest version `2.26.2`, released November 19, 2026. [Source repository](https://github.com/mongodb/mongo-ruby-driver)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [1.0](#v-1-0) to [2.0.0](#v-2-0-0): 1 breaking change in 1 version.
- From [0.20](#v-0-20) to [2.0.0](#v-2-0-0): 3 breaking changes in 2 versions.

## mongo 2.0.0 breaking changes

mongo 2.0.0, released March 25, 2015: 1 breaking change.

- **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](https://github.com/mongodb/mongo-ruby-driver/releases/tag/2.0.0)

## mongo 1.0 breaking changes

mongo 1.0, released April 29, 2010: 2 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](https://github.com/mongodb/mongo-ruby-driver/releases/tag/1.0)
- **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](https://github.com/mongodb/mongo-ruby-driver/releases/tag/1.0)

## mongo 0.20 breaking changes

mongo 0.20, released April 7, 2010: 10 breaking changes.

- **Removed**  

The mongo_ext component is removed; BSON code now lives in the separate bson and bson_ext gems. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Removed** `GridStore`  

The deprecated GridStore class is gone in 0.20. Use GridFS through Grid instead. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Removed** `RegexpOfHolding`  

The deprecated RegexpOfHolding class is removed in 0.20. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Renamed** `Binary`  

BSON::Binary replaces the previous top-level type name. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Renamed** `Mongo.InvalidDocument`  

The exception moved to the bson gem under the BSON namespace. Update rescue clauses and references. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Renamed** `Mongo.InvalidName`  

Mongo::InvalidName is replaced by Mongo::InvalidNSName and BSON::InvalidKeyName, depending on the case. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Renamed** `Mongo.InvalidObjectID`  

The exception moved to the bson gem under the BSON namespace. Update rescue clauses and references. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Renamed** `Mongo.InvalidStringEncoding`  

The exception moved to the bson gem under the BSON namespace. Update rescue clauses and references. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Behavior changed**  

Indexes created on the GridFS chunks collection are unique now. Existing chunks collections may need cleanup. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)
- **Behavior changed** `Connection.paired`  

Paired connections must now be initialized with Connection.paired. [github.com](https://github.com/mongodb/mongo-ruby-driver/releases/tag/0.20)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
