withastro/astro (astro)
### [`v4.0.3`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#403)
[Compare Source](https://togithub.com/withastro/astro/compare/astro@4.0.2...astro@4.0.3)
##### Patch Changes
- [#9342](https://togithub.com/withastro/astro/pull/9342) [`eb942942d`](https://togithub.com/withastro/astro/commit/eb942942d67508c07d7efaa859a7840f7c0223da) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Fix missing `is:inline` type for the `` element
- [#9343](https://togithub.com/withastro/astro/pull/9343) [`ab0281aee`](https://togithub.com/withastro/astro/commit/ab0281aee419e58c6079ca393987fe1ff0541dd5) Thanks [@martrapp](https://togithub.com/martrapp)! - Adds source file properties to HTML elements only if devToolbar is enabled
- [#9336](https://togithub.com/withastro/astro/pull/9336) [`c76901065`](https://togithub.com/withastro/astro/commit/c76901065545f6a8d3de3e44d1c8ee5456a8a77a) Thanks [@FredKSchott](https://togithub.com/FredKSchott)! - dev: fix issue where 404 and 500 responses were logged as 200
- [#9339](https://togithub.com/withastro/astro/pull/9339) [`0bb3d5322`](https://togithub.com/withastro/astro/commit/0bb3d532219fb90fc08bfb472fc981fab6543d16) Thanks [@morinokami](https://togithub.com/morinokami)! - Fixed the log message to correctly display 'enabled' and 'disabled' when toggling 'Disable notifications' in the Toolbar.
### [`v4.0.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#402)
[Compare Source](https://togithub.com/withastro/astro/compare/astro@4.0.1...astro@4.0.2)
##### Patch Changes
- [#9331](https://togithub.com/withastro/astro/pull/9331) [`cfb20550d`](https://togithub.com/withastro/astro/commit/cfb20550d346a33e76e23453d5dcd084e5065c4d) Thanks [@natemoo-re](https://togithub.com/natemoo-re)! - Updates an internal dependency ([`vitefu`](https://togithub.com/svitejs/vitefu)) to avoid a common `peerDependency` warning
- [#9327](https://togithub.com/withastro/astro/pull/9327) [`3878a91be`](https://togithub.com/withastro/astro/commit/3878a91be4879988c7235f433e50a6dc82e32288) Thanks [@doseofted](https://togithub.com/doseofted)! - Fixes an edge case for `` elements.
- [#9196](https://togithub.com/withastro/astro/pull/9196) [`37697a2c5`](https://togithub.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6) Thanks [@bluwy](https://togithub.com/bluwy)! - Removes support for Shiki custom language's `path` property. The language JSON file should be imported and passed to the option instead.
```diff
// astro.config.js
+ import customLang from './custom.tmLanguage.json'
export default defineConfig({
markdown: {
shikiConfig: {
langs: [
- { path: './custom.tmLanguage.json' },
+ customLang,
],
},
},
})
```
- [#9199](https://togithub.com/withastro/astro/pull/9199) [`49aa215a0`](https://togithub.com/withastro/astro/commit/49aa215a01ee1c4805316c85bb0aea6cfbc25a31) Thanks [@lilnasy](https://togithub.com/lilnasy)! - This change only affects maintainers of third-party adapters. In the Integration API, the `app.render()` method of the `App` class has been simplified.
Instead of two optional arguments, it now takes a single optional argument that is an object with two optional properties: `routeData` and `locals`.
```diff
app.render(request)
- app.render(request, routeData)
+ app.render(request, { routeData })
- app.render(request, routeData, locals)
+ app.render(request, { routeData, locals })
- app.render(request, undefined, locals)
+ app.render(request, { locals })
```
The current signature is deprecated but will continue to function until next major version.
- [#9212](https://togithub.com/withastro/astro/pull/9212) [`c0383ea0c`](https://togithub.com/withastro/astro/commit/c0383ea0c102cb62b7235823c706a090ba08715f) Thanks [@alexanderniebuhr](https://togithub.com/alexanderniebuhr)! - Removes deprecated `app.match()` option, `matchNotFound`
- [#9168](https://togithub.com/withastro/astro/pull/9168) [`153a5abb9`](https://togithub.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17) Thanks [@bluwy](https://togithub.com/bluwy)! - Removes deprecated features from Astro 3.0
- Adapters are now required to pass `supportedAstroFeatures` to specify a list of features they support.
- The `build.split` and `build.excludeMiddleware` options are removed. Use `functionPerRoute` and `edgeMiddleware` from adapters instead.
- The `markdown.drafts` option and draft feature is removed. Use content collections instead.
- Lowercase endpoint names are no longer supported. Use uppercase endpoint names instead.
- `getHeaders()` exported from markdown files is removed. Use `getHeadings()` instead.
##### Minor Changes
- [#9105](https://togithub.com/withastro/astro/pull/9105) [`6201bbe96`](https://togithub.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e) Thanks [@FredKSchott](https://togithub.com/FredKSchott)! - Update CLI logging experience
- [#9200](https://togithub.com/withastro/astro/pull/9200) [`b4b851f5a`](https://togithub.com/withastro/astro/commit/b4b851f5a46b32ee531db5dc39ccd2aa7af7bcfd) Thanks [@ematipico](https://togithub.com/ematipico)! - Adds a new way to configure the `i18n.locales` array.
Developers can now assign a custom URL path prefix that can span multiple language codes:
```js
// astro.config.mjs
export default defineConfig({
experimental: {
i18n: {
defaultLocale: 'english',
locales: ['de', { path: 'english', codes: ['en', 'en-US'] }, 'fr'],
},
},
});
```
With the above configuration, the URL prefix of the default locale will be `/english/`. When computing `Astro.preferredLocale`, Astro will use the `codes`.
- [#9115](https://togithub.com/withastro/astro/pull/9115) [`3b77889b4`](https://togithub.com/withastro/astro/commit/3b77889b47750ed6e17c7858780dc4aae9201b58) Thanks [@natemoo-re](https://togithub.com/natemoo-re)! - Adds the `astro preferences` command to manage user preferences. User preferences are specific to individual Astro users, unlike the `astro.config.mjs` file which changes behavior for everyone working on a project.
User preferences are scoped to the current project by default, stored in a local `.astro/settings.json` file. Using the `--global` flag, user preferences can also be applied to every Astro project on the current machine. Global user preferences are stored in an operating system-specific location.
```sh
```
### [`v3.6.4`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#364)
[Compare Source](https://togithub.com/withastro/astro/compare/astro@3.6.3...astro@3.6.4)
##### Patch Changes
- [#9226](https://togithub.com/withastro/astro/pull/9226) [`8f8a40e93`](https://togithub.com/withastro/astro/commit/8f8a40e93d6a0774ba84a6f5db8c42cd81db005e) Thanks [@outofambit](https://togithub.com/outofambit)! - Fix i18n fallback routing with routing strategy of always-prefix
- [#9179](https://togithub.com/withastro/astro/pull/9179) [`3f28336d9`](https://togithub.com/withastro/astro/commit/3f28336d9a52d7e4364d455ee3128d14d10a078a) Thanks [@lilnasy](https://togithub.com/lilnasy)! - Fixes an issue where the presence of a slot in a page led to an error.
- [#9219](https://togithub.com/withastro/astro/pull/9219) [`067a65f5b`](https://togithub.com/withastro/astro/commit/067a65f5b4d163bf1944cf47e6bf891f0b93553f) Thanks [@natemoo-re](https://togithub.com/natemoo-re)! - Fix edge case where `
This PR contains the following updates:
^3.5.5
->^3.5.5 \|\| ^4.0.0
Release Notes
withastro/astro (astro)
### [`v4.0.3`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#403) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.0.2...astro@4.0.3) ##### Patch Changes - [#9342](https://togithub.com/withastro/astro/pull/9342) [`eb942942d`](https://togithub.com/withastro/astro/commit/eb942942d67508c07d7efaa859a7840f7c0223da) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Fix missing `is:inline` type for the `