withastro/astro (astro)
### [`v4.13.3`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4133)
[Compare Source](https://togithub.com/withastro/astro/compare/astro@4.13.2...astro@4.13.3)
##### Patch Changes
- [#11653](https://togithub.com/withastro/astro/pull/11653) [`32be549`](https://togithub.com/withastro/astro/commit/32be5494f6d33dbe32208704405162c95a64f0bc) Thanks [@florian-lefebvre](https://togithub.com/florian-lefebvre)! - Updates `astro:env` docs to reflect current developments and usage guidance
- [#11658](https://togithub.com/withastro/astro/pull/11658) [`13b912a`](https://togithub.com/withastro/astro/commit/13b912a8702afb96e2d0bc20dcc1b4135ae58147) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Fixes `orThrow()` type when calling an Action without an `input` validator.
- [#11603](https://togithub.com/withastro/astro/pull/11603) [`f31d466`](https://togithub.com/withastro/astro/commit/f31d4665c1cbb0918b9e00ba1431fb6f264025f7) Thanks [@bholmesdev](https://togithub.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
```
- 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.
### [`v4.13.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4132)
[Compare Source](https://togithub.com/withastro/astro/compare/astro@4.13.1...astro@4.13.2)
##### Patch Changes
- [#11648](https://togithub.com/withastro/astro/pull/11648) [`589d351`](https://togithub.com/withastro/astro/commit/589d35158da1a2136387d0ad76609f5c8535c03a) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Fixes unexpected error when refreshing a POST request from a form using Actions.
- [#11600](https://togithub.com/withastro/astro/pull/11600) [`09ec2ca`](https://togithub.com/withastro/astro/commit/09ec2cadce01a9a1f9c54ac433f137348907aa56) Thanks [@ArmandPhilippot](https://togithub.com/ArmandPhilippot)! - Deprecates `getEntryBySlug` and `getDataEntryById` functions exported by `astro:content` in favor of `getEntry`.
- [#11593](https://togithub.com/withastro/astro/pull/11593) [`81d7150`](https://togithub.com/withastro/astro/commit/81d7150e02472430eab555dfc4f053738bf99bb6) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Adds support for `Date()`, `Map()`, and `Set()` from action results. See [devalue](https://togithub.com/Rich-Harris/devalue) for a complete list of supported values.
Also fixes serialization exceptions when deploying Actions with edge middleware on Netlify and Vercel.
- [#11617](https://togithub.com/withastro/astro/pull/11617) [`196092a`](https://togithub.com/withastro/astro/commit/196092ae69eb1249206846ddfc162049b03f42b4) Thanks [@abubakriz](https://togithub.com/abubakriz)! - Fix toolbar audit incorrectly flagging images as above the fold.
- [#11634](https://togithub.com/withastro/astro/pull/11634) [`2716f52`](https://togithub.com/withastro/astro/commit/2716f52aae7194439ebb2336849ddd9e8226658a) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Fixes internal server error when calling an Astro Action without arguments on Vercel.
- [#11628](https://togithub.com/withastro/astro/pull/11628) [`9aaf58c`](https://togithub.com/withastro/astro/commit/9aaf58c1339b54f2c1394e718a0f6f609f0b6342) Thanks [@madbook](https://togithub.com/madbook)! - Ensures consistent CSS chunk hashes across different environments
pnpm/pnpm (pnpm)
### [`v9.7.0`](https://togithub.com/pnpm/pnpm/releases/tag/v9.7.0): pnpm 9.7
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v9.6.0...v9.7.0)
#### Minor Changes
- Added pnpm version management. If the `manage-package-manager-versions` setting is set to `true`, pnpm will switch to the version specified in the `packageManager` field of `package.json` [#8363](https://togithub.com/pnpm/pnpm/pull/8363). This is the same field used by Corepack. Example:
```json
{
"packageManager": "pnpm@9.3.0"
}
```
- Added the ability to apply patch to all versions [#8337](https://togithub.com/pnpm/pnpm/pull/8337).
If the key of `pnpm.patchedDependencies` is a package name without a version (e.g. `pkg`), pnpm will attempt to apply the patch to all versions of the package. Failures will be skipped. If there's only one version of `pkg` installed, `pnpm patch pkg` and subsequent `pnpm patch-commit $edit_dir` will create an entry named `pkg` in `pnpm.patchedDependencies`. And pnpm will attempt to apply this patch to other versions of `pkg` in the future.
- Change the default edit dir location when running `pnpm patch` from a temporary directory to `node_modules/.pnpm_patches/pkg[@version]` to allow the code editor to open the edit dir in the same file tree as the main project [#8379](https://togithub.com/pnpm/pnpm/issues/8379).
- Substitute environment variables in config keys [#6679](https://togithub.com/pnpm/pnpm/issues/6679).
#### Patch Changes
- `pnpm install` should run `node-gyp rebuild` if the project has a `binding.gyp` file even if the project doesn't have an install script [#8293](https://togithub.com/pnpm/pnpm/issues/8293).
- Print warnings to stderr [#8342](https://togithub.com/pnpm/pnpm/pull/8342).
- Peer dependencies of optional peer dependencies should be automatically installed [#8323](https://togithub.com/pnpm/pnpm/issues/8323).
#### Platinum Sponsors
#### Gold Sponsors
#### Our Silver Sponsors
Configuration
📅 Schedule: Branch creation - "on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^4.13.1
->^4.13.3
9.6.0
->9.7.0
Release Notes
withastro/astro (astro)
### [`v4.13.3`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4133) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.13.2...astro@4.13.3) ##### Patch Changes - [#11653](https://togithub.com/withastro/astro/pull/11653) [`32be549`](https://togithub.com/withastro/astro/commit/32be5494f6d33dbe32208704405162c95a64f0bc) Thanks [@florian-lefebvre](https://togithub.com/florian-lefebvre)! - Updates `astro:env` docs to reflect current developments and usage guidance - [#11658](https://togithub.com/withastro/astro/pull/11658) [`13b912a`](https://togithub.com/withastro/astro/commit/13b912a8702afb96e2d0bc20dcc1b4135ae58147) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Fixes `orThrow()` type when calling an Action without an `input` validator. - [#11603](https://togithub.com/withastro/astro/pull/11603) [`f31d466`](https://togithub.com/withastro/astro/commit/f31d4665c1cbb0918b9e00ba1431fb6f264025f7) Thanks [@bholmesdev](https://togithub.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 ``` - 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. ### [`v4.13.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#4132) [Compare Source](https://togithub.com/withastro/astro/compare/astro@4.13.1...astro@4.13.2) ##### Patch Changes - [#11648](https://togithub.com/withastro/astro/pull/11648) [`589d351`](https://togithub.com/withastro/astro/commit/589d35158da1a2136387d0ad76609f5c8535c03a) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Fixes unexpected error when refreshing a POST request from a form using Actions. - [#11600](https://togithub.com/withastro/astro/pull/11600) [`09ec2ca`](https://togithub.com/withastro/astro/commit/09ec2cadce01a9a1f9c54ac433f137348907aa56) Thanks [@ArmandPhilippot](https://togithub.com/ArmandPhilippot)! - Deprecates `getEntryBySlug` and `getDataEntryById` functions exported by `astro:content` in favor of `getEntry`. - [#11593](https://togithub.com/withastro/astro/pull/11593) [`81d7150`](https://togithub.com/withastro/astro/commit/81d7150e02472430eab555dfc4f053738bf99bb6) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Adds support for `Date()`, `Map()`, and `Set()` from action results. See [devalue](https://togithub.com/Rich-Harris/devalue) for a complete list of supported values. Also fixes serialization exceptions when deploying Actions with edge middleware on Netlify and Vercel. - [#11617](https://togithub.com/withastro/astro/pull/11617) [`196092a`](https://togithub.com/withastro/astro/commit/196092ae69eb1249206846ddfc162049b03f42b4) Thanks [@abubakriz](https://togithub.com/abubakriz)! - Fix toolbar audit incorrectly flagging images as above the fold. - [#11634](https://togithub.com/withastro/astro/pull/11634) [`2716f52`](https://togithub.com/withastro/astro/commit/2716f52aae7194439ebb2336849ddd9e8226658a) Thanks [@bholmesdev](https://togithub.com/bholmesdev)! - Fixes internal server error when calling an Astro Action without arguments on Vercel. - [#11628](https://togithub.com/withastro/astro/pull/11628) [`9aaf58c`](https://togithub.com/withastro/astro/commit/9aaf58c1339b54f2c1394e718a0f6f609f0b6342) Thanks [@madbook](https://togithub.com/madbook)! - Ensures consistent CSS chunk hashes across different environmentspnpm/pnpm (pnpm)
### [`v9.7.0`](https://togithub.com/pnpm/pnpm/releases/tag/v9.7.0): pnpm 9.7 [Compare Source](https://togithub.com/pnpm/pnpm/compare/v9.6.0...v9.7.0) #### Minor Changes - Added pnpm version management. If the `manage-package-manager-versions` setting is set to `true`, pnpm will switch to the version specified in the `packageManager` field of `package.json` [#8363](https://togithub.com/pnpm/pnpm/pull/8363). This is the same field used by Corepack. Example: ```json { "packageManager": "pnpm@9.3.0" } ``` - Added the ability to apply patch to all versions [#8337](https://togithub.com/pnpm/pnpm/pull/8337). If the key of `pnpm.patchedDependencies` is a package name without a version (e.g. `pkg`), pnpm will attempt to apply the patch to all versions of the package. Failures will be skipped. If there's only one version of `pkg` installed, `pnpm patch pkg` and subsequent `pnpm patch-commit $edit_dir` will create an entry named `pkg` in `pnpm.patchedDependencies`. And pnpm will attempt to apply this patch to other versions of `pkg` in the future. - Change the default edit dir location when running `pnpm patch` from a temporary directory to `node_modules/.pnpm_patches/pkg[@version]` to allow the code editor to open the edit dir in the same file tree as the main project [#8379](https://togithub.com/pnpm/pnpm/issues/8379). - Substitute environment variables in config keys [#6679](https://togithub.com/pnpm/pnpm/issues/6679). #### Patch Changes - `pnpm install` should run `node-gyp rebuild` if the project has a `binding.gyp` file even if the project doesn't have an install script [#8293](https://togithub.com/pnpm/pnpm/issues/8293). - Print warnings to stderr [#8342](https://togithub.com/pnpm/pnpm/pull/8342). - Peer dependencies of optional peer dependencies should be automatically installed [#8323](https://togithub.com/pnpm/pnpm/issues/8323). #### Platinum SponsorsConfiguration
📅 Schedule: Branch creation - "on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.