Hanami 3.0: In Full Bloom
a day ago
- #Ruby Framework
- #Performance Optimization
- #Developer Tools
- Hanami 3.0 introduces major features: first-class mailers with integrated email delivery and templates, built-in internationalization (i18n) for translations and localization, and Minitest support alongside existing RSpec.
- Performance improvements include default component memoization, reducing allocations by up to 80% and increasing throughput by nearly 3x, plus optimizations in Hanami Action and View.
- Enhancements to developer experience: colorized logs, improved asset watching, body parsing integrated into Hanami Action, undecorated view exposures by default, and a cleaner foundation with renamed gems.
- Additional refinements: new generators (provider, mailer), options for app generation (--test, --template-engine), updated dependencies (Ruby 3.3+, Puma 7.1), and various fixes for routing and templates.
- Easy setup with commands to install and run Hanami 3.0, plus upgrade notes for existing 2.3 users, supported by contributions from the community and sponsors.