0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-04-07 23:41:43 -05:00

[ci] release (#11654)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-08-09 14:49:10 -07:00 committed by GitHub
parent ee69a065d3
commit 8118120e91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 119 additions and 122 deletions

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Updates `astro:env` docs to reflect current developments and usage guidance

View file

@ -1,5 +0,0 @@
---
'@astrojs/solid-js': patch
---
Prevents throwing errors when checking if a component is a Solid component in runtime

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fixes `orThrow()` type when calling an Action without an `input` validator.

View file

@ -1,27 +0,0 @@
---
'astro': patch
---
Improves user experience when render an Action result from a form POST request:
- Removes "Confirm post resubmission?" dialog when refreshing a result.
- Removes the `?_astroAction=NAME` flag when a result is rendered.
Also improves the DX of directing to a new route on success. Actions will now redirect to the route specified in your `action` string on success, and redirect back to the previous page on error. This follows the routing convention of established backend frameworks like Laravel.
For example, say you want to redirect to a `/success` route when `actions.signup` succeeds. You can add `/success` to your `action` string like so:
```astro
<form method="POST" action={"/success" + actions.signup}>
```
- On success, Astro will redirect to `/success`.
- On error, Astro will redirect back to the current page.
You can retrieve the action result from either page using the `Astro.getActionResult()` function.
### Note on security
This uses a temporary cookie to forward the action result to the next page. The cookie will be deleted when that page is rendered.
**The action result is not encrypted.** In general, we recommend returning minimal data from an action handler to a) avoid leaking sensitive information, and b) avoid unexpected render issues once the temporary cookie is deleted. For example, a `login` function may return a user's session id to retrieve from your Astro frontmatter, rather than the entire user object.

View file

@ -1,5 +0,0 @@
---
'@astrojs/react': patch
---
Prevents throwing errors when checking if a component is a React component in runtime

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

@ -14,6 +14,6 @@
"@astrojs/mdx": "^3.1.3",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

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

View file

@ -12,8 +12,8 @@
"test": "vitest run"
},
"dependencies": {
"astro": "^4.13.2",
"@astrojs/react": "^3.6.1",
"astro": "^4.13.3",
"@astrojs/react": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vitest": "^2.0.5"

View file

@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.1",
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.3.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.13.2",
"astro": "^4.13.3",
"lit": "^3.1.4"
}
}

View file

@ -12,13 +12,13 @@
},
"dependencies": {
"@astrojs/preact": "^3.5.1",
"@astrojs/react": "^3.6.1",
"@astrojs/solid-js": "^4.4.0",
"@astrojs/react": "^3.6.2",
"@astrojs/solid-js": "^4.4.1",
"@astrojs/svelte": "^5.7.0",
"@astrojs/vue": "^4.5.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"preact": "^10.23.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.1",
"@preact/signals": "^1.3.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"preact": "^10.23.1"
}
}

View file

@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^3.6.1",
"@astrojs/react": "^3.6.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/solid-js": "^4.4.0",
"astro": "^4.13.2",
"@astrojs/solid-js": "^4.4.1",
"astro": "^4.13.3",
"solid-js": "^1.8.19"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.7.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"svelte": "^4.2.18"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.5.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"vue": "^3.4.35"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.3.2",
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

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

View file

@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.3.2",
"astro": "^4.13.2",
"astro": "^4.13.3",
"html-minifier": "^4.0.0"
},
"devDependencies": {

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

@ -11,13 +11,13 @@
},
"devDependencies": {
"@astrojs/node": "^8.3.2",
"@astrojs/react": "^3.6.1",
"@astrojs/react": "^3.6.2",
"@astrojs/tailwind": "^5.1.0",
"@fortawesome/fontawesome-free": "^6.6.0",
"@tailwindcss/forms": "^0.5.7",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"postcss": "^8.4.40",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^8.3.2",
"@astrojs/svelte": "^5.7.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"svelte": "^4.2.18"
}
}

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.13.2",
"astro": "^4.13.3",
"sass": "^1.77.8",
"sharp": "^0.33.3"
}

