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

# deepl-rb breaking changes

deepl-rb 4.0.0 (November 24, 2026) is its newest release with breaking changes, 44 of them. The first: deepl-rb 4.0.0 requires Ruby 3.0 or later. Every breaking API change we have recorded in deepl-rb on RubyGems: 44 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 24, 2026. [Source repository](https://github.com/DeepLcom/deepl-rb)

Its 4.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).

## deepl-rb 4.0.0 breaking changes

deepl-rb 4.0.0, released November 24, 2026: 44 breaking changes.

- **Removed**  

The gem now requires Ruby 3.0 or later. On Ruby 2.x, upgrade Ruby or stay on deepl-rb 3.x. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed**  

Set additional headers with the headers: option of DeepL::Client.new instead. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `DeepL.configure`  

DeepL.configure, configuration, api, http_client and with_session are gone. Create a DeepL::Client instead. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `DeepL.languages`  

Use DeepL::Client#get_source_languages or #get_target_languages instead. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `DeepL.Resources.ConfiguredRules`  

StyleRule#configured_rules now returns a hash. Read the categories from the hash. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `DeepL.Resources.Usage.character_count`  

Use character.count, character.limit and character.limit_reached? instead. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `DeepL.Resources.Usage.document`  

The API no longer returns document and team_document usage data. Drop these reads. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `DeepL.translate`  

Use DeepL::Client#translate_text, which returns an array for an array of texts. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `DeepL.usage`  

Use DeepL::Client#get_usage instead. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `glossary_id`  

Use glossary instead, which takes the glossary ID or a glossary object. glossary_id now raises ArgumentError. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Removed** `TranslationMemoryJobResult.STATUS_DOWNLOADED`  

