Releases: adonisjs/inertia
Exclude children when extracting React Page props
4.0.0-next.7 (2025-10-19)
Bug Fixes
- exclude children when extracting react props (294bcfb)
- renderInertia route helper to match types signature of inertia.render (060c4df)
- vue props extraction helper (3c3e2a1)
Full Changelog: v4.0.0-next.6...v4.0.0-next.7
Allow using Layouts via resolvePageComponent method
4.0.0-next.6 (2025-10-03)
Bug Fixes
- allow optional properties when ssr is disabled (de760dc)
Features
- allow using Layouts via resolvePageComponent method (d27d93f)
Full Changelog: v4.0.0-next.5...v4.0.0-next.6
Omit shared props from intellisense when rendering a page
4.0.0-next.5 (2025-10-03)
Features
- remove config.entrypoint as the property is never used (0fd9b90)
- remove shared props from props required during rendering a page (c1ee7b9)
Full Changelog: v4.0.0-next.4...v4.0.0-next.5
Pass containerResolver from HttpContext with transformers serializer
4.0.0-next.4 (2025-09-30)
Bug Fixes
- pass containerResolver to the serialize method (1890a20)
Full Changelog: v4.0.0-next.3...v4.0.0-next.4
Allow eager loaded pages and lazily evaluate prop types
Add helper to resolve Inertia pages
4.0.0-next.2 (2025-09-23)
Bug Fixes
- remove latest tag from release-it config (42d0359)
Features
- add helper to resolve pages (7e08132)
Full Changelog: v4.0.0-next.1...v4.0.0-next.2
Major revamp of how type-safety is handled in Inertia applications
This release introduces a major revamp of how type-safety is handled in Inertia applications. After upgrading, you may run into some TypeScript errors. They’re usually simple to fix, but can feel repetitive (a good use case for an AI agent).
See also: RFC - End-to-End type safety
Type-safety improvements
Previously, the inertia.render method was not type-safe. You could pass any values, even if they didn’t match what the client-side component expected.
With this release, the inertia.render method is now strictly typed. The framework automatically scans your Inertia pages and extracts their prop types.
You can pass component props directly or compute them using Transformers. In addition, helpers like inertia.lazy, inertia.defer, and inertia.merge are now type-safe. For example, you can no longer use inertia.defer for a required prop.
Shared data changes
The sharedData property has been removed from the config file and moved into middleware.
Why? Because computing shared data often requires pulling in transformers, models, or services from across your app. Importing all of that inside a config file goes against framework principles.
From now on, new Inertia apps will include an InertiaMiddleware in the app/middleware directory. You should use this middleware to define shared data.
Upgrading existing apps
This is an alpha release. We don’t recommend upgrading existing applications yet. Please wait for the stable release, which will include a detailed upgrade guide.
Changes
- Export
InertiaFactoryfor unit testing - Remove stubs and configuration command (moved to starter kits)
- Rename the
clientexport tovite - Make the
route.renderInertiamethod type-safe - Add support for deep-merging props
- Remove shared data from the config file → use
InertiaMiddlewareinstead - Make the
inertia.rendermethod type-safe - Make the
inertia.locationmethod synchronous - Use Symbols to identify branded types created with
inertia.always,inertia.defer,inertia.optional, etc. - Reflash session data when performing a full reload due to a version mismatch
- Add
inertia.pageto create a page object - Add
inertia.ssrEnabledto check if SSR is enabled for a page - Add
inertia.getVersionto get the assets version - Add
inertia.requestInfoto access request details (cached after first call, with an option to re-compute) - Replace
config.history.encryptwithconfig.encryptHistory
Features
BREAKING CHANGES
- This commit contains serveral breaking changes around the Inertia setup.
Same will be covered in the release notes
Full Changelog: v4.0.0-next.0...v4.0.0-next.1
@adonisjs/[email protected] & Environment API
4.0.0-next.0 (2025-07-21)
- Migrated to new @adonisjs/vite version
- Migrated to new build process. We are now using Vite Environment API.
Full Changelog: v3.1.1...v4.0.0-next.0
Update svelte starter kit + Fix callback props typing
Support Japa API client 3, add dumper stack and fix a bug around missing session
3.1.0 (2025-01-29)
Bug Fixes
Features
What's Changed
- Adding dumper stack to root edge pages by @tomgobich in #54
- add @japa/api-client 3.x to peerDependencies by @marcuspoehls in #56
- fix: error on render when session is undefined by @limwa in #59
New Contributors
- @tomgobich made their first contribution in #54
- @limwa made their first contribution in #59
Full Changelog: v3.0.1...v3.1.0