e8e18a8: Fixes an issue where errors inside script and style tags could be offset by a few characters when multi bytes characters were present in the file
e8e18a8: Fixes an issue where errors inside script and style tags could be offset by a few characters when multi bytes characters were present in the file
#115711c3265a Thanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest @astrojs/react integration as well if you're using React 19 features.
Make .safe() the default return value for actions. This means { data, error } will be returned when calling an action directly. If you prefer to get the data while allowing errors to throw, chain the .orThrow() modifier.
import { actions } from 'astro:actions';
// Before
const { data, error } = await actions.like.safe();
// After
const { data, error } = await actions.like();
// Before
const newLikes = await actions.like();
// After
const newLikes = await actions.like.orThrow();
Migration
To migrate your existing action calls:
Remove .safe from existing safe action calls
Add .orThrow to existing unsafe action calls
#1157084189b6 Thanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest @astrojs/react integration as well if you're using React 19 features.
Updates the Astro Actions fallback to support action={actions.name} instead of using getActionProps(). This will submit a form to the server in zero-JS scenarios using a search parameter:
#116247adb350 Thanks @bluwy! - Prevents throwing errors when checking if a component is a React component in runtime
3.6.1
Patch Changes
#115711c3265a Thanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest @astrojs/react integration as well if you're using React 19 features.
Make .safe() the default return value for actions. This means { data, error } will be returned when calling an action directly. If you prefer to get the data while allowing errors to throw, chain the .orThrow() modifier.
import { actions } from 'astro:actions';
// Before
const { data, error } = await actions.like.safe();
// After
const { data, error } = await actions.like();
// Before
const newLikes = await actions.like();
// After
const newLikes = await actions.like.orThrow();
Migration
To migrate your existing action calls:
Remove .safe from existing safe action calls
Add .orThrow to existing unsafe action calls
#1157084189b6 Thanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest @astrojs/react integration as well if you're using React 19 features.
Updates the Astro Actions fallback to support action={actions.name} instead of using getActionProps(). This will submit a form to the server in zero-JS scenarios using a search parameter:
#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
To avoid this warning from being incorrectly triggered, the Vite plugin internally used by astro-expressive-code has now been split into two separate plugins, making sure that emitFile is only seen by Vite during build.
rehype-expressive-code@0.35.5
astro-expressive-code@0.35.4
Patch Changes
876d24c: Improves performance of client script managing tabindex on code samples. Thanks @delucis!
To avoid this warning from being incorrectly triggered, the Vite plugin internally used by astro-expressive-code has now been split into two separate plugins, making sure that emitFile is only seen by Vite during build.
rehype-expressive-code@0.35.5
0.35.4
Patch Changes
876d24c: Improves performance of client script managing tabindex on code samples. Thanks @delucis!
Bumps the production-dependencies group with 15 updates in the / directory:
0.7.0
0.9.2
3.1.0
3.1.3
3.5.0
3.6.2
4.0.6
4.0.7
3.1.5
3.1.6
0.35.3
0.35.6
0.35.3
0.35.6
1.1.192
1.1.206
0.0.13
0.1.1
4.10.2
4.13.3
2.1.10
2.2.0
0.35.3
0.35.6
0.49.0
0.50.0
0.10.13
0.10.14
3.4.4
3.4.9
Updates
@astrojs/check
from 0.7.0 to 0.9.2Release notes
Sourced from
@astrojs/check
's releases.... (truncated)
Changelog
Sourced from
@astrojs/check
's changelog.... (truncated)
Commits
b6d5aab
Version Packages (#930)492b2bf
Version Packages (#926)93b5c30
Version Packages (#925)97d2558
Version Packages (#917)48689d1
Version Packages (#906)4a10d24
Version Packages (#899)9e45765
Version Packages (#894)b8a6af3
feat: Update to Volar 2.4 alpha (#879)a1769da
Add@astrojs/check
README (#883)Updates
@astrojs/mdx
from 3.1.0 to 3.1.3Release notes
Sourced from
@astrojs/mdx
's releases.Changelog
Sourced from
@astrojs/mdx
's changelog.Commits
aa05be3
[ci] release (#11481)2113a56
fix(deps): update all non-major dependencies (#11426)b9e906f
Revert "Fix attribute rendering for boolean values (#11369)" (#11408)e60aab9
fix(deps): update all non-major dependencies (#11383)e6de11f
Fix attribute rendering for boolean values (#11369)ce310f8
[ci] release (#11297)47e78d4
fix(deps): update all non-major dependencies (#11318)83c565b
[ci] release (#11233)7d59750
chore: logging cleanup (#11263)68f1d0d
chore(deps): update all non-major dependencies (#11269)Updates
@astrojs/react
from 3.5.0 to 3.6.2Release notes
Sourced from
@astrojs/react
's releases.... (truncated)
Changelog
Sourced from
@astrojs/react
's changelog.... (truncated)
Commits
8118120
[ci] release (#11654)7adb350
Prevent throwing in react and solid component checks (#11624)72c7ae9
update formatter config (#11640)750d532
fix(deps): update all non-major dependencies (#11565)49db004
[ci] release (#11524)1c3265a
Actions: Make.safe()
the default return value (#11571)84189b6
Actions: New fallback behavior withaction={actions.name}
(#11570)536209a
fix(deps): update all non-major dependencies (#11522)9c0c849
feat(container): client hydration (#11486)2113a56
fix(deps): update all non-major dependencies (#11426)Updates
@astrojs/rss
from 4.0.6 to 4.0.7Release notes
Sourced from
@astrojs/rss
's releases.Changelog
Sourced from
@astrojs/rss
's changelog.Commits
ce310f8
[ci] release (#11297)8ce66f2
fix(rss): correct types forRSSFeedItem
(#11299)464b0a1
fix(deps): update all non-major dependencies (#11151)Updates
@astrojs/sitemap
from 3.1.5 to 3.1.6Release notes
Sourced from
@astrojs/sitemap
's releases.Changelog
Sourced from
@astrojs/sitemap
's changelog.Commits
83c565b
[ci] release (#11233)7d59750
chore: logging cleanup (#11263)464b0a1
fix(deps): update all non-major dependencies (#11151)Updates
@expressive-code/plugin-collapsible-sections
from 0.35.3 to 0.35.6Release notes
Sourced from
@expressive-code/plugin-collapsible-sections
's releases.Changelog
Sourced from
@expressive-code/plugin-collapsible-sections
's changelog.Commits
8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)c619dcc
[CI] Release (#229)Updates
@expressive-code/plugin-line-numbers
from 0.35.3 to 0.35.6Release notes
Sourced from
@expressive-code/plugin-line-numbers
's releases.Changelog
Sourced from
@expressive-code/plugin-line-numbers
's changelog.Commits
8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)c619dcc
[CI] Release (#229)Updates
@iconify-json/lucide
from 1.1.192 to 1.1.206Commits
5cfbe45
Update Unicons, Unicons Monochromed8d6419
Update Material Design Icons, Simple Icons, Unicons, Unicons Monochromeb378181
Update HeroIcons Outline, HeroIcons Solidd59357a
Update Carbon, Material Design Icons1b5091a
Update HeroIcons Outline, HeroIcons Solid, Google Material Icons, Material De...7e9cf22
Update Material Design Icons, Tabler Iconse23ae58
Update Material Design Icons, OpenMoji, Simple Icons9a765b9
Update Material Design Icons8c98f55
Update Carbon, Material Design Iconsd0d7ab6
Update Codicons, OcticonsUpdates
@playform/compress
from 0.0.13 to 0.1.1Release notes
Sourced from
@playform/compress
's releases.Changelog
Sourced from
@playform/compress
's changelog.Commits
102cf84
Compress/v0.1.16e14ed6
9f29c58
a57453f
49166ac
de89ff0
706d8e2
d2fe28a
c3d64a4
Compress/v0.1.0bbd04c3
Updates
astro
from 4.10.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
astro-critters
from 2.1.10 to 2.2.0Release notes
Sourced from astro-critters's releases.
Changelog
Sourced from astro-critters's changelog.
Commits
32f3032
AstroCritters/v2.2.08136bfb
9cf78d9
Merge branch 'Current' into Alternative549b570
Merge branch 'Current' of ssh://github.com/PlayForm/Inline into Current008aa60
Inline/v0.1.070c3ab5
Merge pull request #307 from PlayForm/dependabot/npm_and_yarn/playform/build-...7c60ad6
Bump@playform/build
from 0.1.1 to 0.1.2aabc4b9
4404b20
PlayForm/Inline#2955cc7856
Updates
astro-expressive-code
from 0.35.3 to 0.35.6Release notes
Sourced from astro-expressive-code's releases.
Changelog
Sourced from astro-expressive-code's changelog.
Commits
8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)7f9b29e
Fix Vite warning aboutemitFile()
usage (#231)c619dcc
[CI] Release (#229)Updates
monaco-editor
from 0.49.0 to 0.50.0Release notes
Sourced from monaco-editor's releases.
Superseded by #71.