Skip to content

Upgrade some deps#124

Merged
tstirrat15 merged 1 commit intomainfrom
upgrade-some-deps
Feb 25, 2026
Merged

Upgrade some deps#124
tstirrat15 merged 1 commit intomainfrom
upgrade-some-deps

Conversation

@tstirrat15
Copy link
Contributor

Description

Things I noticed while working on #122

Changes

  • Bump a bunch of deps

Testing

Review. See that tests pass and lints pass. Do a quick scan of the preview.

@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
playground Ready Ready Preview, Comment Feb 25, 2026 11:25pm

Request Review

Copy link
Contributor Author

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments


import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
import { type ReactNode } from "react";
import "react-reflex/styles.css";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changed with the new version of oxfmt.

return (
/* @ts-expect-error MUI's types are screwy */
<AppBar position="relative" color="default">
{/* @ts-expect-error MUI's types are screwy */}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a ton of these changes - the issue is that MUI types things as => Jsx.Element, which is wrong according to react 19's types. The fix will be removing the use of MUI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm material isn't compatible with React19 because it uses findDOMNode everywhere.

horizontal: {
title: "Bottom",
icon: <HorizontalSplitIcon />,
icon: <SquareSplitHorizontal />,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replaced a number of the MUI icons with Lucide icons where it was a 1-1 replacement.

}, [zedState, classes.loadBar]);

const inputRef = useRef<HTMLInputElement>();
const inputRef = useRef<HTMLInputElement>(null);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a type change with React 19.

@@ -1,6 +1,6 @@
import { CustomCell, CustomRenderer, GridCellKind } from "@glideapps/glide-data-grid";
import TextField from "@material-ui/core/TextField";
import React, { MutableRefObject, useEffect, useRef } from "react";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MutableRefObject is deprecated in favor of RefObject. I made this change in a handful of places.

Comment on lines +434 to +435
{props.diff ? (
/* @ts-expect-error Monaco's types are screwy */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This had bugged me - typescript wasn't able to be aware of the types of the two flavors of editor because we weren't being explicit about it. It also meant we had to mess with key props, which made things messier.

Joke's on me, though, cuz the official react bindings for the monaco editor are typed in a screwy way for react 19.

Comment on lines -11 to -12
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to get rid of fontawesome entirely which is exciting

"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": ["src/spicedb-common/protodefs", "examples", "public"],
"experimentalSortImports": {
"sortImports": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer experimental :D

alecmerdler
alecmerdler previously approved these changes Feb 25, 2026
@tstirrat15 tstirrat15 merged commit 31f0734 into main Feb 25, 2026
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants