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:
#117291c54e63 Thanks @ematipico! - Adds a new variant sync for the astro:config:setup hook's command property. This value is set when calling the command astro sync.
If your integration previously relied on knowing how many variants existed for the command property, you must update your logic to account for this new option.
#11743cce0894 Thanks @ph1p! - Adds a new, optional property timeout for the client:idle directive.
This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component, even if the page is not yet done with its initial load. This means you can delay hydration for lower-priority UI elements with more control to ensure your element is interactive within a specified time frame.
<ShowHideButton client:idle={{ timeout: 500 }} />
#11677cb356a5 Thanks @ematipico! - Adds a new option fallbackType to i18n.routing configuration that allows you to control how fallback pages are handled.
When i18n.fallback is configured, this new routing option controls whether to redirect to the fallback page, or to rewrite the fallback page's content in place.
The "redirect" option is the default value and matches the current behavior of the existing fallback system.
The option "rewrite" uses the new rewriting system to create fallback pages that render content on the original, requested URL without a browser refresh.
For example, the following configuration will generate a page /fr/index.html that will contain the same HTML rendered by the page /en/index.html when src/pages/fr/index.astro does not exist.
#1170862b0d20 Thanks @martrapp! - Adds a new object swapFunctions to expose the necessary utility functions on astro:transitions/client that allow you to build custom swap functions to be used with view transitions.
#117291c54e63 Thanks @ematipico! - Adds a new variant sync for the astro:config:setup hook's command property. This value is set when calling the command astro sync.
If your integration previously relied on knowing how many variants existed for the command property, you must update your logic to account for this new option.
#11743cce0894 Thanks @ph1p! - Adds a new, optional property timeout for the client:idle directive.
This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component, even if the page is not yet done with its initial load. This means you can delay hydration for lower-priority UI elements with more control to ensure your element is interactive within a specified time frame.
<ShowHideButton client:idle={{ timeout: 500 }} />
#11677cb356a5 Thanks @ematipico! - Adds a new option fallbackType to i18n.routing configuration that allows you to control how fallback pages are handled.
When i18n.fallback is configured, this new routing option controls whether to redirect to the fallback page, or to rewrite the fallback page's content in place.
The "redirect" option is the default value and matches the current behavior of the existing fallback system.
The option "rewrite" uses the new rewriting system to create fallback pages that render content on the original, requested URL without a browser refresh.
For example, the following configuration will generate a page /fr/index.html that will contain the same HTML rendered by the page /en/index.html when src/pages/fr/index.astro does not exist.
bff1106: Adds the experimental transformers option to the Shiki plugin. Thank you @MichaelMakesGames!
This option allows you to specify a list of Shiki transformers to be called during syntax highlighting.
Important: This option is marked as experimental because it only supports a very limited subset of Shiki transformer features right now. Most importantly, transformers cannot modify a code block's text contents in any way, so most popular transformers will not work.
In its current state, this option allows you to use transformers that solely modify the tokens produced by Shiki to improve syntax highlighting, e.g. applying bracket matching or changing the color of certain tokens.
Attempting to pass incompatible transformers to this option will throw an error. This is not a bug, neither in Expressive Code, nor in Shiki or the transformers. Please do not report incompatibilities to other authors, as they are unable to fix them. The current limitations exist because the Shiki transformer API is incompatible with Expressive Code's architecture, and we will continue to work on closing the gap and improving this feature.
ca54f6e: Updates Shiki dependency to the latest version.
Patch Changes
Updated dependencies [bff1106]
Updated dependencies [ca54f6e]
rehype-expressive-code@0.36.0
astro-expressive-code@0.35.6
Patch Changes
ffab5a5: Hides the copy code button in case JavaScript is disabled. Thank you @imkunet!
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!
bff1106: Adds the experimental transformers option to the Shiki plugin. Thank you @MichaelMakesGames!
This option allows you to specify a list of Shiki transformers to be called during syntax highlighting.
Important: This option is marked as experimental because it only supports a very limited subset of Shiki transformer features right now. Most importantly, transformers cannot modify a code block's text contents in any way, so most popular transformers will not work.
In its current state, this option allows you to use transformers that solely modify the tokens produced by Shiki to improve syntax highlighting, e.g. applying bracket matching or changing the color of certain tokens.
Bumps the production-dependencies group with 17 updates in the / directory:
0.7.0
0.9.3
3.1.0
3.1.5
3.5.0
3.6.2
4.0.6
4.0.7
3.1.5
3.1.6
0.35.3
0.36.0
0.35.3
0.36.0
1.1.192
1.1.209
0.0.13
0.1.1
4.10.2
4.15.1
2.1.10
2.2.0
0.35.3
0.36.0
1.1.0
1.1.1
0.49.0
0.51.0
0.10.13
0.10.14
0.33.4
0.33.5
3.4.4
3.4.10
Updates
@astrojs/check
from 0.7.0 to 0.9.3Release notes
Sourced from
@astrojs/check
's releases.... (truncated)
Changelog
Sourced from
@astrojs/check
's changelog.... (truncated)
Commits
cb4dc89
Version Packages (#940)28dfebe
feat: Update to Volar 2.4.0 (#938)47d362e
chore: match main repo linting config and fix linting issues1172836
chore: update formatting config to match main repob6d5aab
Version Packages (#930)492b2bf
Version Packages (#926)93b5c30
Version Packages (#925)97d2558
Version Packages (#917)48689d1
Version Packages (#906)4a10d24
Version Packages (#899)Updates
@astrojs/mdx
from 3.1.0 to 3.1.5Release notes
Sourced from
@astrojs/mdx
's releases.Changelog
Sourced from
@astrojs/mdx
's changelog.Commits
5af8b4f
[ci] release (#11835)26c63a2
fix(deps): update all non-major dependencies (#11837)88ef1d0
Fix MDX layout style ordering (#11818)7e2f142
[ci] release (#11739)48b85c1
fix(deps): update all non-major dependencies (#11765)423614e
Fix MDX stack trace location with frontmatter (#11717)315ec07
fix(deps): update all non-major dependencies (#11674)cc405dd
Simplify eslint and pnpm config (#11646)72c7ae9
update formatter config (#11640)ea82b03
Improve regex performance (#11635)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.36.0Release notes
Sourced from
@expressive-code/plugin-collapsible-sections
's releases.Changelog
Sourced from
@expressive-code/plugin-collapsible-sections
's changelog.Commits
1db8219
[CI] Release (#236)8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)c619dcc
[CI] Release (#229)Updates
@expressive-code/plugin-line-numbers
from 0.35.3 to 0.36.0Release notes
Sourced from
@expressive-code/plugin-line-numbers
's releases.Changelog
Sourced from
@expressive-code/plugin-line-numbers
's changelog.Commits
1db8219
[CI] Release (#236)8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)c619dcc
[CI] Release (#229)Updates
@iconify-json/lucide
from 1.1.192 to 1.1.209Commits
750dc0b
Update Google Material Icons, Tabler Icons1b4d154
Update Carbon, Tabler Icons8159cfe
Update Simple Icons5cfbe45
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 IconsUpdates
@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.15.1Release notes
Sourced from astro's releases.
... (truncated)
Changelog
Sourced from astro's changelog.
... (truncated)
Commits
21747e9
[ci] release (#11871)9327d56
Use default import in astro add (#11872)d1bd1a1
Moves content layer sync to a queue and support selective sync (#11767)17f7127
[ci] release (#11857)a85a184
fix: separate changelogs for Astro 1 into a separate package (#11868)4215d6e
[ci] format5b4070e
Actions stable release (#11843)8bab233
fix: resolve content layer images without filePath set (#11858)0e35afe
fix: pass config instead of settings to content layer loaders (#11862)26893f9
[ci] formatUpdates
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.36.0Release notes
Sourced from astro-expressive-code's releases.
Changelog
Sourced from astro-expressive-code's changelog.