The downloaded status is not an API status, so finished? is now false for it and polling continues. Compare with STATUS_COMPLETED or call done? instead. [github.com](https://github.com/DeepL/deepl-rb/commit/e97300f41f3bf1b1a762524ec58352d3a17926b1)
- **Removed** `Usage.any_limit_reached?`  

Use any_character_limit_reached? instead; it checks only the account and API key character limits. [github.com](https://github.com/DeepL/deepl-rb/commit/b28a7d9ca237829fe909955a2194d899b9eb1450)
- **Removed** `Usage.document`  

Document fields in a usage response are now ignored, so Usage#document no longer exists. [github.com](https://github.com/DeepL/deepl-rb/commit/b28a7d9ca237829fe909955a2194d899b9eb1450)
- **Removed** `Usage.team_document`  

Document fields in a usage response are now ignored, so Usage#team_document no longer exists. [github.com](https://github.com/DeepL/deepl-rb/commit/b28a7d9ca237829fe909955a2194d899b9eb1450)
- **Renamed** `DeepL.Resources.Usage.any_limit_reached?`  

The old method name is replaced. Rename the call; check speech minute limits with limit_reached? directly. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed**  

A proxy URL with an empty host or a proxy hash with a blank proxy_addr now raises ArgumentError when the client is built. Use a proxy with a real host. [github.com](https://github.com/DeepL/deepl-rb/commit/b7a9ea00f5e7ca8bf0afa660d8e054542101298c)
- **Behavior changed**  

Import files with an invalid name, length or content are now rejected before the request is sent. [github.com](https://github.com/DeepL/deepl-rb/commit/a4f8db1f0695d74bf1ba0d71908453b3d82ccf88)
- **Behavior changed**  

Empty translation memory and job IDs, empty storage URLs and an export job without a download URL are now rejected with ArgumentError. [github.com](https://github.com/DeepL/deepl-rb/commit/a98b9efa70fdd32a15cc614cd8e6853ae913728e)
- **Behavior changed**  

Resource-creating requests are retried only when the request was not processed. Check first whether a resource was created before retrying yourself. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed**  

Empty spoken terms, style rule and custom instruction IDs, style rule names, languages, labels and prompts now raise ArgumentError before any request. [github.com](https://github.com/DeepL/deepl-rb/commit/798700bc64b07697118833e8cbd040b01ea6b96e)
- **Behavior changed**  

A cut-off response body on a create request now raises ConnectionError with should_retry? true instead of false. [github.com](https://github.com/DeepL/deepl-rb/commit/d93f311aecb2429ff8903ae91d39b16a23b968b0)
- **Behavior changed**  

AuthorizationFailed, RequestEntityTooLarge, LimitExceeded, QuotaExceeded and ServerError append the API's message to their text. The 413 text no longer mentions 50 text parts, so code matching on messages may need changes. [github.com](https://github.com/DeepL/deepl-rb/commit/f63935d22a04ca565d02aa0870367bb74bce001b)
- **Behavior changed**  

Any option a request class does not declare now raises ArgumentError before a request is sent. Use extra_body_parameters: for fields the SDK does not model. [github.com](https://github.com/DeepL/deepl-rb/commit/b1348ac51b96aa7fc9cdb2999d20afb82e40878e)
- **Behavior changed**  

A proxy URL with any scheme other than http or https, or with no scheme, now raises ArgumentError at construction. An https proxy is now connected to over TLS and needs an https server URL. [github.com](https://github.com/DeepL/deepl-rb/commit/ddd153c78f74ffcd32d960212908848c9e8d2ed2)
- **Behavior changed**  

Creates are now retried only after HTTP 429, DNS errors, refused connections and connection timeouts. A 5xx reply now raises ServerError with should_retry? false. [github.com](https://github.com/DeepL/deepl-rb/commit/fc2269ba68d63ad5bdd124158f2d9a36d81d6304)
- **Behavior changed**  

An empty glossary ID, name, dictionary language, dictionary list or dictionary entries now raises ArgumentError before any request. [github.com](https://github.com/DeepL/deepl-rb/commit/4c30618d6ef286d7f15f594c3a31694f925adb9b)
- **Behavior changed** `DeepL.AdminClient.set_developer_key_usage_limits`  

Only characters:, speech_to_text_milliseconds: and speech_to_speech_milliseconds: are accepted. Fix misspelled limits. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed** `DeepL.Client.new`  

Other proxy schemes and proxy URLs without a host now raise ArgumentError. Use http:// for a plain HTTP proxy. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed** `DeepL.Client.translate_document_download`  

translate_document_download raises Errno::EEXIST if the output file exists. Delete the file first or pass a new path. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed** `DeepL.Client.translate_text`  

translate_text raises ArgumentError for an empty string, empty array or array with an empty string. Drop empty texts before the call. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed** `DeepL.Exceptions.ValidationError`  

Rescue ArgumentError or ValidationError instead of DeepL::Exceptions::Error for these errors. It no longer has http_status_code or should_retry?. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed** `DeepL.Resources.StyleRule.configured_rules`  

It now returns the raw hash from the API with string keys. Replace configured_rules.numbers with configured_rules.fetch('numbers', {}). [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Behavior changed** `download_translation_memory_export`  

An existing output file or an unusable output directory now raises an Errno error before any request is sent. [github.com](https://github.com/DeepL/deepl-rb/commit/ad2f8b2092224378cf4aa878f93bfc46546cf51f)
- **Behavior changed** `export_translation_memory_to_filepath`  

Failures other than a missing input file are now raised as TranslationMemoryJobError instead of their original error class. Code rescuing the original errors must rescue TranslationMemoryJobError. [github.com](https://github.com/DeepL/deepl-rb/commit/1145faa7676cbc574b1442b4418e97a65f52410d)
- **Behavior changed** `import_translation_memory_from_filepath`  

Failures other than a missing input file are now raised as TranslationMemoryJobError instead of their original error class. Code rescuing the original errors must rescue TranslationMemoryJobError. [github.com](https://github.com/DeepL/deepl-rb/commit/1145faa7676cbc574b1442b4418e97a65f52410d)
- **Behavior changed** `rephrase_text`  

Empty texts now raise ArgumentError before any request is sent. [github.com](https://github.com/DeepL/deepl-rb/commit/8c3758aae808b09e7bd74d38ba0354ed1f0fc4e9)
- **Behavior changed** `StyleRule.configured_rules`  

It returns the configured rules as the API sends them, with string keys, instead of a ConfiguredRules object. Replace readers like configured_rules.numbers with configured_rules.fetch('numbers', {}). [github.com](https://github.com/DeepL/deepl-rb/commit/8a19c6989767b186940e00d914aed43b1adc1bbe)
- **Behavior changed** `translate_document_download`  

An existing output file or an unusable output directory now raises an Errno error before any request is sent. [github.com](https://github.com/DeepL/deepl-rb/commit/ad2f8b2092224378cf4aa878f93bfc46546cf51f)
- **Behavior changed** `translate_text`  

Empty texts now raise ArgumentError before any request is sent. [github.com](https://github.com/DeepL/deepl-rb/commit/8c3758aae808b09e7bd74d38ba0354ed1f0fc4e9)
- **Behavior changed** `TranslationMemoryJobError`  

job_id is set as soon as the import or export job is created. job is the last status fetched by the helper and is nil before the first status check. [github.com](https://github.com/DeepL/deepl-rb/commit/d1b9bad603edea2ecfcc46bd76e04b73df6fa708)
- **Behavior changed** `Usage.any_limit_reached?`  

It can now return true where it returned false before, because an API Pro key's own character limit is included. Callers needing the old result should check character, document and team_document with limit_reached?. [github.com](https://github.com/DeepL/deepl-rb/commit/4f91861560c936a0e1550dc3bc2720200a17dcc2)
- **Behavior changed** `ValidationError`  

Invalid glossary and spoken terms and malformed glossary entries now raise an ArgumentError. Code that rescues ArgumentError now catches them. [github.com](https://github.com/DeepL/deepl-rb/commit/89bcd9b79f3a21eec43db2b8a4cb82ee276cfe33)
- **Default changed** `DeepL.Client.new`  

Passing nil for max_retries, timeout or send_platform_info now uses the default instead of nil behavior. Pass send_platform_info: false to leave platform info out. [github.com](https://github.com/DeepL/deepl-rb/releases/tag/v4.0.0)
- **Signature changed** `download_translation_memory_export`  

The method now accepts only a TranslationMemoryJob. Pass the job returned by wait_until_translation_memory_job_done instead of its download URL. [github.com](https://github.com/DeepL/deepl-rb/commit/3a2d01e989a38da8c99c5040ef9d20c951cc0f38)

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