Files
truecharts/website
TrueCharts Bot abf9c53f42 fix(website): update astro 4.16.18 → 5.1.9 (#30335)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astro](https://astro.build)
([source](https://redirect.github.com/withastro/astro/tree/HEAD/packages/astro))
| dependencies | major | [`4.16.18` ->
`5.1.9`](https://renovatebot.com/diffs/npm/astro/4.16.18/5.1.9) |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

Add the preset `:preserveSemverRanges` to your config if you don't want
to pin your dependencies.

---

### Release Notes

<details>
<summary>withastro/astro (astro)</summary>

###
[`v5.1.9`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#519)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.8...astro@5.1.9)

##### Patch Changes

-
[#&#8203;12986](https://redirect.github.com/withastro/astro/pull/12986)
[`8911bda`](https://redirect.github.com/withastro/astro/commit/8911bdacabb7fffb82bb3b3628467731ea233187)
Thanks [@&#8203;wetheredge](https://redirect.github.com/wetheredge)! -
Updates types and dev toolbar for ARIA 1.2 attributes and roles

-
[#&#8203;12892](https://redirect.github.com/withastro/astro/pull/12892)
[`8f520f1`](https://redirect.github.com/withastro/astro/commit/8f520f1cc67db51feb966c710e72490a05b88954)
Thanks [@&#8203;louisescher](https://redirect.github.com/louisescher)! -
Adds a more descriptive error when a content collection entry has an
invalid ID.

-
[#&#8203;13031](https://redirect.github.com/withastro/astro/pull/13031)
[`f576519`](https://redirect.github.com/withastro/astro/commit/f5765196e9cd5c582da04ae3bceb4ee1d62b7eae)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Updates the server islands encoding logic to only escape the script
end tag open delimiter and opening HTML comment syntax

-
[#&#8203;13026](https://redirect.github.com/withastro/astro/pull/13026)
[`1d272f6`](https://redirect.github.com/withastro/astro/commit/1d272f6a5a3af16ad2ab9af41b7193ce67964b69)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a regression that prevented the import of Markdown files as raw text or
URLs.

###
[`v5.1.8`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#518)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.7...astro@5.1.8)

##### Patch Changes

-
[#&#8203;12998](https://redirect.github.com/withastro/astro/pull/12998)
[`9ce0038`](https://redirect.github.com/withastro/astro/commit/9ce003802109f704cc1f081759f3d2af2c1ea2c2)
Thanks [@&#8203;Kynson](https://redirect.github.com/Kynson)! - Fixes the
issue that audit incorrectly flag images as above the fold when the
scrolling container is not body

-
[#&#8203;12990](https://redirect.github.com/withastro/astro/pull/12990)
[`2e12f1d`](https://redirect.github.com/withastro/astro/commit/2e12f1d7526f12fa0e1e63482f100bbb81a8b36e)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused references to be incorrectly reported as invalid

-
[#&#8203;12984](https://redirect.github.com/withastro/astro/pull/12984)
[`2d259cf`](https://redirect.github.com/withastro/astro/commit/2d259cf4abf27a4f0a067bedb32d0459c4fce507)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug in dev where files would stop being watched if the Astro config
file was edited

-
[#&#8203;12984](https://redirect.github.com/withastro/astro/pull/12984)
[`2d259cf`](https://redirect.github.com/withastro/astro/commit/2d259cf4abf27a4f0a067bedb32d0459c4fce507)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug where the content layer would use an outdated version of the Astro
config if it was edited in dev

-
[#&#8203;12982](https://redirect.github.com/withastro/astro/pull/12982)
[`429aa75`](https://redirect.github.com/withastro/astro/commit/429aa7547572915b5f7f9a4146529e704069128b)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Fixes an
issue where server islands do not work in projects that use an adapter
but only have prerendered pages. If an adapter is added, the server
island endpoint will now be added by default.

-
[#&#8203;12995](https://redirect.github.com/withastro/astro/pull/12995)
[`78fd73a`](https://redirect.github.com/withastro/astro/commit/78fd73a0dfbfab120111d5f1d1eaecd563bc82a6)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where `astro:actions` types would not work when using
`src/actions.ts`

-
[#&#8203;13011](https://redirect.github.com/withastro/astro/pull/13011)
[`cf30880`](https://redirect.github.com/withastro/astro/commit/cf3088060d45227dcb48e041c4ed5e0081d71398)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Upgrades Vite

-
[#&#8203;12733](https://redirect.github.com/withastro/astro/pull/12733)
[`bbf1d88`](https://redirect.github.com/withastro/astro/commit/bbf1d8894e6ce5d2ebe45452a27072b9929053a8)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused the dev server to return an error if requesting "//"

-
[#&#8203;13001](https://redirect.github.com/withastro/astro/pull/13001)
[`627aec3`](https://redirect.github.com/withastro/astro/commit/627aec3f04de424ec144cefac4a5a3b70d9ba0fb)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused Astro to attempt to inject environment variables into
non-source files, causing performance problems and broken builds

###
[`v5.1.7`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#517)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.6...astro@5.1.7)

##### Patch Changes

-
[#&#8203;12361](https://redirect.github.com/withastro/astro/pull/12361)
[`3d89e62`](https://redirect.github.com/withastro/astro/commit/3d89e6282235a8da45d9ddfe02bcf7ec78056941)
Thanks [@&#8203;LunaticMuch](https://redirect.github.com/LunaticMuch)! -
Upgrades the `esbuild` version to match `vite`

-
[#&#8203;12980](https://redirect.github.com/withastro/astro/pull/12980)
[`1a026af`](https://redirect.github.com/withastro/astro/commit/1a026afb427cd4b472c8f1174a08f10086f4fb89)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where setting the status of a page to `404` in
development would show the default 404 page (or custom one if provided)
instead of using the current page

-
[#&#8203;12182](https://redirect.github.com/withastro/astro/pull/12182)
[`c30070b`](https://redirect.github.com/withastro/astro/commit/c30070b9271e4c494e7cbf3a1c45515782034911)
Thanks [@&#8203;braden-w](https://redirect.github.com/braden-w)! -
Improves matching of 404 and 500 routes

- Updated dependencies
\[[`3d89e62`](https://redirect.github.com/withastro/astro/commit/3d89e6282235a8da45d9ddfe02bcf7ec78056941)]:
-
[@&#8203;astrojs/markdown-remark](https://redirect.github.com/astrojs/markdown-remark)[@&#8203;6](https://redirect.github.com/6).0.2

###
[`v5.1.6`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#516)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.5...astro@5.1.6)

##### Patch Changes

-
[#&#8203;12956](https://redirect.github.com/withastro/astro/pull/12956)
[`3aff68a`](https://redirect.github.com/withastro/astro/commit/3aff68a4195a608e92dc6299610a4b06e7bb96f1)
Thanks [@&#8203;kaytwo](https://redirect.github.com/kaytwo)! - Removes
encryption of empty props to allow server island cacheability

-
[#&#8203;12977](https://redirect.github.com/withastro/astro/pull/12977)
[`80067c0`](https://redirect.github.com/withastro/astro/commit/80067c032f9ce5852f3315d1046b2d0c220ddcd5)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where accessing `astro:env` APIs or `import.meta.env`
inside the content config file would not work

-
[#&#8203;12839](https://redirect.github.com/withastro/astro/pull/12839)
[`57be349`](https://redirect.github.com/withastro/astro/commit/57be3494e2bdc178d073243c8cbfa10edb85b049)
Thanks
[@&#8203;mtwilliams-code](https://redirect.github.com/mtwilliams-code)!
- Fix Astro.currentLocale returning the incorrect locale when using
fallback rewrites in SSR mode

-
[#&#8203;12962](https://redirect.github.com/withastro/astro/pull/12962)
[`4b7a2ce`](https://redirect.github.com/withastro/astro/commit/4b7a2ce9e743a5624617563022635678a5ba6051)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Skips
updating content layer files if content is unchanged

-
[#&#8203;12942](https://redirect.github.com/withastro/astro/pull/12942)
[`f00c2dd`](https://redirect.github.com/withastro/astro/commit/f00c2ddc31b5285d14c2f0808c01eafaaf31f5c9)
Thanks [@&#8203;liruifengv](https://redirect.github.com/liruifengv)! -
Improves the session error messages

-
[#&#8203;12966](https://redirect.github.com/withastro/astro/pull/12966)
[`d864e09`](https://redirect.github.com/withastro/astro/commit/d864e0991e05438d4bdb5e14fab4f7f75efe2a1f)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Ensures old content collection entry is deleted if a markdown
frontmatter slug is changed in dev

###
[`v5.1.5`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#515)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.4...astro@5.1.5)

##### Patch Changes

-
[#&#8203;12934](https://redirect.github.com/withastro/astro/pull/12934)
[`673a518`](https://redirect.github.com/withastro/astro/commit/673a518b011e2df35a099f8205611d98a223a92a)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a regression where the Astro Container didn't work during the
build, using `pnpm`

-
[#&#8203;12955](https://redirect.github.com/withastro/astro/pull/12955)
[`db447f2`](https://redirect.github.com/withastro/astro/commit/db447f2816836b635355cc2b0a73678facd155a5)
Thanks [@&#8203;martrapp](https://redirect.github.com/martrapp)! - Lets
TypeScript know about the "blocking" and "disabled" attributes of the
`<link>` element.

-
[#&#8203;12922](https://redirect.github.com/withastro/astro/pull/12922)
[`faf74af`](https://redirect.github.com/withastro/astro/commit/faf74af522f4499ab95531b24a0a1c14070abe8b)
Thanks [@&#8203;adamchal](https://redirect.github.com/adamchal)! -
Improves performance of static asset generation by fixing a bug that
caused image transforms to be performed serially. This fix ensures that
processing uses all CPUs when running in a multi-core environment.

-
[#&#8203;12947](https://redirect.github.com/withastro/astro/pull/12947)
[`3c2292f`](https://redirect.github.com/withastro/astro/commit/3c2292f2f0accf1974b30dbe32f040c56413e731)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused empty content collections when running dev with
NODE_ENV set

###
[`v5.1.4`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#514)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.3...astro@5.1.4)

##### Patch Changes

-
[#&#8203;12927](https://redirect.github.com/withastro/astro/pull/12927)
[`ad2a752`](https://redirect.github.com/withastro/astro/commit/ad2a752662946e3a80849605f073812b06adf632)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a bug where Astro attempted to decode a request URL multiple
times, resulting in an unexpected behaviour when decoding the character
`%`

-
[#&#8203;12912](https://redirect.github.com/withastro/astro/pull/12912)
[`0c0c66b`](https://redirect.github.com/withastro/astro/commit/0c0c66bf0df23ab5a9bd2f147e303d8397d3222e)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Improves the config error for invalid combinations of `context` and
`access` properties under `env.schema`

-
[#&#8203;12935](https://redirect.github.com/withastro/astro/pull/12935)
[`3d47e6b`](https://redirect.github.com/withastro/astro/commit/3d47e6baff7a17d3ef09630b0d90362baef41f97)
Thanks [@&#8203;AirBorne04](https://redirect.github.com/AirBorne04)! -
Fixes an issue where `Astro.locals` coming from an adapter weren't
available in the `404.astro`, when using the `astro dev` command,

-
[#&#8203;12925](https://redirect.github.com/withastro/astro/pull/12925)
[`44841fc`](https://redirect.github.com/withastro/astro/commit/44841fc281f8920b32f4b4a94deefeb3ad069cf3)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Ensures image styles are not imported unless experimental responsive
images are enabled

-
[#&#8203;12926](https://redirect.github.com/withastro/astro/pull/12926)
[`8e64bb7`](https://redirect.github.com/withastro/astro/commit/8e64bb727f78f24b26fd1c0b1289ab1ccd611114)
Thanks [@&#8203;oliverlynch](https://redirect.github.com/oliverlynch)! -
Improves remote image cache efficiency by separating image data and
metadata into a binary and sidecar JSON file.

-
[#&#8203;12920](https://redirect.github.com/withastro/astro/pull/12920)
[`8b9d530`](https://redirect.github.com/withastro/astro/commit/8b9d53037879cd7ca7bee4d20b4e6f08e984a7df)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Processes
markdown with empty body as remark and rehype plugins may add additional
content or frontmatter

-
[#&#8203;12918](https://redirect.github.com/withastro/astro/pull/12918)
[`fd12a26`](https://redirect.github.com/withastro/astro/commit/fd12a26ac6012c6b8a26f5a178e1bb46092a1806)
Thanks [@&#8203;lameuler](https://redirect.github.com/lameuler)! - Fixes
a bug where the logged output path does not match the actual output path
when using `build.format: 'preserve'`

-
[#&#8203;12676](https://redirect.github.com/withastro/astro/pull/12676)
[`2ffc0fc`](https://redirect.github.com/withastro/astro/commit/2ffc0fcab78b658a6ee73a8f8b291802093dce5e)
Thanks [@&#8203;koyopro](https://redirect.github.com/koyopro)! - Allows
configuring Astro modules TypeScript compilation with the `vite.esbuild`
config

-
[#&#8203;12938](https://redirect.github.com/withastro/astro/pull/12938)
[`dbb04f3`](https://redirect.github.com/withastro/astro/commit/dbb04f3c04ce868b5c985c848a2c40a3761a6dad)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug where content collections would sometimes appear empty when first
running astro dev

-
[#&#8203;12937](https://redirect.github.com/withastro/astro/pull/12937)
[`30edb6d`](https://redirect.github.com/withastro/astro/commit/30edb6d9d0aaf28bea1fec73879f63fe134507d0)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a bug where users could use `Astro.request.headers` during a
rewrite inside prerendered routes. This an invalid behaviour, and now
Astro will show a warning if this happens.

-
[#&#8203;12937](https://redirect.github.com/withastro/astro/pull/12937)
[`30edb6d`](https://redirect.github.com/withastro/astro/commit/30edb6d9d0aaf28bea1fec73879f63fe134507d0)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where the use of `Astro.rewrite` would trigger the
invalid use of `Astro.request.headers`

###
[`v5.1.3`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#513)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.2...astro@5.1.3)

##### Patch Changes

-
[#&#8203;12877](https://redirect.github.com/withastro/astro/pull/12877)
[`73a0788`](https://redirect.github.com/withastro/astro/commit/73a078835eb92a05c3f681ee025c93d6db85b907)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Fixes
sourcemap warning generated by the `astro:server-islands` Vite plugin

-
[#&#8203;12906](https://redirect.github.com/withastro/astro/pull/12906)
[`2d89492`](https://redirect.github.com/withastro/astro/commit/2d89492d73142ed5c7cea9448d841a9892e66598)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused pages that return an empty array from getStaticPath to
match every path

-
[`011fa0f`](https://redirect.github.com/withastro/astro/commit/011fa0f00ce457cb6b582d36b6b5b17aa89f0a70)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where `astro:content` types would be erased when
restarting the dev server

-
[#&#8203;12907](https://redirect.github.com/withastro/astro/pull/12907)
[`dbf1275`](https://redirect.github.com/withastro/astro/commit/dbf1275987d4d9724eab471f1600fba9a50aefb8)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a regression around the server islands route, which was not
passed to the adapters `astro:build:done` hook

-
[#&#8203;12818](https://redirect.github.com/withastro/astro/pull/12818)
[`579bd93`](https://redirect.github.com/withastro/astro/commit/579bd93794b787485479aa3b16554409a0504ed2)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
race condition where dev server would attempt to load collections before
the content had loaded

-
[#&#8203;12883](https://redirect.github.com/withastro/astro/pull/12883)
[`fbac92f`](https://redirect.github.com/withastro/astro/commit/fbac92f8bdbb5ee1312726b2a535a81271b3f7d6)
Thanks [@&#8203;kaytwo](https://redirect.github.com/kaytwo)! - Fixes a
bug where responses can be returned before session data is saved

-
[#&#8203;12815](https://redirect.github.com/withastro/astro/pull/12815)
[`3acc654`](https://redirect.github.com/withastro/astro/commit/3acc65444c27d87b6f2d61bdfa7df0e0db4e2686)
Thanks [@&#8203;ericswpark](https://redirect.github.com/ericswpark)! -
Some non-index files that were incorrectly being treated as index files
are now excluded

-
[#&#8203;12884](https://redirect.github.com/withastro/astro/pull/12884)
[`d7e97a7`](https://redirect.github.com/withastro/astro/commit/d7e97a775dda7a851bfc10b06161f9a1d3631ed3)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Adds
`render()` to stub content types

-
[#&#8203;12883](https://redirect.github.com/withastro/astro/pull/12883)
[`fbac92f`](https://redirect.github.com/withastro/astro/commit/fbac92f8bdbb5ee1312726b2a535a81271b3f7d6)
Thanks [@&#8203;kaytwo](https://redirect.github.com/kaytwo)! - Fixes a
bug where session data could be corrupted if it is changed after calling
.set()

-
[#&#8203;12827](https://redirect.github.com/withastro/astro/pull/12827)
[`7b5dc6f`](https://redirect.github.com/withastro/astro/commit/7b5dc6f0f1fbb825f52cd587aa1f7d21d731b3de)
Thanks [@&#8203;sinskiy](https://redirect.github.com/sinskiy)! - Fixes
an issue when crawlers try to index Server Islands thinking that Server
Islands are pages

###
[`v5.1.2`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#512)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.1...astro@5.1.2)

##### Patch Changes

-
[#&#8203;12798](https://redirect.github.com/withastro/astro/pull/12798)
[`7b0cb85`](https://redirect.github.com/withastro/astro/commit/7b0cb852f6336c0f9cc65bd044864004e759d810)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Improves warning logs for invalid content collection configuration

-
[#&#8203;12781](https://redirect.github.com/withastro/astro/pull/12781)
[`96c4b92`](https://redirect.github.com/withastro/astro/commit/96c4b925333fede1a53d19657d15e0052da90780)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a regression that caused `default()` to not work with `reference()`

-
[#&#8203;12820](https://redirect.github.com/withastro/astro/pull/12820)
[`892dd9f`](https://redirect.github.com/withastro/astro/commit/892dd9f6cd3935ce1d4f4dec523b248c2d15da12)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused cookies to not be deleted when destroying a session

-
[#&#8203;12864](https://redirect.github.com/withastro/astro/pull/12864)
[`440d8a5`](https://redirect.github.com/withastro/astro/commit/440d8a54f7b3d75dd16decb7d9d29e3724bff394)
Thanks [@&#8203;kaytwo](https://redirect.github.com/kaytwo)! - Fixes a
bug where the session ID wasn't correctly regenerated

-
[#&#8203;12768](https://redirect.github.com/withastro/astro/pull/12768)
[`524c855`](https://redirect.github.com/withastro/astro/commit/524c855075bb75696500445fdc31cb2c69b09627)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where Astro didn't print error logs when Astro Islands
were used in incorrect cases.

-
[#&#8203;12814](https://redirect.github.com/withastro/astro/pull/12814)
[`f12f111`](https://redirect.github.com/withastro/astro/commit/f12f1118bc4687cc807a4495ffcaafcb0861b7a2)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where Astro didn't log anything in case a file isn't
created during the build.

-
[#&#8203;12875](https://redirect.github.com/withastro/astro/pull/12875)
[`e109002`](https://redirect.github.com/withastro/astro/commit/e109002c3d5980362788360211e61f11f4394837)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug in emulated legacy collections where the entry passed to the
getCollection filter function did not include the legacy entry fields.

-
[#&#8203;12768](https://redirect.github.com/withastro/astro/pull/12768)
[`524c855`](https://redirect.github.com/withastro/astro/commit/524c855075bb75696500445fdc31cb2c69b09627)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where Astro was printing the incorrect output format when
running the `astro build` command

-
[#&#8203;12810](https://redirect.github.com/withastro/astro/pull/12810)
[`70a9f0b`](https://redirect.github.com/withastro/astro/commit/70a9f0b984638c21a4da1d83b7d5a5c9940bb693)
Thanks [@&#8203;louisescher](https://redirect.github.com/louisescher)! -
Fixes server islands failing to check content-type header under certain
circumstances

Sometimes a reverse proxy or similar service might modify the
content-type header to include the charset or other parameters in the
media type of the response. This previously wasn't handled by the
client-side server island script and thus removed the script without
actually placing the requested content in the DOM. This fix makes it so
the script checks if the header starts with the proper content type
instead of exactly matching `text/html`, so the following will still be
considered a valid header: `text/html; charset=utf-8`

-
[#&#8203;12816](https://redirect.github.com/withastro/astro/pull/12816)
[`7fb2184`](https://redirect.github.com/withastro/astro/commit/7fb21844dff893c90dc0a07fd13cefdba61d0a45)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where an injected route entrypoint wasn't correctly
marked because the resolved file path contained a query parameter.

This fixes some edge case where some injected entrypoint were not
resolved when using an adapter.

###
[`v5.1.1`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#511)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.1.0...astro@5.1.1)

##### Patch Changes

-
[#&#8203;12782](https://redirect.github.com/withastro/astro/pull/12782)
[`f3d8385`](https://redirect.github.com/withastro/astro/commit/f3d83854aa671df4db6f95558a7ef5bad4bc64f9)
Thanks [@&#8203;fhiromasa](https://redirect.github.com/fhiromasa)! -
update comment in packages/astro/src/types/public/common.ts

-
[#&#8203;12789](https://redirect.github.com/withastro/astro/pull/12789)
[`f632b94`](https://redirect.github.com/withastro/astro/commit/f632b945275c2615fc0fdf2abc831c45d0ddebcd)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Pass
raw frontmatter to remark plugins in glob loader

-
[#&#8203;12799](https://redirect.github.com/withastro/astro/pull/12799)
[`739dbfb`](https://redirect.github.com/withastro/astro/commit/739dbfba4214107cf8fc40c702834dad33eed3b0)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Upgrades Vite to pin esbuild

###
[`v5.1.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#510)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.9...astro@5.1.0)

##### Minor Changes

-
[#&#8203;12441](https://redirect.github.com/withastro/astro/pull/12441)
[`b4fec3c`](https://redirect.github.com/withastro/astro/commit/b4fec3c7d17ed92dcaaeea5e2545aae6dfd19e53)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Adds
experimental session support

Sessions are used to store user state between requests for
server-rendered pages, such as login status, shopping cart contents, or
other user-specific data.

###
[`v5.0.9`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#509)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.8...astro@5.0.9)

##### Patch Changes

-
[#&#8203;12756](https://redirect.github.com/withastro/astro/pull/12756)
[`95795f8`](https://redirect.github.com/withastro/astro/commit/95795f85dbd85ff29ee2ff4860d018fd4e9bcf8f)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! -
Remove debug logging from build

###
[`v5.0.8`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#508)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.7...astro@5.0.8)

##### Patch Changes

-
[#&#8203;12749](https://redirect.github.com/withastro/astro/pull/12749)
[`039d022`](https://redirect.github.com/withastro/astro/commit/039d022b1bbaacf9ea83071d27affc5318e0e515)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! - Clean
server sourcemaps from static output

###
[`v5.0.7`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#507)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.6...astro@5.0.7)

##### Patch Changes

-
[#&#8203;12746](https://redirect.github.com/withastro/astro/pull/12746)
[`c879f50`](https://redirect.github.com/withastro/astro/commit/c879f501ff01b1a3c577de776a1f7100d78f8dd5)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! -
Remove all assets created from the server build

###
[`v5.0.6`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#506)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.5...astro@5.0.6)

##### Patch Changes

-
[#&#8203;12597](https://redirect.github.com/withastro/astro/pull/12597)
[`564ac6c`](https://redirect.github.com/withastro/astro/commit/564ac6c2f2d77ee34f8519f1e5a4db2c6e194f65)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes an issue where image and server islands routes would not be
passed to the `astro:routes:resolved` hook during builds

-
[#&#8203;12718](https://redirect.github.com/withastro/astro/pull/12718)
[`ccc5ad1`](https://redirect.github.com/withastro/astro/commit/ccc5ad1676db5e7f5049ca2feb59802d1fe3a92e)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where Astro couldn't correctly handle i18n fallback when
using the i18n middleware

-
[#&#8203;12728](https://redirect.github.com/withastro/astro/pull/12728)
[`ee66a45`](https://redirect.github.com/withastro/astro/commit/ee66a45b250703a40b34c0a45ae34aefcb14ea44)
Thanks [@&#8203;argyleink](https://redirect.github.com/argyleink)! -
Adds type support for the `closedby` attribute for `<dialog>` elements

-
[#&#8203;12709](https://redirect.github.com/withastro/astro/pull/12709)
[`e3bfd93`](https://redirect.github.com/withastro/astro/commit/e3bfd9396969caf35b3b05135539e82aab560c92)
Thanks
[@&#8203;mtwilliams-code](https://redirect.github.com/mtwilliams-code)!
- Fixes a bug where Astro couldn't correctly parse `params` and `props`
when receiving i18n fallback URLs

-
[#&#8203;12657](https://redirect.github.com/withastro/astro/pull/12657)
[`14dffcc`](https://redirect.github.com/withastro/astro/commit/14dffcc3af49dd975635602a0d1847a3125c0746)
Thanks [@&#8203;darkmaga](https://redirect.github.com/darkmaga)! -
Trailing slash support for actions

-
[#&#8203;12715](https://redirect.github.com/withastro/astro/pull/12715)
[`029661d`](https://redirect.github.com/withastro/astro/commit/029661daa9b28fd5299d8cc9360025c78f6cd8eb)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused errors in dev when editing sites with large numbers of
MDX pages

-
[#&#8203;12729](https://redirect.github.com/withastro/astro/pull/12729)
[`8b1cecd`](https://redirect.github.com/withastro/astro/commit/8b1cecd6b491654ae760a0c75f3270df134c4e25)
Thanks [@&#8203;JoeMorgan](https://redirect.github.com/JoeMorgan)! -
"Added `inert` to htmlBooleanAttributes"

-
[#&#8203;12726](https://redirect.github.com/withastro/astro/pull/12726)
[`7c7398c`](https://redirect.github.com/withastro/astro/commit/7c7398c04653877da09c7b0f80ee84b02e02aad0)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where failing content entries in `astro check` would not
be surfaced

###
[`v5.0.5`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#505)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.4...astro@5.0.5)

##### Patch Changes

-
[#&#8203;12705](https://redirect.github.com/withastro/astro/pull/12705)
[`0d1eab5`](https://redirect.github.com/withastro/astro/commit/0d1eab560d56c51c359bbd35e8bfb51e238611ee)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug where MDX files with certain characters in the name would cause
builds to fail

-
[#&#8203;12707](https://redirect.github.com/withastro/astro/pull/12707)
[`2aaed2d`](https://redirect.github.com/withastro/astro/commit/2aaed2d2a96ab35461af24e8d12b20f1da33983f)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a bug where the middleware was incorrectly imported during the
build

-
[#&#8203;12697](https://redirect.github.com/withastro/astro/pull/12697)
[`1c4a032`](https://redirect.github.com/withastro/astro/commit/1c4a032247747c830be94dbdd0c953511a6bfa53)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fix a
bug that caused builds to fail if an image had a quote mark in its name

-
[#&#8203;12694](https://redirect.github.com/withastro/astro/pull/12694)
[`495f46b`](https://redirect.github.com/withastro/astro/commit/495f46bca78665732e51c629d93a68fa392b88a4)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a bug where the experimental feature `experimental.svg` was
incorrectly used when generating ESM images

-
[#&#8203;12658](https://redirect.github.com/withastro/astro/pull/12658)
[`3169593`](https://redirect.github.com/withastro/astro/commit/316959355c3d59723ecb3e0f417becf1f03ddd74)
Thanks [@&#8203;jurajkapsz](https://redirect.github.com/jurajkapsz)! -
Fixes astro info copy to clipboard process not returning to prompt in
certain cases.

-
[#&#8203;12712](https://redirect.github.com/withastro/astro/pull/12712)
[`b01c74a`](https://redirect.github.com/withastro/astro/commit/b01c74aeccc4ec76b64fa75d163df58274b37970)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug which misidentified pages as markdown if a query string ended in a
markdown extension

###
[`v5.0.4`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#504)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.3...astro@5.0.4)

##### Patch Changes

-
[#&#8203;12653](https://redirect.github.com/withastro/astro/pull/12653)
[`e21c7e6`](https://redirect.github.com/withastro/astro/commit/e21c7e67fde1155cf593fd2b40010c5e2c2cd3f2)
Thanks [@&#8203;sarah11918](https://redirect.github.com/sarah11918)! -
Updates a reference in an error message

-
[#&#8203;12585](https://redirect.github.com/withastro/astro/pull/12585)
[`a9373c0`](https://redirect.github.com/withastro/astro/commit/a9373c0c9a3c2e1773fc11bb14e156698b0d9d38)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where `process.env` would be frozen despite changes made
to environment variables in development

-
[#&#8203;12695](https://redirect.github.com/withastro/astro/pull/12695)
[`a203d5d`](https://redirect.github.com/withastro/astro/commit/a203d5dd582166674c45e807a5dc9113e26e24f0)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Throws a more helpful error when images are missing

- Updated dependencies
\[[`f13417b`](https://redirect.github.com/withastro/astro/commit/f13417bfbf73130c224752379e2da33084f89554),
[`87231b1`](https://redirect.github.com/withastro/astro/commit/87231b1168da66bb593f681206c42fa555dfcabc),
[`a71e9b9`](https://redirect.github.com/withastro/astro/commit/a71e9b93b317edc0ded49d4d50f1b7841c8cd428)]:
-
[@&#8203;astrojs/markdown-remark](https://redirect.github.com/astrojs/markdown-remark)[@&#8203;6](https://redirect.github.com/6).0.1

###
[`v5.0.3`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#503)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.2...astro@5.0.3)

##### Patch Changes

-
[#&#8203;12645](https://redirect.github.com/withastro/astro/pull/12645)
[`8704c54`](https://redirect.github.com/withastro/astro/commit/8704c5439ccaa4bdcebdebb725f297cdf8d48a5d)
Thanks [@&#8203;sarah11918](https://redirect.github.com/sarah11918)! -
Updates some reference links in error messages for new v5 docs.

-
[#&#8203;12641](https://redirect.github.com/withastro/astro/pull/12641)
[`48ca399`](https://redirect.github.com/withastro/astro/commit/48ca3997888e960c6aaec633ab21160540656656)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug where `astro info --copy` wasn't working correctly on `macOS`
systems.

-
[#&#8203;12461](https://redirect.github.com/withastro/astro/pull/12461)
[`62939ad`](https://redirect.github.com/withastro/astro/commit/62939add0b04b05b64f9b88d85fa5b0d34aae2d4)
Thanks [@&#8203;kyr0](https://redirect.github.com/kyr0)! - Removes the
misleading log message telling that a custom renderer is not recognized
while it clearly is and works.

-
[#&#8203;12642](https://redirect.github.com/withastro/astro/pull/12642)
[`ff18b9c`](https://redirect.github.com/withastro/astro/commit/ff18b9c18558dcfdae581cc1c603a9a53491c7c2)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Provides more information when logging a warning for accessing
`Astro.request.headers` in prerendered pages

-
[#&#8203;12634](https://redirect.github.com/withastro/astro/pull/12634)
[`03958d9`](https://redirect.github.com/withastro/astro/commit/03958d939217e6acef25c0aa1af2de663b04c956)
Thanks [@&#8203;delucis](https://redirect.github.com/delucis)! -
Improves error message formatting for user config and content collection
frontmatter

-
[#&#8203;12547](https://redirect.github.com/withastro/astro/pull/12547)
[`6b6e18d`](https://redirect.github.com/withastro/astro/commit/6b6e18d7a0f08342eced2a77ddb371810b030868)
Thanks
[@&#8203;mtwilliams-code](https://redirect.github.com/mtwilliams-code)!
- Fixes a bug where URL search parameters weren't passed when using the
i18n `fallback` feature.

-
[#&#8203;12449](https://redirect.github.com/withastro/astro/pull/12449)
[`e6b8017`](https://redirect.github.com/withastro/astro/commit/e6b80172391d5f9aa5b1de26a8694ba4a28a43f3)
Thanks [@&#8203;apatel369](https://redirect.github.com/apatel369)! -
Fixes an issue where the custom `assetFileNames` configuration caused
assets to be incorrectly moved to the server directory instead of the
client directory, resulting in 404 errors when accessed from the client
side.

-
[#&#8203;12518](https://redirect.github.com/withastro/astro/pull/12518)
[`e216250`](https://redirect.github.com/withastro/astro/commit/e216250146fbff746efd542612ce9bae6db9601f)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where SSR error pages would return duplicated custom
headers.

-
[#&#8203;12625](https://redirect.github.com/withastro/astro/pull/12625)
[`74bfad0`](https://redirect.github.com/withastro/astro/commit/74bfad07afe70fec40de4db3d32a87af306406db)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where the `experimental.svg` had incorrect type,
resulting in some errors in the editors.

-
[#&#8203;12631](https://redirect.github.com/withastro/astro/pull/12631)
[`dec0305`](https://redirect.github.com/withastro/astro/commit/dec0305b7577b431637a129e19fbbe6a28469587)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug where the class attribute was rendered twice on the image
component

-
[#&#8203;12623](https://redirect.github.com/withastro/astro/pull/12623)
[`0e4fecb`](https://redirect.github.com/withastro/astro/commit/0e4fecbb135915a503b9ea2c12e57cf27cf07be8)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Correctly handles images in content collections with uppercase file
extensions

-
[#&#8203;12633](https://redirect.github.com/withastro/astro/pull/12633)
[`8a551c1`](https://redirect.github.com/withastro/astro/commit/8a551c1272a22ab7c3fb836d6685a0eb38c33071)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Cleans up
content layer sync during builds and programmatic `sync()` calls

-
[#&#8203;12640](https://redirect.github.com/withastro/astro/pull/12640)
[`22e405a`](https://redirect.github.com/withastro/astro/commit/22e405a04491aba47a7f172e7b0ee103fe5babe5)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
a bug that caused content collections to be returned empty when run in a
test environment

-
[#&#8203;12613](https://redirect.github.com/withastro/astro/pull/12613)
[`306c9f9`](https://redirect.github.com/withastro/astro/commit/306c9f9a9ae08d194ca2a066ab71cde02eeb0874)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! - Fix
use of cloned requests in middleware with clientAddress

When using `context.clientAddress` or `Astro.clientAddress` Astro looks
up the address in a hidden property. Cloning a request can cause this
hidden property to be lost.

The fix is to pass the address as an internal property instead,
decoupling it from the request.

###
[`v5.0.2`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#502)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.1...astro@5.0.2)

##### Patch Changes

-
[#&#8203;12601](https://redirect.github.com/withastro/astro/pull/12601)
[`0724929`](https://redirect.github.com/withastro/astro/commit/072492982b338e04549ee576ca7d8480be92cc1c)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Includes "undefined" in types for getEntry

###
[`v5.0.1`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#501)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@5.0.0...astro@5.0.1)

##### Patch Changes

-
[#&#8203;12590](https://redirect.github.com/withastro/astro/pull/12590)
[`92c269b`](https://redirect.github.com/withastro/astro/commit/92c269b0f0177cb54540ce03507de81370d67c50)
Thanks [@&#8203;kidonng](https://redirect.github.com/kidonng)! - fix:
devtools warnings about dev toolbar form fields

###
[`v5.0.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#500)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/astro@4.16.18...astro@5.0.0)

##### Major Changes

-
[#&#8203;11798](https://redirect.github.com/withastro/astro/pull/11798)
[`e9e2139`](https://redirect.github.com/withastro/astro/commit/e9e2139bf788893566f5a3fe58daf1d24076f018)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! -
Unflag globalRoutePriority

The previously experimental feature `globalRoutePriority` is now the
default in Astro 5.

This was a refactoring of route prioritization in Astro, making it so
that injected routes, file-based routes, and redirects are all
prioritized using the same logic. This feature has been enabled for all
Starlight projects since it was added and should not affect most users.

-
[#&#8203;11864](https://redirect.github.com/withastro/astro/pull/11864)
[`ee38b3a`](https://redirect.github.com/withastro/astro/commit/ee38b3a94697fe883ce8300eff9f001470b8adb6)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - ###
\[changed]: `entryPoint` type inside the hook `astro:build:ssr`
    In Astro v4.x, the `entryPoint` type was `RouteData`.

Astro v5.0 the `entryPoint` type is `IntegrationRouteData`, which
contains a subset of the `RouteData` type. The fields `isIndex` and
`fallbackRoutes` were removed.

##### What should I do?

Update your adapter to change the type of `entryPoint` from `RouteData`
to `IntegrationRouteData`.

```diff
-import type {RouteData} from 'astro';
+import type {IntegrationRouteData} from "astro"

-function useRoute(route: RouteData) {
+function useRoute(route: IntegrationRouteData) {

}
```

-
[#&#8203;12524](https://redirect.github.com/withastro/astro/pull/12524)
[`9f44019`](https://redirect.github.com/withastro/astro/commit/9f440196dc39f36fce0198bf4c97131160e5bcc1)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Bumps Vite
to ^6.0.1 and handles its breaking changes

-
[#&#8203;10742](https://redirect.github.com/withastro/astro/pull/10742)
[`b6fbdaa`](https://redirect.github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - The
lowest version of Node supported by Astro is now Node v18.17.1 and
higher.

-
[#&#8203;11916](https://redirect.github.com/withastro/astro/pull/11916)
[`46ea29f`](https://redirect.github.com/withastro/astro/commit/46ea29f91df83ea638ecbc544ce99375538636d4)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Updates how
the `build.client` and `build.server` option values get resolved to
match existing documentation. With this fix, the option values will now
correctly resolve relative to the `outDir` option. So if `outDir` is set
to `./dist/nested/`, then by default:

    -   `build.client` will resolve to `<root>/dist/nested/client/`
    -   `build.server` will resolve to `<root>/dist/nested/server/`

    Previously the values were incorrectly resolved:

    -   `build.client` was resolved to `<root>/dist/nested/dist/client/`
    -   `build.server` was resolved to `<root>/dist/nested/dist/server/`

If you were relying on the previous build paths, make sure that your
project code is updated to the new build paths.

-
[#&#8203;11982](https://redirect.github.com/withastro/astro/pull/11982)
[`d84e444`](https://redirect.github.com/withastro/astro/commit/d84e444fd3496c1f787b3fcee2929c92bc74e0cd)
Thanks [@&#8203;Princesseuh](https://redirect.github.com/Princesseuh)! -
Adds a default exclude and include value to the tsconfig presets.
`{projectDir}/dist` is now excluded by default, and
`{projectDir}/.astro/types.d.ts` and `{projectDir}/**/*` are included by
default.

Both of these options can be overridden by setting your own values to
the corresponding settings in your `tsconfig.json` file.

-
[#&#8203;11861](https://redirect.github.com/withastro/astro/pull/11861)
[`3ab3b4e`](https://redirect.github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Cleans up
Astro-specific metadata attached to `vfile.data` in Remark and Rehype
plugins. Previously, the metadata was attached in different locations
with inconsistent names. The metadata is now renamed as below:

    -   `vfile.data.__astroHeadings` -> `vfile.data.astro.headings`
    -   `vfile.data.imagePaths` -> `vfile.data.astro.imagePaths`

The types of `imagePaths` has also been updated from `Set<string>` to
`string[]`. The `vfile.data.astro.frontmatter` metadata is left
unchanged.

While we don't consider these APIs public, they can be accessed by
Remark and Rehype plugins that want to re-use Astro's metadata. If you
are using these APIs, make sure to access them in the new locations.

-
[#&#8203;11987](https://redirect.github.com/withastro/astro/pull/11987)
[`bf90a53`](https://redirect.github.com/withastro/astro/commit/bf90a5343f9cd1bb46f30e4b331e7ae675f5e720)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- The `locals` object can no longer be overridden

Middleware, API endpoints, and pages can no longer override the `locals`
object in its entirety. You can still append values onto the object, but
you can not replace the entire object and delete its existing values.

    If you were previously overwriting like so:

    ```js
    ctx.locals = {
      one: 1,
      two: 2,
    };
    ```

    This can be changed to an assignment on the existing object instead:

    ```js
    Object.assign(ctx.locals, {
      one: 1,
      two: 2,
    });
    ```

-
[#&#8203;11908](https://redirect.github.com/withastro/astro/pull/11908)
[`518433e`](https://redirect.github.com/withastro/astro/commit/518433e433fe69ee3bbbb1f069181cd9eb69ec9a)
Thanks [@&#8203;Princesseuh](https://redirect.github.com/Princesseuh)! -
The `image.endpoint` config now allow customizing the route of the image
endpoint in addition to the entrypoint. This can be useful in niche
situations where the default route `/_image` conflicts with an existing
route or your local server setup.

    ```js
    import { defineConfig } from 'astro/config';

    defineConfig({
      image: {
        endpoint: {
          route: '/image',
          entrypoint: './src/image_endpoint.ts',
        },
      },
    });
    ```

-
[#&#8203;12008](https://redirect.github.com/withastro/astro/pull/12008)
[`5608338`](https://redirect.github.com/withastro/astro/commit/560833843c6d3ce2b6c6c473ec4ae70e744bf255)
Thanks [@&#8203;Princesseuh](https://redirect.github.com/Princesseuh)! -
Welcome to the Astro 5 beta! This release has no changes from the latest
alpha of this package, but it does bring us one step closer to the
final, stable release.

Starting from this release, no breaking changes will be introduced
unless absolutely necessary.

To learn how to upgrade, check out the [Astro v5.0 upgrade guide in our
beta docs
site](https://5-0-0-beta.docs.astro.build/en/guides/upgrade-to/v5/).

-
[#&#8203;11679](https://redirect.github.com/withastro/astro/pull/11679)
[`ea71b90`](https://redirect.github.com/withastro/astro/commit/ea71b90c9c08ddd1d3397c78e2e273fb799f7dbd)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- The `astro:env` feature introduced behind a flag in
[v4.10.0](https://redirect.github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#x4100)
is no longer experimental and is available for general use. If you have
been waiting for stabilization before using `astro:env`, you can now do
so.

This feature lets you configure a type-safe schema for your environment
variables, and indicate whether they should be available on the server
or the client.

To configure a schema, add the `env` option to your Astro config and
define your client and server variables. If you were previously using
this feature, please remove the experimental flag from your Astro config
and move your entire `env` configuration unchanged to a top-level
option.

    ```js
    import { defineConfig, envField } from 'astro/config';

    export default defineConfig({
      env: {
        schema: {
API_URL: envField.string({ context: 'client', access: 'public',
optional: true }),
PORT: envField.number({ context: 'server', access: 'public', default:
4321 }),
API_SECRET: envField.string({ context: 'server', access: 'secret' }),
        },
      },
    });
    ```

You can import and use your defined variables from the appropriate
`/client` or `/server` module:

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44Mi45IiwidXBkYXRlZEluVmVyIjoiMzkuODYuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL21ham9yIl19-->
2025-01-24 19:29:25 +01:00
..

Chart Docs

News

  • To add new authors, add their username in the authors.ts file in src/content/docs/news/authors.ts.
  • News Posts must have these fields in the frontmatter:
    • title
    • slug (must start with news/)
    • date
    • authors (The key in the authors object in src/content/docs/news/authors.ts)

Supported Code Block Languages

Check upstream docs

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:4321
npm run dev-windows Starts local dev server on windows machines
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.

Images can be added to src/assets/ and embedded in Markdown with a relative link.

Static assets, like favicons, can be placed in the public/ directory.

👀 Want to learn more?

Check out Starlights docs, read the Astro documentation, or jump into the Astro Discord server.