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
astro@4.3.0
Minor Changes
#9839
58f9e393a188702eef5329e41deff3dcb65a3230
Thanks @Princesseuh! - Adds a newComponentProps
type export fromastro/types
to get the props type of an Astro component.#9159
7d937c158959e76443a02f740b10e251d14dbd8c
Thanks @bluwy! - Adds CLI shortcuts as an easter egg for the dev server:o + enter
: opens the site in your browserq + enter
: quits the dev serverh + enter
: prints all available shortcuts#9764
fad4f64aa149086feda2d1f3a0b655767034f1a8
Thanks @matthewp! - Adds a newbuild.format
configuration option: 'preserve'. This option will preserve your source structure in the final build.The existing configuration options,
file
anddirectory
, either build all of your HTML pages as files matching the route name (e.g./about.html
) or build all your files asindex.html
within a nested directory structure (e.g./about/index.html
), respectively. It was not previously possible to control the HTML file built on a per-file basis.One limitation of
build.format: 'file'
is that it cannot createindex.html
files for any individual routes (other than the base path of/
) while otherwise building named files. Creating explicit index pages within your file structure still generates a file named for the page route (e.g.src/pages/about/index.astro
builds/about.html
) when using thefile
configuration option.Rather than make a breaking change to allow
build.format: 'file'
to be more flexible, we decided to create a newbuild.format: 'preserve'
.The new format will preserve how the filesystem is structured and make sure that is mirrored over to production. Using this option:
about.astro
becomesabout.html
about/index.astro
becomesabout/index.html
See the [
build.format
configuration options reference] for more details.#9143
041fdd5c89920f7ccf944b095f29e451f78b0e28
Thanks @ematipico! - Adds experimental support for a new i18n domain routing option ("domains"
) that allows you to configure different domains for individual locales in entirely server-rendered projects.To enable this in your project, first configure your
server
-rendered project's i18n routing with your preferences if you have not already done so. Then, set theexperimental.i18nDomains
flag totrue
and addi18n.domains
to map any of your supportedlocales
to custom URLs:With
"domains"
configured, the URLs emitted bygetAbsoluteLocaleUrl()
andgetAbsoluteLocaleUrlList()
will use the options set ini18n.domains
.Similarly, your localized files will create routes at corresponding URLs:
/en/about.astro
will be reachable at the URLhttps://example.com/about
./fr/about.astro
will be reachable at the URLhttps://fr.example.com/about
./es/about.astro
will be reachable at the URLhttps://example.es/about
./ja/about.astro
will be reachable at the URLhttps://example.com/ja/about
.See our Internationalization Guide for more details and limitations on this experimental routing feature.
#9755
d4b886141bb342ac71b1c060e67d66ca2ffbb8bd
Thanks @OliverSpeir! - Fixes an issue where images in Markdown required a relative specifier (e.g../
)Now, you can use the standard
![](img.png)
syntax in Markdown files for images colocated in the same folder: no relative specifier required!There is no need to update your project; your existing images will still continue to work. However, you may wish to remove any relative specifiers from these Markdown images as they are no longer necessary:
Patch Changes
#9908
2f6d1faa6f2d6de2d4ccd2a48adf5adadc82e593
Thanks @lilnasy! - Improves http behavior relating to errors encountered while streaming a response.#9877
7be5f94dcfc73a78d0fb301eeff51614d987a165
Thanks @fabiankachlock! - Fixes the content config type path on windows#9143
041fdd5c89920f7ccf944b095f29e451f78b0e28
Thanks @ematipico! - Fixes an issue where the functiongetLocaleRelativeUrlList
wasn't normalising the paths by default#9911
aaedb848b1d6f683840035865528506a346ea659
Thanks @natemoo-re! - Fixes an issue where some adapters that do not include astart()
export would error rather than silently proceed@astrojs/node@8.2.0
Minor Changes
041fdd5c89920f7ccf944b095f29e451f78b0e28
Thanks @ematipico! - Adds experimental support for internationalization domains@astrojs/vercel@7.1.0
Minor Changes
041fdd5c89920f7ccf944b095f29e451f78b0e28
Thanks @ematipico! - Adds experimental support for internationalization domainsPatch Changes
#9885
49e0c24d7f90d00e986533fcf546665967540ce7
Thanks @matthewp! - Better ignores for Vercel file-tracerThe Vercel adapter has a file-tracer it uses to detect which files should be moved over to the dist folder. When its done it prints warnings for things that it detected that maybe should be moved.
This change expands how we do ignores so that:
.pnpm
.@libsql/client
is ignored, a package we know is not bundled.