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 main, this PR will be updated.
Releases
[email protected]
Minor Changes
#6990
818252acd
Thanks @Princesseuh! - Generated optimized images are now cached inside thenode_modules/.astro/assets
folder. The cached images will be used to avoid doing extra work and speed up subsequent builds.#6659
80e3d4d3d
Thanks @lilnasy! - Implement Inline Stylesheets RFC as experimental#6771
3326492b9
Thanks @matthewp! - Implements a new class-based scoping strategyThis implements the Scoping RFC, providing a way to opt in to increased style specificity for Astro component styles.
This prevents bugs where global styles override Astro component styles due to CSS ordering and the use of element selectors.
To enable class-based scoping, you can set it in your config:
Note that the 0-specificity
:where
pseudo-selector is still the default strategy. The intent is to change'class'
to be the default in 3.0.#6959
cac4a321e
Thanks @bluwy! - Support<Code inline />
to output inline code HTML (nopre
tag)#6721
831b67cdb
Thanks @ematipico! - Implements a new experimental middleware in Astro.The middleware is available under the following experimental flag:
Or via CLI, using the new argument
--experimental-middleware
.Create a file called
middleware.{js,ts}
inside thesrc
folder, andexport a
onRequest
function.From
astro/middleware
, use thedefineMiddleware
utility to take advantage of type-safety, and usethe
sequence
utility to chain multiple middleware functions.Example:
#6932
49514e4ce
Thanks @bluwy! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to thepre
tag, e.g.<pre class="astro-code github-dark">
.Patch Changes
#6973
0883fd487
Thanks @matthewp! - Ensure multiple cookies set in dev result in multiple set-cookie headersUpdated dependencies [
49514e4ce
]:@astrojs/[email protected]
Minor Changes
ad907196c
Thanks @atilafassina! - Adds support to SSR routes to sitemap generation.@astrojs/[email protected]
Minor Changes
49514e4ce
Thanks @bluwy! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to thepre
tag, e.g.<pre class="astro-code github-dark">
.Patch Changes
818252acd
,80e3d4d3d
,3326492b9
,cac4a321e
,831b67cdb
,49514e4ce
,0883fd487
]:@astrojs/[email protected]
Patch Changes
#6932
49514e4ce
Thanks @bluwy! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to thepre
tag, e.g.<pre class="astro-code github-dark">
.Updated dependencies [
818252acd
,80e3d4d3d
,3326492b9
,cac4a321e
,831b67cdb
,49514e4ce
,0883fd487
]:@astrojs/[email protected]
Patch Changes
#6932
49514e4ce
Thanks @bluwy! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to thepre
tag, e.g.<pre class="astro-code github-dark">
.Updated dependencies [
49514e4ce
]:@astrojs/[email protected]
Patch Changes
ca329bbca
Thanks @SudoCat! - Prevent ID collisions in React.useId