All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
For changes prior to v1.0.0, see the legacy releases.
- Nothing yet!
- [2.x] Fix issue where initial page data is coming from history state (#2023)
- [2.x] Fix onClick in React adapter (#2019)
- [2.x] Export usePrefetch for react (#2016)
- [2.x] Rename WhenVisible "elementTag" prop to "as" (#2009)
- [2.x] $page url should not include the host (#2032)
- [2.x] Suppress Svelte accessibility warnings from Playwright logs (#2033)
- [2.x] Change TypeScript module resolution in the Svelte adapter (#2035)
- [2.x] Fix multi byte strings in history encryption (#2030)
- [2.x] Load deferred props on every page swap (#2024)
- [2.x] Refactor createInertiaApp in Svelte adapter (#2036)
- [2.x] Fix
<Deferred />
in Svelte adapter (#2037) - [2.x] Fix
usePrefetch
in SSR mode in Svelte adapter (#2034)
- First beta release for the upcoming Inertia.js v2.0. View documentation and upgrade guide at https://v2.inertiajs.com.
- Skip intercepting non-left button clicks on links (#1908, #1910)
- Changed
preserveScroll
to betrue
on initial page visit (#1360) - Return early when using
router.on()
during SSR (#1715) - Use updater function in
setData
inuseForm
hook in React adapter (#1859)
- Fix history navigation issue on Chrome iOS (#1984, #1992)
- Fix
setNavigationType
for Safari 10 (#1957) - Export
InertiaFormProps
in all adapters (#1596, #1734) - Fix
isDirty
afterform.defaults()
call in Vue 3 (#1985) - Fix scroll reset on page navigation (#1980)
- Fix scroll position restoration for
[scroll-region]
elements (#1782, #1980) - Fix
useForm
re-renders by memoizing functions in React adapter (#1607) - Fix doubling hash when using
<React.StrictMode>
(#1728) - Fix type augmentation in Vue 3 adapter (#1958)
- Fix form helper
transform
return type in React adapter (#1896) - Fix props reactivity in Svelte adapter (#1969)
- Fix
<Render />
component to respectpreserveState
option in Svelte adapter (#1943) - Fix 'received an unexpected slot "default"' warning in Svelte adapter (#1941)
- Fix
preserveScroll
andpreserveState
types (#1882) - Revert "merge props from partial reloads" (#1895)
- Add new
except
visit option to exclude props from partial reloads (#1876) - Deep merge props from partial reloads (#1877)
- Fix Svelte 4 slot rendering issues (#1763)
- Fix accessibility warning in Svelte
Link
component (#1858) - Use
Omit
instead ofExclude
in router types (#1857)
- Bump axios from
v1.4.0
tov1.6.0
(#1723)
- Revert "Clear errors on form reset (#1568)" (#1716)
- Fix form helper types for
setDefaults()
method (React) anddefaults()
method (Vue) (#1504) - Fix interface issue with
useForm()
in React and Vue adapters (#1649)
- Fix Svelte's
useForm
helper (#1610)
- Fix
<Head>
vNode handling in Vue 3 adapter (#1570) - Fix watching remembered data in Vue 3 adapter (#1571)
- Fix
<Head>
fragment detection in Vue 3 adapter (#1509)
- Fix
usePage()
null object error in Vue 3 adapter (#1530)
- Fix
usePage()
reactivity in Vue 2 adapter (#1527)
- Simplify the Vue 2 form helper (#1529)
- Added
displayName
toLink
component in React adapter (#1512)
- Fix
usePage()
reactivity in Vue 3 adapter (#1469)
- Added initialization callback to form helper in Vue adapters (#1516)
- Added explicit children to
InertiaHeadProps
(#1448) - Exported
InertiaLinkProps
type (#1450) - Improved React
usePage
generic type (#1451)
- Fixed Vue type overrides for
$page
and$inertia
(#1393) - Restored React
usePage
generic type (#1396) - Prevented need to use
Method
enum with the Link component (#1392) - Restored Vue 3
usePage
generic type (#1394) - Fixed export of server types (#1397)
- Updated form types to support nested data (#1401)
- Allowed stronger type support with Vue
useForm
(#1413) - Fixed Vue 2
setup
prop types (#1418) - Fixed issue when passing multiple children to React
Head
component (#1433)
v1.0.0 - 2023-01-14
- Added SSR support to Svelte library (#1349)
- Added first-class TypeScript support to React adapter
- Added first-class TypeScript support to Vue 2 adapter
- Added first-class TypeScript support to Vue 3 adapter
- Added new
useForm()
hook to Vue 2 adapter (ff59196)
- Renamed
@inertiajs/inertia
library to@inertiajs/core
(#1282) - Renamed
@inertiajs/inertia-react
library to@inertiajs/react
(#1282) - Renamed
@inertiajs/inertia-svelte
library to@inertiajs/svelte
(#1282) - Renamed
@inertiajs/inertia-vue
library to@inertiajs/vue2
(#1282) - Renamed
@inertiajs/inertia-vue3
library to@inertiajs/vue3
(#1282) - Merged progress library to core and deprecated
@inertiajs/progress
library (#1282, 0b5f773) - Merged server library to core and deprecated
@inertiajs/server
library (#1282) - Renamed
Inertia
named export torouter
(#1282, e556703) - Removed deprecated named exports (#1282, e556703)
- Removed deprecated
app
argument fromcreateInertiaApp()
in Vue adapters (#1282, 65f8a5f) - Updated axios to 1.x (#1377)
- Simplified
usePage()
hook in Vue 3 adapter (#1373) - Improved Svelte
use:inertia
and<Link />
component (#1344) - Removed global
visitOptions()
hook (#1282, 30908c2) - Switched bundler from Microbundle to ESbuild (f711b46, 8093713, 342312d, c9e12b3)