Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency @astrojs/mdx to v3 (#652)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@astrojs/mdx](https://docs.astro.build/en/guides/integrations-guide/mdx/) ([source](https://togithub.com/withastro/astro/tree/HEAD/packages/integrations/mdx)) | [`^2.3.1` -> `^3.1.2`](https://renovatebot.com/diffs/npm/@astrojs%2fmdx/2.3.1/3.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@astrojs%2fmdx/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@astrojs%2fmdx/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@astrojs%2fmdx/2.3.1/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@astrojs%2fmdx/2.3.1/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>withastro/astro (@​astrojs/mdx)</summary> ### [`v3.1.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/mdx/CHANGELOG.md#312) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected]) ##### Patch Changes - Updated dependencies \[[`b6afe6a`](https://togithub.com/withastro/astro/commit/b6afe6a782f68f4a279463a144baaf99cb96b6dc)]: - [@​astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@​5](https://togithub.com/5).1.1 ### [`v3.1.1`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/mdx/CHANGELOG.md#311) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected]) ##### Patch Changes - [#​11263](https://togithub.com/withastro/astro/pull/11263) [`7d59750`](https://togithub.com/withastro/astro/commit/7d597506615fa5a34327304e8321be7b9c4b799d) Thanks [@​wackbyte](https://togithub.com/wackbyte)! - Refactor to use Astro's integration logger for logging ### [`v3.1.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/mdx/CHANGELOG.md#310) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected]) ##### Minor Changes - [#​11144](https://togithub.com/withastro/astro/pull/11144) [`803dd80`](https://togithub.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@​ematipico](https://togithub.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. ```js import { experimental_AstroContainer as AstroContainer } from 'astro/container'; import ReactWrapper from '../src/components/ReactWrapper.astro'; import { loadRenderers } from 'astro:container'; import { getContainerRenderer } from '@​astrojs/react'; test('ReactWrapper with react renderer', async () => { const renderers = await loadRenderers([getContainerRenderer()]); const container = await AstroContainer.create({ renderers, }); const result = await container.renderToString(ReactWrapper); expect(result).toContain('Counter'); expect(result).toContain('Count: <!-- -->5'); }); ``` ### [`v3.0.1`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/mdx/CHANGELOG.md#301) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected]) ##### Patch Changes - [#​10813](https://togithub.com/withastro/astro/pull/10813) [`3cc3e2c`](https://togithub.com/withastro/astro/commit/3cc3e2ccba062749a6bd8469bc88ff797bea0abc) Thanks [@​Xetera](https://togithub.com/Xetera)! - Omitting compiler-internal symbol from user components to fix breaking error messages ### [`v3.0.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/mdx/CHANGELOG.md#300) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/[email protected]...@astrojs/[email protected]) ##### Major Changes - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Refactors the MDX transformation to rely only on the unified pipeline. Babel and esbuild transformations are removed, which should result in faster build times. The refactor requires using Astro v4.8.0 but no other changes are necessary. - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Allows integrations after the MDX integration to update `markdown.remarkPlugins` and `markdown.rehypePlugins`, and have the plugins work in MDX too. If your integration relies on Astro's previous behavior that prevents integrations from adding remark/rehype plugins for MDX, you will now need to configure `@astrojs/mdx` with `extendMarkdownConfig: false` and explicitly specify any `remarkPlugins` and `rehypePlugins` options instead. - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Renames the `optimize.customComponentNames` option to `optimize.ignoreElementNames` to better reflect its usecase. Its behaviour is not changed and should continue to work as before. - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Replaces the internal `remark-images-to-component` plugin with `rehype-images-to-component` to let users use additional rehype plugins for images ##### Patch Changes - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Simplifies plain MDX components as hast element nodes to further improve HTML string inlining for the `optimize` option - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Allows Vite plugins to transform `.mdx` files before the MDX plugin transforms it - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Updates the `optimize` option to group static sibling nodes as a `<Fragment />`. This reduces the number of AST nodes and simplifies runtime rendering of MDX pages. - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Tags the MDX component export for quicker component checks while rendering - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Fixes `export const components` keys detection for the `optimize` option - [#​10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@​bluwy](https://togithub.com/bluwy)! - Improves `optimize` handling for MDX components with attributes and inline MDX components </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ascorbic/unpic-img). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
- Loading branch information