fix(deps): update dependency safe-mdx to ^1.14.0 - #604
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
website | 2238c70 | Commit Preview URL Branch Preview URL |
Aug 15 2026, 04:56 PM |
renovate
Bot
force-pushed
the
renovate/safe-mdx-1.x
branch
from
August 14, 2026 22:50
809f143 to
4e545b8
Compare
renovate
Bot
force-pushed
the
renovate/safe-mdx-1.x
branch
from
August 15, 2026 16:53
4e545b8 to
2238c70
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.11.0→^1.14.0Release Notes
holocron-hq/safe-mdx (safe-mdx)
v1.14.0Compare Source
Opt-in
sanitizeboolean — strip XSS vectors from native JSX and markdown HTML. It is off by default, so existing render output does not change:When
sanitizeis on,createElementdropsscript,object,embed,applet,portal,frame,frameset, andbase. It also removesdangerouslySetInnerHTML, nativeon*handlers,srcDoc,ping, and URLs that are nothttp,https,mailto,tel, relative, ordata:image/*onimg.<style>,<meta>,<link>, andhttp(s)iframes stay allowed.srcDoc,javascript:, anddata:iframe or link sources are still stripped.There is no allowlist object. The policy is fixed. Function evaluation being off is not enough on its own, because object literals such as
dangerouslySetInnerHTML={{__html}}still evaluate.Stripped tags and props emit
type: 'sanitize'errors.v1.13.0Compare Source
Page-scope
export functionandexport const— with function evaluation on, named exports in an MDX file can be used on the same page. Exported components work as JSX. Exported helpers and constants work in expressions:Turn it on with
evaluateOptions: { functions: true }, or by passing a non-emptyscopeobject:Functions are hoisted, so a component declared later in the file can be used above its declaration. Const inits run in source order.
React hooks work when you import them and pass React in
modules:These are the real React hooks.
useStateworks for the first server paint.useEffectruns after paint only when this renderer and the interpreted component execute as client React code. Hook components cannot run inside React Server Components.Put a blank line after the export block. MDX keeps reading ESM if the next line is attached.
Still unsupported:
export defaultlayouts,export class, re-exports, and declarations without theexportkeyword. A barefunctionis invalid MDX. A bareconstis parsed as markdown.Fixes #20
v1.12.0Compare Source
Render JSX inside MDX expressions — conditional elements, ternaries, nullish fallbacks, arrays, objects, and callback results now use the same safe component allow-list and prop validation as normal MDX elements:
Callback-local values work in component props, spread attributes, children, and nested callbacks. Inactive conditional branches remain lazy, so components in branches that are not selected are not resolved.
Render JSX fragments in documents and expression props — fragments now preserve all children at the document root, inside components, and inside props:
Validate nested component props —
componentPropsSchemanow validates components nested inside expression props and reports their validation errors through the normal error collection path.Resolve
react-domin strict-linking installs —react-domis now declared as a peer dependency because the main entry imports the client module that usesprefetchDNSandpreconnect. pnpm consumers no longer need apackageExtensionsworkaround and no longer getCannot find package 'react-dom'at runtime.Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.