#1165813b912a Thanks @bholmesdev! - Fixes orThrow() type when calling an Action without an input validator.
#11603f31d466 Thanks @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:
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.
astro@4.13.2
Patch Changes
#11648589d351 Thanks @bholmesdev! - Fixes unexpected error when refreshing a POST request from a form using Actions.
#1160009ec2ca Thanks @ArmandPhilippot! - Deprecates getEntryBySlug and getDataEntryById functions exported by astro:content in favor of getEntry.
#1159381d7150 Thanks @bholmesdev! - Adds support for Date(), Map(), and Set() from action results. See devalue for a complete list of supported values.
Also fixes serialization exceptions when deploying Actions with edge middleware on Netlify and Vercel.
#11617196092a Thanks @abubakriz! - Fix toolbar audit incorrectly flagging images as above the fold.
#116342716f52 Thanks @bholmesdev! - Fixes internal server error when calling an Astro Action without arguments on Vercel.
#116289aaf58c Thanks @madbook! - Ensures consistent CSS chunk hashes across different environments
#1165813b912a Thanks @bholmesdev! - Fixes orThrow() type when calling an Action without an input validator.
#11603f31d466 Thanks @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:
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
#11648589d351 Thanks @bholmesdev! - Fixes unexpected error when refreshing a POST request from a form using Actions.
#1160009ec2ca Thanks @ArmandPhilippot! - Deprecates getEntryBySlug and getDataEntryById functions exported by astro:content in favor of getEntry.
#1159381d7150 Thanks @bholmesdev! - Adds support for Date(), Map(), and Set() from action results. See devalue for a complete list of supported values.
Also fixes serialization exceptions when deploying Actions with edge middleware on Netlify and Vercel.
#11617196092a Thanks @abubakriz! - Fix toolbar audit incorrectly flagging images as above the fold.
#116342716f52 Thanks @bholmesdev! - Fixes internal server error when calling an Astro Action without arguments on Vercel.
#116289aaf58c Thanks @madbook! - Ensures consistent CSS chunk hashes across different environments
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the patch-minor group with 6 updates in the / directory:
0.10.1
0.10.2
2024.7.1
2024.7.2
4.12.2
4.13.3
0.10.3
0.11.2
0.6.5
0.6.6
3.4.7
3.4.9
Updates
@nanostores/persistent
from 0.10.1 to 0.10.2Release notes
Sourced from
@nanostores/persistent
's releases.Changelog
Sourced from
@nanostores/persistent
's changelog.Commits
a1e5788
Release 0.10.2 versionc21b3e1
Update Nano Stores and other dependencies559db55
Update dependencies13c8600
Update CI action, pnpm, and Node.jsUpdates
@shopify/hydrogen-react
from 2024.7.1 to 2024.7.2Release notes
Sourced from
@shopify/hydrogen-react
's releases.Changelog
Sourced from
@shopify/hydrogen-react
's changelog.Commits
37ec3bd
[ci] release 2024-07 (#2378)b09e9a4
Prevent sending analytics to Shopify whenChrome-Lighthouse
user agent is d...cfbfc82
Improve performance of currency formatting by caching underlying Intl.NumberF...25ab903
Fix the docs (#2355)Updates
astro
from 4.12.2 to 4.13.3Release notes
Sourced from astro's releases.
... (truncated)
Changelog
Sourced from astro's changelog.
... (truncated)
Commits
8118120
[ci] release (#11654)ee69a06
[ci] formatf31d466
Actions: auto-redirect action response to avoid "confirm form resubmission" d...7adb350
Prevent throwing in react and solid component checks (#11624)13b912a
Actions: fix missing orThrow type when input is omitted (#11658)a851021
[ci] format32be549
chore: improve astro:env docs (#11653)6b99523
[ci] release (#11602)589d351
Actions: remove "action used with get" error (#11648)72c7ae9
update formatter config (#11640)Updates
nanostores
from 0.10.3 to 0.11.2Release notes
Sourced from nanostores's releases.
Changelog
Sourced from nanostores's changelog.
Commits
f3a919b
Release 0.11.2 version29d20d6
fix(TS): inferred type cannot be named without reference (#327)0162236
Release 0.11.1 version1c5636d
Fix types9f81262
Clean up dependencies959844c
Release 0.11 versioneb6278e
Fix code style1513a46
Update size68691ae
Update dependenciesa0f2729
Infer atom.value in the better way: if it doesn't extend undefined (i.e. init...Updates
prettier-plugin-tailwindcss
from 0.6.5 to 0.6.6Release notes
Sourced from prettier-plugin-tailwindcss's releases.
Changelog
Sourced from prettier-plugin-tailwindcss's changelog.
Commits
0368ffb
0.6.6b7830c6
Support Tailwind CSSv4.0.0-alpha.19
(#310)ee50b9b
Add cache for known plugins (#301)f69f739
Remove versions key in testsf6661cd
Fix code stylec0c5040
Convert tests to typescriptb2c8574
Fix type error96d9d18
Hide Pug debug logs during testingc5eed72
Add compatibility withprettier-plugin-multiline-arrays
(#299)f101793
Move fixtures' expected outputs to the fixture directories (#298)Updates
tailwindcss
from 3.4.7 to 3.4.9Release notes
Sourced from tailwindcss's releases.
Changelog
Sourced from tailwindcss's changelog.
Commits
f65023e
3.4.9702ba6a
Don't warn about broad globs in vendor folders (#14147)1676118
3.4.869c81f2
renamemaster
tomain
858696a
Warn when broad glob patterns are used in the content configuration (#14140)1f23c2e
Bump to latest cssnano v6 (#14105)28bd90e
Automate checksum generation for standalone CLI (#14081)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show