Skip to content

Release

Velocity 1.0: Out of Beta, on Stable Astro 6

Astro 6 is stable, and so is Velocity. Version 1.0 moves every Astro package off beta and ships upgrade notes for the Astro 6 changes. Here's what's in it and how to start.

Release No. 08

Velocity has been built on Astro 6 since its first release. That was a deliberate bet: starting on the beta meant every project would be on the current major from day one, instead of facing a migration a few months in.

The cost was a version number with “beta” in it. Velocity could only be as stable as the framework underneath it, and until today that framework was 6.0.0-beta.20.

Astro 6 went stable today. Velocity 1.0 ships on it the same day.

What 1.0 means

The 1.0 release is a dependency release, on purpose. All the feature work landed during the betas. This one moves every Astro package to a stable version:

Package0.5 beta1.0
astro6.0.0-beta.206.0.0
@astrojs/mdx5.0.0-beta.125.0.0
@astrojs/react5.0.0-beta.45.0.0
@astrojs/check0.9.7-beta.10.9.7

No code changes are needed in your project for this step. The one source change in 1.0 fixes a stale code sample on the home page that still imported z from astro:content instead of astro/zod.

What 1.0 does promise is that from here on, breaking changes come with a migration. Velocity’s velocity-manifest.json now tags every migration with fromVersion and toVersion, so the CLI only shows you the steps between your version and the new one. astro.config.mjs also joins the protected files, so upgrades won’t overwrite your config.

What’s in Velocity 1.0

Counted from the 1.0 tree:

  • 33 UI components in 8 categories (form, data display, feedback, overlay, layout, marketing, content, primitives), with CVA variants and design tokens. 26 of them also have a React version for islands.
  • 7 patterns built from those components: ContactForm, NewsletterForm, FormField, PasswordInput, SearchInput, StatCard and EmptyState.
  • 5 layouts: Base, Page, Blog, Landing and Marketing.
  • Content collections for blog posts, pages, authors and FAQs, using glob() loaders and schemas from astro/zod.
  • SEO: an SEO component, JSON-LD helpers for website, organization, blog post, breadcrumb and FAQ schemas, breadcrumbs, a sitemap, robots.txt, an RSS feed, a web manifest, and a generated share image for each page.
  • Consent and analytics: GA4 or Google Tag Manager with Google Consent Mode v2, a configurable consent banner, and a consent-aware Google Maps embed. The 0.5 post covers how it works.
  • Theming: OKLCH color tokens, typography, shadow and radius tokens, and two themes, default and midnight.
  • API routes for the contact and newsletter forms, with validation.
  • Security: checkOrigin for CSRF protection, plus security headers for Vercel and Netlify.

The blog and pages schemas accept en, es and fr locales, and the CLI adds full i18n when you scaffold a project.

What Astro 6 brought

On the Southwell Media blog, we wrote up what changed in Astro 6 from running the beta on client work. Here’s how those changes show up in a Velocity project.

Breaking changes, already handled

Astro 6 drops Node 18 and 20. Velocity requires Node 22.12 or later, set in engines and .nvmrc.

Zod moved to version 4, and Astro now exports it from astro/zod. Every Velocity schema imports from there, and the form routes use Zod 4’s z.email() instead of z.string().email().

Astro.glob() is gone, replaced by content collections, which is how Velocity loads content already. The old <ViewTransitions /> component is now <ClientRouter />, which BaseLayout uses.

Subtler changes to check

The upgrade notes Velocity ships with cover the changes that don’t throw errors:

  • Images are now cropped by default and never upscaled. Check your hero and blog images, and add fit: 'contain' where you need it.
  • Heading IDs are generated differently. If you link to #anchors in your MDX, make sure they still resolve.
  • Scripts and styles render in the order they’re defined, instead of being grouped. Custom components that rely on load order are worth a look.
  • Vite 7 is bundled, which needs Vitest 3.2 or later. The upgrade bumps it for you.

A dev server that matches production

The biggest change in Astro 6 is the unified dev runtime. Development now runs your code in the same JavaScript engine as production instead of simulating it, which on Cloudflare Workers means workerd. Bugs that used to appear only after deploying can now show up locally. Velocity uses Astro’s default static output, so you’ll feel this most once you add server code or deploy to Workers.

CSP is stable, and Velocity isn’t using it yet

Astro 6 makes Content Security Policy a first-class feature: set it in your config and Astro generates the headers and hashes for you. It isn’t on in Velocity 1.0.

In 0.4.5 we took the CSP config out because Astro hashes <style> blocks, and under the CSP spec that cancels 'unsafe-inline' for the inline style attributes a few components rely on. The scripts are ready: inline scripts are static and read their data from JSON elements, so their hashes stay fixed. When we removed it, we said we’d revisit CSP once Astro’s API was proven, and a stable release is the first step. In the meantime, see our earlier post on CSP for the approach and the Astro CSP docs for the options.

Live content collections

Astro 6 also stabilizes live content collections, which fetch data at request time. Velocity doesn’t use them, since its content is static. If you add a server-rendered page for live data, they’re available.

Get it

Start a new project:

pnpm create velocity-astro my-project

Or clone the repo directly:

git clone https://github.com/southwellmedia/velocity.git my-project
cd my-project
pnpm install

The CLI is on npm and the code is on GitHub. For everything else in Astro 6, start with the Astro docs.

All posts
Share:

Related posts