Skip to content

Commit fec90fd

Browse files
docs: update demo pkg ver
1 parent cccbb9e commit fec90fd

File tree

3 files changed

+104
-104
lines changed

3 files changed

+104
-104
lines changed

apps/demo/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
"@fontsource/inter": "^5.0.18",
1717
"@mui/icons-material": "^5.15.15",
1818
"@mui/joy": "5.0.0-beta.36",
19-
"@opentf/obj-diff": "^0.1.2",
19+
"@opentf/obj-diff": "^0.3.0",
2020
"@opentf/std": "^0.10.0",
2121
"@uiw/react-codemirror": "^4.21.25",
2222
"prettier": "^3.2.5",
23-
"react": "^18.2.0",
24-
"react-dom": "^18.2.0"
23+
"react": "^18.3.0",
24+
"react-dom": "^18.3.0"
2525
},
2626
"devDependencies": {
27-
"@types/react": "^18.2.66",
28-
"@types/react-dom": "^18.2.22",
29-
"@typescript-eslint/eslint-plugin": "^7.2.0",
30-
"@typescript-eslint/parser": "^7.2.0",
31-
"@vitejs/plugin-react-swc": "^3.5.0",
27+
"@types/react": "^18.3.0",
28+
"@types/react-dom": "^18.3.0",
29+
"@typescript-eslint/eslint-plugin": "^7.7.1",
30+
"@typescript-eslint/parser": "^7.7.1",
31+
"@vitejs/plugin-react-swc": "^3.6.0",
3232
"eslint": "^8.57.0",
3333
"eslint-plugin-react-hooks": "^4.6.0",
3434
"eslint-plugin-react-refresh": "^0.4.6",
35-
"typescript": "^5.2.2",
35+
"typescript": "^5.4.5",
3636
"vite": "^5.2.0"
3737
}
3838
}

apps/demo/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Alert, Box, Link, Sheet, TabPanel, Typography } from "@mui/joy";
22
import CodeMirror from "@uiw/react-codemirror";
33
import { javascript } from "@codemirror/lang-javascript";
44
import { useCallback, useEffect, useState } from "react";
5-
import { diff } from "@opentf/obj-diff";
5+
import { diff, type DiffResult } from "@opentf/obj-diff";
66
import Tabs from "@mui/joy/Tabs";
77
import TabList from "@mui/joy/TabList";
88
import Tab from "@mui/joy/Tab";
@@ -29,7 +29,7 @@ function App() {
2929
const [obj2Val, setObj2Val] = useState(`{
3030
a: 2, c: 5
3131
}`);
32-
const [raw, setRaw] = useState<Array<DiffResult>([]);
32+
const [raw, setRaw] = useState<Array<DiffResult>>([]);
3333

3434
useEffect(() => {
3535
async function runFormat() {

0 commit comments

Comments
 (0)