Astro: astro@5.5.3 Release

Release date:
March 18, 2025
Previous version:
astro@5.5.2 (released March 13, 2025)
Magnitude:
1,166 Diff Delta
Contributors:
7 total committers
Data confidence:
Commits:

23 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Top Contributors in astro@5.5.3

ematipico
github-actions[bot]
P4tt4te
Vardhaman619
sarah11918
dinero-7eb4
renovate-bot

Directory Browser for astro@5.5.3

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Patch Changes

The new function is useful when testing routes that, for some business logic, use Astro.rewrite.

For example, if you have a route /blog/post and for some business decision there's a rewrite to /generic-error, the container API implementation will look like this:

  import Post from '../src/pages/Post.astro';
  import GenericError from '../src/pages/GenericError.astro';
  import { experimental_AstroContainer as AstroContainer } from 'astro/container';

  const container = await AstroContainer.create();
  container.insertPageRoute('/generic-error', GenericError);
  const result = await container.renderToString(Post);
  console.log(result); // this should print the response from GenericError.astro

This new method only works for page routes, which means that endpoints aren't supported.