junkisai / web-app-template

1 stars 0 forks source link

fix(deps): update dependency astro to v4.2.3 #46

Closed renovate[bot] closed 7 months ago

renovate[bot] commented 8 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astro (source) 4.0.7 -> 4.2.3 age adoption passing confidence

Release Notes

withastro/astro (astro) ### [`v4.2.3`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#423) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.2.2...astro@4.2.3) ##### Patch Changes - [#​9768](https://togithub.com/withastro/astro/pull/9768) [`eed0e8757c35dde549707e71c45862438a043fb0`](https://togithub.com/withastro/astro/commit/eed0e8757c35dde549707e71c45862438a043fb0) Thanks [@​Princesseuh](https://togithub.com/Princesseuh)! - Fix apps being able to crash the dev toolbar in certain cases ### [`v4.2.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#422) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.2.1...astro@4.2.2) ##### Patch Changes - [#​9712](https://togithub.com/withastro/astro/pull/9712) [`ea6cbd06a2580527786707ec735079ff9abd0ec0`](https://togithub.com/withastro/astro/commit/ea6cbd06a2580527786707ec735079ff9abd0ec0) Thanks [@​bluwy](https://togithub.com/bluwy)! - Improves HMR behavior for style-only changes in `.astro` files - [#​9739](https://togithub.com/withastro/astro/pull/9739) [`3ecb3ef64326a8f77aa170df1e3c89cb5c12cc93`](https://togithub.com/withastro/astro/commit/3ecb3ef64326a8f77aa170df1e3c89cb5c12cc93) Thanks [@​ematipico](https://togithub.com/ematipico)! - Makes i18n redirects take the `build.format` configuration into account - [#​9762](https://togithub.com/withastro/astro/pull/9762) [`1fba85681e86aa83d24336d4209cafbc76b37607`](https://togithub.com/withastro/astro/commit/1fba85681e86aa83d24336d4209cafbc76b37607) Thanks [@​ematipico](https://togithub.com/ematipico)! - Adds ` popovertarget" to the attribute that can be passed to the `button\` element - [#​9605](https://togithub.com/withastro/astro/pull/9605) [`8ce40a417c854d9e6a4fa7d5a85d50a6436b4a3c`](https://togithub.com/withastro/astro/commit/8ce40a417c854d9e6a4fa7d5a85d50a6436b4a3c) Thanks [@​MoustaphaDev](https://togithub.com/MoustaphaDev)! - Adds support for dynamic slot names - [#​9381](https://togithub.com/withastro/astro/pull/9381) [`9e01f9cc1efcfb938355829676d51b24818ab2bb`](https://togithub.com/withastro/astro/commit/9e01f9cc1efcfb938355829676d51b24818ab2bb) Thanks [@​martrapp](https://togithub.com/martrapp)! - Improves the CLI output of `astro preferences list` to include additional relevant information - [#​9741](https://togithub.com/withastro/astro/pull/9741) [`73d74402007896204ee965f6553dc83b3dec8d2f`](https://togithub.com/withastro/astro/commit/73d74402007896204ee965f6553dc83b3dec8d2f) Thanks [@​taktran](https://togithub.com/taktran)! - Fixes an issue where dot files were not copied over from the public folder to the output folder, when build command was run in a folder other than the root of the project. - [#​9730](https://togithub.com/withastro/astro/pull/9730) [`8d2e5db096f1e7b098511b4fe9357434a6ff0703`](https://togithub.com/withastro/astro/commit/8d2e5db096f1e7b098511b4fe9357434a6ff0703) Thanks [@​Blede2000](https://togithub.com/Blede2000)! - Allow i18n routing utilities like getRelativeLocaleUrl to also get the default local path when redirectToDefaultLocale is false - Updated dependencies \[[`53c69dcc82cdf4000aff13a6c11fffe19096cf45`](https://togithub.com/withastro/astro/commit/53c69dcc82cdf4000aff13a6c11fffe19096cf45), [`2f81cffa9da9db0e2802d303f94feaee8d2f54ec`](https://togithub.com/withastro/astro/commit/2f81cffa9da9db0e2802d303f94feaee8d2f54ec), [`a505190933365268d48139a5f197a3cfb5570870`](https://togithub.com/withastro/astro/commit/a505190933365268d48139a5f197a3cfb5570870)]: - [@​astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@​4](https://togithub.com/4).2.0 ### [`v4.2.1`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#421) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.2.0...astro@4.2.1) ##### Patch Changes - [#​9726](https://togithub.com/withastro/astro/pull/9726) [`a4b696def3a7eb18c1ae48b10fd3758a1874b6fe`](https://togithub.com/withastro/astro/commit/a4b696def3a7eb18c1ae48b10fd3758a1874b6fe) Thanks [@​Fryuni](https://togithub.com/Fryuni)! - Fixes a regression in routing priority between `index.astro` and dynamic routes with rest parameters ### [`v4.2.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#420) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.1.3...astro@4.2.0) ##### Minor Changes - [#​9566](https://togithub.com/withastro/astro/pull/9566) [`165cfc154be477337037185c32b308616d1ed6fa`](https://togithub.com/withastro/astro/commit/165cfc154be477337037185c32b308616d1ed6fa) Thanks [@​OliverSpeir](https://togithub.com/OliverSpeir)! - Allows remark plugins to pass options specifying how images in `.md` files will be optimized - [#​9661](https://togithub.com/withastro/astro/pull/9661) [`d6edc7540864cf5d294d7b881eb886a3804f6d05`](https://togithub.com/withastro/astro/commit/d6edc7540864cf5d294d7b881eb886a3804f6d05) Thanks [@​ematipico](https://togithub.com/ematipico)! - Adds new helper functions for adapter developers. - `Astro.clientAddress` can now be passed directly to the `app.render()` method. ```ts const response = await app.render(request, { clientAddress: '012.123.23.3' }); ``` - Helper functions for converting Node.js HTTP request and response objects to web-compatible `Request` and `Response` objects are now provided as static methods on the `NodeApp` class. ```ts http.createServer((nodeReq, nodeRes) => { const request: Request = NodeApp.createRequest(nodeReq); const response = await app.render(request); await NodeApp.writeResponse(response, nodeRes); }); ``` - Cookies added via `Astro.cookies.set()` can now be automatically added to the `Response` object by passing the `addCookieHeader` option to `app.render()`. ```diff -const response = await app.render(request) -const setCookieHeaders: Array = Array.from(app.setCookieHeaders(webResponse)); -if (setCookieHeaders.length) { - for (const setCookieHeader of setCookieHeaders) { - headers.append('set-cookie', setCookieHeader); - } -} +const response = await app.render(request, { addCookieHeader: true }) ``` - [#​9638](https://togithub.com/withastro/astro/pull/9638) [`f1a61268061b8834f39a9b38bca043ae41caed04`](https://togithub.com/withastro/astro/commit/f1a61268061b8834f39a9b38bca043ae41caed04) Thanks [@​ematipico](https://togithub.com/ematipico)! - Adds a new `i18n.routing` config option `redirectToDefaultLocale` to disable automatic redirects of the root URL (`/`) to the default locale when `prefixDefaultLocale: true` is set. In projects where every route, including the default locale, is prefixed with `/[locale]/` path, this property allows you to control whether or not `src/pages/index.astro` should automatically redirect your site visitors from `/` to `/[defaultLocale]`. You can now opt out of this automatic redirection by setting `redirectToDefaultLocale: false`: ```js // astro.config.mjs export default defineConfig({ i18n: { defaultLocale: 'en', locales: ['en', 'fr'], routing: { prefixDefaultLocale: true, redirectToDefaultLocale: false, }, }, }); ``` - [#​9671](https://togithub.com/withastro/astro/pull/9671) [`8521ff77fbf7e867701cc30d18253856914dbd1b`](https://togithub.com/withastro/astro/commit/8521ff77fbf7e867701cc30d18253856914dbd1b) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Removes the requirement for non-content files and assets inside content collections to be prefixed with an underscore. For files with extensions like `.astro` or `.css`, you can now remove underscores without seeing a warning in the terminal. ```diff src/content/blog/ post.mdx - _styles.css - _Component.astro + styles.css + Component.astro ``` Continue to use underscores in your content collections to exclude individual content files, such as drafts, from the build output. - [#​9567](https://togithub.com/withastro/astro/pull/9567) [`3a4d5ec8001ebf95c917fdc0d186d29650533d93`](https://togithub.com/withastro/astro/commit/3a4d5ec8001ebf95c917fdc0d186d29650533d93) Thanks [@​OliverSpeir](https://togithub.com/OliverSpeir)! - Improves the a11y-missing-content rule and error message for audit feature of dev-overlay. This also fixes an error where this check was falsely reporting accessibility errors. - [#​9643](https://togithub.com/withastro/astro/pull/9643) [`e9a72d9a91a3741566866bcaab11172cb0dc7d31`](https://togithub.com/withastro/astro/commit/e9a72d9a91a3741566866bcaab11172cb0dc7d31) Thanks [@​blackmann](https://togithub.com/blackmann)! - Adds a new `markdown.shikiConfig.transformers` config option. You can use this option to transform the Shikiji hast (AST format of the generated HTML) to customize the final HTML. Also updates Shikiji to the latest stable version. See [Shikiji's documentation](https://shikiji.netlify.app/guide/transformers) for more details about creating your own custom transformers, and [a list of common transformers](https://shikiji.netlify.app/packages/transformers) you can add directly to your project. - [#​9644](https://togithub.com/withastro/astro/pull/9644) [`a5f1682347e602330246129d4666a9227374c832`](https://togithub.com/withastro/astro/commit/a5f1682347e602330246129d4666a9227374c832) Thanks [@​rossrobino](https://togithub.com/rossrobino)! - Adds an experimental flag `clientPrerender` to prerender your prefetched pages on the client with the [Speculation Rules API](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API). ```js // astro.config.mjs { prefetch: { prefetchAll: true, defaultStrategy: 'viewport', }, experimental: { clientPrerender: true, }, } ``` Enabling this feature overrides the default `prefetch` behavior globally to prerender links on the client according to your `prefetch` configuration. Instead of appending a `` tag to the head of the document or fetching the page with JavaScript, a ` Githubissues.
  • Githubissues is a development platform for aggregating issues.