diff --git a/.changeset/early-experts-retire.md b/.changeset/early-experts-retire.md deleted file mode 100644 index 415c4601168b..000000000000 --- a/.changeset/early-experts-retire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Updates `astro:env` docs to reflect current developments and usage guidance \ No newline at end of file diff --git a/.changeset/few-starfishes-change.md b/.changeset/few-starfishes-change.md deleted file mode 100644 index 5a221fef961d..000000000000 --- a/.changeset/few-starfishes-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/solid-js': patch ---- - -Prevents throwing errors when checking if a component is a Solid component in runtime diff --git a/.changeset/gold-seas-crash.md b/.changeset/gold-seas-crash.md deleted file mode 100644 index 86904fca2f2a..000000000000 --- a/.changeset/gold-seas-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes `orThrow()` type when calling an Action without an `input` validator. diff --git a/.changeset/rotten-months-report.md b/.changeset/rotten-months-report.md deleted file mode 100644 index c55fc6171bb0..000000000000 --- a/.changeset/rotten-months-report.md +++ /dev/null @@ -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 -
+ ``` + + - 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 diff --git a/packages/astro/package.json b/packages/astro/package.json index 81c57fea62ba..64ec709d59dc 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -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", diff --git a/packages/integrations/react/CHANGELOG.md b/packages/integrations/react/CHANGELOG.md index 5a3fdbcbca16..e6bedd08f31b 100644 --- a/packages/integrations/react/CHANGELOG.md +++ b/packages/integrations/react/CHANGELOG.md @@ -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 diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index a54069c696e2..a6d9cd936650 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -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", diff --git a/packages/integrations/solid/CHANGELOG.md b/packages/integrations/solid/CHANGELOG.md index 33c902ab4aab..bc1d135d065b 100644 --- a/packages/integrations/solid/CHANGELOG.md +++ b/packages/integrations/solid/CHANGELOG.md @@ -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 diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index d53bd9c92188..0c7a538615f0 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61dc3b1bb3d5..0e7edd4dc417 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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