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

# dotenv breaking changes

dotenv 3.0.0 (February 12, 2024) is its newest release with breaking changes, 6 of them. The first: dotenv 3.0.0 requires Ruby 3.0 or later. Every breaking API change we have recorded in dotenv on RubyGems: 16 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.2.0`. [Source repository](https://github.com/bkeepers/dotenv)

Its 3.0.0 release requires [Ruby 3.0](https://since.dev/calendar/ruby/3.0.md) or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 6 breaking changes in 1 version.
- From [0.3.0](#v-0-3-0) to [3.0.0](#v-3-0-0): 15 breaking changes in 7 versions.

## dotenv 3.0.0 breaking changes

dotenv 3.0.0, released February 12, 2024: 6 breaking changes.

- **Removed**  

Ruby versions before 3.0 are no longer supported. Stay on dotenv 2.x if you must use an older Ruby. [github.com](https://github.com/bkeepers/dotenv/releases/tag/v3.0.0)
- **Renamed** `dotenv.load`  

The ActiveSupport::Notifications event dotenv.load is now load.dotenv. Update any subscribers using the old name. [github.com](https://github.com/bkeepers/dotenv/releases/tag/v3.0.0)
- **Behavior changed**  

ENV is now restored automatically in ActiveSupport::TestCase and RSpec tests. Tests that rely on ENV changes persisting between tests will behave differently. [github.com](https://github.com/bkeepers/dotenv/releases/tag/v3.0.0)
- **Behavior changed**  

A literal \\n in quoted values is no longer expanded into a newline. Use real line breaks, or set DOTENV_LINEBREAK_MODE=legacy to keep the old behavior. [github.com](https://github.com/bkeepers/dotenv/releases/tag/v3.0.0)
- **Behavior changed** `Dotenv.Rails.overload`  

Files now overwrite in the order .env.development.local, .env.local, .env.development, then .env. Check code that depends on the previous precedence. [github.com](https://github.com/bkeepers/dotenv/releases/tag/v3.0.0)
- **Configuration changed**  

Rails versions before 6.1 are no longer supported. Lock dotenv to \~> 2.0 if you use an older Rails. [github.com](https://github.com/bkeepers/dotenv/releases/tag/v3.0.0)

## dotenv 2.0.0 breaking changes

dotenv 2.0.0, released March 5, 2015: 1 breaking change.

- **Removed**  

Official support for Ruby 1.8.7 and REE ended; they may still work but are untested. Ruby 1.8 users must lock dotenv to version <= 1.1. [github.com](https://github.com/bkeepers/dotenv/blob/v2.0.0/Changelog.md)

## dotenv 1.0.0 breaking changes

dotenv 1.0.0, released October 3, 2014: 3 breaking changes.

- **Removed**  

Deprecated features were removed in 1.0.0. Upgrade to 0.11.0 and fix the deprecation warnings before moving to 1.0.0. [github.com](https://github.com/bkeepers/dotenv/blob/v1.0.0/Changelog.md)
- **Behavior changed**  

Variable substitutions are no longer applied to values inside single quotes in .env files. [github.com](https://github.com/bkeepers/dotenv/blob/v1.0.0/Changelog.md)
- **Behavior changed**  

The .env file is now located using Rails.root instead of the previous lookup. [github.com](https://github.com/bkeepers/dotenv/blob/v1.0.0/Changelog.md)

## dotenv 0.11.0 breaking changes

dotenv 0.11.0, released April 22, 2014: 1 breaking change.

- **Removed**  

The dotenv-deployment functionality was moved out of the dotenv gem into its own dotenv-deployment gem. Code that relied on it must add that gem. [github.com](https://github.com/bkeepers/dotenv/blob/v0.11.0/Changelog.md)

## dotenv 0.8.0 breaking changes

dotenv 0.8.0, released June 12, 2013: 2 breaking changes.

- **Behavior changed**  

Text after a # on a variable line is now treated as a comment, so values containing # after a space will be cut short. Quote values that contain #. [github.com](https://github.com/bkeepers/dotenv/blob/v0.8.0/Changelog.md)
- **Behavior changed** `Dotenv.FormatError`  

When parsing a .env file fails, the library now raises Dotenv::FormatError. Code that loads .env files should rescue this error. [github.com](https://github.com/bkeepers/dotenv/blob/v0.8.0/Changelog.md)

## dotenv 0.7.0 breaking changes

dotenv 0.7.0, released April 15, 2013: 1 breaking change.

- **Removed**  

The deprecated autoloading behavior was removed. Upgrade to 0.6 first and fix any warnings before moving to this version. [github.com](https://github.com/bkeepers/dotenv/blob/v0.7.0/Changelog.md)

## Older versions

2 older versions.

### dotenv 0.5.0 breaking changes

dotenv 0.5.0, released January 25, 2013: 1 breaking change.

- **Behavior changed**  

Dotenv now loads .env files as soon as it is required in Rails rather than waiting for Rails initialization. Code that depends on the later load timing may need to be adjusted. [github.com](https://github.com/bkeepers/dotenv/blob/v0.5.0/Changelog.md)

### dotenv 0.3.0 breaking changes

dotenv 0.3.0, released October 25, 2012: 1 breaking change.

- **Behavior changed**  

Values already set in ENV before the app loads are now kept instead of being replaced by values from the .env file. Code that relied on .env values overriding ENV must set them differently. [github.com](https://github.com/bkeepers/dotenv/blob/v0.3.0/Changelog.md)

## Related packages

- [dotenv-rails](https://since.dev/packages/gem/dotenv-rails.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.
