58.json (11276B)
1 { 2 "number": 58, 3 "title": "Bump astro from 4.0.6 to 4.9.2", 4 "state": "closed", 5 "diff_file": "58.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2024-06-03T01:25:27Z", 8 "closed_at": "2024-06-10T01:45:54Z", 9 "merged_at": null, 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/astro-4.9.2", 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.2.\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.2</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11138\">#11138</a> <a href=\"https://github.com/withastro/astro/commit/98e0372cfd47a3e025be2ac68d1e9ebf06cf548b\"><code>98e0372</code></a> Thanks <a href=\"https://github.com/ematipico\"><code>@\u200bematipico</code></a>! - You can now pass <code>props</code> when rendering a component using the Container APIs:</p>\n<pre lang=\"js\"><code>import { experimental_AstroContainer as AstroContainer } from 'astro/contaienr';\nimport Card from '../src/components/Card.astro';\n<p>const container = await AstroContainer.create();\nconst result = await container.renderToString(Card, {\nprops: {\nsomeState: true,\n},\n});\n</code></pre></p>\n</li>\n</ul>\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</code></pre></p>\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.2</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11138\">#11138</a> <a href=\"https://github.com/withastro/astro/commit/98e0372cfd47a3e025be2ac68d1e9ebf06cf548b\"><code>98e0372</code></a> Thanks <a href=\"https://github.com/ematipico\"><code>@\u200bematipico</code></a>! - You can now pass <code>props</code> when rendering a component using the Container APIs:</p>\n<pre lang=\"js\"><code>import { experimental_AstroContainer as AstroContainer } from 'astro/container';\nimport Card from '../src/components/Card.astro';\n<p>const container = await AstroContainer.create();\nconst result = await container.renderToString(Card, {\nprops: {\nsomeState: true,\n},\n});\n</code></pre></p>\n</li>\n</ul>\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});\n</code></pre></p>\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/cdf89a16c86172845fb5df5cb79b15f67fa7ca2f\"><code>cdf89a1</code></a> [ci] release (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11140\">#11140</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/5af99dc8f1a144f3a2fdf254e25c42e83c7646dd\"><code>5af99dc</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/98e0372cfd47a3e025be2ac68d1e9ebf06cf548b\"><code>98e0372</code></a> feat: pass props to container (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11138\">#11138</a>)</li>\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>Additional commits viewable in <a href=\"https://github.com/withastro/astro/commits/astro@4.9.2/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-10T01:45:54Z", 23 "body": "Superseded by #61." 24 } 25 ], 26 "review_comments": [] 27 }