Skip to content

Commit

Permalink
chore(deps): update dependency @astrojs/mdx to v3 (#652)
Browse files Browse the repository at this point in the history
[![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 (@&#8203;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)]:
    -   [@&#8203;astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@&#8203;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

-   [#&#8203;11263](https://togithub.com/withastro/astro/pull/11263) [`7d59750`](https://togithub.com/withastro/astro/commit/7d597506615fa5a34327304e8321be7b9c4b799d) Thanks [@&#8203;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

-   [#&#8203;11144](https://togithub.com/withastro/astro/pull/11144) [`803dd80`](https://togithub.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@&#8203;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 '@&#8203;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

-   [#&#8203;10813](https://togithub.com/withastro/astro/pull/10813) [`3cc3e2c`](https://togithub.com/withastro/astro/commit/3cc3e2ccba062749a6bd8469bc88ff797bea0abc) Thanks [@&#8203;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

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;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.

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;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.

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;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.

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;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

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;bluwy](https://togithub.com/bluwy)! - Simplifies plain MDX components as hast element nodes to further improve HTML string inlining for the `optimize` option

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;bluwy](https://togithub.com/bluwy)! - Allows Vite plugins to transform `.mdx` files before the MDX plugin transforms it

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;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.

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;bluwy](https://togithub.com/bluwy)! - Tags the MDX component export for quicker component checks while rendering

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;bluwy](https://togithub.com/bluwy)! - Fixes `export const components` keys detection for the `optimize` option

-   [#&#8203;10935](https://togithub.com/withastro/astro/pull/10935) [`ddd8e49`](https://togithub.com/withastro/astro/commit/ddd8e49d1a179bec82310fb471f822a1567a6610) Thanks [@&#8203;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
renovate[bot] authored Jul 2, 2024
1 parent e6d2865 commit 1d06a63
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 87 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@algolia/client-search": "^4.24.0",
"@astrojs/mdx": "^2.3.1",
"@astrojs/mdx": "^3.1.2",
"@astrojs/preact": "^3.5.0",
"@astrojs/react": "^3.6.0",
"@astrojs/rss": "^4.0.7",
Expand Down
129 changes: 43 additions & 86 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d06a63

Please sign in to comment.