Quick Start

Changelog

Release changes covered by the v0.1.9 GoLazy guides.

By Guillermo Alvarez - Published - Updated

v0.1.9 release changes

GoLazy v0.1.9 focuses on richer controller responses, format negotiation, Server-Sent Events, and application-owned JavaScript modules.

Framework

  • Controller actions can negotiate registered response formats from Accept headers and path suffixes such as .html, .json, and .md. Read Formats And MIME.
  • Turbo-frame-aware rendering can render frame responses without replacing the whole layout. Read Turbo Frames.
  • lazyturbo provides frame helpers for server-rendered Hotwire interactions. Read Hotwire Turbo.
  • Controller actions can use Redirect, RedirectTo, RedirectBackOrTo, RedirectBack, and same-host URLFrom validation. Read Redirects, Metadata, And Errors.
  • Controller actions can call PathFor against the current route table. Read Controller Routes.
  • Controller response helpers can set status, headers, content type, layout, and no-layout rendering before the response is committed. Read Redirects, Metadata, And Errors.
  • golazy.dev/lazysse and lazycontroller.Base.SSEStream support event sends, JSON events, comments, heartbeats, source subscriptions, and Last-Event-ID access. Read Server-Sent Events.

Runtime behavior

  • Controller rendering is buffered before commit, so status, headers, layout selection, and render errors can be coordinated consistently. Read Actions.
  • lazyroutes.Scope recognizes registered format suffixes and dispatches the underlying route with the requested format in request context. Read Formats And MIME.
  • Long-lived streaming responses bypass dynamic route ETag generation and response-buffer rewrites. Read Server-Sent Events.
  • Cookie session middleware saves pending session changes before a streaming response is committed. Read Server-Sent Events.
  • The route action-call planner now lives under lazyroutes/actioncall. Read Generator Arguments.

CLI and generated apps

  • lazy js bundles application JavaScript from app/js, writes /js/... importmap entries for every app JavaScript file, and expands // golazy:turbo and // golazy:stimulus directives in app/js/app.js. Read app/js Modules and lazy js And js.toml.
  • lazy hot reload runs JavaScript asset generation for apps with js.toml before the initial build and after changes to app/js, js.toml, or JavaScript package metadata. Read lazy Dev Loop Integration.
  • lazy new selects the matching sample application template with app-owned JavaScript modules, controller formats, redirects, response metadata helpers, and SSE examples. Read Full App.

Read the Upgrade Guide before moving an application from v0.1.8.