@nuxt/docs-nightly 4.0.2-29228421.d03b51e4 → 4.0.2-29228520.23135896
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2.guide/3.going-further/11.nightly-release-channel.md +4 -4
- package/3.api/1.components/4.nuxt-link.md +1 -1
- package/3.api/2.composables/use-route.md +1 -1
- package/3.api/3.utils/define-nuxt-route-middleware.md +1 -1
- package/3.api/3.utils/on-before-route-leave.md +1 -1
- package/3.api/3.utils/on-before-route-update.md +1 -1
- package/package.json +1 -1
|
@@ -26,8 +26,8 @@ Update `nuxt` dependency inside `package.json`:
|
|
|
26
26
|
```diff [package.json]
|
|
27
27
|
{
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
-- "nuxt": "^
|
|
30
|
-
++ "nuxt": "npm:nuxt-nightly@
|
|
29
|
+
-- "nuxt": "^4.0.0"
|
|
30
|
+
++ "nuxt": "npm:nuxt-nightly@latest"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
```
|
|
@@ -41,8 +41,8 @@ Update `nuxt` dependency inside `package.json`:
|
|
|
41
41
|
```diff [package.json]
|
|
42
42
|
{
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
-- "nuxt": "npm:nuxt-nightly@
|
|
45
|
-
++ "nuxt": "^
|
|
44
|
+
-- "nuxt": "npm:nuxt-nightly@latest"
|
|
45
|
+
++ "nuxt": "^4.0.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
```
|
|
@@ -226,7 +226,7 @@ export default defineNuxtConfig({
|
|
|
226
226
|
|
|
227
227
|
When not using `external`, `<NuxtLink>` supports all Vue Router's [`RouterLink` props](https://router.vuejs.org/api/interfaces/RouterLinkProps.html)
|
|
228
228
|
|
|
229
|
-
- `to`: Any URL or a [route location object](https://router.vuejs.org/api
|
|
229
|
+
- `to`: Any URL or a [route location object](https://router.vuejs.org/api/type-aliases/RouteLocation.html) from Vue Router
|
|
230
230
|
- `custom`: Whether `<NuxtLink>` should wrap its content in an `<a>` element. It allows taking full control of how a link is rendered and how navigation works when it is clicked. Works the same as [Vue Router's `custom` prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-custom)
|
|
231
231
|
- `exactActiveClass`: A class to apply on exact active links. Works the same as [Vue Router's `exactActiveClass` prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-exactActiveClass) on internal links. Defaults to Vue Router's default (`"router-link-exact-active"`)
|
|
232
232
|
- `activeClass`: A class to apply on active links. Works the same as [Vue Router's `activeClass` prop](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#Properties-activeClass) on internal links. Defaults to Vue Router's default (`"router-link-active"`)
|
|
@@ -49,4 +49,4 @@ Apart from dynamic parameters and query parameters, `useRoute()` also provides t
|
|
|
49
49
|
Browsers don't send [URL fragments](https://url.spec.whatwg.org/#concept-url-fragment) (for example `#foo`) when making requests. So using `route.fullPath` in your template can trigger hydration issues because this will include the fragment on client but not the server.
|
|
50
50
|
::
|
|
51
51
|
|
|
52
|
-
:read-more{icon="i-simple-icons-vuedotjs" to="https://router.vuejs.org/api
|
|
52
|
+
:read-more{icon="i-simple-icons-vuedotjs" to="https://router.vuejs.org/api/type-aliases/RouteLocationNormalizedLoaded.html"}
|
|
@@ -28,7 +28,7 @@ interface RouteMiddleware {
|
|
|
28
28
|
|
|
29
29
|
A function that takes two Vue Router's route location objects as parameters: the next route `to` as the first, and the current route `from` as the second.
|
|
30
30
|
|
|
31
|
-
Learn more about available properties of `RouteLocationNormalized` in the **[Vue Router docs](https://router.vuejs.org/api
|
|
31
|
+
Learn more about available properties of `RouteLocationNormalized` in the **[Vue Router docs](https://router.vuejs.org/api/type-aliases/RouteLocationNormalized.html)**.
|
|
32
32
|
|
|
33
33
|
## Examples
|
|
34
34
|
|
|
@@ -8,4 +8,4 @@ links:
|
|
|
8
8
|
size: xs
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
:read-more{icon="i-simple-icons-vuedotjs" to="https://router.vuejs.org/api
|
|
11
|
+
:read-more{icon="i-simple-icons-vuedotjs" to="https://router.vuejs.org/api/functions/onBeforeRouteLeave.html" title="Vue Router Docs" target="_blank"}
|
|
@@ -8,4 +8,4 @@ links:
|
|
|
8
8
|
size: xs
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
:read-more{icon="i-simple-icons-vuedotjs" to="https://router.vuejs.org/api
|
|
11
|
+
:read-more{icon="i-simple-icons-vuedotjs" to="https://router.vuejs.org/api/functions/onBeforeRouteUpdate.html" title="Vue Router Docs" target="_blank"}
|