61.json (12409B)
1 { 2 "number": 61, 3 "title": "Bump astro from 4.0.6 to 4.10.1", 4 "state": "closed", 5 "diff_file": "61.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2024-06-10T01:45:53Z", 8 "closed_at": "2024-06-17T01:25:49Z", 9 "merged_at": null, 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/astro-4.10.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.10.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.10.1</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11198\">#11198</a> <a href=\"https://github.com/withastro/astro/commit/8b9a499d3733e9d0fc6a0bd067ece19bd36f4726\"><code>8b9a499</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - Fixes a case where <code>astro:env</code> <code>getSecret</code> would not retrieve environment variables properly in dev and build modes</p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11206\">#11206</a> <a href=\"https://github.com/withastro/astro/commit/734b98fecf0212cd76be3c935a49f84a9a7dab34\"><code>734b98f</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - <strong>BREAKING CHANGE to the experimental <code>astro:env</code> feature only</strong></p>\n<p>Updates the adapter <code>astro:env</code> entrypoint from <code>astro:env/setup</code> to <code>astro/env/setup</code></p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11205\">#11205</a> <a href=\"https://github.com/withastro/astro/commit/8c4539145f0b6a735b65852b2f2b1a7e9f5a9c3f\"><code>8c45391</code></a> Thanks <a href=\"https://github.com/Nin3lee\"><code>@\u200bNin3lee</code></a>! - Fixes a typo in the config reference</p>\n</li>\n</ul>\n<h2>astro@4.10.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/10974\">#10974</a> <a href=\"https://github.com/withastro/astro/commit/2668ef984104574f25f29ef75e2572a0745d1666\"><code>2668ef9</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - Adds experimental support for the <code>astro:env</code> API.</p>\n<p>The <code>astro:env</code> API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate <code>/client</code> or <code>/server</code> module:</p>\n<pre lang=\"astro\"><code>---\nimport { PUBLIC_APP_ID } from 'astro:env/client';\nimport { PUBLIC_API_URL, getSecret } from 'astro:env/server';\nconst API_TOKEN = getSecret('API_TOKEN');\n<h2>const data = await fetch(<code>${PUBLIC_API_URL}/users</code>, {\nmethod: 'POST',\nheaders: {\n'Content-Type': 'application/json',\nAuthorization: <code>Bearer ${API_TOKEN}</code>,\n},\nbody: JSON.stringify({ appId: PUBLIC_APP_ID }),\n});</h2>\n<p></code></pre></p>\n<p>To define the data type and properties of your environment variables, declare a schema in your Astro config in <code>experimental.env.schema</code>. The <code>envField</code> helper allows you define your variable as a string, number, or boolean and pass properties in an object:</p>\n<pre lang=\"js\"><code>// astro.config.mjs\nimport { defineConfig, envField } from 'astro/config';\n<p>export default defineConfig({\nexperimental: {\nenv: {\nschema: {\nPUBLIC_API_URL: envField.string({ context: 'client', access: 'public', optional: true }),\nPUBLIC_PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),\nAPI_SECRET: envField.string({ context: 'server', access: 'secret' }),\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>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.10.1</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11198\">#11198</a> <a href=\"https://github.com/withastro/astro/commit/8b9a499d3733e9d0fc6a0bd067ece19bd36f4726\"><code>8b9a499</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - Fixes a case where <code>astro:env</code> <code>getSecret</code> would not retrieve environment variables properly in dev and build modes</p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11206\">#11206</a> <a href=\"https://github.com/withastro/astro/commit/734b98fecf0212cd76be3c935a49f84a9a7dab34\"><code>734b98f</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - <strong>BREAKING CHANGE to the experimental <code>astro:env</code> feature only</strong></p>\n<p>Updates the adapter <code>astro:env</code> entrypoint from <code>astro:env/setup</code> to <code>astro/env/setup</code></p>\n</li>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/11205\">#11205</a> <a href=\"https://github.com/withastro/astro/commit/8c4539145f0b6a735b65852b2f2b1a7e9f5a9c3f\"><code>8c45391</code></a> Thanks <a href=\"https://github.com/Nin3lee\"><code>@\u200bNin3lee</code></a>! - Fixes a typo in the config reference</p>\n</li>\n</ul>\n<h2>4.10.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<p><a href=\"https://redirect.github.com/withastro/astro/pull/10974\">#10974</a> <a href=\"https://github.com/withastro/astro/commit/2668ef984104574f25f29ef75e2572a0745d1666\"><code>2668ef9</code></a> Thanks <a href=\"https://github.com/florian-lefebvre\"><code>@\u200bflorian-lefebvre</code></a>! - Adds experimental support for the <code>astro:env</code> API.</p>\n<p>The <code>astro:env</code> API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate <code>/client</code> or <code>/server</code> module:</p>\n<pre lang=\"astro\"><code>---\nimport { PUBLIC_APP_ID } from 'astro:env/client';\nimport { PUBLIC_API_URL, getSecret } from 'astro:env/server';\nconst API_TOKEN = getSecret('API_TOKEN');\n<h2>const data = await fetch(<code>${PUBLIC_API_URL}/users</code>, {\nmethod: 'POST',\nheaders: {\n'Content-Type': 'application/json',\nAuthorization: <code>Bearer ${API_TOKEN}</code>,\n},\nbody: JSON.stringify({ appId: PUBLIC_APP_ID }),\n});</h2>\n<p></code></pre></p>\n<p>To define the data type and properties of your environment variables, declare a schema in your Astro config in <code>experimental.env.schema</code>. The <code>envField</code> helper allows you define your variable as a string, number, or boolean and pass properties in an object:</p>\n<pre lang=\"js\"><code>// astro.config.mjs\nimport { defineConfig, envField } from 'astro/config';\n<p>export default defineConfig({\nexperimental: {\nenv: {\nschema: {\nPUBLIC_API_URL: envField.string({ context: 'client', access: 'public', optional: true }),\nPUBLIC_PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),\nAPI_SECRET: envField.string({ context: 'server', access: 'secret' }),\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/2da877bfe97144ff5110d011b9bfba270ccfc620\"><code>2da877b</code></a> [ci] release (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11201\">#11201</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/734b98fecf0212cd76be3c935a49f84a9a7dab34\"><code>734b98f</code></a> feat(astro): update astro env setup (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11206\">#11206</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/8c4539145f0b6a735b65852b2f2b1a7e9f5a9c3f\"><code>8c45391</code></a> fix(astro:) config reference typo (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11205\">#11205</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/368e4ced10b7a629c9ad94800ccf2a1243038921\"><code>368e4ce</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/8b9a499d3733e9d0fc6a0bd067ece19bd36f4726\"><code>8b9a499</code></a> fix(astro): getSecret in dev and build (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11198\">#11198</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/48d53094cdbbcd4363d6c77aac13161c5cde5064\"><code>48d5309</code></a> [ci] release (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11186\">#11186</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/97fbe938a9b07d52d61011da4bd5a8b5ad85a700\"><code>97fbe93</code></a> fix: merge userConfig inside <code>getViteConfig</code> (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11194\">#11194</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/a64428d11b3499ebed4f76f1f0dd1ca8bc6b0518\"><code>a64428d</code></a> [ci] format</li>\n<li><a href=\"https://github.com/withastro/astro/commit/6e29a172f153d15fac07320488fae01dece71748\"><code>6e29a17</code></a> Make Astro.url in format: 'preserve' match dev (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11191\">#11191</a>)</li>\n<li><a href=\"https://github.com/withastro/astro/commit/58b10a073192030a251cff8ad706ab5b015180c9\"><code>58b10a0</code></a> Fix throw <code>AstroUserError</code> in mdx (<a href=\"https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11192\">#11192</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/withastro/astro/commits/astro@4.10.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-17T01:25:49Z", 23 "body": "Superseded by #64." 24 } 25 ], 26 "review_comments": [] 27 }