diff options
Diffstat (limited to '.changeset/fuzzy-pugs-live.md')
-rw-r--r-- | .changeset/fuzzy-pugs-live.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.changeset/fuzzy-pugs-live.md b/.changeset/fuzzy-pugs-live.md new file mode 100644 index 000000000..bf1bd39dc --- /dev/null +++ b/.changeset/fuzzy-pugs-live.md @@ -0,0 +1,21 @@ +--- +'astro': major +--- + +### [changed]: `routes` type inside the hook `astro:build:done` +In Astro v4.x, the `routes` type was `RouteData`. + +Astro v5.0 the `routes` type is `IntegrationRouteData`, which contains a subset of the `RouteData` type. The fields `isIndex` and `fallbackRoutes` were removed. + +#### What should I do? +Update your adapter to change the type of `routes` from `RouteData` to `IntegrationRouteData`. + +```diff +-import type {RouteData} from 'astro'; ++import type {IntegrationRouteData} from "astro" + +-function useRoute(route: RouteData) { ++function useRoute(route: IntegrationRouteData) { + +} +``` |