66.json (11005B)
1 { 2 "number": 66, 3 "title": "Bump astro from 4.0.6 to 4.11.0", 4 "state": "open", 5 "diff_file": "66.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2024-06-24T01:28:33Z", 8 "closed_at": null, 9 "merged_at": null, 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/astro-4.11.0", 12 "labels": [ 13 "dependencies", 14 "javascript" 15 ], 16 "assignees": [], 17 "requested_reviewers": [], 18 "body": "Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.0.6 to 4.11.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/withastro/astro/releases\">astro's releases</a>.</em></p>\n<blockquote>\n<h2>astro@4.11.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11197\">#11197</a> <a href=\"https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17\"><code>4b46bd9</code></a> Thanks <a href=\"https://github.com/braebo\"><code>@\u200bbraebo</code></a>! - Adds <a href=\"https://shiki.style/packages/transformers#shikijs-transformers\"><code>ShikiTransformer</code></a> support to the <a href=\"https://docs.astro.build/en/reference/api-reference/#code-\"><code><Code /></code></a> component with a new <code>transformers</code> prop.</p>\n<p>Note that <code>transformers</code> only applies classes and you must provide your own CSS rules to target the elements of your code block.</p>\n<pre lang=\"astro\"><code>---\nimport { transformerNotationFocus } from '@shikijs/transformers';\nimport { Code } from 'astro:components';\n<h2>const code = <code>const foo = 'hello' const bar = ' world' console.log(foo + bar) // [!code focus] </code>;</h2>\n<p><Code {code} lang="js" transformers={[transformerNotationFocus()]} /></p>\n<p><style is:global>\npre.has-focused .line:not(.focused) {\nfilter: blur(1px);\n}\n</style>\n</code></pre></p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11134\">#11134</a> <a href=\"https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1\"><code>9042be0</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - Improves the developer experience of the <code>500.astro</code> file by passing it a new <code>error</code> prop.</p>\n<p>When an error is thrown, the special <code>src/pages/500.astro</code> page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.</p>\n<pre lang=\"astro\"><code>---\n// src/pages/500.astro\ninterface Props {\n error: unknown;\n}\n<h2>const { error } = Astro.props;</h2>\n<p><div>{error instanceof Error ? error.message : 'Unknown error'}</div>\n</code></pre></p>\n<p>If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor in production, and Astro's default error overlay will be shown in development.</p>\n</li>\n</ul>\n<h3>Patch Changes</h3>\n<ul>\n<li><a href=\"https://redirect.github.com/withastro/astro/pull/11280\">#11280</a> <a href=\"https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c\"><code>fd3645f</code></a> Thanks <a href=\"https://github.com/ascorbic\"><code>@\u200bascorbic</code></a>! - Fixes a bug that prevented cookies from being set when using experimental rewrites</li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Changelog</summary>\n<p><em>Sourced from <a href=\"https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md\">astro's changelog</a>.</em></p>\n<blockquote>\n<h2>4.11.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11197\">#11197</a> <a href=\"https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17\"><code>4b46bd9</code></a> Thanks <a href=\"https://github.com/braebo\"><code>@\u200bbraebo</code></a>! - Adds <a href=\"https://shiki.style/packages/transformers#shikijs-transformers\"><code>ShikiTransformer</code></a> support to the <a href=\"https://docs.astro.build/en/reference/api-reference/#code-\"><code><Code /></code></a> component with a new <code>transformers</code> prop.</p>\n<p>Note that <code>transformers</code> only applies classes and you must provide your own CSS rules to target the elements of your code block.</p>\n<pre lang=\"astro\"><code>---\nimport { transformerNotationFocus } from '@shikijs/transformers';\nimport { Code } from 'astro:components';\n<h2>const code = <code>const foo = 'hello' const bar = ' world' console.log(foo + bar) // [!code focus] </code>;</h2>\n<p><Code {code} lang="js" transformers={[transformerNotationFocus()]} /></p>\n<p><style is:global>\npre.has-focused .line:not(.focused) {\nfilter: blur(1px);\n}\n</style>\n</code></pre></p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11134\">#11134</a> <a href=\"https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1\"><code>9042be0</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - Improves the developer experience of the <code>500.astro</code> file by passing it a new <code>error</code> prop.</p>\n<p>When an error is thrown, the special <code>src/pages/500.astro</code> page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.</p>\n<pre lang=\"astro\"><code>---\n// src/pages/500.astro\ninterface Props {\n error: unknown;\n}\n<h2>const { error } = Astro.props;</h2>\n<p><div>{error instanceof Error ? error.message : 'Unknown error'}</div>\n</code></pre></p>\n<p>If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor in production, and Astro's default error overlay will be shown in development.</p>\n</li>\n</ul>\n<h3>Patch Changes</h3>\n<ul>\n<li><a href=\"https://redirect.github.com/withastro/astro/pull/11280\">#11280</a> <a href=\"https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c\"><code>fd3645f</code></a> Thanks <a href=\"https://github.com/ascorbic\"><code>@\u200bascorbic</code></a>! - Fixes a bug that prevented cookies from being set when using experimental rewrites</li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/withastro/astro/commit/58a321193e0c8c1974827d7364eae11722e15607\"><code>58a3211</code></a> [ci] release (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11276\">#11276</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c\"><code>fd3645f</code></a> fix: allow cookies to be set in rewritten responses (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11280\">#11280</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/7f8f34799528ed0b2011e1ea273bd0636f6e767d\"><code>7f8f347</code></a> bug: removes type override from defineAction (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11292\">#11292</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/42a6eceab61f880ba46b6e11cd77237ef29fb324\"><code>42a6ece</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/5a9c9a60e7c32aa461b86b5bc667cb955e23d4d9\"><code>5a9c9a6</code></a> fix(astro): type generation for empty collections (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11264\">#11264</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/246bd7a516e533af1b6d60dc4f9c0e0350c3be1d\"><code>246bd7a</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17\"><code>4b46bd9</code></a> feat: add <code>ShikiTransformer</code> support to the <code>\\<Code /></code> component (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11197\">#11197</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/5c56324c43b20e98454544036673b66761eebf1f\"><code>5c56324</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1\"><code>9042be0</code></a> feat: 500.astro improvements (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11134\">#11134</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/c44f7f4babbb19350cd673241136bc974b012d51\"><code>c44f7f4</code></a> [ci] format</li>\n<li>Additional commits viewable in <a href=\"https://github.com/withastro/astro/commits/astro@4.11.0/packages/astro\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)\n- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)\n\n\n</details>", 19 "comments": [], 20 "review_comments": [] 21 }