diff options
author | 2024-12-03 02:56:34 -0800 | |
---|---|---|
committer | 2024-12-03 10:56:34 +0000 | |
commit | fcdd37f684833eeb00dcecad21d9f4308cd6caa4 (patch) | |
tree | 7ade673147d453de5617cea5b2811ac58b2e05e8 /packages/markdown/remark | |
parent | bc18c3cfe220022e152fd0a8f617f6b4fc3ad8b4 (diff) | |
download | astro-fcdd37f684833eeb00dcecad21d9f4308cd6caa4.tar.gz astro-fcdd37f684833eeb00dcecad21d9f4308cd6caa4.tar.zst astro-fcdd37f684833eeb00dcecad21d9f4308cd6caa4.zip |
[ci] release (#12567)create-astro@4.11.0astro@5.0.0@astrojs/vue@5.0.0@astrojs/upgrade@0.4.0@astrojs/underscore-redirects@0.4.0@astrojs/telemetry@3.2.0@astrojs/svelte@7.0.0@astrojs/studio@0.1.2@astrojs/solid-js@5.0.0@astrojs/react@4.0.0@astrojs/prism@3.2.0@astrojs/preact@4.0.0@astrojs/mdx@4.0.0@astrojs/markdown-remark@6.0.0@astrojs/markdoc@0.12.0@astrojs/internal-helpers@0.4.2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/markdown/remark')
-rw-r--r-- | packages/markdown/remark/CHANGELOG.md | 37 | ||||
-rw-r--r-- | packages/markdown/remark/package.json | 2 |
2 files changed, 38 insertions, 1 deletions
diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md index 41113119a..683600f29 100644 --- a/packages/markdown/remark/CHANGELOG.md +++ b/packages/markdown/remark/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/markdown-remark +## 6.0.0 + +### Major Changes + +- [#11861](https://github.com/withastro/astro/pull/11861) [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59) Thanks [@bluwy](https://github.com/bluwy)! - Cleans up Astro-specfic metadata attached to `vfile.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 from `Set<string>` to `string[]`. The `vfile.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](https://github.com/withastro/astro/pull/12008) [`5608338`](https://github.com/withastro/astro/commit/560833843c6d3ce2b6c6c473ec4ae70e744bf255) Thanks [@Princesseuh](https://github.com/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](https://5-0-0-beta.docs.astro.build/en/guides/upgrade-to/v5/). + +- [#11825](https://github.com/withastro/astro/pull/11825) [`560ef15`](https://github.com/withastro/astro/commit/560ef15ad23bd137b56ef1048eb2df548b99fdce) Thanks [@bluwy](https://github.com/bluwy)! - Updates return object of `createShikiHighlighter` as `codeToHast` and `codeToHtml` to allow generating either the hast or html string directly + +- [#11661](https://github.com/withastro/astro/pull/11661) [`83a2a64`](https://github.com/withastro/astro/commit/83a2a648418ad30f4eb781d1c1b5f2d8a8ac846e) Thanks [@bluwy](https://github.com/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](https://github.com/withastro/astro/pull/11861) [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59) Thanks [@bluwy](https://github.com/bluwy)! - Removes `InvalidAstroDataError`, `safelyGetAstroData`, and `setVfileFrontmatter` APIs in favour of `isFrontmatterValid` + +### Patch Changes + +- [#12075](https://github.com/withastro/astro/pull/12075) [`a19530e`](https://github.com/withastro/astro/commit/a19530e377b7d7afad58a33b23c0a5df1c376819) Thanks [@bluwy](https://github.com/bluwy)! - Parses frontmatter ourselves + +- Updated dependencies [[`827093e`](https://github.com/withastro/astro/commit/827093e6175549771f9d93ddf3f2be4c2c60f0b7)]: + - @astrojs/prism@3.2.0 + ## 6.0.0-beta.3 ### Patch Changes diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 25bee2b4d..a9c7f03be 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-remark", - "version": "6.0.0-beta.3", + "version": "6.0.0", "type": "module", "author": "withastro", "license": "MIT", |