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

# bundler breaking changes

bundler 4.0.0 (December 3, 2025) is its newest release with breaking changes, 23 of them. The first: Removes support for multiple global sources in bundler 4.0.0. Every breaking API change we have recorded in bundler on RubyGems: 28 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.1.1`, released November 25, 2026. [Source repository](https://github.com/ruby/rubygems)

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

- From [2.0.0](#v-2-0-0) to [4.0.0](#v-4-0-0): 23 breaking changes in 1 version.

## bundler 4.0.0 breaking changes

bundler 4.0.0, released December 3, 2025: 23 breaking changes.

- **Removed**  

Gemfiles and lockfiles with multiple global sources no longer work. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed**  

These entrypoints are no longer implemented. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed**  

Bundler no longer remembers previously passed CLI flags. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `allow_offline_install`  

Remove any configuration that sets allow_offline_install. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `bundle inject`  

The command is gone. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `bundle viz`  

The command is gone. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `bundler_4_mode`  

The bundler_4_mode option is gone. Remove any code that sets it. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `Bundler.environment`  

Code calling these helpers will no longer work. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `Bundler.feature_flag.plugins?`  

Use Bundler.settings instead. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `Bundler.rubygems.all_specs`  

Code calling Bundler.rubygems.all_specs will no longer work. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `Bundler.SharedHelpers.major_deprecation`  

Use feature_removed! or feature_deprecated! instead. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `Bundler.SpecSet.-`  

Code using SpecSet#- will no longer work. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Removed** `Bundler.SpecSet.<<`  

Code using SpecSet#<< will no longer work. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Behavior changed**  

The lockfile no longer includes the Ruby patchlevel. Tools that read it may need updating. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Behavior changed**  

Generated lockfiles use different spacing. Tools that parse or diff the lockfile may need updating. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Behavior changed** `bundle install --binstubs`  

The flag now fails instead of running. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Behavior changed** `bundle remove --install`  

The flag now fails instead of running. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Behavior changed** `bundle show --outdated`  

The command fails instead of running. Use bundle show --verbose instead. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Default changed** `cache_all`  

Bundler now caches gems by default. Set cache_all to false to keep the old behavior. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Default changed** `lockfile_checksums`  

Lockfiles now include checksums by default. Set lockfile_checksums to false to keep the old behavior. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Configuration changed** `default cli command settings`  

Default command settings are now read from Bundler settings. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Configuration changed** `global_gem_cache`  

The flag is now read from Bundler settings rather than a flag. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)
- **Configuration changed** `update_requires_all_flag`  

The flag is now read from Bundler settings rather than a flag. [github.com](https://github.com/ruby/rubygems/releases/tag/bundler-v4.0.0)

## bundler 2.0.0 breaking changes

bundler 2.0.0, released January 3, 2019: 5 breaking changes.

- **Removed**  

Bundler 2.0.0 no longer supports Ruby versions below 2.3. Run it on Ruby 2.3 or later. [github.com](https://github.com/rubygems/bundler/releases/tag/v2.0.0)
- **Removed**  

Bundler 2.0.0 no longer supports RubyGems versions below 3.0.0. Upgrade RubyGems before using Bundler 2. [github.com](https://github.com/rubygems/bundler/releases/tag/v2.0.0)
- **Behavior changed**  

Bundler now switches between major versions 1 and 2 according to the Lockfile instead of always using the installed version. [github.com](https://github.com/rubygems/bundler/releases/tag/v2.0.0)
- **Behavior changed**  

Bundler now prints error messages to STDERR. Scripts that read error output from STDOUT must read STDERR instead. [github.com](https://github.com/rubygems/bundler/releases/tag/v2.0.0)
- **Default changed** `:github`  

Git sources declared with the :github shorthand in the Gemfile now use HTTPS by default instead of the previous protocol. [github.com](https://github.com/rubygems/bundler/releases/tag/v2.0.0)

## Related packages

- [rubygems-update](https://since.dev/packages/gem/rubygems-update.md)

## 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.
