7b3904cc2e
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 | patch | [`5.6.1` -> `5.6.2`](https://renovatebot.com/diffs/npm/astro/5.6.1/5.6.2) | 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.6.2`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#562) [Compare Source](https://redirect.github.com/withastro/astro/compare/astro@5.6.1...astro@5.6.2) ##### Patch Changes - [#​13606](https://redirect.github.com/withastro/astro/pull/13606) [`793ecd9`](https://redirect.github.com/withastro/astro/commit/793ecd916e4e815886a57b85bd1739f704faae7f) Thanks [@​natemoo-re](https://redirect.github.com/natemoo-re)! - Fixes a regression that allowed prerendered code to leak into the server bundle. - [#​13576](https://redirect.github.com/withastro/astro/pull/13576) [`1c60ec3`](https://redirect.github.com/withastro/astro/commit/1c60ec3c4d8518208737de405b1bc0b5b285a0c9) Thanks [@​ascorbic](https://redirect.github.com/ascorbic)! - Reduces duplicate code in server islands scripts by extracting shared logic into a helper function. - [#​13588](https://redirect.github.com/withastro/astro/pull/13588) [`57e59be`](https://redirect.github.com/withastro/astro/commit/57e59bec40ec2febd32065324505087caec9038a) Thanks [@​natemoo-re](https://redirect.github.com/natemoo-re)! - Fixes a memory leak when using SVG assets. - [#​13589](https://redirect.github.com/withastro/astro/pull/13589) [`5a0563d`](https://redirect.github.com/withastro/astro/commit/5a0563de9e377ba7b0af7e055a85893773616d4b) Thanks [@​ematipico](https://redirect.github.com/ematipico)! - Deprecates the asset utility function `emitESMImage()` and adds a new `emitImageMetadata()` to be used instead The function `emitESMImage()` is now deprecated. It will continue to function, but it is no longer recommended nor supported. This function will be completely removed in a next major release of Astro. Please replace it with the new function`emitImageMetadata()` as soon as you are able to do so: ```diff - import { emitESMImage } from "astro/assets/utils"; + import { emitImageMetadata } from "astro/assets/utils"; ``` The new function returns the same signature as the previous one. However, the new function removes two deprecated arguments that were not meant to be exposed for public use: `_watchMode` and `experimentalSvgEnabled`. Since it was possible to access these with the old function, you may need to verify that your code still works as intended with `emitImageMetadata()`. - [#​13596](https://redirect.github.com/withastro/astro/pull/13596) [`3752519`](https://redirect.github.com/withastro/astro/commit/375251966d1b28a570bff45ff0fe7e7d2fe46f72) Thanks [@​jsparkdev](https://redirect.github.com/jsparkdev)! - update vite to latest version to fix CVE - [#​13547](https://redirect.github.com/withastro/astro/pull/13547) [`360cb91`](https://redirect.github.com/withastro/astro/commit/360cb9199a4314f90825c5639ff4396760e9cfcc) Thanks [@​jsparkdev](https://redirect.github.com/jsparkdev)! - Updates vite to the latest version - [#​13548](https://redirect.github.com/withastro/astro/pull/13548) [`e588527`](https://redirect.github.com/withastro/astro/commit/e588527b4c3de7759ef7d10d3004405d0b197f48) Thanks [@​ryuapp](https://redirect.github.com/ryuapp)! - Support for Deno to install npm pacakges. Deno requires npm prefix to install packages on npm. For example, to install react, we need to run `deno add npm:react`. But currently the command executed is `deno add react`, which doesn't work. So, we change the package names to have an npm prefix if you are using Deno. - [#​13587](https://redirect.github.com/withastro/astro/pull/13587) [`a0774b3`](https://redirect.github.com/withastro/astro/commit/a0774b376a4f24e2bf1db5b70616dff63d7412dd) Thanks [@​robertoms99](https://redirect.github.com/robertoms99)! - Fixes an issue with the client router where some attributes of the root element were not updated during swap, including the transition scope. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvcGF0Y2giXX0=-->
Chart Docs
News
- To add new authors, add their username in the
authors.tsfile insrc/content/docs/news/authors.ts. - News Posts must have these fields in the
frontmatter:titleslug(must start withnews/)dateauthors(The key in theauthorsobject insrc/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 Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.