Skip to content

Open-source status page, incident response and uptime monitoring

bump: next-mdx-remote (#1849)

Maximilian Kaske303066b4f3d5
diff --git a/apps/web/package.json b/apps/web/package.json
index b479c87fe..42a82b78c 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -70,7 +70,7 @@
"nanoid": "5.0.7",
"next": "16.0.10",
"next-auth": "5.0.0-beta.29",
- "next-mdx-remote": "5.0.0",
+ "next-mdx-remote": "6.0.0",
"next-plausible": "3.12.5",
"next-themes": "0.4.6",
"nuqs": "2.8.5",
diff --git a/apps/web/src/content/mdx.tsx b/apps/web/src/content/mdx.tsx
index 9f3f876b3..84a276fe9 100644
--- a/apps/web/src/content/mdx.tsx
+++ b/apps/web/src/content/mdx.tsx
@@ -375,6 +375,11 @@ function MDXContent(props: MDXRemoteProps) {
return (
<MDXRemote
{...props}
+ options={{
+ blockJS: false, // Allow JS expressions in trusted MDX content
+ blockDangerousJS: true, // Still block dangerous operations
+ ...props.options,
+ }}
components={
{
...components,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2f19447fc..14da2c114 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1034,8 +1034,8 @@ importers:
specifier: 5.0.0-beta.29
next-mdx-remote:
- specifier: 5.0.0
- version: 5.0.0(@types/[email protected])([email protected])
+ specifier: 6.0.0
+ version: 6.0.0(@types/[email protected])([email protected])
next-plausible:
specifier: 3.12.5
@@ -9853,8 +9853,8 @@ packages:
nodemailer:
optional: true
- resolution: {integrity: sha512-RNNbqRpK9/dcIFZs/esQhuLA8jANqlH694yqoDBK8hkVdJUndzzGmnPHa2nyi90N4Z9VmzuSWNRpr5ItT3M7xQ==}
+ resolution: {integrity: sha512-cJEpEZlgD6xGjB4jL8BnI8FaYdN9BzZM4NwadPe1YQr7pqoWjg9EBCMv3nXBkuHqMRfv2y33SzUsuyNh9LFAQQ==}
engines: {node: '>=14', npm: '>=7'}
peerDependencies:
react: '>=16'
@@ -11521,9 +11521,6 @@ packages:
resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==}
- resolution: {integrity: sha512-kfCqZK5YVY5yEa89tvpl7KnBBHu2c6CzMkqHUrlOqaRgGOMp0sMvwWOVrbAtj03KhovQB7i96Gda72v/EFE0vw==}
-
resolution: {integrity: sha512-b4gokeGId57UVRX/eVKej5gXqGlc9+trkORhFJpu9raqZkZhU0zm8Doi05+HaiBsMEIJowL+2WtQ5ItjsngPXg==}
@@ -11548,6 +11545,9 @@ packages:
resolution: {integrity: sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==}
+ resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==}
+
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
@@ -14155,7 +14155,7 @@ snapshots:
unified: 11.0.5
unist-util-position-from-estree: 2.0.0
unist-util-stringify-position: 4.0.0
- unist-util-visit: 5.0.0
+ unist-util-visit: 5.1.0
vfile: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -20854,13 +20854,14 @@ snapshots:
react: 19.2.3
dependencies:
- '@babel/code-frame': 7.27.1
+ '@babel/code-frame': 7.29.0
'@mdx-js/mdx': 3.1.1
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
react: 19.2.3
- unist-util-remove: 3.1.1
+ unist-util-remove: 4.0.0
+ unist-util-visit: 5.1.0
vfile: 6.0.3
vfile-matter: 5.0.1
transitivePeerDependencies:
@@ -23078,12 +23079,6 @@ snapshots:
'@types/unist': 3.0.3
unist-util-visit: 5.0.0
- dependencies:
- '@types/unist': 2.0.11
- unist-util-is: 5.2.1
- unist-util-visit-parents: 5.1.3
-
dependencies:
'@types/unist': 3.0.3
@@ -23124,6 +23119,12 @@ snapshots:
unist-util-is: 6.0.1
unist-util-visit-parents: 6.0.2
+ dependencies:
+ '@types/unist': 3.0.3
+ unist-util-is: 6.0.1
+ unist-util-visit-parents: 6.0.2
+