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.
next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onnext
.Releases
[email protected]
Major Changes
#8113
2484dc408
Thanks @Princesseuh! - This import alias is no longer included by default with astro:assets. If you were using this alias with experimental assets, you must convert them to relative file paths, or create your own import aliases.#7979
dbc97b121
Thanks @bluwy! - Export experimentaldev
,build
,preview
, andsync
APIs fromastro
. These APIs allow you to run Astro's commands programmatically, and replaces the previous entry point that runs the Astro CLI.While these APIs are experimental, the inline config parameter is relatively stable without foreseeable changes. However, the returned results of these APIs are more likely to change in the future.
#8085
68efd4a8b
Thanks @bluwy! - Remove exports forastro/internal/*
andastro/runtime/server/*
in favour ofastro/runtime/*
. Add newastro/compiler-runtime
export for compiler-specific runtime code.These are exports for Astro's internal API and should not affect your project, but if you do use these entrypoints, you can migrate like below:
#8030
5208a3c8f
Thanks @natemoo-re! - Removed duplicateastro/dist/jsx
export. Please use theastro/jsx
export instead#8118
8a5b0c1f3
Thanks @lilnasy! - Astro is smarter about CSS! Small stylesheets are now inlined by default, and no longer incur the cost of additional requests to your server. Your visitors will have to wait less before they see your pages, especially those in remote locations or in a subway.This may not be news to you if you had opted-in via the
build.inlineStylesheets
configuration. Stabilized in Astro 2.6 and set to "auto" by default for Starlight, this configuration allows you to reduce the number of requests for stylesheets by inlining them into <style> tags. The new default is "auto", which selects assets smaller than 4kB and includes them in the initial response.To go back to the previous default behavior, change
build.inlineStylesheets
to "never".#7921
b76c166bd
Thanks @Princesseuh! -astro:assets
is now enabled by default. If you were previously using theexperimental.assets
flag, please remove it from your config. Also note that the previous@astrojs/image
integration is incompatible, and must be removed.This also brings two important changes to using images in Astro:
![]()
syntax will now resolve relative images located anywhere in your project in addition to remote images and images stored in thepublic/
folder. This notably unlocks storing images next to your content.Please see our existing Assets page in Docs for more information about using
astro:assets
.Minor Changes
#8101
ea7ff5177
Thanks @matthewp! -astro:
namespace aliases for middleware and componentsThis adds aliases of
astro:middleware
andastro:components
for the middleware and components modules. This is to make our documentation consistent between are various modules, where some are virtual modules and others are not. Going forward new built-in modules will use this namespace.Patch Changes
#8128
c2c71d90c
Thanks @Princesseuh! - Update error message when Sharp couldn't be found (tends to happen on pnpm notably)#8092
7177f7579
Thanks @natemoo-re! - Ensure dotfiles are cleaned during static builds#8070
097a8e4e9
Thanks @lilnasy! - Fix a handful of edge cases with prerendered 404/500 pages#8078
2540feedb
Thanks @alexanderniebuhr! - Reimplement fix: correctly handle prerender pages in split mode #7509 to correctly emit pre-rendered pages now thatbuild.split
is deprecated and this configuration has been moved tofunctionPerRoute
inside the adapter.#8105
0e0fa605d
Thanks @martrapp! - ViewTransition: bug fix for lost scroll position in browser history#7778
d6b494376
Thanks @y-nk! - Added support for optimizing remote images from authorized sources when usingastro:assets
. This comes with two new parameters to specify which domains (image.domains
) and host patterns (image.remotePatterns
) are authorized for remote images.For example, the following configuration will only allow remote images from
astro.build
to be optimized:The following configuration will only allow remote images from HTTPS hosts:
#8072
4477bb41c
Thanks @matthewp! - Update Astro types to reflect that compress defaults to true#8130
3e834293d
Thanks @Princesseuh! - Add some polyfills for Stackblitz until they support Node 18. Running Astro on Node 16 is still not officially supported, however.Updated dependencies [
3e834293d
]:@astrojs/[email protected]
Major Changes
#8078
2540feedb
Thanks @alexanderniebuhr! - The configurationbuild.split
andbuild.excludeMiddleware
are deprecated.You can now configure this behavior using
functionPerRoute
in your Cloudflare integration config:Patch Changes
#8079
7b77b34ce
Thanks @alexanderniebuhr! - Sync Astro Asset support across both modesUpdated dependencies [
2484dc408
,c2c71d90c
,7177f7579
,097a8e4e9
,dbc97b121
,2540feedb
,ea7ff5177
,68efd4a8b
,0e0fa605d
,5208a3c8f
,8a5b0c1f3
,d6b494376
,4477bb41c
,3e834293d
,b76c166bd
]:@astrojs/[email protected]
Major Changes
#8131
43140b87a
Thanks @matthewp! - Support Astro 3 JSX formatThis upgrades the MDX plugin to correctly work with the new JSX render API in Astro 3.
Patch Changes
2484dc408
,c2c71d90c
,7177f7579
,097a8e4e9
,dbc97b121
,2540feedb
,ea7ff5177
,68efd4a8b
,0e0fa605d
,5208a3c8f
,8a5b0c1f3
,d6b494376
,4477bb41c
,3e834293d
,b76c166bd
]:@astrojs/[email protected]
Minor Changes
#8082
16a3fdf93
Thanks @matthewp! - Optionally parse React slots as React children.This adds a new configuration option for the React integration
experimentalReactChildren
:With this enabled, children passed to React from Astro components via the default slot are parsed as React components.
This enables better compatibility with certain React components which manipulate their children.
[email protected]
Patch Changes
#7944
dff0f0f8d
Thanks @colinhacks! - Update 'dev' command for Bun users#8102
e6e1de4f0
Thanks @natemoo-re! - Verify internet connection and that--template
exists before continuing@astrojs/[email protected]
Patch Changes
5b4b78245
Thanks @natemoo-re! - Updatebabel-preset-solid
dependency to^1.7.7
@astrojs/[email protected]
Patch Changes
#7291
0bf2cca5d
Thanks @kitschpatrol! - Filter unknownclass
prop warningsUpdated dependencies [
2484dc408
,c2c71d90c
,7177f7579
,097a8e4e9
,dbc97b121
,2540feedb
,ea7ff5177
,68efd4a8b
,0e0fa605d
,5208a3c8f
,8a5b0c1f3
,d6b494376
,4477bb41c
,3e834293d
,b76c166bd
]:@astrojs/[email protected]
Patch Changes
#7778
d6b494376
Thanks @y-nk! - Update image support to work with latest version of AstroUpdated dependencies [
2484dc408
,c2c71d90c
,7177f7579
,097a8e4e9
,dbc97b121
,2540feedb
,ea7ff5177
,68efd4a8b
,0e0fa605d
,5208a3c8f
,8a5b0c1f3
,d6b494376
,4477bb41c
,3e834293d
,b76c166bd
]:@astrojs/[email protected]
Patch Changes
3e834293d
Thanks @Princesseuh! - Add some polyfills for Stackblitz until they support Node 18. Running Astro on Node 16 is still not officially supported, however.