Closed renovate[bot] closed 2 months ago
Latest commit: 7a9269ed0ddabaaaa0b4a6bccdb098ff3e95d89a
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This PR contains the following updates:
5.1.1
->5.2.0
4.11.5
->4.12.2
Release Notes
withastro/astro (@astrojs/markdown-remark)
### [`v5.2.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/markdown/remark/CHANGELOG.md#520) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/markdown-remark@5.1.1...@astrojs/markdown-remark@5.2.0) ##### Minor Changes - [#11341](https://togithub.com/withastro/astro/pull/11341) [`49b5145`](https://togithub.com/withastro/astro/commit/49b5145158a603b9bb951bf914a6a9780c218704) Thanks [@madcampos](https://togithub.com/madcampos)! - Adds support for [Shiki's `defaultColor` option](https://shiki.style/guide/dual-themes#without-default-color). This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes. Configure `defaultColor: false` in your Shiki config to apply throughout your site, or pass to Astro's built-in `` component to style an individual code block. ```js title="astro.config.mjs" import { defineConfig } from 'astro/config'; export default defineConfig({ markdown: { shikiConfig: { themes: { light: 'github-light', dark: 'github-dark', }, defaultColor: false, }, }, }); ```
withastro/astro (astro)
### [`v4.12.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4122) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.12.1...astro@4.12.2) ##### Patch Changes - [#11505](https://togithub.com/withastro/astro/pull/11505) [`8ff7658`](https://togithub.com/withastro/astro/commit/8ff7658001c2c7bedf6adcddf7a9341196f2d376) Thanks [@ematipico](https://togithub.com/ematipico)! - Enhances the dev server logging when rewrites occur during the lifecycle or rendering. The dev server will log the status code **before** and **after** a rewrite: ```shell 08:16:48 [404] (rewrite) /foo/about 200ms 08:22:13 [200] (rewrite) /about 23ms ``` - [#11506](https://togithub.com/withastro/astro/pull/11506) [`026e8ba`](https://togithub.com/withastro/astro/commit/026e8baf3323e99f96530999fd32a0a9b305854d) Thanks [@sarah11918](https://togithub.com/sarah11918)! - Fixes typo in documenting the `slot="fallback"` attribute for Server Islands experimental feature. - [#11508](https://togithub.com/withastro/astro/pull/11508) [`ca335e1`](https://togithub.com/withastro/astro/commit/ca335e1dc09bc83d3f8f5b9dd54f116bcb4881e4) Thanks [@cramforce](https://togithub.com/cramforce)! - Escapes HTML in serialized props - [#11501](https://togithub.com/withastro/astro/pull/11501) [`4db78ae`](https://togithub.com/withastro/astro/commit/4db78ae046a39628dfe8d68e776706559d4f8ba7) Thanks [@martrapp](https://togithub.com/martrapp)! - Adds the missing export for accessing the `getFallback()` function of the client site router. ### [`v4.12.1`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4121) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.12.0...astro@4.12.1) ##### Patch Changes - [#11486](https://togithub.com/withastro/astro/pull/11486) [`9c0c849`](https://togithub.com/withastro/astro/commit/9c0c8492d987cd9214ed53e71fb29599c206966a) Thanks [@ematipico](https://togithub.com/ematipico)! - Adds a new function called `addClientRenderer` to the Container API. This function should be used when rendering components using the `client:*` directives. The `addClientRenderer` API must be used *after* the use of the `addServerRenderer`: ```js const container = await experimental_AstroContainer.create(); container.addServerRenderer({ renderer }); container.addClientRenderer({ name: '@astrojs/react', entrypoint: '@astrojs/react/client.js' }); const response = await container.renderToResponse(Component); ``` - [#11500](https://togithub.com/withastro/astro/pull/11500) [`4e142d3`](https://togithub.com/withastro/astro/commit/4e142d38cbaf0938be7077c88e32b38a6b60eaed) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Fixes inferRemoteSize type not working - [#11496](https://togithub.com/withastro/astro/pull/11496) [`53ccd20`](https://togithub.com/withastro/astro/commit/53ccd206f9bfe5f6a0d888d199776b4043f63f58) Thanks [@alfawal](https://togithub.com/alfawal)! - Hide the dev toolbar on `window.print()` (CTRL + P) ### [`v4.12.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4120) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.11.6...astro@4.12.0) ##### Minor Changes - [#11341](https://togithub.com/withastro/astro/pull/11341) [`49b5145`](https://togithub.com/withastro/astro/commit/49b5145158a603b9bb951bf914a6a9780c218704) Thanks [@madcampos](https://togithub.com/madcampos)! - Adds support for [Shiki's `defaultColor` option](https://shiki.style/guide/dual-themes#without-default-color). This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes. Configure `defaultColor: false` in your Shiki config to apply throughout your site, or pass to Astro's built-in `` component to style an individual code block. ```js title="astro.config.mjs" import { defineConfig } from 'astro/config'; export default defineConfig({ markdown: { shikiConfig: { themes: { light: 'github-light', dark: 'github-dark', }, defaultColor: false, }, }, }); ``` ### [`v4.11.6`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4116) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.11.5...astro@4.11.6) ##### Patch Changes - [#11459](https://togithub.com/withastro/astro/pull/11459) [`bc2e74d`](https://togithub.com/withastro/astro/commit/bc2e74de384776caa252fd47dbeda895c0488c11) Thanks [@mingjunlu](https://togithub.com/mingjunlu)! - Fixes false positive audit warnings on elements with the role "tabpanel". - [#11472](https://togithub.com/withastro/astro/pull/11472) [`cb4e6d0`](https://togithub.com/withastro/astro/commit/cb4e6d09deb7507058115a3fd2a567019a501e4d) Thanks [@delucis](https://togithub.com/delucis)! - Avoids targeting all files in the `src/` directory for eager optimization by Vite. After this change, only JSX, Vue, Svelte, and Astro components get scanned for early optimization. - [#11387](https://togithub.com/withastro/astro/pull/11387) [`b498461`](https://togithub.com/withastro/astro/commit/b498461e277bffb0abe21b59a94b1e56a8c69d47) Thanks [@bluwy](https://togithub.com/bluwy)! - Fixes prerendering not removing unused dynamic imported chunks - [#11437](https://togithub.com/withastro/astro/pull/11437) [`6ccb30e`](https://togithub.com/withastro/astro/commit/6ccb30e610eed34c2cc2c275485a8ac45c9b6b9e) Thanks [@NuroDev](https://togithub.com/NuroDev)! - Fixes a case where Astro's config `experimental.env.schema` keys did not allow numbers. Numbers are still not allowed as the first character to be able to generate valid JavaScript identifiers - [#11439](https://togithub.com/withastro/astro/pull/11439) [`08baf56`](https://togithub.com/withastro/astro/commit/08baf56f328ce4b6814a7f90089c0b3398d8bbfe) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Expands the `isInputError()` utility from `astro:actions` to accept errors of any type. This should now allow type narrowing from a try / catch block. ```ts // example.ts import { actions, isInputError } from 'astro:actions'; try { await actions.like(new FormData()); } catch (error) { if (isInputError(error)) { console.log(error.fields); } } ``` - [#11452](https://togithub.com/withastro/astro/pull/11452) [`0e66849`](https://togithub.com/withastro/astro/commit/0e6684983b9b24660a8fef83fe401ec1d567378a) Thanks [@FugiTech](https://togithub.com/FugiTech)! - Fixes an issue where using .nullish() in a formdata Astro action would always parse as a string - [#11438](https://togithub.com/withastro/astro/pull/11438) [`619f07d`](https://togithub.com/withastro/astro/commit/619f07db701ebab2d2f2598dd2dcf93ba1e5719c) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Exposes utility types from `astro:actions` for the `defineAction` handler (`ActionHandler`) and the `ActionError` code (`ActionErrorCode`). - [#11456](https://togithub.com/withastro/astro/pull/11456) [`17e048d`](https://togithub.com/withastro/astro/commit/17e048de0e79d76b933d128676be2388954b419e) Thanks [@RickyC0626](https://togithub.com/RickyC0626)! - Fixes `astro dev --open` unexpected behavior that spawns a new tab every time a config file is saved - [#11337](https://togithub.com/withastro/astro/pull/11337) [`0a4b31f`](https://togithub.com/withastro/astro/commit/0a4b31ffeb41ad1dfb3141384e22787763fcae3d) Thanks [@florian-lefebvre](https://togithub.com/florian-lefebvre)! - Adds a new property `experimental.env.validateSecrets` to allow validating private variables on the server. By default, this is set to `false` and only public variables are checked on start. If enabled, secrets will also be checked on start (dev/build modes). This is useful for example in some CIs to make sure all your secrets are correctly set before deploying. ```js // astro.config.mjs import { defineConfig, envField } from 'astro/config'; export default defineConfig({ experimental: { env: { schema: { // ... }, validateSecrets: true, }, }, }); ``` - [#11443](https://togithub.com/withastro/astro/pull/11443) [`ea4bc04`](https://togithub.com/withastro/astro/commit/ea4bc04e9489c456e2b4b5dbd67d5e4cf3f89f97) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Expose new `ActionReturnType` utility from `astro:actions`. This infers the return type of an action by passing `typeof actions.name` as a type argument. This example defines a `like` action that returns `likes` as an object: ```ts // actions/index.ts import { defineAction } from 'astro:actions'; export const server = { like: defineAction({ handler: () => { /* ... */ return { likes: 42 }; }, }), }; ``` In your client code, you can infer this handler return value with `ActionReturnType`: ```ts // client.ts import { actions, ActionReturnType } from 'astro:actions'; type LikesResult = ActionReturnType;
// -> { likes: number }
```
- [#11436](https://togithub.com/withastro/astro/pull/11436) [`7dca68f`](https://togithub.com/withastro/astro/commit/7dca68ff2e0f089a3fd090650ee05b1942792fed) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Fixes `astro:actions` autocompletion for the `defineAction` `accept` property
- [#11455](https://togithub.com/withastro/astro/pull/11455) [`645e128`](https://togithub.com/withastro/astro/commit/645e128537f1f20da6703afc115d06371d7da5dd) Thanks [@florian-lefebvre](https://togithub.com/florian-lefebvre)! - Improves `astro:env` invalid variables errors
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.