Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generated JSX pragmas for new babel #2438

Merged
merged 7 commits into from Feb 12, 2024
Merged

Fix generated JSX pragmas for new babel #2438

merged 7 commits into from Feb 12, 2024

Conversation

remcohaszing
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

Each JSX pragma needs to be on its own line for tools like Babel or TypeScript to understand them.

There is a broken pragma in the @mdx-js/preact tests, which was left untouched. Due to a misconfiguration, to fix it, would break type checking.

Each JSX pragma needs to be on its own line for tools like Babel or
TypeScript to understand them.

There is a broken pragma in the @mdx-js/preact tests, which was left
untouched. Due to a misconfiguration, to fix it, would break type
checking.
@remcohaszing remcohaszing added 🐛 type/bug This is a problem 🗄 area/interface This affects the public interface 👶 semver/patch This is a backwards-compatible fix 🤞 phase/open Post is being triaged manually labels Feb 8, 2024
Copy link

vercel bot commented Feb 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mdx ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2024 3:35pm

docs/_asset/editor.jsx Outdated Show resolved Hide resolved
@wooorm
Copy link
Member

wooorm commented Feb 8, 2024

They don’t? This works fine?

Do you have proof?

@wooorm
Copy link
Member

wooorm commented Feb 8, 2024

It looks like Babel tightened this after this was written (in xdm): https://github.com/babel/babel/pull/14012/files vs https://github.com/wooorm/xdm/blame/4713bd50b87dc07cb0e654553e54b599342c3292/lib/plugin/recma-document.js#L68
SWC used to be strict, but loosened it (due to our comments and babel at the time): swc-project/swc#2377

@remcohaszing
Copy link
Member Author

remcohaszing commented Feb 8, 2024

I first encountered this in MDX analyzer. The way it’s used there is unrelated to usage here, but that’s where I noticed. Someone from the Volar team mentioned the pragmas need to be on separate lines, which helped.

I verified this Babel playground only picked up on these pragmas when they are on separate lines. I also verified this in a TypeScript playground (look at the output changes if you add a newline between those pragmas).

I also noticed the Preact tests in the infer JSX types based on the React types, not the Preact types. To fix this requires a bit more work that’s out of scope of this PR, but I would like to fix it in a follow-up PR.

@wooorm
Copy link
Member

wooorm commented Feb 8, 2024

TypeScript has also changed: babel/babel#13896 (comment). I tried to figure out the PR but the blame is too big and the refactors are too giant so I bailed.

If the Preact problem requires a different fix, how do you know it relates to this? AFAIK TS always has had problems with multiple JSX runtimes at the same time.

I’m fine with using the new format that Babel and TypeScript introduced.
But I’d prefer it to be pretty:

/**
 * @jsxWhatever
 * @jsxStuff asdasd
 */

So like line endings and asterisks and aligned

@remcohaszing
Copy link
Member Author

Although two asterisks at the beginning works, I think one is better. We don’t want this to be accidentally picked up as JSDoc somehow.

Apparently astring dedents block comments. So the comment becomes this:

/*
* @jsxWhatever
* @jsxStuff asdasd
*/

IMO this is slightly prettier:

/*
@jsxWhatever
@jsxStuff asdasd
*/

@remcohaszing
Copy link
Member Author

If the Preact problem requires a different fix, how do you know it relates to this? AFAIK TS always has had problems with multiple JSX runtimes at the same time.

We should leverage TypeScript references to support mono repos and separate projects. There should be only one JSX runtime per project. This is unrelated to the MDX output, which is handled by this PR.

@wooorm
Copy link
Member

wooorm commented Feb 8, 2024

I dunno, feels weird to have to do that? Why “should” there be one runtime per project? I would think it is pretty reasonable for folks to have different runtimes in one project (with comments in files), and that this is a bug in TS?

@wooorm
Copy link
Member

wooorm commented Feb 8, 2024

We don’t want this to be accidentally picked up as JSDoc somehow

Why not? Them starting at a line and using @ makes them look a lot like JSDoc. Which I infer to be because they’re intended to look like JSDoc?

IMO this is slightly prettier:

Also fine by me

@remcohaszing
Copy link
Member Author

remcohaszing commented Feb 8, 2024

Why not? Them starting at a line and using @ makes them look a lot like JSDoc. Which I infer to be because they’re intended to look like JSDoc?

I agree with this sentiment. But JSDoc is applied to the identifier it’s above. I don’t want the comment containing JSDoc pragmas to end up as JSDoc for exported functions or _createMdxContent.


This might be a nice alternative too:

