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
#11341
49b5145
Thanks @madcampos! - Adds support for Shiki'sdefaultColor
option.This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes.
Configure
defaultColor: false
in your Shiki config to apply throughout your site, or pass to Astro's built-in<Code>
component to style an individual code block.#11304
2e70741
Thanks @Fryuni! - Refactors the type for integration hooks so that integration authors writing custom integration hooks can now allow runtime interactions between their integration and other integrations.This internal change should not break existing code for integration authors.
To declare your own hooks for your integration, extend the
Astro.IntegrationHooks
interface:Call your hooks on all other integrations installed in a project at the appropriate time. For example, you can call your hook on initialization before either the Vite or Astro config have resolved:
Other integrations can also now declare your hooks:
#11305
d495df5
Thanks @matthewp! - Experimental Server IslandsServer Islands allow you to specify components that should run on the server, allowing the rest of the page to be more aggressively cached, or even generated statically. Turn any
.astro
component into a server island by adding theserver:defer
directive and optionally, fallback placeholder content:The
server:defer
directive can be used on any Astro component in a project usinghybrid
orserver
mode with an adapter. There are no special APIs needed inside of the island.Enable server islands by adding the experimental flag to your Astro config with an appropriate
output
mode and adatper:For more information, see the server islands documentation.
#11482
7c9ed71
Thanks @Princesseuh! - Adds a--noSync
parameter to theastro check
command to skip the type-gen step. This can be useful when runningastro check
inside packages that have Astro components, but are not Astro projects#11098
36e30a3
Thanks @itsmatteomanf! - Adds a newinferRemoteSize()
function that can be used to infer the dimensions of a remote image.Previously, the ability to infer these values was only available by adding the [
inferSize
] attribute to the<Image>
and<Picture>
components orgetImage()
. Now, you can also access this data outside of these components.This is useful for when you need to know the dimensions of an image for styling purposes or to calculate different densities for responsive images.
#11391
6f9b527
Thanks @ARipeAppleByYoursTruly! - Adds Shiki'sdefaultColor
option to the<Code />
component, giving you more control in applying multiple themes#11176
a751458
Thanks @tsawada! - Adds two new values to the paginationpage
prop:page.first
andpage.last
for accessing the URLs of the first and last pages.Patch Changes
#11477
7e9c4a1
Thanks @ematipico! - Fixes an issue where the development server was emitting a 404 status code when the user uses a rewrite that emits a 200 status code.#11479
ca969d5
Thanks @florian-lefebvre! - Fixes a case where invalidastro:env
variables at runtime would not throw correctly#11489
061f1f4
Thanks @ematipico! - Move root inside the manifest and make serialisable#11415
e9334d0
Thanks @florian-lefebvre! - Refactors howsync
works and when it's called. Fixes an issue withastro:env
types in dev not being generated#11478
3161b67
Thanks @bluwy! - Supports importing Astro components with Vite queries, like?url
,?raw
, and?direct
#11491
fe3afeb
Thanks @matthewp! - Fix for Server Islands in Vercel adapterVercel, and probably other adapters only allow pre-defined routes. This makes it so that the
astro:build:done
hook includes the_server-islands/
route as part of the route data, which is used to configure available routes.#11483
34f9c25
Thanks @Princesseuh! - Fixes Astro not working on low versions of Node 18 and 20Updated dependencies [
49b5145
]:@astrojs/[email protected]
Minor Changes
#11304
2e70741
Thanks @Fryuni! - Removes theAstroDbIntegration
typeAstro integration hooks can now be extended and as such
@astrojs/db
no longer needs to declare it's own integration type. UsingAstroIntegration
will have the same type.If you were using the
AstroDbIntegration
type, apply this change to your integration code:Patch Changes
@astrojs/[email protected]
Minor Changes
6ad02b5
Thanks @bluwy! - Bumps Svelte 5 peer dependency to^5.0.0-next.190
and support the latest slots/snippets API@astrojs/[email protected]
Minor Changes
#11341
49b5145
Thanks @madcampos! - Adds support for Shiki'sdefaultColor
option.This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes.
Configure
defaultColor: false
in your Shiki config to apply throughout your site, or pass to Astro's built-in<Code>
component to style an individual code block.@astrojs/[email protected]
Patch Changes
49b5145
]:@astrojs/[email protected]
Patch Changes
49b5145
]:@astrojs/[email protected]
Patch Changes
2e70741
]: