Astro: [email protected] Release

Release date:
March 18, 2025
Previous version:
[email protected] (released March 13, 2025)
Magnitude:
1,210 Diff Delta
Contributors:
8 total committers
Data confidence:
Commits:

25 Commits in this Release

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

Authored March 18, 2025
Authored March 18, 2025
Authored March 14, 2025
Authored March 17, 2025
Authored March 18, 2025
Authored March 14, 2025
Authored March 15, 2025
Authored March 18, 2025
Authored March 14, 2025
Authored March 14, 2025
Authored March 18, 2025

Top Contributors in [email protected]

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

Directory Browser for [email protected]

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.

  • #13426 565583b Thanks @ascorbic! - Fixes a bug that caused the astro add command to ignore the --yes flag for third-party integrations

  • #13428 9cac9f3 Thanks @matthewp! - Prevent bad value in x-forwarded-host from crashing request

  • #13432 defad33 Thanks @P4tt4te! - Fix an issue in the Container API, where the renderToString function doesn't render adequately nested slots when they are components.

  • Updated dependencies [ea74336]: