grape breaking changes
Updated December 4, 2026
On this page
Latest version 4.1.0. Source repository
Its 3.0.0 release drops Ruby 2.7. Ruby end of life dates.
- From 3.0.0 to 4.0.0: 15 breaking changes in 1 version.
- From 0.3.0 to 4.0.0: 60 breaking changes in 18 versions.
grape 4.0.0 breaking changes
- Removed
forward_match
forward_match is now an internal keyword rather than a route option. github.com - Removed
Grape.Router.normalize_path
Previously deprecated method has been removed. github.com - Removed
http_digest
The http_digest option is gone and no longer works; existing code using it must be removed or replaced. github.com - Behavior changed
Bare Ruby exception messages are now lowercase and unpunctuated, which can break code matching the old text. github.com - Behavior changed
If an error response cannot be rendered, the middleware answers 500 rather than letting the exception escape; Grape.config.raise_rendering_errors opts out. github.com - Behavior changed
Path params are now UTF-8 instead of ASCII-8BIT, which can change equality checks against literals. github.com - Behavior changed
Endpoint helpers are now included once when the endpoint is compiled instead of on every request. github.com - Behavior changed
default_error_formatter
Setting default_error_formatter to an unregistered format now raises instead of silently storing Txt. github.com - Behavior changed
error_formatter
Passing error_formatter without a formatter now raises instead of registering nil. github.com - Behavior changed
Grape.ErrorFormatter.formatter_for
formatter_for now answers nil for an unregistered format instead of falling back. github.com - Behavior changed
grape.testing
grape/testing is opt-in and must be required explicitly. github.com - Behavior changed
optional
A type supplied by an enclosing with block now applies to optional, as it already did to requires. github.com - Behavior changed
redirect
The default redirect message is rendered as plain text instead of being re-encoded by the formatter. github.com - Behavior changed
rescue_from :grape_exceptions
rescue_from :grape_exceptions now wins over a catch-all registered as a class, so Grape errors may get different responses. github.com - Signature changed
requires
The as option is now a keyword argument of requires and optional rather than part of the options Hash. github.com
grape 3.0.0 breaking changes
- Removed
Grape 3.0.0 no longer supports Ruby 2.7. Upgrade Ruby to a supported version before updating. github.com - Removed
namespace_inheritable
namespace_inheritable is no longer part of the public API. Stop calling it directly. github.com - Removed
namespace_reverse_stackable
namespace_reverse_stackable is removed from the public DSL. Use direct inheritable_setting access instead. github.com - Removed
namespace_reverse_stackable_with_hash
namespace_reverse_stackable_with_hash is no longer available in the public scope. github.com - Removed
namespace_stackable
namespace_stackable is no longer part of the public API. Stop calling it directly. github.com - Removed
namespace_stackable_with_hash
namespace_stackable_with_hash is no longer public and moved to an internal class. github.com - Configuration changed
Grape configuration now uses Dry::Configurable instead of ActiveSupport::Configurable. Review code that relies on the old configuration API. github.com
grape 2.0.0 breaking changes
- Removed
Rack.Auth.Digest
Grape 2.0.0 removes Rack::Auth::Digest. Code that uses it must switch to another authentication method. github.com
grape 1.0.0 breaking changes
- Removed
multi_json
Grape no longer depends on multi_json, so code that relied on it being loaded through Grape must add it directly. github.com - Removed
multi_xml
Grape no longer depends on multi_xml, so code that relied on it being loaded through Grape must add it directly. github.com - Behavior changed
Parameters are no longer Hashie::Mash objects. Code that relies on Hashie::Mash behavior must be updated to use HashWithIndifferentAccess. github.com
grape 0.19.0 breaking changes
- Default changed
delete
Endpoints defined with delete now return 204 No Content by default instead of 200. Set an explicit status if clients expect 200. github.com
grape 0.18.0 breaking changes
- Removed
Ruby 2.0 is no longer supported in this release. Users on Ruby 2.0 must upgrade their Ruby version before using grape 0.18.0. github.com
Older versions
13 older versions, each with its first changes. Sign up to see every change
Show 13 older versions
grape 0.17.0 breaking changes
- Behavior changed
declared
Fixes declared(params) inside route_param and with include_parent_namespaces: false; behavior may differ for code relying on the previous output. github.com
grape 0.16.1 breaking changes
- Behavior changed
error!
Calls to error! with a Hash no longer change that Hash in place. Code that relied on the mutated Hash afterwards must be updated. github.com
grape 0.14.0 breaking changes
- Behavior changed
declared
Calling declared from before filters no longer works, so move that logic into the endpoint. github.com - Behavior changed
strict
With strict: true, an incorrect media-type Accept header now gets a 406 response instead of being accepted. github.com
grape 0.12.0 breaking changes
- Behavior changed
Regexp validator
The Regexp validator now supports allow_blank, and its behavior for nil values changed. Check validations that rely on nil values. github.com - Behavior changed
status
Calling the status method with an invalid status code now raises an error. Code that passes invalid codes must be corrected. github.com
grape 0.11.0 breaking changes
- Behavior changed
Version-block callbacks no longer apply to routes defined outside that block. github.com - Behavior changed
Parameter groups without an explicit Hash or Array type are no longer accepted; declare the type explicitly. github.com
And 2 more in this version.
grape 0.10.0 breaking changes
- Removed
atom+xml
The atom+xml content-type is no longer supported. Code that relies on it must be changed to use another content-type. github.com - Removed
jsonapi
The jsonapi content-type is no longer supported. Code that relies on it must be changed to use another content-type. github.com
And 6 more in this version.
grape 0.9.0 breaking changes
- Removed
Grape.Middleware.Auth.Basic
Grape::Middleware::Auth::Basic was removed in this release. Code that references it must be changed, and the Auth-Middleware extension is the new route for authentication middleware. github.com - Removed
Grape.Middleware.Auth.Digest
Grape::Middleware::Auth::Digest was removed in this release. Code that references it must be changed. github.com
And 1 more in this version.
grape 0.8.0 breaking changes
- Behavior changed
RegexpValidator
Params with a nil value are now refused by RegexpValidator. Code that passed nil values through this validator will see them rejected. github.com - Behavior changed
rescue_from
The rescue_from keyword now defaults to rescuing subclasses of the given exceptions. Code that relied on subclasses not being rescued may need to be checked. github.com
grape 0.7.0 breaking changes
- Behavior changed
before_validation
The before_validation callback is now separate from other callbacks, so code that depended on the earlier shared behavior may need review. github.com - Behavior changed
rescue_from
rescue_from now also catches subclasses of the listed exceptions by default, so handlers may run for errors they did not previously catch. github.com
And 1 more in this version.
grape 0.6.0 breaking changes
- Removed
Grape is no longer tested on Ruby 1.8.7, so users on that Ruby version should upgrade their Ruby. github.com - Behavior changed
Grape.Exceptions.ValidationErrors
Validation errors are collected and Grape::Exceptions::ValidationErrors is raised, so code that rescued individual validation errors must be updated. github.com
grape 0.5.0 breaking changes
- Behavior changed
default_format
Specifying default_format now also changes the default parser for POST and PUT request bodies to that format. Code relying on the previous parser for those bodies may need to set a parser explicitly. github.com
grape 0.4.0 breaking changes
- Behavior changed
Applications using an older Rack version must upgrade Rack to 1.3.0 or later. github.com - Behavior changed
The logger uses the standard Ruby formatter again; code relying on the old ActiveSupport-style output must require active_support/all to restore it. github.com
And 1 more in this version.
grape 0.3.0 breaking changes
- Removed
Grape.Entity
Grape::Entity was extracted into the grape-entity gem, so code that uses it must add that gem and use its entity class instead. github.com - Behavior changed
Adding a GET route for a resource now also adds a HEAD route automatically, which can conflict with existing HEAD handling. Call do_not_route_head! to disable this. github.com
And 2 more in this version.
Related packages
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.