Upgrade: v2.4 to v2.5.1
This guide takes a project from Velocity 2.4 or 2.5.0 to Velocity 2.5.1. There are no breaking changes, and nothing changes in your pages. Coming from 2.0–2.3? Follow v2.x to v2.4.1 first; the upgrade itself goes straight to 2.5.1.
What’s new
Section titled “What’s new”| 2.4.1 | 2.5.1 | |
|---|---|---|
| Agent skills | 6 | 7, with velocity-start-site |
| Site brief | .agents/site.md, created by your agent or the CLI | |
check:agent warnings | Adds content/placeholder, config/default-identity and a11y/multiple-h1 | |
create-velocity-astro | 2.1+ | 2.3+ recommended |
Run the upgrade
Section titled “Run the upgrade”npm create velocity-astro@latest upgradeAfter the upgrade
Section titled “After the upgrade”- Ask your agent to set up the site. If your project still has starter or demo content, ask it to “Set up this site for my business”. See Set up your site.
- Expect new warnings.
check:agentnow reports placeholders still on a page, the scaffold’s default name, author and email insite.config.ts, a build withoutSITE_URL, and pages with more than one<h1>. They’re warnings, sovalidatestill passes. Runnpm run check:agent -- --strictbefore launch to make them fail. - Coming from 2.5.0: the upgrade deletes files Velocity no longer ships and backs them up to
.velocity-backup/. Ifpackage.jsonhas adesignscript, delete it. Your theme, components and.agents/site.mdaren’t touched.
Verify
Section titled “Verify”npm installnpm run validate