57.json (12288B)
1 { 2 "number": 57, 3 "title": "Bump astro from 4.0.6 to 4.9.1", 4 "state": "closed", 5 "diff_file": "57.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2024-05-27T01:27:25Z", 8 "closed_at": "2024-06-03T01:25:29Z", 9 "merged_at": null, 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/astro-4.9.1", 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.9.1.\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.9.1</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li><a href=\"https://redirect.github.com/withastro/astro/pull/11129\">#11129</a> <a href=\"https://github.com/withastro/astro/commit/4bb926908d9a7ee134701c3e5a1b5e6ea688f843\"><code>4bb9269</code></a> Thanks <a href=\"https://github.com/matthewp\"><code>@\u200bmatthewp</code></a>! - Prevent errors from adapters when i18n domains is not used</li>\n</ul>\n<h2>astro@4.9.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11051\">#11051</a> <a href=\"https://github.com/withastro/astro/commit/12a1bccc818af292cdd2a8ed0f3e3c042b9819b4\"><code>12a1bcc</code></a> Thanks <a href=\"https://github.com/ematipico\"><code>@\u200bematipico</code></a>! - Introduces an experimental Container API to render <code>.astro</code> components in isolation.</p>\n<p>This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:</p>\n<ul>\n<li><code>create()</code>: creates a new instance of the container.</li>\n<li><code>renderToString()</code>: renders a component and return a string.</li>\n<li><code>renderToResponse()</code>: renders a component and returns the <code>Response</code> emitted by the rendering phase.</li>\n</ul>\n<p>The first supported use of this new API is to enable unit testing. For example, with <code>vitest</code>, you can create a container to render your component with test data and check the result:</p>\n<pre lang=\"js\"><code>import { experimental_AstroContainer as AstroContainer } from 'astro/container';\nimport { expect, test } from 'vitest';\nimport Card from '../src/components/Card.astro';\n<p>test('Card with slots', async () => {\nconst container = await AstroContainer.create();\nconst result = await container.renderToString(Card, {\nslots: {\ndefault: 'Card content',\n},\n});</p>\n<p>expect(result).toContain('This is a card');\nexpect(result).toContain('Card content');\n});\n</code></pre></p>\n<p>For a complete reference, see the <a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/blob/HEAD/en/reference/container-reference\">Container API docs</a>.</p>\n<p>For a feature overview, and to give feedback on this experimental API, see the <a href=\"https://redirect.github.com/withastro/roadmap/pull/916\">Container API roadmap discussion</a>.</p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11021\">#11021</a> <a href=\"https://github.com/withastro/astro/commit/2d4c8faa56a64d963fe7847b5be2d7a59e12ed5b\"><code>2d4c8fa</code></a> Thanks <a href=\"https://github.com/ematipico\"><code>@\u200bematipico</code></a>! - The CSRF protection feature that was introduced behind a flag in <a href=\"https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#460\">v4.6.0</a> is no longer experimental and is available for general use.</p>\n<p>To enable the stable version, add the new top-level <code>security</code> option in <code>astro.config.mjs</code>. If you were previously using the experimental version of this feature, also delete the experimental flag:</p>\n<pre lang=\"diff\"><code>export default defineConfig({\n- experimental: {\n- security: {\n- csrfProtection: {\n- origin: true\n</code></pre>\n</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.9.1</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li><a href=\"https://redirect.github.com/withastro/astro/pull/11129\">#11129</a> <a href=\"https://github.com/withastro/astro/commit/4bb926908d9a7ee134701c3e5a1b5e6ea688f843\"><code>4bb9269</code></a> Thanks <a href=\"https://github.com/matthewp\"><code>@\u200bmatthewp</code></a>! - Prevent errors from adapters when i18n domains is not used</li>\n</ul>\n<h2>4.9.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11051\">#11051</a> <a href=\"https://github.com/withastro/astro/commit/12a1bccc818af292cdd2a8ed0f3e3c042b9819b4\"><code>12a1bcc</code></a> Thanks <a href=\"https://github.com/ematipico\"><code>@\u200bematipico</code></a>! - Introduces an experimental Container API to render <code>.astro</code> components in isolation.</p>\n<p>This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:</p>\n<ul>\n<li><code>create()</code>: creates a new instance of the container.</li>\n<li><code>renderToString()</code>: renders a component and return a string.</li>\n<li><code>renderToResponse()</code>: renders a component and returns the <code>Response</code> emitted by the rendering phase.</li>\n</ul>\n<p>The first supported use of this new API is to enable unit testing. For example, with <code>vitest</code>, you can create a container to render your component with test data and check the result:</p>\n<pre lang=\"js\"><code>import { experimental_AstroContainer as AstroContainer } from 'astro/container';\nimport { expect, test } from 'vitest';\nimport Card from '../src/components/Card.astro';\n<p>test('Card with slots', async () => {\nconst container = await AstroContainer.create();\nconst result = await container.renderToString(Card, {\nslots: {\ndefault: 'Card content',\n},\n});</p>\n<p>expect(result).toContain('This is a card');\nexpect(result).toContain('Card content');\n});\n</code></pre></p>\n<p>For a complete reference, see the <a href=\"https://github.com/withastro/astro/blob/main/packages/astro/en/reference/container-reference\">Container API docs</a>.</p>\n<p>For a feature overview, and to give feedback on this experimental API, see the <a href=\"https://redirect.github.com/withastro/roadmap/pull/916\">Container API roadmap discussion</a>.</p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11021\">#11021</a> <a href=\"https://github.com/withastro/astro/commit/2d4c8faa56a64d963fe7847b5be2d7a59e12ed5b\"><code>2d4c8fa</code></a> Thanks <a href=\"https://github.com/ematipico\"><code>@\u200bematipico</code></a>! - The CSRF protection feature that was introduced behind a flag in <a href=\"https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#460\">v4.6.0</a> is no longer experimental and is available for general use.</p>\n<p>To enable the stable version, add the new top-level <code>security</code> option in <code>astro.config.mjs</code>. If you were previously using the experimental version of this feature, also delete the experimental flag:</p>\n<pre lang=\"diff\"><code>export default defineConfig({\n- experimental: {\n- security: {\n</code></pre>\n</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/4c7949d1ae28f5597ec08cab788fe683197b0c3c\"><code>4c7949d</code></a> [ci] release (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11132\">#11132</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/4bb926908d9a7ee134701c3e5a1b5e6ea688f843\"><code>4bb9269</code></a> Prevent errors from adapters when i18n domains is not used (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11129\">#11129</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/50775925f9b2b50c3259dfd3d6f687d9af454884\"><code>5077592</code></a> [ci] release (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11116\">#11116</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/9566fa08608be766df355be17d72a39ea7b99ed0\"><code>9566fa0</code></a> Actions: Allow actions to be called on the server (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11088\">#11088</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/e71348e1381c42789daf2f9bb2366bf4ac9a4f15\"><code>e71348e</code></a> [docs] fix config reference code formatting (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11119\">#11119</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/7bfe8aaaa1b32fdadb78b7e9c54c1f9aee9cd9ee\"><code>7bfe8aa</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/c7386ef2b3b42865ca6fbfe15cd17dd2cf5b0994\"><code>c7386ef</code></a> [docs] update heading level in config reference (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11118\">#11118</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/ae42bf38e3f946b9c7afb5d73738636891f471b6\"><code>ae42bf3</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/5cb68d812617916767c0a35569a6a5113ccfc228\"><code>5cb68d8</code></a> [docs] updates security.checkOrigin config reference (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11117\">#11117</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/7be7b1a757b513bfffd56cf47e94e960b3f63407\"><code>7be7b1a</code></a> [ci] format</li>\n<li>Additional commits viewable in <a href=\"https://github.com/withastro/astro/commits/astro@4.9.1/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 { 21 "author": "dependabot[bot]", 22 "created_at": "2024-06-03T01:25:29Z", 23 "body": "Superseded by #58." 24 } 25 ], 26 "review_comments": [] 27 }