Skip to content

Commit 96b3fed

Browse files
committed
Upgrade some deps
1 parent 47f95cc commit 96b3fed

32 files changed

+2620
-2240
lines changed

.oxfmtrc.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
33
"ignorePatterns": ["src/spicedb-common/protodefs", "examples", "public"],
4-
"experimentalSortImports": {
4+
"sortImports": {
5+
"sortSideEffects": true,
56
"groups": [
6-
["side-effect"],
77
["builtin"],
88
["external", "type-external"],
99
["internal", "type-internal"],

package.json

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,28 @@
1818
},
1919
"dependencies": {
2020
"@authzed/spicedb-parser-js": "^1.0.5",
21-
"@aws-sdk/client-s3": "^3.0.0",
21+
"@aws-sdk/client-s3": "^3.997.0",
2222
"@bufbuild/protobuf": "^2.4.0",
2323
"@dagrejs/dagre": "^2.0.4",
2424
"@fontsource/roboto": "^5.1.1",
25-
"@fortawesome/fontawesome-svg-core": "^6.4.0",
26-
"@fortawesome/free-solid-svg-icons": "^6.2.1",
27-
"@fortawesome/react-fontawesome": "^0.2.0",
2825
"@glideapps/glide-data-grid": "^6.0.3",
2926
"@glideapps/glide-data-grid-cells": "^6.0.3",
3027
"@material-ui/core": "^4.12.4",
3128
"@material-ui/icons": "^4.11.3",
3229
"@material-ui/lab": "^4.0.0-alpha.61",
33-
"@monaco-editor/react": "^4.3.1",
34-
"@posthog/react": "^1.5.2",
35-
"@radix-ui/react-alert-dialog": "^1.1.11",
36-
"@radix-ui/react-select": "^2.2.2",
37-
"@radix-ui/react-slot": "^1.2.0",
38-
"@radix-ui/react-tabs": "^1.1.9",
39-
"@tailwindcss/vite": "^4.1.5",
40-
"@tanstack/react-pacer": "^0.17.4",
41-
"@tanstack/react-router": "^1.119.0",
42-
"@tanstack/react-router-devtools": "^1.119.1",
30+
"@monaco-editor/react": "^4.7.0",
31+
"@posthog/react": "^1.8.0",
32+
"@radix-ui/react-alert-dialog": "^1.1.15",
33+
"@radix-ui/react-select": "^2.2.6",
34+
"@radix-ui/react-slot": "^1.2.4",
35+
"@radix-ui/react-tabs": "^1.1.13",
36+
"@tailwindcss/vite": "^4.2.1",
37+
"@tanstack/react-pacer": "^0.20.0",
38+
"@tanstack/react-router": "^1.163.2",
39+
"@tanstack/react-router-devtools": "^1.163.2",
4340
"@vercel/node": "^5.2.0",
44-
"@xyflow/react": "^12.10.0",
45-
"ajv": "6.12.6",
41+
"@xyflow/react": "^12.10.1",
42+
"ajv": "8.18.0",
4643
"ansi-to-html": "^0.7.2",
4744
"class-variance-authority": "^0.7.1",
4845
"clsx": "^2.1.1",
@@ -51,61 +48,58 @@
5148
"file-saver": "^2.0.5",
5249
"file-select-dialog": "^1.5.4",
5350
"line-column": "^1.0.2",
54-
"lucide-react": "^0.503.0",
55-
"marked": "^4.0.10",
56-
"monaco-editor": "~0.40.0",
51+
"lucide-react": "^0.575.0",
52+
"monaco-editor": "~0.55.1",
5753
"next-themes": "^0.4.6",
5854
"parsimmon": "^1.18.1",
59-
"posthog-js": "^1.304.0",
55+
"posthog-js": "^1.353.1",
6056
"radix-ui": "^1.4.3",
61-
"react": "^18.3.1",
62-
"react-cookie": "^4.1.1",
63-
"react-dom": "^18.3.1",
57+
"react": "^19.2.4",
58+
"react-cookie": "^8.0.1",
59+
"react-dom": "^19.2.4",
6460
"react-joyride": "^2.5.3",
65-
"react-reflex": "^4.0.9",
61+
"react-reflex": "^5.0.5",
6662
"react-responsive-carousel": "^3.2.23",
6763
"sjcl": "^1.0.8",
6864
"sonner": "^2.0.7",
6965
"string-to-color": "^2.2.2",
7066
"string.prototype.replaceall": "^1.0.6",
7167
"styled-components": "^6.1.14",
72-
"tailwind-merge": "^3.2.0",
73-
"tailwindcss": "^4.1.5",
68+
"tailwind-merge": "^3.5.0",
69+
"tailwindcss": "^4.2.1",
7470
"typeface-roboto-mono": "^1.1.13",
7571
"use-deep-compare": "^1.1.0",
7672
"use-deep-compare-effect": "^1.8.1",
77-
"visjs-network": "^4.24.11",
7873
"yaml": "^2.0.1",
79-
"zod": "^4.2.1"
74+
"zod": "^4.3.6"
8075
},
8176
"devDependencies": {
8277
"@testing-library/react": "^14.0.0",
8378
"@testing-library/user-event": "^14.4.3",
8479
"@types/d3-scale-chromatic": "^3.0.0",
8580
"@types/dagre": "^0.7.53",
8681
"@types/file-saver": "^2.0.5",
87-
"@types/jest": "^29.5.0",
8882
"@types/line-column": "^1.0.0",
89-
"@types/node": "^22.15.3",
83+
"@types/node": "^25.3.0",
9084
"@types/parsimmon": "^1.10.6",
91-
"@types/react": "^18.3.1",
85+
"@types/react": "^19.2.14",
9286
"@types/react-copy-to-clipboard": "^5.0.4",
93-
"@types/react-dom": "^18.3.1",
87+
"@types/react-dom": "^19.2.3",
9488
"@types/sjcl": "^1.0.30",
9589
"@types/styled-components": "^5.1.26",
9690
"@types/use-deep-compare-effect": "^1.5.1",
97-
"@types/uuid": "^9.0.1",
98-
"@vitejs/plugin-react": "^4.3.4",
91+
"@types/uuid": "^11.0.0",
92+
"@vitejs/plugin-react": "^5.1.4",
9993
"cypress": "^12.9.0",
10094
"cypress-wait-until": "^1.7.2",
10195
"globals": "^15.14.0",
102-
"oxfmt": "^0.28.0",
103-
"oxlint": "^1.48.0",
104-
"oxlint-tsgolint": "^0.14.0",
96+
"oxfmt": "^0.35.0",
97+
"oxlint": "^1.50.0",
98+
"oxlint-tsgolint": "^0.15.0",
10599
"tw-animate-css": "^1.2.8",
106-
"typescript": "~5.7.3",
107-
"vite": "^6.0.7",
108-
"vite-plugin-svgr": "^4.3.0",
100+
"typescript": "~5.9.3",
101+
"vite": "^7.3.1",
102+
"vite-plugin-svgr": "^4.5.0",
109103
"vitest": "^2.1.8"
110104
},
111105
"browserslist": {

src/App.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import "react-reflex/styles.css";
2-
import "typeface-roboto-mono/index.css"; // Import the Roboto Mono font.
3-
import "./App.css";
4-
51
import { PostHogProvider } from "@posthog/react";
62
import {
73
Outlet,
@@ -12,9 +8,12 @@ import {
128
} from "@tanstack/react-router";
139
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
1410
import posthog from "posthog-js";
11+
import "react-reflex/styles.css";
12+
import "typeface-roboto-mono/index.css"; // Import the Roboto Mono font.
1513

1614
import { ThemeProvider } from "@/components/ThemeProvider";
1715

16+
import "./App.css";
1817
import { EmbeddedPlayground } from "./components/EmbeddedPlayground";
1918
import { FullPlayground } from "./components/FullPlayground";
2019
import { InlinePlayground } from "./components/InlinePlayground";
@@ -24,6 +23,7 @@ import { useGoogleAnalytics } from "./playground-ui/GoogleAnalyticsHook";
2423
import PlaygroundUIThemed from "./playground-ui/PlaygroundUIThemed";
2524
import AppConfig from "./services/configservice";
2625
import { PLAYGROUND_UI_COLORS } from "./theme";
26+
import { CookiesProvider } from "react-cookie";
2727

2828
const rootRoute = createRootRoute({
2929
component: () => (
@@ -71,6 +71,8 @@ function App() {
7171
return (
7272
<>
7373
<Toaster />
74+
{/* @ts-expect-error react-cookie's types are screwy */}
75+
<CookiesProvider>
7476
<PostHogProvider client={posthog}>
7577
<ThemeProvider>
7678
<PlaygroundUIThemed {...PLAYGROUND_UI_COLORS} forceDarkMode={isEmbeddedPlayground}>
@@ -80,6 +82,7 @@ function App() {
8082
</PlaygroundUIThemed>
8183
</ThemeProvider>
8284
</PostHogProvider>
85+
</CookiesProvider>
8386
</>
8487
);
8588
}

src/components/CheckDebugTraceView.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,14 @@ export function CheckDebugTraceView(props: {
113113

114114
return (
115115
<div className={classes.root}>
116+
{/* @ts-expect-error MUI's types are screwy */}
116117
<TreeView
117118
key={key}
118119
selected={[]}
119120
className={classes.root}
121+
/* @ts-expect-error MUI's types are screwy */
120122
defaultCollapseIcon={<ExpandMoreIcon />}
123+
/* @ts-expect-error MUI's types are screwy */
121124
defaultExpandIcon={<ChevronRightIcon />}
122125
defaultExpanded={defaultExpanded}
123126
>
@@ -160,10 +163,12 @@ function CheckDebugTraceItems(props: {
160163
children.length === 0
161164
) {
162165
children.push(
166+
/* @ts-expect-error MUI's types are screwy */
163167
<TreeItem
164168
nodeId="subject"
165169
label={
166170
<div className={classes.subject}>
171+
{/* @ts-expect-error MUI's types are screwy */}
167172
<CheckCircleIcon className={classes.success} fontSize="small" />
168173
{props.trace.subject?.object?.objectType}:{props.trace.subject?.object?.objectId}
169174
{props.trace.subject?.optionalRelation &&
@@ -177,16 +182,20 @@ function CheckDebugTraceItems(props: {
177182
const nodeID = `${props.trace.resource?.objectType}:${resourceID}#${props.trace.permission}`;
178183

179184
return (
185+
/* @ts-expect-error MUI's types are screwy */
180186
<TreeItem
181187
key={resourceID}
182188
nodeId={nodeID}
183189
label={
184190
<div className={classes.dispatchHeader}>
191+
{/* @ts-expect-error MUI's types are screwy */}
185192
{isMember && <CheckCircleIcon className={classes.success} fontSize="small" />}
193+
{/* @ts-expect-error MUI's types are screwy */}
186194
{isNotMember && <HighlightOffIcon color="error" fontSize="small" />}
187195
{result === CheckDebugTrace_Permissionship.CONDITIONAL_PERMISSION &&
188196
props.trace.caveatEvaluationInfo?.result ===
189197
CaveatEvalInfo_Result.MISSING_SOME_CONTEXT && (
198+
/* @ts-expect-error MUI's types are screwy */
190199
<HelpOutlineIcon fontSize="small" style={{ color: "#8787ff" }} />
191200
)}
192201
<span>
@@ -221,17 +230,21 @@ function CaveatTreeItem(props: { evalInfo: CaveatEvalInfo; nodeIDPrefix: string
221230
const classes = useStyles();
222231

223232
return (
233+
/* @ts-expect-error MUI's types are screwy */
224234
<TreeItem
225235
nodeId={props.nodeIDPrefix + ":" + props.evalInfo.caveatName}
226236
label={
227237
<div className={classes.dispatchHeader}>
228238
{props.evalInfo.result === CaveatEvalInfo_Result.TRUE && (
239+
/* @ts-expect-error MUI's types are screwy */
229240
<CheckCircleIcon className={classes.success} fontSize="small" />
230241
)}
231242
{props.evalInfo.result === CaveatEvalInfo_Result.FALSE && (
243+
/* @ts-expect-error MUI's types are screwy */
232244
<HighlightOffIcon color="error" fontSize="small" />
233245
)}
234246
{props.evalInfo.result === CaveatEvalInfo_Result.MISSING_SOME_CONTEXT && (
247+
/* @ts-expect-error MUI's types are screwy */
235248
<HelpOutlineIcon fontSize="small" style={{ color: "#8787ff" }} />
236249
)}
237250
<span>{props.evalInfo.caveatName}</span>
@@ -271,6 +284,7 @@ function ContextTreeView(context: JsonObject | undefined) {
271284
}
272285

273286
return (
287+
/* @ts-expect-error MUI's types are screwy */
274288
<TreeItem key={key} nodeId="" label={label}>
275289
{isItemValue ? value : undefined}
276290
</TreeItem>
@@ -294,6 +308,7 @@ function ContextTreeValue(value: JsonValue) {
294308
// of this code.
295309
// oxlint-disable-next-line eslint-plugin-react(jsx-key)
296310
value.map((v) => {
311+
/* @ts-expect-error MUI's types are screwy */
297312
return <TreeItem nodeId="">{ContextTreeValue(v)}</TreeItem>;
298313
}),
299314
true,

0 commit comments

Comments
 (0)