withastro/language-tools (@astrojs/check)
### [`v0.5.7`](https://togithub.com/withastro/language-tools/blob/HEAD/packages/astro-check/CHANGELOG.md#057)
[Compare Source](https://togithub.com/withastro/language-tools/compare/@astrojs/check@0.5.6...@astrojs/check@0.5.7)
##### Patch Changes
- [`1b68dfb`](https://togithub.com/withastro/language-tools/commit/1b68dfb): Improves descriptions for attributes specific to Astro (`is:raw`, `set:html`, etc.)
- Updated dependencies \[[`2bad6a8`](https://togithub.com/withastro/language-tools/commit/2bad6a8)]
- Updated dependencies \[[`1b68dfb`](https://togithub.com/withastro/language-tools/commit/1b68dfb)]
- [@astrojs/language-server](https://togithub.com/astrojs/language-server)[@2](https://togithub.com/2).7.7
withastro/astro (@astrojs/mdx)
### [`v2.2.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/mdx/CHANGELOG.md#220)
[Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/mdx@2.1.1...@astrojs/mdx@2.2.0)
##### Minor Changes
- [#10104](https://togithub.com/withastro/astro/pull/10104) [`a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18`](https://togithub.com/withastro/astro/commit/a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18) Thanks [@remcohaszing](https://togithub.com/remcohaszing)! - Changes Astro's internal syntax highlighting to use rehype plugins instead of remark plugins. This provides better interoperability with other [rehype plugins](https://togithub.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins) that deal with code blocks, in particular with third party syntax highlighting plugins and [`rehype-mermaid`](https://togithub.com/remcohaszing/rehype-mermaid).
This may be a breaking change if you are currently using:
- a remark plugin that relies on nodes of type `html`
- a rehype plugin that depends on nodes of type `raw`.
Please review your rendered code samples carefully, and if necessary, consider using a rehype plugin that deals with the generated `element` nodes instead. You can transform the AST of raw HTML strings, or alternatively use [`hast-util-to-html`](https://togithub.com/syntax-tree/hast-util-to-html) to get a string from a `raw` node.
##### Patch Changes
- Updated dependencies \[[`c081adf998d30419fed97d8fccc11340cdc512e0`](https://togithub.com/withastro/astro/commit/c081adf998d30419fed97d8fccc11340cdc512e0), [`5a9528741fa98d017b269c7e4f013058028bdc5d`](https://togithub.com/withastro/astro/commit/5a9528741fa98d017b269c7e4f013058028bdc5d), [`a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18`](https://togithub.com/withastro/astro/commit/a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18)]:
- [@astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@4](https://togithub.com/4).3.0
withastro/astro (astro)
### [`v4.5.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#450)
[Compare Source](https://togithub.com/withastro/astro/compare/astro@4.4.15...astro@4.5.0)
##### Minor Changes
- [#10206](https://togithub.com/withastro/astro/pull/10206) [`dc87214141e7f8406c0fdf6a7f425dad6dea6d3e`](https://togithub.com/withastro/astro/commit/dc87214141e7f8406c0fdf6a7f425dad6dea6d3e) Thanks [@lilnasy](https://togithub.com/lilnasy)! - Allows middleware to run when a matching page or endpoint is not found. Previously, a `pages/404.astro` or `pages/[...catch-all].astro` route had to match to allow middleware. This is now not necessary.
When a route does not match in SSR deployments, your adapter may show a platform-specific 404 page instead of running Astro's SSR code. In these cases, you may still need to add a `404.astro` or fallback route with spread params, or use a routing configuration option if your adapter provides one.
- [#9960](https://togithub.com/withastro/astro/pull/9960) [`c081adf998d30419fed97d8fccc11340cdc512e0`](https://togithub.com/withastro/astro/commit/c081adf998d30419fed97d8fccc11340cdc512e0) Thanks [@StandardGage](https://togithub.com/StandardGage)! - Allows passing any props to the `` component
- [#10102](https://togithub.com/withastro/astro/pull/10102) [`e3f02f5fb1cf0dae3c54beb3a4af3dbf3b06abb7`](https://togithub.com/withastro/astro/commit/e3f02f5fb1cf0dae3c54beb3a4af3dbf3b06abb7) Thanks [@bluwy](https://togithub.com/bluwy)! - Adds a new `experimental.directRenderScript` configuration option which provides a more reliable strategy to prevent scripts from being executed in pages where they are not used.
This replaces the `experimental.optimizeHoistedScript` flag introduced in v2.10.4 to prevent unused components' scripts from being included in a page unexpectedly. That experimental option no longer exists and must be removed from your configuration, whether or not you enable `directRenderScript`:
```diff
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
experimental: {
- optimizeHoistedScript: true,
+ directRenderScript: true
}
});
```
With `experimental.directRenderScript` configured, scripts are now directly rendered as declared in Astro files (including existing features like TypeScript, importing `node_modules`, and deduplicating scripts). You can also now conditionally render scripts in your Astro file.
However, this means scripts are no longer hoisted to the `` and multiple scripts on a page are no longer bundled together. If you enable this option, you should check that all your `
```
- [#10145](https://togithub.com/withastro/astro/pull/10145) [`65692fa7b5f4440c644c8cf3dd9bc50103d2c33b`](https://togithub.com/withastro/astro/commit/65692fa7b5f4440c644c8cf3dd9bc50103d2c33b) Thanks [@alexanderniebuhr](https://togithub.com/alexanderniebuhr)! - Adds experimental JSON Schema support for content collections.
This feature will auto-generate a JSON Schema for content collections of `type: 'data'` which can be used as the `$schema` value for TypeScript-style autocompletion/hints in tools like VSCode.
To enable this feature, add the experimental flag:
```diff
import { defineConfig } from 'astro/config';
export default defineConfig({
experimental: {
+ contentCollectionJsonSchema: true
}
});
```
This experimental implementation requires you to manually reference the schema in each data entry file of the collection:
```diff
// src/content/test/entry.json
{
+ "$schema": "../../../.astro/collections/test.schema.json",
"test": "test"
}
```
Alternatively, you can set this in your [VSCode `json.schemas` settings](https://code.visualstudio.com/docs/languages/json#\_json-schemas-and-settings):
```diff
"json.schemas": [
{
"fileMatch": [
"/src/content/test/**"
],
"url": "../../../.astro/collections/test.schema.json"
}
]
```
Note that this initial implementation uses a library with [known issues for advanced Zod schemas](https://togithub.com/StefanTerdell/zod-to-json-schema#known-issues), so you may wish to consult these limitations before enabling the experimental flag.
- [#10130](https://togithub.com/withastro/astro/pull/10130) [`5a9528741fa98d017b269c7e4f013058028bdc5d`](https://togithub.com/withastro/astro/commit/5a9528741fa98d017b269c7e4f013058028bdc5d) Thanks [@bluwy](https://togithub.com/bluwy)! - Migrates `shikiji` to `shiki` 1.0
- [#10268](https://togithub.com/withastro/astro/pull/10268) [`2013e70bce16366781cc12e52823bb257fe460c0`](https://togithub.com/withastro/astro/commit/2013e70bce16366781cc12e52823bb257fe460c0) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Adds support for page mutations to the audits in the dev toolbar. Astro will now rerun the audits whenever elements are added or deleted from the page.
- [#10217](https://togithub.com/withastro/astro/pull/10217) [`5c7862a9fe69954f8630538ebb7212cd04b8a810`](https://togithub.com/withastro/astro/commit/5c7862a9fe69954f8630538ebb7212cd04b8a810) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Updates the UI for dev toolbar audits with new information
##### Patch Changes
- [#10360](https://togithub.com/withastro/astro/pull/10360) [`ac766647b0e6156b7c4a0bb9a11981fe168852d7`](https://togithub.com/withastro/astro/commit/ac766647b0e6156b7c4a0bb9a11981fe168852d7) Thanks [@nmattia](https://togithub.com/nmattia)! - Fixes an issue where some CLI commands attempted to directly read vite config files.
- [#10291](https://togithub.com/withastro/astro/pull/10291) [`8107a2721b6abb07c3120ac90e03c39f2a44ab0c`](https://togithub.com/withastro/astro/commit/8107a2721b6abb07c3120ac90e03c39f2a44ab0c) Thanks [@bluwy](https://togithub.com/bluwy)! - Treeshakes unused Astro component scoped styles
- [#10368](https://togithub.com/withastro/astro/pull/10368) [`78bafc5d661ff7dd071c241cb1303c4d8a774d21`](https://togithub.com/withastro/astro/commit/78bafc5d661ff7dd071c241cb1303c4d8a774d21) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Updates the base `tsconfig.json` preset with `jsx: 'preserve'` in order to fix errors when importing Astro files inside `.js` and `.ts` files.
- Updated dependencies \[[`c081adf998d30419fed97d8fccc11340cdc512e0`](https://togithub.com/withastro/astro/commit/c081adf998d30419fed97d8fccc11340cdc512e0), [`1ea0a25b94125e4f6f2ac82b42f638e22d7bdffd`](https://togithub.com/withastro/astro/commit/1ea0a25b94125e4f6f2ac82b42f638e22d7bdffd), [`5a9528741fa98d017b269c7e4f013058028bdc5d`](https://togithub.com/withastro/astro/commit/5a9528741fa98d017b269c7e4f013058028bdc5d), [`a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18`](https://togithub.com/withastro/astro/commit/a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18)]:
- [@astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@4](https://togithub.com/4).3.0
- [@astrojs/internal-helpers](https://togithub.com/astrojs/internal-helpers)[@0](https://togithub.com/0).3.0
Configuration
📅 Schedule: Branch creation - "after 9am on monday,before 12am on monday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.5.6
->0.5.7
2.1.1
->2.2.0
4.4.15
->4.5.0
Release Notes
withastro/language-tools (@astrojs/check)
### [`v0.5.7`](https://togithub.com/withastro/language-tools/blob/HEAD/packages/astro-check/CHANGELOG.md#057) [Compare Source](https://togithub.com/withastro/language-tools/compare/@astrojs/check@0.5.6...@astrojs/check@0.5.7) ##### Patch Changes - [`1b68dfb`](https://togithub.com/withastro/language-tools/commit/1b68dfb): Improves descriptions for attributes specific to Astro (`is:raw`, `set:html`, etc.) - Updated dependencies \[[`2bad6a8`](https://togithub.com/withastro/language-tools/commit/2bad6a8)] - Updated dependencies \[[`1b68dfb`](https://togithub.com/withastro/language-tools/commit/1b68dfb)] - [@astrojs/language-server](https://togithub.com/astrojs/language-server)[@2](https://togithub.com/2).7.7withastro/astro (@astrojs/mdx)
### [`v2.2.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/mdx/CHANGELOG.md#220) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/mdx@2.1.1...@astrojs/mdx@2.2.0) ##### Minor Changes - [#10104](https://togithub.com/withastro/astro/pull/10104) [`a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18`](https://togithub.com/withastro/astro/commit/a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18) Thanks [@remcohaszing](https://togithub.com/remcohaszing)! - Changes Astro's internal syntax highlighting to use rehype plugins instead of remark plugins. This provides better interoperability with other [rehype plugins](https://togithub.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins) that deal with code blocks, in particular with third party syntax highlighting plugins and [`rehype-mermaid`](https://togithub.com/remcohaszing/rehype-mermaid). This may be a breaking change if you are currently using: - a remark plugin that relies on nodes of type `html` - a rehype plugin that depends on nodes of type `raw`. Please review your rendered code samples carefully, and if necessary, consider using a rehype plugin that deals with the generated `element` nodes instead. You can transform the AST of raw HTML strings, or alternatively use [`hast-util-to-html`](https://togithub.com/syntax-tree/hast-util-to-html) to get a string from a `raw` node. ##### Patch Changes - Updated dependencies \[[`c081adf998d30419fed97d8fccc11340cdc512e0`](https://togithub.com/withastro/astro/commit/c081adf998d30419fed97d8fccc11340cdc512e0), [`5a9528741fa98d017b269c7e4f013058028bdc5d`](https://togithub.com/withastro/astro/commit/5a9528741fa98d017b269c7e4f013058028bdc5d), [`a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18`](https://togithub.com/withastro/astro/commit/a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18)]: - [@astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@4](https://togithub.com/4).3.0withastro/astro (astro)
### [`v4.5.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#450) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.4.15...astro@4.5.0) ##### Minor Changes - [#10206](https://togithub.com/withastro/astro/pull/10206) [`dc87214141e7f8406c0fdf6a7f425dad6dea6d3e`](https://togithub.com/withastro/astro/commit/dc87214141e7f8406c0fdf6a7f425dad6dea6d3e) Thanks [@lilnasy](https://togithub.com/lilnasy)! - Allows middleware to run when a matching page or endpoint is not found. Previously, a `pages/404.astro` or `pages/[...catch-all].astro` route had to match to allow middleware. This is now not necessary. When a route does not match in SSR deployments, your adapter may show a platform-specific 404 page instead of running Astro's SSR code. In these cases, you may still need to add a `404.astro` or fallback route with spread params, or use a routing configuration option if your adapter provides one. - [#9960](https://togithub.com/withastro/astro/pull/9960) [`c081adf998d30419fed97d8fccc11340cdc512e0`](https://togithub.com/withastro/astro/commit/c081adf998d30419fed97d8fccc11340cdc512e0) Thanks [@StandardGage](https://togithub.com/StandardGage)! - Allows passing any props to the `` component - [#10102](https://togithub.com/withastro/astro/pull/10102) [`e3f02f5fb1cf0dae3c54beb3a4af3dbf3b06abb7`](https://togithub.com/withastro/astro/commit/e3f02f5fb1cf0dae3c54beb3a4af3dbf3b06abb7) Thanks [@bluwy](https://togithub.com/bluwy)! - Adds a new `experimental.directRenderScript` configuration option which provides a more reliable strategy to prevent scripts from being executed in pages where they are not used. This replaces the `experimental.optimizeHoistedScript` flag introduced in v2.10.4 to prevent unused components' scripts from being included in a page unexpectedly. That experimental option no longer exists and must be removed from your configuration, whether or not you enable `directRenderScript`: ```diff // astro.config.mjs import { defineConfig } from 'astro/config'; export default defineConfig({ experimental: { - optimizeHoistedScript: true, + directRenderScript: true } }); ``` With `experimental.directRenderScript` configured, scripts are now directly rendered as declared in Astro files (including existing features like TypeScript, importing `node_modules`, and deduplicating scripts). You can also now conditionally render scripts in your Astro file. However, this means scripts are no longer hoisted to the `` and multiple scripts on a page are no longer bundled together. If you enable this option, you should check that all your ` ``` - [#10145](https://togithub.com/withastro/astro/pull/10145) [`65692fa7b5f4440c644c8cf3dd9bc50103d2c33b`](https://togithub.com/withastro/astro/commit/65692fa7b5f4440c644c8cf3dd9bc50103d2c33b) Thanks [@alexanderniebuhr](https://togithub.com/alexanderniebuhr)! - Adds experimental JSON Schema support for content collections. This feature will auto-generate a JSON Schema for content collections of `type: 'data'` which can be used as the `$schema` value for TypeScript-style autocompletion/hints in tools like VSCode. To enable this feature, add the experimental flag: ```diff import { defineConfig } from 'astro/config'; export default defineConfig({ experimental: { + contentCollectionJsonSchema: true } }); ``` This experimental implementation requires you to manually reference the schema in each data entry file of the collection: ```diff // src/content/test/entry.json { + "$schema": "../../../.astro/collections/test.schema.json", "test": "test" } ``` Alternatively, you can set this in your [VSCode `json.schemas` settings](https://code.visualstudio.com/docs/languages/json#\_json-schemas-and-settings): ```diff "json.schemas": [ { "fileMatch": [ "/src/content/test/**" ], "url": "../../../.astro/collections/test.schema.json" } ] ``` Note that this initial implementation uses a library with [known issues for advanced Zod schemas](https://togithub.com/StefanTerdell/zod-to-json-schema#known-issues), so you may wish to consult these limitations before enabling the experimental flag. - [#10130](https://togithub.com/withastro/astro/pull/10130) [`5a9528741fa98d017b269c7e4f013058028bdc5d`](https://togithub.com/withastro/astro/commit/5a9528741fa98d017b269c7e4f013058028bdc5d) Thanks [@bluwy](https://togithub.com/bluwy)! - Migrates `shikiji` to `shiki` 1.0 - [#10268](https://togithub.com/withastro/astro/pull/10268) [`2013e70bce16366781cc12e52823bb257fe460c0`](https://togithub.com/withastro/astro/commit/2013e70bce16366781cc12e52823bb257fe460c0) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Adds support for page mutations to the audits in the dev toolbar. Astro will now rerun the audits whenever elements are added or deleted from the page. - [#10217](https://togithub.com/withastro/astro/pull/10217) [`5c7862a9fe69954f8630538ebb7212cd04b8a810`](https://togithub.com/withastro/astro/commit/5c7862a9fe69954f8630538ebb7212cd04b8a810) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Updates the UI for dev toolbar audits with new information ##### Patch Changes - [#10360](https://togithub.com/withastro/astro/pull/10360) [`ac766647b0e6156b7c4a0bb9a11981fe168852d7`](https://togithub.com/withastro/astro/commit/ac766647b0e6156b7c4a0bb9a11981fe168852d7) Thanks [@nmattia](https://togithub.com/nmattia)! - Fixes an issue where some CLI commands attempted to directly read vite config files. - [#10291](https://togithub.com/withastro/astro/pull/10291) [`8107a2721b6abb07c3120ac90e03c39f2a44ab0c`](https://togithub.com/withastro/astro/commit/8107a2721b6abb07c3120ac90e03c39f2a44ab0c) Thanks [@bluwy](https://togithub.com/bluwy)! - Treeshakes unused Astro component scoped styles - [#10368](https://togithub.com/withastro/astro/pull/10368) [`78bafc5d661ff7dd071c241cb1303c4d8a774d21`](https://togithub.com/withastro/astro/commit/78bafc5d661ff7dd071c241cb1303c4d8a774d21) Thanks [@Princesseuh](https://togithub.com/Princesseuh)! - Updates the base `tsconfig.json` preset with `jsx: 'preserve'` in order to fix errors when importing Astro files inside `.js` and `.ts` files. - Updated dependencies \[[`c081adf998d30419fed97d8fccc11340cdc512e0`](https://togithub.com/withastro/astro/commit/c081adf998d30419fed97d8fccc11340cdc512e0), [`1ea0a25b94125e4f6f2ac82b42f638e22d7bdffd`](https://togithub.com/withastro/astro/commit/1ea0a25b94125e4f6f2ac82b42f638e22d7bdffd), [`5a9528741fa98d017b269c7e4f013058028bdc5d`](https://togithub.com/withastro/astro/commit/5a9528741fa98d017b269c7e4f013058028bdc5d), [`a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18`](https://togithub.com/withastro/astro/commit/a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18)]: - [@astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@4](https://togithub.com/4).3.0 - [@astrojs/internal-helpers](https://togithub.com/astrojs/internal-helpers)[@0](https://togithub.com/0).3.0
Configuration
📅 Schedule: Branch creation - "after 9am on monday,before 12am on monday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.