summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2024-06-20 03:58:37 -0700
committerGravatar GitHub <noreply@github.com> 2024-06-20 11:58:37 +0100
commit58a321193e0c8c1974827d7364eae11722e15607 (patch)
treefdf6f8b63c5baa7fdc478dc05927615c0b55ad69
parentfd3645fe8364ec5e280b6802d1468867890d463c (diff)
downloadastro@4.11.0.tar.gz
astro@4.11.0.tar.zst
astro@4.11.0.zip
[ci] release (#11276)astro@4.11.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r--.changeset/big-eyes-share.md5
-rw-r--r--.changeset/duplicated-brackets-generation.md5
-rw-r--r--.changeset/five-owls-check.md5
-rw-r--r--.changeset/fluffy-carrots-search.md27
-rw-r--r--.changeset/honest-shirts-trade.md5
-rw-r--r--.changeset/light-bugs-shake.md5
-rw-r--r--.changeset/old-walls-report.md5
-rw-r--r--.changeset/quiet-doors-eat.md5
-rw-r--r--.changeset/rich-dolls-compete.md22
-rw-r--r--.changeset/silly-pens-fetch.md7
-rw-r--r--.changeset/six-fans-kiss.md7
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/blog/package.json2
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/container-with-vitest/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-lit/package.json2
-rw-r--r--examples/framework-multiple/package.json2
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json2
-rw-r--r--examples/framework-solid/package.json2
-rw-r--r--examples/framework-svelte/package.json2
-rw-r--r--examples/framework-vue/package.json2
-rw-r--r--examples/hackernews/package.json2
-rw-r--r--examples/integration/package.json2
-rw-r--r--examples/middleware/package.json2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/ssr/package.json2
-rw-r--r--examples/starlog/package.json2
-rw-r--r--examples/toolbar-app/package.json2
-rw-r--r--examples/view-transitions/package.json2
-rw-r--r--examples/with-markdoc/package.json2
-rw-r--r--examples/with-markdown-plugins/package.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-mdx/package.json2
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json2
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--packages/astro/CHANGELOG.md70
-rw-r--r--packages/astro/package.json2
-rw-r--r--pnpm-lock.yaml79
43 files changed, 129 insertions, 178 deletions
diff --git a/.changeset/big-eyes-share.md b/.changeset/big-eyes-share.md
deleted file mode 100644
index f08f87c50..000000000
--- a/.changeset/big-eyes-share.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes a bug that prevented cookies from being set when using experimental rewrites
diff --git a/.changeset/duplicated-brackets-generation.md b/.changeset/duplicated-brackets-generation.md
deleted file mode 100644
index 4d8e0a4a1..000000000
--- a/.changeset/duplicated-brackets-generation.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Drop duplicated brackets in data collections schema generation.
diff --git a/.changeset/five-owls-check.md b/.changeset/five-owls-check.md
deleted file mode 100644
index 68b692903..000000000
--- a/.changeset/five-owls-check.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes a case where rewriting `/` would cause an issue, when `trailingSlash` was set to `"never"`.
diff --git a/.changeset/fluffy-carrots-search.md b/.changeset/fluffy-carrots-search.md
deleted file mode 100644
index 79b7e7a3b..000000000
--- a/.changeset/fluffy-carrots-search.md
+++ /dev/null
@@ -1,27 +0,0 @@
----
-'astro': minor
----
-
-Adds [`ShikiTransformer`](https://shiki.style/packages/transformers#shikijs-transformers) support to the [`<Code />`](https://docs.astro.build/en/reference/api-reference/#code-) component with a new `transformers` prop.
-
-Note that `transformers` only applies classes and you must provide your own CSS rules to target the elements of your code block.
-
-```astro
----
-import { transformerNotationFocus } from '@shikijs/transformers'
-import { Code } from 'astro:components'
-
-const code = `const foo = 'hello'
-const bar = ' world'
-console.log(foo + bar) // [!code focus]
-`
----
-
-<Code {code} lang="js" transformers={[transformerNotationFocus()]} />
-
-<style is:global>
- pre.has-focused .line:not(.focused) {
- filter: blur(1px);
- }
-</style>
-```
diff --git a/.changeset/honest-shirts-trade.md b/.changeset/honest-shirts-trade.md
deleted file mode 100644
index 7708e709a..000000000
--- a/.changeset/honest-shirts-trade.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Reverts a logic where it wasn't possible to rewrite `/404` in static mode. It's **now possible** again
diff --git a/.changeset/light-bugs-shake.md b/.changeset/light-bugs-shake.md
deleted file mode 100644
index c5fe72093..000000000
--- a/.changeset/light-bugs-shake.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes type generation for empty content collections
diff --git a/.changeset/old-walls-report.md b/.changeset/old-walls-report.md
deleted file mode 100644
index 64dc1f5d2..000000000
--- a/.changeset/old-walls-report.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Improves type-checking and error handling to catch case where an image import is passed directly to `getImage()`
diff --git a/.changeset/quiet-doors-eat.md b/.changeset/quiet-doors-eat.md
deleted file mode 100644
index 587dba8ba..000000000
--- a/.changeset/quiet-doors-eat.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"astro": patch
----
-
-Fixes a case where `defineAction` autocomplete for the `accept` prop would not show `"form"` as a possible value
diff --git a/.changeset/rich-dolls-compete.md b/.changeset/rich-dolls-compete.md
deleted file mode 100644
index 1254be9f7..000000000
--- a/.changeset/rich-dolls-compete.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-"astro": minor
----
-
-Improves the developer experience of the `500.astro` file by passing it a new `error` prop.
-
-When an error is thrown, the special `src/pages/500.astro` 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.
-
-```astro
----
-// src/pages/500.astro
-interface Props {
- error: unknown
-}
-
-const { error } = Astro.props
----
-
-<div>{error instanceof Error ? error.message : 'Unknown error'}</div>
-```
-
-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.
diff --git a/.changeset/silly-pens-fetch.md b/.changeset/silly-pens-fetch.md
deleted file mode 100644
index ff336a799..000000000
--- a/.changeset/silly-pens-fetch.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'astro': patch
----
-
-Corrects an inconsistency in dev where middleware would run for prerendered 404 routes.
-Middleware is not run for prerendered 404 routes in production, so this was incorrect.
-
diff --git a/.changeset/six-fans-kiss.md b/.changeset/six-fans-kiss.md
deleted file mode 100644
index f80b87b02..000000000
--- a/.changeset/six-fans-kiss.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'astro': patch
----
-
-Fixes an issue that would break `Astro.request.url` and `Astro.request.headers` in `astro dev` if HTTP/2 was enabled.
-
-HTTP/2 is now enabled by default in `astro dev` if `https` is configured in the Vite config.
diff --git a/examples/basics/package.json b/examples/basics/package.json
index e3d952e50..f8749c742 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index 6db52dae2..abf81e7de 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -14,6 +14,6 @@
"@astrojs/mdx": "^3.1.1",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.6",
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 0a53d80c9..b26658e0c 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json
index 38e2543fd..7b4030a3e 100644
--- a/examples/container-with-vitest/package.json
+++ b/examples/container-with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"@astrojs/react": "^3.6.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index aca1189f1..f92b1ce06 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.0",
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 81467a629..de9e88f6f 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.3.0",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"lit": "^3.1.4"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 31bd9c9c9..b3c551049 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -18,7 +18,7 @@
"@astrojs/vue": "^4.5.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"preact": "^10.22.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index 1938295a7..bd7e3bf9a 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.0",
"@preact/signals": "^1.2.3",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"preact": "^10.22.0"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 65ac56ac6..ef027d7da 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -14,7 +14,7 @@
"@astrojs/react": "^3.6.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index 330c43201..184ce175f 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"solid-js": "^1.8.17"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index e6d4ab8e8..19400e015 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.6.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"svelte": "^4.2.18"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 9b2cbbb8b..69e9bbbce 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.5.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"vue": "^3.4.29"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 85221d768..a42622b49 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.3.1",
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index d474df38c..35b888bfb 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index 5c4920425..29887ce78 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.3.1",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"html-minifier": "^4.0.0"
},
"devDependencies": {
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index f21a2648c..589deeb2f 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index 9e8b3fa0a..1b963a4dc 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 87302014d..5bb098874 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index 98e644673..4d61c4b0b 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^8.3.1",
"@astrojs/svelte": "^5.6.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"svelte": "^4.2.18"
}
}
diff --git a/examples/starlog/package.json b/examples/starlog/package.json
index b3ec85eba..b0c3cf066 100644
--- a/examples/starlog/package.json
+++ b/examples/starlog/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"sass": "^1.77.5",
"sharp": "^0.33.3"
}
diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json
index 29cbbbb5e..c1b5f52b5 100644
--- a/examples/toolbar-app/package.json
+++ b/examples/toolbar-app/package.json
@@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json
index f9437e273..7d1735eb3 100644
--- a/examples/view-transitions/package.json
+++ b/examples/view-transitions/package.json
@@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.3.1",
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index 4c1ca16f6..5b5575546 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.11.0",
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 519743eed..e4a09be9c 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^5.1.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index 51c40eee2..57725bf48 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.10.3"
+ "astro": "^4.11.0"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index 0a0958837..9008692ab 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^3.1.1",
"@astrojs/preact": "^3.5.0",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"preact": "^10.22.0"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 57a6581c9..b9c2e4e19 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.0",
"@nanostores/preact": "^0.5.1",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"nanostores": "^0.10.3",
"preact": "^10.22.0"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index bbb4eb46c..6b1f771a1 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -14,7 +14,7 @@
"@astrojs/mdx": "^3.1.1",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.4",
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"autoprefixer": "^10.4.19",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.38",
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index ed6a7500b..141ac97ce 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^4.10.3",
+ "astro": "^4.11.0",
"vitest": "^1.6.0"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 0552d9758..b3ffa414e 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,75 @@
# astro
+## 4.11.0
+
+### Minor Changes
+
+- [#11197](https://github.com/withastro/astro/pull/11197) [`4b46bd9`](https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17) Thanks [@braebo](https://github.com/braebo)! - Adds [`ShikiTransformer`](https://shiki.style/packages/transformers#shikijs-transformers) support to the [`<Code />`](https://docs.astro.build/en/reference/api-reference/#code-) component with a new `transformers` prop.
+
+ Note that `transformers` only applies classes and you must provide your own CSS rules to target the elements of your code block.
+
+ ```astro
+ ---
+ import { transformerNotationFocus } from '@shikijs/transformers';
+ import { Code } from 'astro:components';
+
+ const code = `const foo = 'hello'
+ const bar = ' world'
+ console.log(foo + bar) // [!code focus]
+ `;
+ ---
+
+ <Code {code} lang="js" transformers={[transformerNotationFocus()]} />
+
+ <style is:global>
+ pre.has-focused .line:not(.focused) {
+ filter: blur(1px);
+ }
+ </style>
+ ```
+
+- [#11134](https://github.com/withastro/astro/pull/11134) [`9042be0`](https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Improves the developer experience of the `500.astro` file by passing it a new `error` prop.
+
+ When an error is thrown, the special `src/pages/500.astro` 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.
+
+ ```astro
+ ---
+ // src/pages/500.astro
+ interface Props {
+ error: unknown;
+ }
+
+ const { error } = Astro.props;
+ ---
+
+ <div>{error instanceof Error ? error.message : 'Unknown error'}</div>
+ ```
+
+ 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.
+
+### Patch Changes
+
+- [#11280](https://github.com/withastro/astro/pull/11280) [`fd3645f`](https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes a bug that prevented cookies from being set when using experimental rewrites
+
+- [#11275](https://github.com/withastro/astro/pull/11275) [`bab700d`](https://github.com/withastro/astro/commit/bab700d69085b1de8f03fc1b0b31651f709cbfe3) Thanks [@syhily](https://github.com/syhily)! - Drop duplicated brackets in data collections schema generation.
+
+- [#11272](https://github.com/withastro/astro/pull/11272) [`ea987d7`](https://github.com/withastro/astro/commit/ea987d7da589ead9aa4b550f167f5e2f6c939d2e) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a case where rewriting `/` would cause an issue, when `trailingSlash` was set to `"never"`.
+
+- [#11272](https://github.com/withastro/astro/pull/11272) [`ea987d7`](https://github.com/withastro/astro/commit/ea987d7da589ead9aa4b550f167f5e2f6c939d2e) Thanks [@ematipico](https://github.com/ematipico)! - Reverts a logic where it wasn't possible to rewrite `/404` in static mode. It's **now possible** again
+
+- [#11264](https://github.com/withastro/astro/pull/11264) [`5a9c9a6`](https://github.com/withastro/astro/commit/5a9c9a60e7c32aa461b86b5bc667cb955e23d4d9) Thanks [@Fryuni](https://github.com/Fryuni)! - Fixes type generation for empty content collections
+
+- [#11279](https://github.com/withastro/astro/pull/11279) [`9a08d74`](https://github.com/withastro/astro/commit/9a08d74bc00ae2c3bc254f99580a22ce4df1d002) Thanks [@ascorbic](https://github.com/ascorbic)! - Improves type-checking and error handling to catch case where an image import is passed directly to `getImage()`
+
+- [#11292](https://github.com/withastro/astro/pull/11292) [`7f8f347`](https://github.com/withastro/astro/commit/7f8f34799528ed0b2011e1ea273bd0636f6e767d) Thanks [@jdtjenkins](https://github.com/jdtjenkins)! - Fixes a case where `defineAction` autocomplete for the `accept` prop would not show `"form"` as a possible value
+
+- [#11273](https://github.com/withastro/astro/pull/11273) [`cb4d078`](https://github.com/withastro/astro/commit/cb4d07819f0dbdfd94bc4f084edf7720ada01323) Thanks [@ascorbic](https://github.com/ascorbic)! - Corrects an inconsistency in dev where middleware would run for prerendered 404 routes.
+ Middleware is not run for prerendered 404 routes in production, so this was incorrect.
+
+- [#11284](https://github.com/withastro/astro/pull/11284) [`f4b029b`](https://github.com/withastro/astro/commit/f4b029b08264268c68fc81ea25b264e81f47e683) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes an issue that would break `Astro.request.url` and `Astro.request.headers` in `astro dev` if HTTP/2 was enabled.
+
+ HTTP/2 is now enabled by default in `astro dev` if `https` is configured in the Vite config.
+
## 4.10.3
### Patch Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index aaa9034f9..663a45883 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "4.10.3",
+ "version": "4.11.0",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9361d07b4..c67d31e95 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -128,7 +128,7 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/blog:
@@ -143,13 +143,13 @@ importers:
specifier: ^3.1.6
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/container-with-vitest:
@@ -158,7 +158,7 @@ importers:
specifier: ^3.6.0
version: link:../../packages/integrations/react
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -189,7 +189,7 @@ importers:
specifier: ^3.14.0
version: 3.14.0
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/framework-lit:
@@ -201,7 +201,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
lit:
specifier: ^3.1.4
@@ -231,7 +231,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
preact:
specifier: ^10.22.0
@@ -261,7 +261,7 @@ importers:
specifier: ^1.2.3
version: 1.2.3(preact@10.22.0)
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
preact:
specifier: ^10.22.0
@@ -279,7 +279,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -294,7 +294,7 @@ importers:
specifier: ^4.4.0
version: link:../../packages/integrations/solid
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
solid-js:
specifier: ^1.8.17
@@ -306,7 +306,7 @@ importers:
specifier: ^5.6.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@@ -318,7 +318,7 @@ importers:
specifier: ^4.5.0
version: link:../../packages/integrations/vue
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
vue:
specifier: ^3.4.29
@@ -330,13 +330,13 @@ importers:
specifier: ^8.3.1
version: link:../../packages/integrations/node
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/middleware:
@@ -345,7 +345,7 @@ importers:
specifier: ^8.3.1
version: link:../../packages/integrations/node
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -358,19 +358,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/ssr:
@@ -382,7 +382,7 @@ importers:
specifier: ^5.6.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@@ -391,7 +391,7 @@ importers:
examples/starlog:
dependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
sass:
specifier: ^1.77.5
@@ -403,7 +403,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/view-transitions:
@@ -415,7 +415,7 @@ importers:
specifier: ^5.1.0
version: link:../../packages/integrations/tailwind
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/with-markdoc:
@@ -424,7 +424,7 @@ importers:
specifier: ^0.11.0
version: link:../../packages/integrations/markdoc
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/with-markdown-plugins:
@@ -433,7 +433,7 @@ importers:
specifier: ^5.1.0
version: link:../../packages/markdown/remark
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@@ -454,7 +454,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
examples/with-mdx:
@@ -466,7 +466,7 @@ importers:
specifier: ^3.5.0
version: link:../../packages/integrations/preact
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
preact:
specifier: ^10.22.0
@@ -481,7 +481,7 @@ importers:
specifier: ^0.5.1
version: 0.5.1(nanostores@0.10.3)(preact@10.22.0)
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
nanostores:
specifier: ^0.10.3
@@ -502,7 +502,7 @@ importers:
specifier: ^1.6.4
version: 1.6.4
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.19
@@ -520,7 +520,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^4.10.3
+ specifier: ^4.11.0
version: link:../../packages/astro
vitest:
specifier: ^1.6.0
@@ -2569,27 +2569,6 @@ importers:
specifier: ^3.4.29
version: 3.4.29(typescript@5.4.5)
- packages/astro/test/fixtures/container-dev-renderers:
- dependencies:
- '@astrojs/react':
- specifier: workspace:*
- version: link:../../../../integrations/react
- '@astrojs/vue':
- specifier: workspace:*
- version: link:../../../../integrations/vue
- astro:
- specifier: workspace:*
- version: link:../../..
- react:
- specifier: ^18.3.1
- version: 18.3.1
- react-dom:
- specifier: ^18.3.1
- version: 18.3.1(react@18.3.1)
- vue:
- specifier: ^3.4.29
- version: 3.4.29(typescript@5.4.5)
-
packages/astro/test/fixtures/content:
dependencies:
'@astrojs/mdx':