Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/rich-horses-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'astro': major
---

Remove deprecated ViewTransitions component

The `<ViewTransitions />` component has been deprecated and renamed to `<ClientRouter />` in Astro 5.0. There are no other changes than the name.
4 changes: 0 additions & 4 deletions packages/astro/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ declare module 'astro:transitions' {
export const createAnimationScope: TransitionModule['createAnimationScope'];

type ClientRouterModule = typeof import('./components/ClientRouter.astro');
/**
* @deprecated The ViewTransitions component has been renamed to ClientRouter
*/
export const ViewTransitions: ClientRouterModule['default'];
export const ClientRouter: ClientRouterModule['default'];
}

Expand Down
5 changes: 1 addition & 4 deletions packages/astro/src/transitions/vite-plugin-transitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ export default function astroTransitions({ settings }: { settings: AstroSettings
return {
code: `
export * from "astro/virtual-modules/transitions.js";
export {
default as ViewTransitions,
default as ClientRouter
} from "astro/components/ClientRouter.astro";
export { default as ClientRouter } from "astro/components/ClientRouter.astro";
`,
};
}
Expand Down
Loading