@@ -75,122 +75,122 @@ Here is a complete list of all the import changes:
7575<CodeGroup >
7676
7777``` diff Vue 2
78- \ - import { Inertia } from '@inertiajs/inertia'
79- \ + import { router } from '@inertiajs/vue2'
80-
81- \ - import createServer from '@inertiajs/server'
82- \ + import createServer from '@inertiajs/vue2/server'
83-
84- \ - import { createInertiaApp } from '@inertiajs/inertia-vue'
85- \ - import { App } from '@inertiajs/inertia-vue'
86- \ - import { app } from '@inertiajs/inertia-vue'
87- \ - import { InertiaApp } from '@inertiajs/inertia-vue'
88- \ - import { plugin } from '@inertiajs/inertia-vue'
89- \ + import { createInertiaApp } from '@inertiajs/vue2'
90-
91- \ - import { Head } from '@inertiajs/inertia-vue'
92- \ - import { InertiaHead } from '@inertiajs/inertia-vue'
93- \ + import { Head } from '@inertiajs/vue2'
94-
95- \ - import { Link } from '@inertiajs/inertia-vue'
96- \ - import { link } from '@inertiajs/inertia-vue'
97- \ - import { InertiaLink } from '@inertiajs/inertia-vue'
98- \ + import { Link } from '@inertiajs/vue2'
78+ - import { Inertia } from '@inertiajs/inertia'
79+ + import { router } from '@inertiajs/vue2'
80+
81+ - import createServer from '@inertiajs/server'
82+ + import createServer from '@inertiajs/vue2/server'
83+
84+ - import { createInertiaApp } from '@inertiajs/inertia-vue'
85+ - import { App } from '@inertiajs/inertia-vue'
86+ - import { app } from '@inertiajs/inertia-vue'
87+ - import { InertiaApp } from '@inertiajs/inertia-vue'
88+ - import { plugin } from '@inertiajs/inertia-vue'
89+ + import { createInertiaApp } from '@inertiajs/vue2'
90+
91+ - import { Head } from '@inertiajs/inertia-vue'
92+ - import { InertiaHead } from '@inertiajs/inertia-vue'
93+ + import { Head } from '@inertiajs/vue2'
94+
95+ - import { Link } from '@inertiajs/inertia-vue'
96+ - import { link } from '@inertiajs/inertia-vue'
97+ - import { InertiaLink } from '@inertiajs/inertia-vue'
98+ + import { Link } from '@inertiajs/vue2'
9999```
100100
101101``` diff Vue 3
102- \ - import { Inertia } from '@inertiajs/inertia'
103- \ + import { router } from '@inertiajs/vue3'
102+ - import { Inertia } from '@inertiajs/inertia'
103+ + import { router } from '@inertiajs/vue3'
104104
105- \ - import createServer from '@inertiajs/server'
106- \ + import createServer from '@inertiajs/vue3/server'
105+ - import createServer from '@inertiajs/server'
106+ + import createServer from '@inertiajs/vue3/server'
107107
108- \ - import { createInertiaApp } from '@inertiajs/inertia-vue3'
109- \ - import { App } from '@inertiajs/inertia-vue3'
110- \ - import { app } from '@inertiajs/inertia-vue3'
111- \ - import { plugin } from '@inertiajs/inertia-vue3'
112- \ - import { InertiaApp } from '@inertiajs/inertia-vue3'
113- \ + import { createInertiaApp } from '@inertiajs/vue3'
108+ - import { createInertiaApp } from '@inertiajs/inertia-vue3'
109+ - import { App } from '@inertiajs/inertia-vue3'
110+ - import { app } from '@inertiajs/inertia-vue3'
111+ - import { plugin } from '@inertiajs/inertia-vue3'
112+ - import { InertiaApp } from '@inertiajs/inertia-vue3'
113+ + import { createInertiaApp } from '@inertiajs/vue3'
114114
115- \ - import { usePage } from '@inertiajs/inertia-vue3'
116- \ + import { usePage } from '@inertiajs/vue3'
115+ - import { usePage } from '@inertiajs/inertia-vue3'
116+ + import { usePage } from '@inertiajs/vue3'
117117
118- \ - import { useForm } from '@inertiajs/inertia-vue3'
119- \ + import { useForm } from '@inertiajs/vue3'
118+ - import { useForm } from '@inertiajs/inertia-vue3'
119+ + import { useForm } from '@inertiajs/vue3'
120120
121- \ - import { useRemember } from '@inertiajs/inertia-vue3'
122- \ + import { useRemember } from '@inertiajs/vue3'
121+ - import { useRemember } from '@inertiajs/inertia-vue3'
122+ + import { useRemember } from '@inertiajs/vue3'
123123
124- \ - import { Head } from '@inertiajs/inertia-vue3'
125- \ - import { InertiaHead } from '@inertiajs/inertia-vue3'
126- \ + import { Head } from '@inertiajs/vue3'
124+ - import { Head } from '@inertiajs/inertia-vue3'
125+ - import { InertiaHead } from '@inertiajs/inertia-vue3'
126+ + import { Head } from '@inertiajs/vue3'
127127
128- \ - import { Link } from '@inertiajs/inertia-vue3'
129- \ - import { link } from '@inertiajs/inertia-vue3'
130- \ - import { InertiaLink } from '@inertiajs/inertia-vue3'
131- \ + import { Link } from '@inertiajs/vue3'
128+ - import { Link } from '@inertiajs/inertia-vue3'
129+ - import { link } from '@inertiajs/inertia-vue3'
130+ - import { InertiaLink } from '@inertiajs/inertia-vue3'
131+ + import { Link } from '@inertiajs/vue3'
132132```
133133
134134``` diff React icon="react"
135- \ - import { Inertia } from '@inertiajs/inertia'
136- \ + import { router } from '@inertiajs/react'
135+ - import { Inertia } from '@inertiajs/inertia'
136+ + import { router } from '@inertiajs/react'
137137
138- \ - import createServer from '@inertiajs/server'
139- \ + import createServer from '@inertiajs/react/server'
138+ - import createServer from '@inertiajs/server'
139+ + import createServer from '@inertiajs/react/server'
140140
141- \ - import { createInertiaApp } from '@inertiajs/inertia-react'
142- \ - import { App } from '@inertiajs/inertia-react'
143- \ - import { app } from '@inertiajs/inertia-react'
144- \ - import { InertiaApp } from '@inertiajs/inertia-react'
145- \ + import { createInertiaApp } from '@inertiajs/react'
141+ - import { createInertiaApp } from '@inertiajs/inertia-react'
142+ - import { App } from '@inertiajs/inertia-react'
143+ - import { app } from '@inertiajs/inertia-react'
144+ - import { InertiaApp } from '@inertiajs/inertia-react'
145+ + import { createInertiaApp } from '@inertiajs/react'
146146
147- \ - import { usePage } from '@inertiajs/inertia-react'
148- \ + import { usePage } from '@inertiajs/react'
147+ - import { usePage } from '@inertiajs/inertia-react'
148+ + import { usePage } from '@inertiajs/react'
149149
150- \ - import { useForm } from '@inertiajs/inertia-react'
151- \ + import { useForm } from '@inertiajs/react'
150+ - import { useForm } from '@inertiajs/inertia-react'
151+ + import { useForm } from '@inertiajs/react'
152152
153- \ - import { useRemember } from '@inertiajs/inertia-react'
154- \ - import { useRememberedState } from '@inertiajs/inertia-react'
155- \ + import { useRemember } from '@inertiajs/react'
153+ - import { useRemember } from '@inertiajs/inertia-react'
154+ - import { useRememberedState } from '@inertiajs/inertia-react'
155+ + import { useRemember } from '@inertiajs/react'
156156
157- \ - import { Head } from '@inertiajs/inertia-react'
158- \ - import { InertiaHead } from '@inertiajs/inertia-react'
159- \ + import { Head } from '@inertiajs/react'
157+ - import { Head } from '@inertiajs/inertia-react'
158+ - import { InertiaHead } from '@inertiajs/inertia-react'
159+ + import { Head } from '@inertiajs/react'
160160
161- \ - import { Link } from '@inertiajs/inertia-react'
162- \ - import { link } from '@inertiajs/inertia-react'
163- \ - import { InertiaLink } from '@inertiajs/inertia-react'
164- \ + import { Link } from '@inertiajs/react'
161+ - import { Link } from '@inertiajs/inertia-react'
162+ - import { link } from '@inertiajs/inertia-react'
163+ - import { InertiaLink } from '@inertiajs/inertia-react'
164+ + import { Link } from '@inertiajs/react'
165165```
166166
167167``` diff Svelte icon="s"
168- \ - import { Inertia } from '@inertiajs/inertia'
169- \ + import { router } from '@inertiajs/svelte'
168+ - import { Inertia } from '@inertiajs/inertia'
169+ + import { router } from '@inertiajs/svelte'
170170
171- \ - import { createInertiaApp } from '@inertiajs/inertia-svelte'
172- \ - import { App } from '@inertiajs/inertia-svelte'
173- \ - import { app } from '@inertiajs/inertia-svelte'
174- \ - import { InertiaApp } from '@inertiajs/inertia-svelte'
175- \ + import { createInertiaApp } from '@inertiajs/svelte'
171+ - import { createInertiaApp } from '@inertiajs/inertia-svelte'
172+ - import { App } from '@inertiajs/inertia-svelte'
173+ - import { app } from '@inertiajs/inertia-svelte'
174+ - import { InertiaApp } from '@inertiajs/inertia-svelte'
175+ + import { createInertiaApp } from '@inertiajs/svelte'
176176
177- \ - import { page } from '@inertiajs/inertia-svelte'
178- \ + import { page } from '@inertiajs/svelte'
177+ - import { page } from '@inertiajs/inertia-svelte'
178+ + import { page } from '@inertiajs/svelte'
179179
180- \ - import { inertia } from '@inertiajs/inertia-svelte'
181- \ + import { inertia } from '@inertiajs/svelte'
180+ - import { inertia } from '@inertiajs/inertia-svelte'
181+ + import { inertia } from '@inertiajs/svelte'
182182
183- \ - import { useForm } from '@inertiajs/inertia-svelte'
184- \ + import { useForm } from '@inertiajs/svelte'
183+ - import { useForm } from '@inertiajs/inertia-svelte'
184+ + import { useForm } from '@inertiajs/svelte'
185185
186- \ - import { useRemember } from '@inertiajs/inertia-svelte'
187- \ - import { remember } from '@inertiajs/inertia-svelte'
188- \ + import { remember } from '@inertiajs/svelte'
186+ - import { useRemember } from '@inertiajs/inertia-svelte'
187+ - import { remember } from '@inertiajs/inertia-svelte'
188+ + import { remember } from '@inertiajs/svelte'
189189
190- \ - import { Link } from '@inertiajs/inertia-svelte'
191- \ - import { link } from '@inertiajs/inertia-svelte'
192- \ - import { InertiaLink } from '@inertiajs/inertia-svelte'
193- \ + import { Link } from '@inertiajs/svelte'
190+ - import { Link } from '@inertiajs/inertia-svelte'
191+ - import { link } from '@inertiajs/inertia-svelte'
192+ - import { InertiaLink } from '@inertiajs/inertia-svelte'
193+ + import { Link } from '@inertiajs/svelte'
194194```
195195
196196</CodeGroup >
@@ -226,8 +226,8 @@ npm remove @inertiajs/progress
226226Next, remove the ` InertiaProgress ` import and ` InertiaProgress.init() ` call, as they are no longer required.
227227
228228``` diff
229- \ - import { InertiaProgress } from '@inertiajs/progress'
230- \ - InertiaProgress.init()
229+ - import { InertiaProgress } from '@inertiajs/progress'
230+ - InertiaProgress.init()
231231```
232232
233233Finally, if you have defined any progress customizations, you can move them to the ` progress ` property of the ` createInertiaApp() ` helper.
@@ -257,8 +257,8 @@ We've removed the previously deprecated lowercase `app` argument from the `setup
257257``` diff
258258createInertiaApp({
259259// ...
260- \ - setup({ app, props }) {
261- \ + setup({ App, props }) {
260+ - setup({ app, props }) {
261+ + setup({ App, props }) {
262262// ...
263263},
264264})
@@ -272,6 +272,6 @@ If you're using the `usePage()` hook, remove all instances of `.value`.
272272
273273``` diff
274274import { computed } from 'vue'
275- \ - const appName = computed(() => usePage().props.value.appName)
276- \ + const appName = computed(() => usePage().props.appName)
275+ - const appName = computed(() => usePage().props.value.appName)
276+ + const appName = computed(() => usePage().props.appName)
277277```
0 commit comments