-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
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.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
They don’t? This works fine? Do you have proof? |
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 |
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. |
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. /**
* @jsxWhatever
* @jsxStuff asdasd
*/ So like line endings and asterisks and aligned |
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 /*
* @jsxWhatever
* @jsxStuff asdasd
*/ IMO this is slightly prettier: /*
@jsxWhatever
@jsxStuff asdasd
*/ |
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. |
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? |
Why not? Them starting at a line and using
Also fine by me |
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 This might be a nice alternative too: /* @jsxRuntime automatic */
/* @jsxImportSource react */ |
I quite like the separate comments but it’s a bit extra work for the What do you think, go with separate comments? |
This doesn’t affect their meaning, but the output looks slightly nicer.
|
tree.comments.unshift({ | ||
type: 'Block', | ||
value: pragmas.join(' '), | ||
value: pragmas[index], | ||
data: {_mdxIsPragmaComment: true} | ||
}) | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Co-authored-by: Titus <[email protected]> Signed-off-by: Remco Haszing <[email protected]>
Signed-off-by: Remco Haszing <[email protected]>
Released in 3.0.1! Thanks! |
[![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 (@​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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/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>
[![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 (@​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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/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>
[![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 (@​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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/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).
This PR broke the website. Looks like esbuild doesn’t pick the manual pretty comments up. |
Both
And:
Are fine. So the release is not broken. |
[![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 (@​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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/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 <[email protected]>
[![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 (@​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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/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 ([#​523](https://togithub.com/eemeli/yaml/issues/523)) - Use the `lineWidth` option for line breaking in flow collections ([#​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>
[![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 (@​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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/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 <[email protected]>
[![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 (@​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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/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 [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/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 <[email protected]>
@@ -1,4 +1,7 @@ | |||
/* @jsxRuntime automatic @jsxImportSource react */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -73,8 +73,6 @@ export function recmaDocument(options) { | |||
const exportedIdentifiers = [] | |||
/** @type {Array<Directive | ModuleDeclaration | Statement>} */ | |||
const replacement = [] | |||
/** @type {Array<string>} */ | |||
const pragmas = [] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@mdx-js/react](https://mdxjs.com) ([source](https://redirect.github.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 (@​mdx-js/react)</summary> ### [`v3.0.1`](https://redirect.github.com/mdx-js/mdx/releases/tag/3.0.1) [Compare Source](https://redirect.github.com/mdx-js/mdx/compare/3.0.0...3.0.1) ##### Fix - [`49fd094`](https://redirect.github.com/mdx-js/mdx/commit/49fd094a) Fix generated JSX pragmas for new babel by [@​remcohaszing](https://redirect.github.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://redirect.github.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://redirect.github.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://redirect.github.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://redirect.github.com/mdx-js/mdx/pull/2398) ##### Types - [`c03e16c`](https://redirect.github.com/mdx-js/mdx/commit/c03e16c6) Add declaration maps - [`85c5dd0`](https://redirect.github.com/mdx-js/mdx/commit/85c5dd05) Fix webpack loader types by [@​remcohaszing](https://redirect.github.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://redirect.github.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://redirect.github.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://redirect.github.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://redirect.github.com/mdx-js/mdx/pull/2392) - [`680445d`](https://redirect.github.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://redirect.github.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://redirect.github.com/mdx-js/mdx/pull/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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/zeebe-io/zeebe-chaos). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Initial checklist
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.