From 3fcb4dd9e59e50d6de443ea73585710d6243959d Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Mon, 6 Mar 2023 17:55:40 -0700 Subject: [PATCH 1/2] docs: update dependencies used in sandboxes --- .../mdx-evaluate-create-react-app/package.json | 12 ++++++------ sandbox-templates/mdx-evaulate-node/package.json | 8 ++++---- sandbox-templates/mdx-loader-next/package.json | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/sandbox-templates/mdx-evaluate-create-react-app/package.json b/sandbox-templates/mdx-evaluate-create-react-app/package.json index 084204d..1477382 100644 --- a/sandbox-templates/mdx-evaluate-create-react-app/package.json +++ b/sandbox-templates/mdx-evaluate-create-react-app/package.json @@ -4,14 +4,14 @@ "license": "MIT", "private": true, "dependencies": { - "@mdx-js/mdx": "2.1.1", - "react": "17.0.2", - "react-dom": "17.0.2", - "react-scripts": "5.0.0" + "@mdx-js/mdx": "^2.0.0", + "react": "^18.0.0", + "react-dom": "^18.0.0", + "react-scripts": "^5.0.0" }, "devDependencies": { - "@babel/runtime": "7.16.7", - "typescript": "4.6.3" + "@babel/runtime": "^7.0.0", + "typescript": "~4.9.0" }, "scripts": { "start": "react-scripts start", diff --git a/sandbox-templates/mdx-evaulate-node/package.json b/sandbox-templates/mdx-evaulate-node/package.json index c3a592b..445718c 100644 --- a/sandbox-templates/mdx-evaulate-node/package.json +++ b/sandbox-templates/mdx-evaulate-node/package.json @@ -8,9 +8,9 @@ "start": "nodemon index.js" }, "dependencies": { - "@mdx-js/mdx": "2.1.1", - "nodemon": "2.0.15", - "react": "17.0.2", - "react-dom": "17.0.2" + "@mdx-js/mdx": "^2.0.0", + "nodemon": "^2.0.0", + "react": "^18.0.0", + "react-dom": "^18.0.0" } } diff --git a/sandbox-templates/mdx-loader-next/package.json b/sandbox-templates/mdx-loader-next/package.json index b8fa34e..4a77c72 100644 --- a/sandbox-templates/mdx-loader-next/package.json +++ b/sandbox-templates/mdx-loader-next/package.json @@ -9,9 +9,9 @@ "start": "next start" }, "dependencies": { - "@mdx-js/loader": "2.1.1", - "next": "12.1.4", - "react": "17.0.2", - "react-dom": "17.0.2" + "@mdx-js/loader": "^2.0.0", + "next": "^13.0.0", + "react": "^18.0.0", + "react-dom": "^18.0.0" } } From 110764a0c2b09e9b2a0b43c4c3a014e9071ba764 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Mon, 6 Mar 2023 20:11:10 -0700 Subject: [PATCH 2/2] docs: react jsx-runtime and server are explicitly exported without extension --- sandbox-templates/mdx-evaulate-node/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sandbox-templates/mdx-evaulate-node/index.js b/sandbox-templates/mdx-evaulate-node/index.js index 86d131f..09e1692 100644 --- a/sandbox-templates/mdx-evaulate-node/index.js +++ b/sandbox-templates/mdx-evaulate-node/index.js @@ -2,8 +2,8 @@ // You can refresh them in the Dependencies section (left-bottom on CodeSandbox) import http from "node:http"; -import * as runtime from "react/jsx-runtime.js"; -import ReactDom from "react-dom/server.js"; +import * as runtime from "react/jsx-runtime"; +import ReactDom from "react-dom/server"; import { evaluate } from "@mdx-js/mdx"; // Note: refresh the pane on the right to see changes.