Skip to content

v0.12.0 — Inertia + domain routing

Choose a tag to compare

@tshafer tshafer released this 10 Jul 20:03
· 156 commits to main since this release

Full AdonisJS-style routing parity, plus a real Inertia adapter.

  • Inertia.js server adapterinertia("Page", props) and router.on(path).renderInertia(...). Full HTML on first load, JSON page object on XHR nav, asset-version 409s, partial reloads. (docs/inertia.md)
  • Domain / subdomain routing.domain(":tenant.example.com") on routes/groups, dispatched by Host; request.subdomain(name).
  • Matchers & global constraintsrouter.matchers.number()/uuid()/slug()/alpha(), global router.where(), group .where().
  • Brisk helperson().renderInertia(), .redirectToPath(), .redirectToRoute(name, params, { qs }).
  • Current routerequest.route, request.routeIs(name). .use() middleware alias.

45 tests, ~99% line coverage.