HeadlinesBriefing favicon HeadlinesBriefing.com

Hanami 3.0 Brings Mailers, i18n, and Major Performance Gains

Hacker News •
×

Hanami 3.0 arrives with significant upgrades, integrating first-class mailers and built-in internationalization, simplifying email delivery and global app support. This release also adds Minitest as a testing option alongside the default RSpec. These additions aim to streamline developer workflows and expand the framework's capabilities for building complex web applications.

The framework achieves nearly 3x faster HTTP request throughput and a fraction of memory allocation in its test applications. This boost comes from default component memoization, ensuring components resolve only once and are reused. Hanami Action and View also see performance improvements through upfront configuration snapshotting, reducing per-request overhead.

Developer experience is sharpened with colorized, syntax-highlighted logs by default in development. Asset watching now dynamically adapts to new and removed entry points and static assets without restarts. Hanami Action also integrates request body parsing directly, driven by configurable formats, supporting multipart form and JSON out-of-the-box. The framework now offers a more efficient and pleasant development environment.

These enhancements represent a substantial evolution for the Ruby framework, focusing on performance, developer productivity, and core feature integration. Hanami 3.0 delivers these improvements without requiring code changes for existing applications.