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

# hanami-router breaking changes

hanami-router 3.0.0 (July 1, 2026) is its newest release with breaking changes, 3 of them. The first: Removes mustermann-contrib dependency in hanami-router 3.0.0. Every breaking API change we have recorded in hanami-router on RubyGems: 19 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.0.1`, released November 24, 2026. [Source repository](https://github.com/hanami/hanami-router)

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

- From [0.7.0](#v-0-7-0) to [3.0.0](#v-3-0-0): 17 breaking changes in 6 versions.
- From [0.6.0](#v-0-6-0) to [3.0.0](#v-3-0-0): 18 breaking changes in 7 versions.

## hanami-router 3.0.0 breaking changes

hanami-router 3.0.0, released July 1, 2026: 3 breaking changes.

- **Removed**  

The mustermann-contrib dependency was removed, so code that relied on it through this gem must add it directly. [github.com](https://github.com/hanami/hanami-router/releases/tag/v3.0.0)
- **Configuration changed**  

The gem no longer supports older Ruby versions, so users must run Ruby 3.3 or newer. [github.com](https://github.com/hanami/hanami-router/releases/tag/v3.0.0)
- **Signature changed** `redirect`  

Calling #redirect without code: now fails, so pass code: explicitly or use #permanent_redirect or #temporary_redirect for the common cases. [github.com](https://github.com/hanami/hanami-router/releases/tag/v3.0.0)

## hanami-router 2.0.0.rc1 breaking changes

hanami-router 2.0.0.rc1, released November 22, 2022: 1 breaking change.

- **Behavior changed** `Hanami.Middleware.BodyParser.Parser.parse`  

The abstract parse method now raises NoMethodError instead of NotImplementedError, so code rescuing NotImplementedError must change. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)

## hanami-router 2.0.0.alpha6 breaking changes

hanami-router 2.0.0.alpha6, released November 22, 2022: 1 breaking change.

- **Removed**  

Ruby MRI 2.6 and 2.7 are no longer supported. Upgrade Ruby before using this version. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)

## hanami-router 2.0.0.alpha2 breaking changes

hanami-router 2.0.0.alpha2, released November 22, 2022: 4 breaking changes.

- **Removed**  

Route endpoints are no longer loaded automatically; provide them explicitly, for example via resolver:. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Removed** `Hanami.Router.initialize`  

The inflector: option of Hanami::Router#initialize is gone; remove it from calls. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Removed** `Hanami.Router.resource`  

Hanami::Router#resource is gone; define routes another way. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Removed** `Hanami.Router.resources`  

Hanami::Router#resources is gone; define routes another way. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)

## hanami-router 2.0.0.alpha1 breaking changes

hanami-router 2.0.0.alpha1, released November 22, 2022: 7 breaking changes.

- **Removed**  

Ruby MRI 2.3 and 2.4 are no longer supported. Upgrade Ruby before using this version. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Removed** `Hanami.Router.initialize`  

The force_ssl: option of Hanami::Router#initialize is gone; remove it from calls. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Renamed** `Hanami.Router.namespace`  

Calls to Hanami::Router#namespace must be changed to Hanami::Router#prefix. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed**  

Globbed routes must use a named capture, such as "/files/\*names", instead of a bare "\*". [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed**  

HEAD responses are no longer body-cleaned by the router, so code relying on that cleanup must change. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed** `Hanami.Router`  

The router can no longer be modified once initialized, so code that changes it afterwards will fail. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)
- **Signature changed** `Hanami.Router.initialize`  

Passing Hanami::Action subclasses as endpoints now requires the configuration: option on initialize. [github.com](https://github.com/hanami/hanami-router/blob/v2.0.0/CHANGELOG.md)

## hanami-router 1.0.0.beta1 breaking changes

hanami-router 1.0.0.beta1, released April 6, 2017: 1 breaking change.

- **Removed**  

The gem is now compatible with Rack 2.0 only. Apps still on Rack 1.x must upgrade Rack to 2.0 before using this version. [github.com](https://github.com/hanami/hanami-router/blob/v1.0.0/CHANGELOG.md)

## Older versions

2 older versions.

### hanami-router 0.7.0 breaking changes

hanami-router 0.7.0, released July 22, 2016: 1 breaking change.

- **Removed**  

Ruby 2.0 and 2.1 are no longer supported, so code running on them must move to a newer Ruby. JRuby 9.0.5.0+ is the officially supported JRuby. [github.com](https://github.com/hanami/hanami-router/blob/v0.7.0/CHANGELOG.md)

### hanami-router 0.6.0 breaking changes

hanami-router 0.6.0, released January 22, 2016: 1 breaking change.

- **Renamed**  

The project was renamed in this release. The changelog does not say what the new name is, so code depending on the old name may need updating. [github.com](https://github.com/hanami/hanami-router/blob/v0.6.0/CHANGELOG.md)

## Related packages

- [hanami-cli](https://since.dev/packages/gem/hanami-cli.md)
- [hanami-controller](https://since.dev/packages/gem/hanami-controller.md)
- [hanami-utils](https://since.dev/packages/gem/hanami-utils.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.
