Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
[email protected]
Minor Changes
#12067
c48916cThanks @stramel! - Adds experimental support for built-in SVG components.This feature allows you to import SVG files directly into your Astro project as components. By default, Astro will inline the SVG content into your HTML output.
To enable this feature, set
experimental.svgtotruein your Astro config:To use this feature, import an SVG file in your Astro project, passing any common SVG attributes to the imported component. Astro also provides a
sizeattribute to set equalheightandwidthproperties:For a complete overview, and to give feedback on this experimental API, see the Feature RFC.
#12329
8309c61Thanks @florian-lefebvre! - Adds a newastro:routes:resolvedhook to the Integration API. Also update theastro:build:donehook by deprecatingroutesand adding a newassetsmap.When building an integration, you can now get access to routes inside the
astro:routes:resolvedhook:This hook runs before
astro:config:done, and whenever a route changes in development.The
routesarray fromastro:build:doneis now deprecated, and exposed properties are now available onastro:routes:resolved, except fordistURL. For this, you can use the newly exposedassetsmap:const integration = () => { + let routes return { name: 'my-integration', hooks: { + 'astro:routes:resolved': (params) => { + routes = params.routes + }, 'astro:build:done': ({ - routes + assets }) => { + for (const route of routes) { + const distURL = assets.get(route.pattern) + if (distURL) { + Object.assign(route, { distURL }) + } + } console.log(routes) } } } }#12377
af867f3Thanks @ascorbic! - Adds experimental support for automatic responsive imagesThis feature is experimental and may change in future versions. To enable it, set
experimental.responsiveImagestotruein yourastro.config.mjsfile.When this flag is enabled, you can pass a
layoutprop to any<Image />or<Picture />component to create a responsive image. When a layout is set, images have automatically generatedsrcsetandsizesattributes based on the image's dimensions and the layout type. Images withresponsiveandfull-widthlayouts will have styles applied to ensure they resize according to their container.This
<Image />component will generate the following HTML output:Responsive image properties
These are additional properties available to the
<Image />and<Picture />components when responsive images are enabled:layout: The layout type for the image. Can beresponsive,fixed,full-widthornone. Defaults to value ofimage.experimentalLayout.fit: Defines how the image should be cropped if the aspect ratio is changed. Values match those of CSSobject-fit. Defaults tocover, or the value ofimage.experimentalObjectFitif set.position: Defines the position of the image crop if the aspect ratio is changed. Values match those of CSSobject-position. Defaults tocenter, or the value ofimage.experimentalObjectPositionif set.priority: If set, eagerly loads the image. Otherwise images will be lazy-loaded. Use this for your largest above-the-fold image. Defaults tofalse.Default responsive image settings
You can enable responsive images for all
<Image />and<Picture />components by settingimage.experimentalLayoutwith a default value. This can be overridden by thelayoutprop on each component.Example:
For a complete overview, and to give feedback on this experimental API, see the Responsive Images RFC.
#12475
3f02d5fThanks @ascorbic! - Changes the default content config location fromsrc/content/config.*tosrc/content.config.*.The previous location is still supported, and is required if the
legacy.collectionsflag is enabled.Patch Changes
#12424
4364bffThanks @ematipico! - Fixes an issue where an incorrect usage of Astro actions was lost when porting the fix from v4 to v5#12438
c8f877cThanks @ascorbic! - Fixes a bug where legacy content types were generated for content layer collections if they were in the content directory@astrojs/[email protected]
Patch Changes
8a46e80Thanks @marbrex! - Resolvevitepeer dependency problem for strict package managers like Yarn in PnP mode.@astrojs/[email protected]
Patch Changes
8a46e80Thanks @marbrex! - Resolvevitepeer dependency problem for strict package managers like Yarn in PnP mode.@astrojs/[email protected]
Patch Changes
8a46e80Thanks @marbrex! - Resolvevitepeer dependency problem for strict package managers like Yarn in PnP mode.@astrojs/[email protected]
Patch Changes
#12481
8a46e80Thanks @marbrex! - Resolvevitepeer dependency problem for strict package managers like Yarn in PnP mode.Updated dependencies [
c48916c,4364bff,c8f877c,8309c61,af867f3,3f02d5f]:@astrojs/[email protected]
Patch Changes
8a46e80Thanks @marbrex! - Resolvevitepeer dependency problem for strict package managers like Yarn in PnP mode.