Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency astro to v5.2.1 (#1595)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [astro](https://astro.build) ([source](https://redirect.github.com/withastro/astro/tree/HEAD/packages/astro)) | [`5.1.10` -> `5.2.1`](https://renovatebot.com/diffs/npm/astro/5.1.10/5.2.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/astro/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/astro/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/astro/5.1.10/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/astro/5.1.10/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>withastro/astro (astro)</summary> ### [`v5.2.1`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#521) [Compare Source](https://redirect.github.com/withastro/astro/compare/[email protected]@5.2.1) ##### Patch Changes - [#​13095](https://redirect.github.com/withastro/astro/pull/13095) [`740eb60`](https://redirect.github.com/withastro/astro/commit/740eb6019f405781a3918941d3bfb34a7bda1a3d) Thanks [@​ascorbic](https://redirect.github.com/ascorbic)! - Fixes a bug that caused some dev server asset requests to return 404 when trailingSlash was set to "always" ### [`v5.2.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#520) [Compare Source](https://redirect.github.com/withastro/astro/compare/[email protected]@5.2.0) ##### Minor Changes - [#​12994](https://redirect.github.com/withastro/astro/pull/12994) [`5361755`](https://redirect.github.com/withastro/astro/commit/536175528dbbe75aa978d615ba2517b64bad7879) Thanks [@​ascorbic](https://redirect.github.com/ascorbic)! - Redirects trailing slashes for on-demand pages When the `trailingSlash` option is set to `always` or `never`, on-demand rendered pages will now redirect to the correct URL when the trailing slash doesn't match the configuration option. This was previously the case for static pages, but now works for on-demand pages as well. Now, it doesn't matter whether your visitor navigates to `/about/`, `/about`, or even `/about///`. In production, they'll always end up on the correct page. For GET requests, the redirect will be a 301 (permanent) redirect, and for all other request methods, it will be a 308 (permanent, and preserve the request method) redirect. In development, you'll see a helpful 404 page to alert you of a trailing slash mismatch so you can troubleshoot routes. - [#​12979](https://redirect.github.com/withastro/astro/pull/12979) [`e621712`](https://redirect.github.com/withastro/astro/commit/e621712109b79313b24924ec4f0ba4f8ab6201c2) Thanks [@​ematipico](https://redirect.github.com/ematipico)! - Adds support for redirecting to external sites with the [`redirects`](https://docs.astro.build/en/reference/configuration-reference/#redirects) configuration option. Now, you can redirect routes either internally to another path or externally by providing a URL beginning with `http` or `https`: ```js // astro.config.mjs import { defineConfig } from 'astro/config'; export default defineConfig({ redirects: { '/blog': 'https://example.com/blog', '/news': { status: 302, destination: 'https://example.com/news', }, }, }); ``` - [#​13084](https://redirect.github.com/withastro/astro/pull/13084) [`0f3be31`](https://redirect.github.com/withastro/astro/commit/0f3be3104e62d5b50dabfb15023f97954a160b8e) Thanks [@​ematipico](https://redirect.github.com/ematipico)! - Adds a new experimental virtual module `astro:config` that exposes a type-safe subset of your `astro.config.mjs` configuration The virtual module exposes two sub-paths for controlled access to your configuration: - `astro:config/client`: exposes config information that is safe to expose to the client. - `astro:config/server`: exposes additional information that is safe to expose to the server, such as file/dir paths. To enable this new virtual module, add the `experimental.serializeManifest` feature flag to your Astro config: ```js // astro.config.mjs import { defineConfig } from 'astro/config'; export default defineConfig({ experimental: { serializeManifest: true, }, }); ``` Then, you can access the module in any file inside your project to import and use values from your Astro config: ```js // src/utils.js import { trailingSlash } from 'astro:config/client'; function addForwardSlash(path) { if (trailingSlash === 'always') { return path.endsWith('/') ? path : path + '/'; } else { return path; } } ``` For a complete overview, and to give feedback on this experimental API, see the [Serialized Manifest RFC](https://redirect.github.com/withastro/roadmap/blob/feat/serialised-config/proposals/0051-serialized-manifest.md). ##### Patch Changes - [#​13049](https://redirect.github.com/withastro/astro/pull/13049) [`2ed4bd9`](https://redirect.github.com/withastro/astro/commit/2ed4bd90f25a3e5a183d0bc862e3b359b8289b93) Thanks [@​florian-lefebvre](https://redirect.github.com/florian-lefebvre)! - Updates `astro add tailwind` to add the `@tailwindcss/vite` plugin instead of the `@astrojs/tailwind` integration - [#​12994](https://redirect.github.com/withastro/astro/pull/12994) [`5361755`](https://redirect.github.com/withastro/astro/commit/536175528dbbe75aa978d615ba2517b64bad7879) Thanks [@​ascorbic](https://redirect.github.com/ascorbic)! - Returns a more helpful 404 page in dev if there is a trailing slash mismatch between the route requested and the `trailingSlash` configuration - [#​12666](https://redirect.github.com/withastro/astro/pull/12666) [`037495d`](https://redirect.github.com/withastro/astro/commit/037495d437d2328bf10ffadc22cc114ccf474c65) Thanks [@​Thodor12](https://redirect.github.com/Thodor12)! - Added additional generated typings for the content layer - Updated dependencies \[[`5361755`](https://redirect.github.com/withastro/astro/commit/536175528dbbe75aa978d615ba2517b64bad7879), [`db252e0`](https://redirect.github.com/withastro/astro/commit/db252e0692a0addf7239bfefc0220c525d63337d)]: - [@​astrojs/internal-helpers](https://redirect.github.com/astrojs/internal-helpers)[@​0](https://redirect.github.com/0).5.0 - [@​astrojs/markdown-remark](https://redirect.github.com/astrojs/markdown-remark)[@​6](https://redirect.github.com/6).1.0 </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. 🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/auguwu/floofy.dev). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information