0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] release (#11276)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-06-20 03:58:37 -07:00 committed by GitHub
parent fd3645fe83
commit 58a321193e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 129 additions and 178 deletions

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fixes a bug that prevented cookies from being set when using experimental rewrites

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Drop duplicated brackets in data collections schema generation.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fixes a case where rewriting `/` would cause an issue, when `trailingSlash` was set to `"never"`.

View file

@ -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>
```

View file

@ -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

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fixes type generation for empty content collections

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Improves type-checking and error handling to catch case where an image import is passed directly to `getImage()`

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Fixes a case where `defineAction` autocomplete for the `accept` prop would not show `"form"` as a possible value

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -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"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -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",

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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",

View file

@ -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"
}
}

View file

@ -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"
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"solid-js": "^1.8.17"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.6.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"svelte": "^4.2.18"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.5.0",
"astro": "^4.10.3",
"astro": "^4.11.0",
"vue": "^3.4.29"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.3.1",
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.3.1",
"astro": "^4.10.3",
"astro": "^4.11.0",
"html-minifier": "^4.0.0"
},
"devDependencies": {

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -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"
}
}

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.10.3",
"astro": "^4.11.0",
"sass": "^1.77.5",
"sharp": "^0.33.3"
}

View file

@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.3.1",
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.11.0",
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -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",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.10.3"
"astro": "^4.11.0"
}
}

View file

@ -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"
}
}

View file

@ -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"
}

View file

@ -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",

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^4.10.3",
"astro": "^4.11.0",
"vitest": "^1.6.0"
}
}

View file

@ -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

View file

@ -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",

View file

@ -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':