View file

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

View file

@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.3.2",
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.11.3",
"astro": "^4.13.2"
"astro": "^4.13.3"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^5.2.0",
"astro": "^4.13.2",
"astro": "^4.13.3",
"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.13.2"
"astro": "^4.13.3"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^3.1.3",
"@astrojs/preact": "^3.5.1",
"astro": "^4.13.2",
"astro": "^4.13.3",
"preact": "^10.23.1"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.1",
"@nanostores/preact": "^0.5.2",
"astro": "^4.13.2",
"astro": "^4.13.3",
"nanostores": "^0.11.0",
"preact": "^10.23.1"
}

View file

@ -14,7 +14,7 @@
"@astrojs/mdx": "^3.1.3",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.4",
"astro": "^4.13.2",
"astro": "^4.13.3",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.40",

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^4.13.2",
"astro": "^4.13.3",
"vitest": "^2.0.5"
}
}

View file

@ -1,5 +1,37 @@
# astro
## 4.13.3
### Patch Changes
- [#11653](https://github.com/withastro/astro/pull/11653) [`32be549`](https://github.com/withastro/astro/commit/32be5494f6d33dbe32208704405162c95a64f0bc) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Updates `astro:env` docs to reflect current developments and usage guidance
- [#11658](https://github.com/withastro/astro/pull/11658) [`13b912a`](https://github.com/withastro/astro/commit/13b912a8702afb96e2d0bc20dcc1b4135ae58147) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fixes `orThrow()` type when calling an Action without an `input` validator.
- [#11603](https://github.com/withastro/astro/pull/11603) [`f31d466`](https://github.com/withastro/astro/commit/f31d4665c1cbb0918b9e00ba1431fb6f264025f7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Improves user experience when render an Action result from a form POST request:
- Removes "Confirm post resubmission?" dialog when refreshing a result.
- Removes the `?_astroAction=NAME` flag when a result is rendered.
Also improves the DX of directing to a new route on success. Actions will now redirect to the route specified in your `action` string on success, and redirect back to the previous page on error. This follows the routing convention of established backend frameworks like Laravel.
For example, say you want to redirect to a `/success` route when `actions.signup` succeeds. You can add `/success` to your `action` string like so:
```astro
<form method="POST" action={'/success' + actions.signup}></form>
```
- On success, Astro will redirect to `/success`.
- On error, Astro will redirect back to the current page.
You can retrieve the action result from either page using the `Astro.getActionResult()` function.
### Note on security
This uses a temporary cookie to forward the action result to the next page. The cookie will be deleted when that page is rendered.
**The action result is not encrypted.** In general, we recommend returning minimal data from an action handler to a) avoid leaking sensitive information, and b) avoid unexpected render issues once the temporary cookie is deleted. For example, a `login` function may return a user's session id to retrieve from your Astro frontmatter, rather than the entire user object.
## 4.13.2
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "4.13.2",
"version": "4.13.3",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/react
## 3.6.2
### Patch Changes
- [#11624](https://github.com/withastro/astro/pull/11624) [`7adb350`](https://github.com/withastro/astro/commit/7adb350a37f3975c8c9db89a32bf63b9fd0b78c2) Thanks [@bluwy](https://github.com/bluwy)! - Prevents throwing errors when checking if a component is a React component in runtime
## 3.6.1
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/react",
"description": "Use React components within Astro",
"version": "3.6.1",
"version": "3.6.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/solid-js
## 4.4.1
### Patch Changes
- [#11624](https://github.com/withastro/astro/pull/11624) [`7adb350`](https://github.com/withastro/astro/commit/7adb350a37f3975c8c9db89a32bf63b9fd0b78c2) Thanks [@bluwy](https://github.com/bluwy)! - Prevents throwing errors when checking if a component is a Solid component in runtime
## 4.4.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/solid-js",
"version": "4.4.0",
"version": "4.4.1",
"description": "Use Solid components within Astro",
"type": "module",
"types": "./dist/index.d.ts",

72
pnpm-lock.yaml generated
View file

@ -113,7 +113,7 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/blog:
@ -128,22 +128,22 @@ importers:
specifier: ^3.1.6
version: link:../../packages/integrations/sitemap
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/container-with-vitest:
dependencies:
'@astrojs/react':
specifier: ^3.6.1
specifier: ^3.6.2
version: link:../../packages/integrations/react
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -174,7 +174,7 @@ importers:
specifier: ^3.14.1
version: 3.14.1
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/framework-lit:
@ -186,7 +186,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
lit:
specifier: ^3.1.4
@ -198,10 +198,10 @@ importers:
specifier: ^3.5.1
version: link:../../packages/integrations/preact
'@astrojs/react':
specifier: ^3.6.1
specifier: ^3.6.2
version: link:../../packages/integrations/react
'@astrojs/solid-js':
specifier: ^4.4.0
specifier: ^4.4.1
version: link:../../packages/integrations/solid
'@astrojs/svelte':
specifier: ^5.7.0
@ -216,7 +216,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
preact:
specifier: ^10.23.1
@ -246,7 +246,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.23.1)
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
preact:
specifier: ^10.23.1
@ -255,7 +255,7 @@ importers:
examples/framework-react:
dependencies:
'@astrojs/react':
specifier: ^3.6.1
specifier: ^3.6.2
version: link:../../packages/integrations/react
'@types/react':
specifier: ^18.3.3
@ -264,7 +264,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -276,10 +276,10 @@ importers:
examples/framework-solid:
dependencies:
'@astrojs/solid-js':
specifier: ^4.4.0
specifier: ^4.4.1
version: link:../../packages/integrations/solid
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
solid-js:
specifier: ^1.8.19
@ -291,7 +291,7 @@ importers:
specifier: ^5.7.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@ -303,7 +303,7 @@ importers:
specifier: ^4.5.0
version: link:../../packages/integrations/vue
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
vue:
specifier: ^3.4.35
@ -315,13 +315,13 @@ importers:
specifier: ^8.3.2
version: link:../../packages/integrations/node
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/middleware:
@ -330,7 +330,7 @@ importers:
specifier: ^8.3.2
version: link:../../packages/integrations/node
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@ -343,19 +343,19 @@ importers:
examples/minimal:
dependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/server-islands:
@ -364,7 +364,7 @@ importers:
specifier: ^8.3.2
version: link:../../packages/integrations/node
'@astrojs/react':
specifier: ^3.6.1
specifier: ^3.6.2
version: link:../../packages/integrations/react
'@astrojs/tailwind':
specifier: ^5.1.0
@ -382,7 +382,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
postcss:
specifier: ^8.4.40
@ -406,7 +406,7 @@ importers:
specifier: ^5.7.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@ -415,7 +415,7 @@ importers:
examples/starlog:
dependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
sass:
specifier: ^1.77.8
@ -427,7 +427,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/view-transitions:
@ -439,7 +439,7 @@ importers:
specifier: ^5.1.0
version: link:../../packages/integrations/tailwind
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/with-markdoc:
@ -448,7 +448,7 @@ importers:
specifier: ^0.11.3
version: link:../../packages/integrations/markdoc
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/with-markdown-plugins:
@ -457,7 +457,7 @@ importers:
specifier: ^5.2.0
version: link:../../packages/markdown/remark
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@ -478,7 +478,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
examples/with-mdx:
@ -490,7 +490,7 @@ importers:
specifier: ^3.5.1
version: link:../../packages/integrations/preact
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
preact:
specifier: ^10.23.1
@ -505,7 +505,7 @@ importers:
specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.0)(preact@10.23.1)
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
nanostores:
specifier: ^0.11.0
@ -526,7 +526,7 @@ importers:
specifier: ^1.6.4
version: 1.6.4
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.20
@ -544,7 +544,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^4.13.2
specifier: ^4.13.3
version: link:../../packages/astro
vitest:
specifier: ^2.0.5