Skip to content

Commit

Permalink
fix(deps): update astro monorepo (major) (#368)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@astrojs/react](https://docs.astro.build/en/guides/integrations-guide/react/)
([source](https://redirect.github.com/withastro/astro/tree/HEAD/packages/integrations/react))
| [`^3.0.0` ->
`^4.0.0`](https://renovatebot.com/diffs/npm/@astrojs%2freact/3.6.3/4.1.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@astrojs%2freact/4.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@astrojs%2freact/4.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@astrojs%2freact/3.6.3/4.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@astrojs%2freact/3.6.3/4.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [astro](https://astro.build)
([source](https://redirect.github.com/withastro/astro/tree/HEAD/packages/astro))
| [`^3.0.0` ->
`^5.0.0`](https://renovatebot.com/diffs/npm/astro/3.6.5/5.0.9) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/astro/5.0.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/astro/5.0.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/astro/3.6.5/5.0.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/astro/3.6.5/5.0.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>withastro/astro (@&#8203;astrojs/react)</summary>

###
[`v4.1.1`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/integrations/react/CHANGELOG.md#411)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected])

##### Patch Changes

-
[#&#8203;12755](https://redirect.github.com/withastro/astro/pull/12755)
[`391df0e`](https://redirect.github.com/withastro/astro/commit/391df0e410aecc4bb8871c42548e2d9634c5ef3a)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! -
Preoptimize React compiler runtime

###
[`v4.1.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/integrations/react/CHANGELOG.md#410)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected])

##### Minor Changes

-
[#&#8203;12678](https://redirect.github.com/withastro/astro/pull/12678)
[`97c9265`](https://redirect.github.com/withastro/astro/commit/97c9265754b78af12ad1e399cc75028435028dfa)
Thanks [@&#8203;bskimball](https://redirect.github.com/bskimball)! - Add
React 19 stable to peer dependencies

###
[`v4.0.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/integrations/react/CHANGELOG.md#400)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected])

##### Major Changes

-
[#&#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)! - Updates
Vite dependency to v6 to match Astro v5

##### Minor Changes

-
[#&#8203;12539](https://redirect.github.com/withastro/astro/pull/12539)
[`827093e`](https://redirect.github.com/withastro/astro/commit/827093e6175549771f9d93ddf3f2be4c2c60f0b7)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Drops node
21 support

-
[#&#8203;12510](https://redirect.github.com/withastro/astro/pull/12510)
[`14feaf3`](https://redirect.github.com/withastro/astro/commit/14feaf30e1a4266b8422865722a4478d39202404)
Thanks [@&#8203;bholmesdev](https://redirect.github.com/bholmesdev)! -
Changes the generated URL query param from `_astroAction` to `_action`
when submitting a form using Actions. This avoids leaking the framework
name into the URL bar, which may be considered a security issue.

</details>

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

###
[`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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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-specfic 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:

###
[`v4.16.18`](https://redirect.github.com/withastro/astro/releases/tag/astro%404.16.18)

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

##### Patch Changes

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

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

###
[`v4.16.17`](https://redirect.github.com/withastro/astro/releases/tag/astro%404.16.17)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.17)

##### Patch Changes

-
[#&#8203;12632](https://redirect.github.com/withastro/astro/pull/12632)
[`e7d14c3`](https://redirect.github.com/withastro/astro/commit/e7d14c374b9d45e27089994a4eb72186d05514de)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where the `checkOrigin` feature wasn't correctly checking
the `content-type` header

###
[`v4.16.16`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41616)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.16)

##### Patch Changes

-
[#&#8203;12542](https://redirect.github.com/withastro/astro/pull/12542)
[`65e50eb`](https://redirect.github.com/withastro/astro/commit/65e50eb7b6d7b10a193bba7d292804ac0e55be18)
Thanks [@&#8203;kadykov](https://redirect.github.com/kadykov)! - Fix
JPEG image size determination

-
[#&#8203;12525](https://redirect.github.com/withastro/astro/pull/12525)
[`cf0d8b0`](https://redirect.github.com/withastro/astro/commit/cf0d8b08a0f16bba7310d1a92c82b5a276682e8c)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where with `i18n` enabled, Astro couldn't render the
`404.astro` component for non-existent routes.

###
[`v4.16.15`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41615)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.15)

##### Patch Changes

-
[#&#8203;12498](https://redirect.github.com/withastro/astro/pull/12498)
[`b140a3f`](https://redirect.github.com/withastro/astro/commit/b140a3f6d821127f927b7cb938294549e41c5168)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a regression where Astro was trying to access `Request.headers`

###
[`v4.16.14`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41614)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.14)

##### Patch Changes

-
[#&#8203;12480](https://redirect.github.com/withastro/astro/pull/12480)
[`c3b7e7c`](https://redirect.github.com/withastro/astro/commit/c3b7e7cfa13603c08eb923703f31a92d514e82db)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! -
Removes the default throw behavior in `astro:env`

-
[#&#8203;12444](https://redirect.github.com/withastro/astro/pull/12444)
[`28dd3ce`](https://redirect.github.com/withastro/astro/commit/28dd3ce5222a667fe113238254edf59318b3fa14)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where a server island hydration script might fail case
the island ID misses from the DOM.

-
[#&#8203;12476](https://redirect.github.com/withastro/astro/pull/12476)
[`80a9a52`](https://redirect.github.com/withastro/astro/commit/80a9a5299a9d51f2b09900d3200976d687feae8f)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where the Content Layer `glob()` loader would not update
when renaming or deleting an entry

-
[#&#8203;12418](https://redirect.github.com/withastro/astro/pull/12418)
[`25baa4e`](https://redirect.github.com/withastro/astro/commit/25baa4ed0c5f55fa85c2c7e2c15848937ed1dc9b)
Thanks [@&#8203;oliverlynch](https://redirect.github.com/oliverlynch)! -
Fix cached image redownloading if it is the first asset

-
[#&#8203;12477](https://redirect.github.com/withastro/astro/pull/12477)
[`46f6b38`](https://redirect.github.com/withastro/astro/commit/46f6b386b3db6332f286d79958ef10261958cceb)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where the SSR build was emitting the
`dist/server/entry.mjs` file with an incorrect import at the top of the
file/

-
[#&#8203;12365](https://redirect.github.com/withastro/astro/pull/12365)
[`a23985b`](https://redirect.github.com/withastro/astro/commit/a23985b02165c2ddce56d511b3f97b6815c452c9)
Thanks [@&#8203;apatel369](https://redirect.github.com/apatel369)! -
Fixes an issue where `Astro.currentLocale` was not correctly returning
the locale for 404 and 500 pages.

###
[`v4.16.13`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41613)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.13)

##### Patch Changes

-
[#&#8203;12436](https://redirect.github.com/withastro/astro/pull/12436)
[`453ec6b`](https://redirect.github.com/withastro/astro/commit/453ec6b12f8c021e0bd0fd0ea9f71c8fc280f4b1)
Thanks [@&#8203;martrapp](https://redirect.github.com/martrapp)! - Fixes
a potential null access in the clientside router

-
[#&#8203;12392](https://redirect.github.com/withastro/astro/pull/12392)
[`0462219`](https://redirect.github.com/withastro/astro/commit/0462219612183b65867aaaef9fa538d89f201999)
Thanks [@&#8203;apatel369](https://redirect.github.com/apatel369)! -
Fixes an issue where scripts were not correctly injected during the
build. The issue was triggered when there were injected routes with the
same `entrypoint` and different `pattern`

###
[`v4.16.12`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41612)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.12)

##### Patch Changes

-
[#&#8203;12420](https://redirect.github.com/withastro/astro/pull/12420)
[`acac0af`](https://redirect.github.com/withastro/astro/commit/acac0af53466f8a381ccdac29ed2ad735d7b4e79)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where the dev server returns a 404 status code when a
user middleware returns a valid `Response`.

###
[`v4.16.11`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41611)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.11)

##### Patch Changes

-
[#&#8203;12305](https://redirect.github.com/withastro/astro/pull/12305)
[`f5f7109`](https://redirect.github.com/withastro/astro/commit/f5f71094ec74961b4cca2ee451798abd830c617a)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where the error overlay would not escape the message

-
[#&#8203;12402](https://redirect.github.com/withastro/astro/pull/12402)
[`823e73b`](https://redirect.github.com/withastro/astro/commit/823e73b164eab4115af31b1de8e978f2b4e0a95d)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a case where Astro allowed to call an action without using
`Astro.callAction`. This is now invalid, and Astro will show a proper
error.

###
[`v4.16.10`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41610)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.10)

##### Patch Changes

-
[#&#8203;12311](https://redirect.github.com/withastro/astro/pull/12311)
[`bf2723e`](https://redirect.github.com/withastro/astro/commit/bf2723e83140099914b29c6d51eb147a065be460)
Thanks [@&#8203;dinesh-58](https://redirect.github.com/dinesh-58)! -
Adds `checked` to the list of boolean attributes.

-
[#&#8203;12363](https://redirect.github.com/withastro/astro/pull/12363)
[`222f718`](https://redirect.github.com/withastro/astro/commit/222f71894cc7118319ce83b3b29fa61a9dbebb75)
Thanks [@&#8203;Fryuni](https://redirect.github.com/Fryuni)! - Fixes
code generated by `astro add` command when adding a version of an
integration other than the default `latest`.

-
[#&#8203;12368](https://redirect.github.com/withastro/astro/pull/12368)
[`493fe43`](https://redirect.github.com/withastro/astro/commit/493fe43cd3ef94b087b8958031ecc964ae73463b)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Improves
error logs when executing commands

-
[#&#8203;12355](https://redirect.github.com/withastro/astro/pull/12355)
[`c4726d7`](https://redirect.github.com/withastro/astro/commit/c4726d7ba8cc93157390ce64d5c8b718ed5cac29)
Thanks [@&#8203;apatel369](https://redirect.github.com/apatel369)! -
Improves error reporting for invalid frontmatter in MDX files during the
`astro build` command. The error message now includes the file path
where the frontmatter parsing failed.

###
[`v4.16.9`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4169)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.9)

##### Patch Changes

-
[#&#8203;12333](https://redirect.github.com/withastro/astro/pull/12333)
[`836cd91`](https://redirect.github.com/withastro/astro/commit/836cd91c37cea8ae58dd04a326435fcb2c88f358)
Thanks [@&#8203;imattacus](https://redirect.github.com/imattacus)! -
Destroy the server response stream if async error is thrown

-
[#&#8203;12358](https://redirect.github.com/withastro/astro/pull/12358)
[`7680349`](https://redirect.github.com/withastro/astro/commit/76803498738f9e86e7948ce81e01e63607e03549)
Thanks [@&#8203;spacedawwwg](https://redirect.github.com/spacedawwwg)! -
Honors `inlineAstroConfig` parameter in `getViteConfig` when creating a
logger

-
[#&#8203;12353](https://redirect.github.com/withastro/astro/pull/12353)
[`35795a1`](https://redirect.github.com/withastro/astro/commit/35795a1a54b2bfaf331c58ca91b47e5672e08c4e)
Thanks [@&#8203;hippotastic](https://redirect.github.com/hippotastic)! -
Fixes an issue in dev server watch file handling that could cause
multiple restarts for a single file change.

-
[#&#8203;12351](https://redirect.github.com/withastro/astro/pull/12351)
[`5751488`](https://redirect.github.com/withastro/astro/commit/57514881655b62a0bc39ace1e1ed4b89b96f74ca)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Reverts a change made in `4.16.6` that prevented usage of `astro:env`
secrets inside middleware in SSR

-
[#&#8203;12346](https://redirect.github.com/withastro/astro/pull/12346)
[`20e5a84`](https://redirect.github.com/withastro/astro/commit/20e5a843c86e9328814615edf3e8a6fb5e4696cc)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Fixes
sourcemap generation when prefetch is enabled

-
[#&#8203;12349](https://redirect.github.com/withastro/astro/pull/12349)
[`1fc83d3`](https://redirect.github.com/withastro/astro/commit/1fc83d3ba8315c31b2a3aadc77b20b1615d261a0)
Thanks [@&#8203;norskeld](https://redirect.github.com/norskeld)! - Fixes
the `getImage` options type so it properly extends `ImageTransform`

###
[`v4.16.8`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4168)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.8)

##### Patch Changes

-
[#&#8203;12338](https://redirect.github.com/withastro/astro/pull/12338)
[`9ca89b3`](https://redirect.github.com/withastro/astro/commit/9ca89b3e13d47e146989cfabb916d6599d140f03)
Thanks [@&#8203;situ2001](https://redirect.github.com/situ2001)! -
Resets `NODE_ENV` to ensure install command run in dev mode

-
[#&#8203;12286](https://redirect.github.com/withastro/astro/pull/12286)
[`9d6bcdb`](https://redirect.github.com/withastro/astro/commit/9d6bcdb88fcb9df0c5c70e2b591bcf962ce55f63)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where a warning for experimental `astro:env` support
would be shown when using an adapter but not actually using `astro:env`

-
[#&#8203;12342](https://redirect.github.com/withastro/astro/pull/12342)
[`ffc836b`](https://redirect.github.com/withastro/astro/commit/ffc836bac0cdea684ea91f958ac8298d4ee4b07d)
Thanks [@&#8203;liruifengv](https://redirect.github.com/liruifengv)! -
Fixes a typo in the command name of the CLI

-
[#&#8203;12301](https://redirect.github.com/withastro/astro/pull/12301)
[`0cfc69d`](https://redirect.github.com/withastro/astro/commit/0cfc69d499815d4e1f1dc37cf32653195586087a)
Thanks [@&#8203;apatel369](https://redirect.github.com/apatel369)! -
Fixes an issue with action handler context by passing the correct
context (`ActionAPIContext`).

-
[#&#8203;12312](https://redirect.github.com/withastro/astro/pull/12312)
[`5642ef9`](https://redirect.github.com/withastro/astro/commit/5642ef9029890fc29793c160321f78f62cdaafcb)
Thanks [@&#8203;koyopro](https://redirect.github.com/koyopro)! - Fixes
an issue where using `getViteConfig()` returns incorrect and duplicate
configuration

-
[#&#8203;12245](https://redirect.github.com/withastro/astro/pull/12245)
[`1d4f6a4`](https://redirect.github.com/withastro/astro/commit/1d4f6a4989bc1cfd7109b1bff41503f115660e02)
Thanks [@&#8203;bmenant](https://redirect.github.com/bmenant)! - Add
`components` property to MDXInstance type definition (RenderResult and
module import)

-
[#&#8203;12340](https://redirect.github.com/withastro/astro/pull/12340)
[`94eaeea`](https://redirect.github.com/withastro/astro/commit/94eaeea1c437402ffc44103126b355adab4b8a01)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where Astro actions didn't work when `base` was different
from `/`

###
[`v4.16.7`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4167)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.7)

##### Patch Changes

-
[#&#8203;12263](https://redirect.github.com/withastro/astro/pull/12263)
[`e9e8080`](https://redirect.github.com/withastro/astro/commit/e9e8080a8139f898dcfa3c030f5ddaa98413c160)
Thanks [@&#8203;Fryuni](https://redirect.github.com/Fryuni)! - Fixes
conflict between server islands and on-demand dynamic routes in the form
of `/[...rest]` or `/[paramA]/[paramB]`.

-
[#&#8203;12279](https://redirect.github.com/withastro/astro/pull/12279)
[`b781f88`](https://redirect.github.com/withastro/astro/commit/b781f8860c7d11e51fb60a0d6528bc88913ffc35)
Thanks [@&#8203;jsparkdev](https://redirect.github.com/jsparkdev)! -
Update wrong error message

-
[#&#8203;12273](https://redirect.github.com/withastro/astro/pull/12273)
[`c2ee963`](https://redirect.github.com/withastro/astro/commit/c2ee963cb6c0a65481be505848a7272d800f2f7b)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
an issue with some package managers where sites would not build if
TypeScript was not installed.

-
[#&#8203;12235](https://redirect.github.com/withastro/astro/pull/12235)
[`a75bc5e`](https://redirect.github.com/withastro/astro/commit/a75bc5e3068ed80366a03efbec78b3b0f8837516)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a bug where Astro Actions couldn't redirect to the correct
pathname when there was a rewrite involved.

-
[#&#8203;11839](https://redirect.github.com/withastro/astro/pull/11839)
[`ff522b9`](https://redirect.github.com/withastro/astro/commit/ff522b96a01391a29b44f820dfcc2a2176d871e7)
Thanks [@&#8203;icaliman](https://redirect.github.com/icaliman)! - Fixes
error when returning a top-level `null` from an Astro file frontmatter

-
[#&#8203;12272](https://redirect.github.com/withastro/astro/pull/12272)
[`388d237`](https://redirect.github.com/withastro/astro/commit/388d2375b6900e6401e1c711087ee0b2176418dd)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Correctly handles local images when using a base path in SSR

###
[`v4.16.6`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4166)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.6)

##### Patch Changes

-
[#&#8203;11823](https://redirect.github.com/withastro/astro/pull/11823)
[`a3d30a6`](https://redirect.github.com/withastro/astro/commit/a3d30a602aaa1755197c73f0b51cace61f9088b3)
Thanks [@&#8203;DerTimonius](https://redirect.github.com/DerTimonius)! -
fix: improve error message when inferSize is used in local images with
the Image component

-
[#&#8203;12227](https://redirect.github.com/withastro/astro/pull/12227)
[`8b1a641`](https://redirect.github.com/withastro/astro/commit/8b1a641be9de4baa9ae48dd0d045915fbbeffa8c)
Thanks
[@&#8203;florian-lefebvre](https://redirect.github.com/florian-lefebvre)!
- Fixes a case where environment variables would not be refreshed when
using `astro:env`

-
[#&#8203;12239](https://redirect.github.com/withastro/astro/pull/12239)
[`2b6daa5`](https://redirect.github.com/withastro/astro/commit/2b6daa5840c18729c41f6cd8b4571b88d0cba119)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
**BREAKING CHANGE to the experimental Container API only**

Changes the default page rendering behavior of Astro components in
containers, and adds a new option `partial: false` to render full Astro
pages as before.

Previously, the Container API was rendering all Astro components as if
they were full Astro pages containing `<!DOCTYPE html>` by default. This
was not intended, and now by default, all components will render as
[page
partials](https://docs.astro.build/en/basics/astro-pages/#page-partials):
only the contents of the components without a page shell.

To render the component as a full-fledged Astro page, pass a new option
called `partial: false` to `renderToString()` and `renderToResponse()`:

    ```js
import { experimental_AstroContainer as AstroContainer } from
'astro/container';
    import Card from '../src/components/Card.astro';

    const container = AstroContainer.create();

await container.renderToString(Card); // the string will not contain
`<!DOCTYPE html>`
await container.renderToString(Card, { partial: false }); // the string
will contain `<!DOCTYPE html>`
    ```

###
[`v4.16.5`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4165)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.5)

##### Patch Changes

-
[#&#8203;12232](https://redirect.github.com/withastro/astro/pull/12232)
[`ff68ba5`](https://redirect.github.com/withastro/astro/commit/ff68ba5e1ca00f06d1afd5fbf89acea3092bb660)
Thanks [@&#8203;martrapp](https://redirect.github.com/martrapp)! - Fixes
an issue with cssesc in dev mode when setting `vite.ssr.noExternal:
true`

###
[`v4.16.4`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4164)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.4)

##### Patch Changes

-
[#&#8203;12223](https://redirect.github.com/withastro/astro/pull/12223)
[`79ffa5d`](https://redirect.github.com/withastro/astro/commit/79ffa5d9f75c16465134aa4ed4a3d1d59908ba8b)
Thanks
[@&#8203;ArmandPhilippot](https://redirect.github.com/ArmandPhilippot)!
- Fixes a false positive reported by the dev toolbar Audit app where a
label was considered missing when associated with a button

The `button` element can be [used with a
label](https://www.w3.org/TR/2011/WD-html5-author-20110809/forms.html#category-label)
(e.g. to create a switch) and should not be reported as an accessibility
issue when used as a child of a `label`.

-
[#&#8203;12199](https://redirect.github.com/withastro/astro/pull/12199)
[`c351352`](https://redirect.github.com/withastro/astro/commit/c3513523608f319b43c050e391be08e68b801329)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a regression in the computation of `Astro.currentLocale`

-
[#&#8203;12222](https://redirect.github.com/withastro/astro/pull/12222)
[`fb55695`](https://redirect.github.com/withastro/astro/commit/fb5569583b11ef585cd0a79e97e7e9dc653f6afa)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where the edge middleware couldn't correctly compute the
client IP address when calling `ctx.clientAddress()`

###
[`v4.16.3`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4163)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.3)

##### Patch Changes

-
[#&#8203;12220](https://redirect.github.com/withastro/astro/pull/12220)
[`b049359`](https://redirect.github.com/withastro/astro/commit/b0493596dc338377198d0a39efc813dad515b624)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Fixes
accidental internal `setOnSetGetEnv` parameter rename that caused
runtime errors

-
[#&#8203;12197](https://redirect.github.com/withastro/astro/pull/12197)
[`2aa2dfd`](https://redirect.github.com/withastro/astro/commit/2aa2dfd05dc7b7e6ad13451e6cc2afa9b1c92a32)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fix
a regression where a port was incorrectly added to the `Astro.url`

###
[`v4.16.2`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4162)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.2)

##### Patch Changes

-
[#&#8203;12206](https://redirect.github.com/withastro/astro/pull/12206)
[`12b0022`](https://redirect.github.com/withastro/astro/commit/12b00225067445629e5ae451d763d03f70065f88)
Thanks [@&#8203;bluwy](https://redirect.github.com/bluwy)! - Reverts
[https://github.com/withastro/astro/pull/12173](https://redirect.github.com/withastro/astro/pull/12173)
which caused `Can't modify immutable headers` warnings and 500 errors on
Cloudflare Pages

###
[`v4.16.1`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4161)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.1)

##### Patch Changes

-
[#&#8203;12177](https://redirect.github.com/withastro/astro/pull/12177)
[`a4ffbfa`](https://redirect.github.com/withastro/astro/commit/a4ffbfaa5cb460c12bd486fd75e36147f51d3e5e)
Thanks [@&#8203;matthewp](https://redirect.github.com/matthewp)! -
Ensure we target scripts for execution in the router

Using `document.scripts` is unsafe because if the application has a
`name="scripts"` this will shadow the built-in `document.scripts`. Fix
is to use `getElementsByTagName` to ensure we're only grabbing real
scripts.

-
[#&#8203;12173](https://redirect.github.com/withastro/astro/pull/12173)
[`2d10de5`](https://redirect.github.com/withastro/astro/commit/2d10de5f212323e6e19c7ea379826dcc18fe739c)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes a bug where Astro Actions couldn't redirect to the correct
pathname when there was a rewrite involved.

###
[`v4.16.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4160)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.16.0)

##### Minor Changes

-
[#&#8203;12039](https://redirect.github.com/withastro/astro/pull/12039)
[`710a1a1`](https://redirect.github.com/withastro/astro/commit/710a1a11f488ff6ed3da6d3e0723b2322ccfe27b)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Adds a `markdown.shikiConfig.langAlias` option that allows [aliasing a
non-supported code language to a known
language](https://shiki.style/guide/load-lang#custom-language-aliases).
This is useful when the language of your code samples is not [a built-in
Shiki language](https://shiki.style/languages), but you want your
Markdown source to contain an accurate language while also displaying
syntax highlighting.

The following example configures Shiki to highlight `cjs` code blocks
using the `javascript` syntax highlighter:

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

    export default defineConfig({
      markdown: {
        shikiConfig: {
          langAlias: {
            cjs: 'javascript',
          },
        },
      },
    });
    ```

Then in your Markdown, you can use the alias as the language for a code
block for syntax highlighting:

    ````md
    ```cjs
    'use strict';

    function commonJs() {
      return 'I am a commonjs file';
    }
    ```
    ````

-
[#&#8203;11984](https://redirect.github.com/withastro/astro/pull/11984)
[`3ac2263`](https://redirect.github.com/withastro/astro/commit/3ac2263ff6070136bec9cffb863c38bcc31ccdfe)
Thanks [@&#8203;chaegumi](https://redirect.github.com/chaegumi)! - Adds
a new `build.concurreny` configuration option to specify the number of
pages to build in parallel

    **In most cases, you should not change the default value of `1`.**

Use this option only when other attempts to reduce the overall rendering
time (e.g. batch or cache long running tasks like fetch calls or data
access) are not possible or are insufficient.

Use this option only if the refactors are not possible. If the number is
set too high, the page rendering may slow down due to insufficient
memory resources and because JS is single-threaded.

    > \[!WARNING]
> This feature is stable and is not considered experimental. However,
this feature is only intended to address difficult performance issues,
and breaking changes may occur in a [minor
release](https://docs.astro.build/en/upgrade-astro/#semantic-versioning)
to keep this option as performant as possible.

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

    export default defineConfig({
      build: {
        concurrency: 2,
      },
    });
    ```

##### Patch Changes

-
[#&#8203;12160](https://redirect.github.com/withastro/astro/pull/12160)
[`c6fd1df`](https://redirect.github.com/withastro/astro/commit/c6fd1df695d0f2a24bb49e6954064f92664ccf67)
Thanks [@&#8203;louisescher](https://redirect.github.com/louisescher)! -
Fixes a bug where `astro.config.mts` and `astro.config.cts` weren't
reloading the dev server upon modifications.

-
[#&#8203;12130](https://redirect.github.com/withastro/astro/pull/12130)
[`e96bcae`](https://redirect.github.com/withastro/astro/commit/e96bcae535ef2f0661f539c1d49690c531df2d4e)
Thanks [@&#8203;thehansys](https://redirect.github.com/thehansys)! -
Fixes a bug in the parsing of `x-forwarded-\*` `Request` headers, where
multiple values assigned to those headers were not correctly parsed.

Now, headers like `x-forwarded-proto: https,http` are correctly parsed.

-
[#&#8203;12147](https://redirect.github.com/withastro/astro/pull/12147)
[`9db755a`](https://redirect.github.com/withastro/astro/commit/9db755ab7cfe658ec426387e297bdcd32c4bc8de)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Skips
setting statusMessage header for HTTP/2 response

HTTP/2 doesn't support status message, so setting this was logging a
warning.

-
[#&#8203;12151](https://redirect.github.com/withastro/astro/pull/12151)
[`bb6d37f`](https://redirect.github.com/withastro/astro/commit/bb6d37f94a283433994f9243189cb4386df0e11a)
Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! -
Fixes an issue where `Astro.currentLocale` wasn't incorrectly computed
when the `defaultLocale` belonged to a custom locale path.

- Updated dependencies
\[[`710a1a1`](https://redirect.github.com/withastro/astro/commit/710a1a11f488ff6ed3da6d3e0723b2322ccfe27b)]:
-
[@&#8203;astrojs/markdown-remark](https://redirect.github.com/astrojs/markdown-remark)[@&#8203;5](https://redirect.github.com/5).3.0

###
[`v4.15.12`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41512)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.15.12)

##### Patch Changes

-
[#&#8203;12121](https://redirect.github.com/withastro/astro/pull/12121)
[`2490ceb`](https://redirect.github.com/withastro/astro/commit/2490cebdb93f13ee552cffa72b2e274d64e6b4a7)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Support passing the values `Infinity` and `-Infinity` as island props.

-
[#&#8203;12118](https://redirect.github.com/withastro/astro/pull/12118)
[`f47b347`](https://redirect.github.com/withastro/astro/commit/f47b347da899c6e1dcd0b2e7887f7fce6ec8e270)
Thanks [@&#8203;Namchee](https://redirect.github.com/Namchee)! - Removes
the `strip-ansi` dependency in favor of the native Node API

-
[#&#8203;12126](https://redirect.github.com/withastro/astro/pull/12126)
[`6e1dfeb`](https://redirect.github.com/withastro/astro/commit/6e1dfeb76bec09d24928bab798c6ad3280f42e84)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Clear
content layer cache when astro version changes

-
[#&#8203;12117](https://redirect.github.com/withastro/astro/pull/12117)
[`a46839a`](https://redirect.github.com/withastro/astro/commit/a46839a5c818b7de63c36d0c7e27f1a8f3b773dc)
Thanks
[@&#8203;ArmandPhilippot](https://redirect.github.com/ArmandPhilippot)!
- Updates Vite links to use their new domain

-
[#&#8203;12124](https://redirect.github.com/withastro/astro/pull/12124)
[`499fbc9`](https://redirect.github.com/withastro/astro/commit/499fbc91a6bdad8c86ff13a8caf1fa09433796b9)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! -
Allows special characters in Action names

-
[#&#8203;12123](https://redirect.github.com/withastro/astro/pull/12123)
[`b8673df`](https://redirect.github.com/withastro/astro/commit/b8673df51c6cc4ce6a288f8eb609b7a438a07d82)
Thanks [@&#8203;Princesseuh](https://redirect.github.com/Princesseuh)! -
Fixes missing `body` property on CollectionEntry types for content layer
entries

-
[#&#8203;12132](https://redirect.github.com/withastro/astro/pull/12132)
[`de35daa`](https://redirect.github.com/withastro/astro/commit/de35daa8517555c1b9c72bc7fe9cc955c4997a83)
Thanks [@&#8203;jcayzac](https://redirect.github.com/jcayzac)! - Updates
the [`cookie`](https://npmjs.com/package/cookie) dependency to avoid the
[CVE 2024-47764](https://nvd.nist.gov/vuln/detail/CVE-2024-47764)
vulnerability.

-
[#&#8203;12113](https://redirect.github.com/withastro/astro/pull/12113)
[`a54e520`](https://redirect.github.com/withastro/astro/commit/a54e520d3c139fa123e7029c5933951b5c7f5a39)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Adds
a helpful error when attempting to render an undefined collection entry

###
[`v4.15.11`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#41511)

[Compare
Source](https://redirect.github.com/withastro/astro/compare/[email protected]@4.15.11)

##### Patch Changes

-
[#&#8203;12097](https://redirect.github.com/withastro/astro/pull/12097)
[`11d447f`](https://redirect.github.com/withastro/astro/commit/11d447f66b1a0f39489c2600139ebfb565336ce7)
Thanks [@&#8203;ascorbic](https://redirect.github.com/ascorbic)! - Fixes
error where references in content layer schemas sometimes incorrectly
report as missing

-   [#&#8203;12108](https://redirect.github.com/withastro/a

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/creatorsgarten/contentsgarten).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Dec 18, 2024
1 parent 591f773 commit 1b787ec
Show file tree
Hide file tree
Showing 2 changed files with 1,217 additions and 1,220 deletions.
Loading

0 comments on commit 1b787ec

Please sign in to comment.