Major Changes
-
#11861
3ab3b4e
Thanks @bluwy! - Cleans up Astro-specfic metadata attached tovfile.data
in Remark and Rehype plugins. Previously, the metadata was attached in different locations with inconsistent names. The metadata is now renamed as below:vfile.data.__astroHeadings
->vfile.data.astro.headings
vfile.data.imagePaths
->vfile.data.astro.imagePaths
The types of
imagePaths
has also been updated fromSet<string>
tostring[]
. Thevfile.data.astro.frontmatter
metadata is left unchanged.While we don't consider these APIs public, they can be accessed by Remark and Rehype plugins that want to re-use Astro's metadata. If you are using these APIs, make sure to access them in the new locations.
-
#12008
5608338
Thanks @Princesseuh! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
-
#11825
560ef15
Thanks @bluwy! - Updates return object ofcreateShikiHighlighter
ascodeToHast
andcodeToHtml
to allow generating either the hast or html string directly -
#11661
83a2a64
Thanks @bluwy! - Renames the following CSS variables theme color token names to better align with the Shiki v1 defaults:--astro-code-color-text
=>--astro-code-foreground
--astro-code-color-background
=>--astro-code-background
You can perform a global find and replace in your project to migrate to the new token names.
-
#11861
3ab3b4e
Thanks @bluwy! - RemovesInvalidAstroDataError
,safelyGetAstroData
, andsetVfileFrontmatter
APIs in favour ofisFrontmatterValid