/* @jsxRuntime automatic */
/* @jsxImportSource react */

@wooorm
Copy link
Member

wooorm commented Feb 10, 2024

I quite like the separate comments but it’s a bit extra work for the _mdxIsPragmaComment stuff aka this handling: f48d038.

What do you think, go with separate comments?

This doesn’t affect their meaning, but the output looks slightly nicer.
@remcohaszing
Copy link
Member Author

string strips leading / trailing whitespace 1-liner block comments too, but I still like it slightly better.

docs/_asset/editor.jsx Outdated Show resolved Hide resolved
docs/docs/using-mdx.mdx Outdated Show resolved Hide resolved
tree.comments.unshift({
type: 'Block',
value: pragmas.join(' '),
value: pragmas[index],
data: {_mdxIsPragmaComment: true}
})
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitty, but I don‘t really like the reverse stuff.
This works locally (but I can’t suggest it on GH as it overlaps):

    tree.comments.unshift(
      ...pragmas.map(function (d) {
        return /** @type {const} */ ({
          type: 'Block',
          value: d,
          data: {_mdxIsPragmaComment: true}
        })
      })
    )

Only don’t really like the const but TS needs it apparently

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this at first, but TS caught me too.

I see the pragmas array is only used here. Instead of creating the pragmas array above, I could also unshift the comment nodes directly on lines 86-100.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh. I dunno maybe a lot of repetition. Maybe more comments will be added in the future too.
I don‘t mind my const too much? How do you feel about that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already applied this using a function to avoid repetition. I like it, but I can revert if you don’t.

packages/mdx/lib/plugin/recma-jsx-build.js Outdated Show resolved Hide resolved
Co-authored-by: Titus <tituswormer@gmail.com>
Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
This removes the need to keep an intermediate pragmas array which is
only used to map over directly after defining it.
@wooorm wooorm changed the title Fix the generated JSX pragmas Fix generated JSX pragmas for new babel Feb 12, 2024
@wooorm wooorm merged commit 49fd094 into main Feb 12, 2024
10 checks passed
@wooorm wooorm deleted the fix-jsx-pragmas branch February 12, 2024 10:36
@wooorm wooorm added 💪 phase/solved Post is done and removed 🤞 phase/open Post is being triaged manually labels Feb 12, 2024
@wooorm
Copy link
Member

wooorm commented Feb 12, 2024

Released in 3.0.1! Thanks!

