Version 3.0.0-rc2
Pre-release
Pre-release
Added
- Add a pluggable SSR adapter system. Server-side rendering is now performed through an
Inertia.SSR.Adapterbehaviour, so you can plug in an alternative JavaScript runtime (Bun, a Vite dev server, etc.) in place of the default Node.js process pool by passing a module via the:ssr_adapteroption toInertia.SSR. The defaultInertia.SSR.NodeJSAdapterpreserves the existing behavior (#44). - Add an
:esmoption toInertia.SSRfor using an ECMAScript Module SSR entrypoint. ESM is also auto-detected from a.mjsmodule extension (#44). - The
inertia.installtask now produces a complete, buildable setup for Svelte and Vue, not just React. Because Svelte and Vue single-file components must be compiled by an esbuild plugin — which theesbuildHex package's CLI can't load — the installer drives esbuild from Node (assets/esbuild.config.js) viaesbuild-svelte/unplugin-vue, generates the framework's Inertia entry point, and installs the client packages. inertia.installnow scaffolds a starter page (Home.jsx/Home.vue/Home.svelte) in place of an empty.gitkeep, somix assets.buildsucceeds immediately after install.- Add step-by-step front-end setup guides for React, Svelte, and Vue, each covering both client-side and server-side rendering with esbuild and backed by runnable example apps under
examples/.
Changed
- The
inertia.installtask's React setup now addsnpm installto theassets.setupalias, so client dependencies are restored on a fresh checkout or CI build. - The README no longer centers its client-side and SSR instructions on React. Framework-specific setup (including SSR) now lives in the per-framework guides, while the README covers the shared, framework-agnostic pieces.
Fixed
- The root layout generated by
inertia.installnow loads the JS bundle from/assets/js/app.js, matching esbuild's output directory (previously/assets/app.js, which did not exist).