Skip to content

v3.1.0.rc1

Pre-release
Pre-release

Choose a tag to compare

@timriley timriley released this 27 Nov 13:22
v3.1.0.rc1
f269831

Added

  • Reload the app's code in place instead of restarting the server. hanami server now wraps the app in a Rack middleware that checks the app's source files once per request and reloads via Hanami::Slice#reload before dispatching, so the process stays up and requests are served from freshly loaded code. Changes to Ruby files, YAML files (such as translations) and templates (in any format) in app/, config/, lib/ and slices/ trigger a reload. (@afomera in #37, @timriley in #42)
  • Render errors raised while reloading on the hanami-webconsole error page, where hanami-webconsole is bundled and config.render_detailed_errors is enabled, instead of returning a bare 500. (@afomera in #37, @timriley in #40 and #41)
  • Warn, instead of silently doing nothing, when a changed file cannot be applied by a reload (config/app.rb, Gemfile, Gemfile.lock, .env files, config/settings/*.yml). (@afomera in #37, @timriley in #42)
  • Put off a reload while a response is held open (such as a streamed response), and serve requests with the current code until it closes, instead of making every request wait for it. (@afomera in #37)

Changed

  • hanami install no longer generates a Guardfile. Code reloading now needs no per-app configuration, so you can delete the Guardfile from your app. (@afomera in #37)
  • Support Hanami CLI's move to Dry CLI 2. The install and server commands now use the stdout and stderr streams from Dry CLI, and no longer override #initialize. (@afomera in #38, @timriley in #39)

Removed

  • Drop the guard and guard-puma dependencies, which are no longer used. (@afomera in #37)

Compare v3.0.0 ... v3.1.0.rc1