renovate bot added a commit to manaelproxy/manael that referenced this pull request Feb 12, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mdx-js/react](https://mdxjs.com)
([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/react/)) |
[`^3.0.0` ->
`^3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2freact/3.0.0/3.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mdx-js/mdx (@&#8203;mdx-js/react)</summary>

### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1)

[Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1)

##### Fix

- [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix
generated JSX pragmas for new babel
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2438
- [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor
to handle uncaught webpack errors
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2398

##### Types

- [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add
declaration maps
- [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix
webpack loader types
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2386

##### Site

- [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset
of playground render errors
by [@&#8203;ManasMakde](https://togithub.com/ManasMakde) in
[mdx-js/mdx#2392
- [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note
on broken react runtime types
by [@&#8203;ky1ejs](https://togithub.com/ky1ejs) in
[mdx-js/mdx#2383

**Full Changelog**: mdx-js/mdx@3.0.0...3.0.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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/manaelproxy/manael).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to inabagumi/shinju-date that referenced this pull request Feb 12, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mdx-js/loader](https://mdxjs.com)
([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/loader/)) |
[`^3.0.0` ->
`^3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2floader/3.0.0/3.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2floader/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2floader/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2floader/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2floader/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@mdx-js/react](https://mdxjs.com)
([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/react/)) |
[`^3.0.0` ->
`^3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2freact/3.0.0/3.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mdx-js/mdx (@&#8203;mdx-js/loader)</summary>

### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1)

[Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1)

##### Fix

- [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix
generated JSX pragmas for new babel
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2438
- [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor
to handle uncaught webpack errors
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2398

##### Types

- [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add
declaration maps
- [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix
webpack loader types
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2386

##### Site

- [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset
of playground render errors
by [@&#8203;ManasMakde](https://togithub.com/ManasMakde) in
[mdx-js/mdx#2392
- [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note
on broken react runtime types
by [@&#8203;ky1ejs](https://togithub.com/ky1ejs) in
[mdx-js/mdx#2383

**Full Changelog**: mdx-js/mdx@3.0.0...3.0.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates 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/inabagumi/shinju-date).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot pushed a commit to X-oss-byte/Nextjs that referenced this pull request Feb 12, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mdx-js/loader](https://mdxjs.com) ([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/loader/)) | [`3.0.0` -> `3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2floader/3.0.0/3.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2floader/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2floader/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2floader/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2floader/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@mdx-js/react](https://mdxjs.com) ([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/react/)) | [`3.0.0` -> `3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2freact/3.0.0/3.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>mdx-js/mdx (@&#8203;mdx-js/loader)</summary>

### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1)

[Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1)

##### Fix

-   [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix generated JSX pragmas for new babel
    by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in [mdx-js/mdx#2438
-   [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors
    by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in [mdx-js/mdx#2398

##### Types

-   [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add declaration maps
-   [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix webpack loader types
    by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in [mdx-js/mdx#2386

##### Site

-   [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors
    by [@&#8203;ManasMakde](https://togithub.com/ManasMakde) in [mdx-js/mdx#2392
-   [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types
    by [@&#8203;ky1ejs](https://togithub.com/ky1ejs) in [mdx-js/mdx#2383

**Full Changelog**: mdx-js/mdx@3.0.0...3.0.1

</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 these updates again.

---

 - [ ] 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/X-oss-byte/Nextjs).
@wooorm
Copy link
Member

wooorm commented Feb 12, 2024

This PR broke the website. Looks like esbuild doesn’t pick the manual pretty comments up.

@wooorm
Copy link
Member

wooorm commented Feb 12, 2024

Both

/* @jsxRuntime automatic */
/* @jsxImportSource react */

And:

/* @jsxRuntime automatic @jsxImportSource react */

Are fine. So the release is not broken.

wooorm added a commit that referenced this pull request Feb 12, 2024
tmnd1991 added a commit to agile-lab-dev/whitefox that referenced this pull request Feb 16, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mdx-js/react](https://mdxjs.com)
([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/react/)) |
[`3.0.0` ->
`3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2freact/3.0.0/3.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mdx-js/mdx (@&#8203;mdx-js/react)</summary>

### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1)

[Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1)

##### Fix

- [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix
generated JSX pragmas for new babel
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2438
- [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor
to handle uncaught webpack errors
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2398

##### Types

- [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add
declaration maps
- [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix
webpack loader types
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2386

##### Site

- [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset
of playground render errors
by [@&#8203;ManasMakde](https://togithub.com/ManasMakde) in
[mdx-js/mdx#2392
- [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note
on broken react runtime types
by [@&#8203;ky1ejs](https://togithub.com/ky1ejs) in
[mdx-js/mdx#2383

**Full Changelog**: mdx-js/mdx@3.0.0...3.0.1

</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/agile-lab-dev/whitefox).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Antonio Murgia <ing.murgia@icloud.com>
renovate bot added a commit to woodpecker-ci/woodpecker that referenced this pull request Mar 1, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mdx-js/react](https://mdxjs.com)
([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/react/)) |
[`3.0.0` ->
`3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2freact/3.0.0/3.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`20.11.16` ->
`20.11.24`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.16/20.11.24)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.16/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.16/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/react](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react))
| [`18.2.55` ->
`18.2.61`](https://renovatebot.com/diffs/npm/@types%2freact/18.2.55/18.2.61)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact/18.2.55/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact/18.2.55/18.2.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[isomorphic-dompurify](https://togithub.com/kkomelin/isomorphic-dompurify)
| [`2.3.0` ->
`2.4.0`](https://renovatebot.com/diffs/npm/isomorphic-dompurify/2.3.0/2.4.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/isomorphic-dompurify/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/isomorphic-dompurify/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/isomorphic-dompurify/2.3.0/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/isomorphic-dompurify/2.3.0/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [redocusaurus](https://redocusaurus.vercel.app/)
([source](https://togithub.com/rohit-gohri/redocusaurus)) | [`2.0.0` ->
`2.0.1`](https://renovatebot.com/diffs/npm/redocusaurus/2.0.0/2.0.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/redocusaurus/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/redocusaurus/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/redocusaurus/2.0.0/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/redocusaurus/2.0.0/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [yaml](https://eemeli.org/yaml/)
([source](https://togithub.com/eemeli/yaml)) | [`2.3.4` ->
`2.4.0`](https://renovatebot.com/diffs/npm/yaml/2.3.4/2.4.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/yaml/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/yaml/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/yaml/2.3.4/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/yaml/2.3.4/2.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mdx-js/mdx (@&#8203;mdx-js/react)</summary>

### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1)

[Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1)

##### Fix

- [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix
generated JSX pragmas for new babel
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2438
- [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor
to handle uncaught webpack errors
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2398

##### Types

- [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add
declaration maps
- [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix
webpack loader types
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2386

##### Site

- [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset
of playground render errors
by [@&#8203;ManasMakde](https://togithub.com/ManasMakde) in
[mdx-js/mdx#2392
- [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note
on broken react runtime types
by [@&#8203;ky1ejs](https://togithub.com/ky1ejs) in
[mdx-js/mdx#2383

**Full Changelog**: mdx-js/mdx@3.0.0...3.0.1

</details>

<details>
<summary>kkomelin/isomorphic-dompurify (isomorphic-dompurify)</summary>

###
[`v2.4.0`](https://togithub.com/kkomelin/isomorphic-dompurify/releases/tag/v2.4.0):
Updated dependencies

[Compare
Source](https://togithub.com/kkomelin/isomorphic-dompurify/compare/v2.3.0...v2.4.0)

##### Changelog

-   \[x] Updated `dompurify` and other dependencies.

See the [complete
changelog](https://togithub.com/kkomelin/isomorphic-dompurify/compare/v2.3.0...v2.4.0)
for more details.

##### Release

[2.4.0](https://www.npmjs.com/package/isomorphic-dompurify/v/2.4.0)

</details>

<details>
<summary>rohit-gohri/redocusaurus (redocusaurus)</summary>

###
[`v2.0.1`](https://togithub.com/rohit-gohri/redocusaurus/blob/HEAD/CHANGELOG.md#redocusaurus201)

[Compare
Source](https://togithub.com/rohit-gohri/redocusaurus/compare/v2.0.0...v2.0.1)

</details>

<details>
<summary>eemeli/yaml (yaml)</summary>

### [`v2.4.0`](https://togithub.com/eemeli/yaml/releases/tag/v2.4.0)

[Compare
Source](https://togithub.com/eemeli/yaml/compare/v2.3.4...v2.4.0)

- Add a command-line tool
([#&#8203;523](https://togithub.com/eemeli/yaml/issues/523))
- Use the `lineWidth` option for line breaking in flow collections
([#&#8203;522](https://togithub.com/eemeli/yaml/issues/522))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge -
"before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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/woodpecker-ci/woodpecker).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMjAuMiIsInVwZGF0ZWRJblZlciI6IjM3LjIyMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to redwoodjs/redwood that referenced this pull request Mar 18, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mdx-js/react](https://mdxjs.com)
([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/react/)) |
[`3.0.0` ->
`3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2freact/3.0.0/3.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mdx-js/mdx (@&#8203;mdx-js/react)</summary>

### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1)

[Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1)

##### Fix

- [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix
generated JSX pragmas for new babel
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2438
- [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor
to handle uncaught webpack errors
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2398

##### Types

- [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add
declaration maps
- [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix
webpack loader types
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2386

##### Site

- [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset
of playground render errors
by [@&#8203;ManasMakde](https://togithub.com/ManasMakde) in
[mdx-js/mdx#2392
- [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note
on broken react runtime types
by [@&#8203;ky1ejs](https://togithub.com/ky1ejs) in
[mdx-js/mdx#2383

**Full Changelog**: mdx-js/mdx@3.0.0...3.0.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Price <thedavid@thedavidprice.com>
thedavidprice added a commit to redwoodjs/redwood that referenced this pull request Mar 27, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mdx-js/react](https://mdxjs.com)
([source](https://togithub.com/mdx-js/mdx/tree/HEAD/packages/react/)) |
[`3.0.0` ->
`3.0.1`](https://renovatebot.com/diffs/npm/@mdx-js%2freact/3.0.0/3.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mdx-js%2freact/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mdx-js%2freact/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mdx-js/mdx (@&#8203;mdx-js/react)</summary>

### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1)

[Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1)

##### Fix

- [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix
generated JSX pragmas for new babel
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2438
- [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor
to handle uncaught webpack errors
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2398

##### Types

- [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add
declaration maps
- [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix
webpack loader types
by [@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[mdx-js/mdx#2386

##### Site

- [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset
of playground render errors
by [@&#8203;ManasMakde](https://togithub.com/ManasMakde) in
[mdx-js/mdx#2392
- [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note
on broken react runtime types
by [@&#8203;ky1ejs](https://togithub.com/ky1ejs) in
[mdx-js/mdx#2383

**Full Changelog**: mdx-js/mdx@3.0.0...3.0.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Price <thedavid@thedavidprice.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 👶 semver/patch This is a backwards-compatible fix 🐛 type/bug This is a problem
Development

Successfully merging this pull request may close these issues.

None yet

2 participants