Skip to content

Upgrading mustermann 3 to 4

Breaking3.1.1 → 4.0.1Breaking3Platform1New5Changed8Fixed2Other3

BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Old Sinatra 1.x support is gone, so you need a newer Sinatra release to use Mustermann with Sinatra.
  • Code that matches patterns now gets a new object type back, which works similarly but also offers params and pattern.
  • Two classes are no longer in the main gem; you need the mustermann-contrib gem to use them.
  • You need Ruby 3.3.0 or newer to use this version.
4 items need code or config changes

Ruby requirement changed in 4.0.0.alpha: >= 2.7.0 → >= 3.3.0.

Breaking3
Removes special code for Sinatra 1.x; users must upgrade to a Sinatra version released since 2017.
Mustermann::Pattern#match now returns Mustermann::Match instead of MatchData or Mustermann::SimpleMatch.
Mustermann::Pattern#matchMustermann::MatchMatchDataMustermann::SimpleMatch#params#pattern
Moves Mustermann::Mapper and Mustermann::PatternCache from mustermann to mustermann-contrib.
Mustermann::MapperMustermann::PatternCache
Platform1
Drops support for Ruby before 3.3.0.