From 1e704530cea02cc5b1b5a9049da432f232f0276f Mon Sep 17 00:00:00 2001
From: Tom van der Lee <tom@vanderlee.io>
Date: Fri, 3 Apr 2026 15:17:13 +0200
Subject: Upgraded libraries
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

  Python:
  - Migrate to uv for dependency management; consolidate setup.cfg and requirements files into pyproject.toml (PEP 621)
  - Upgrade websockets 10 → 16; update import to ClientConnection and
    remove deprecated WebSocketClientProtocol
  - Fix PubSub.history classmethod/property combo removed in Python 3.13
  - Set requires-python = ">=3.10" (minimum for match statement)

  JavaScript:
  - Upgrade React 18 → 19, Vite 5 → 8, TypeScript 5 → 6 and all
    other frontend dependencies to latest
  - Replace ReactDOM.render with createRoot (removed in React 18)
  - Swap react-json-view for @microlink/react-json-view (React 19 support)

  CI:
  - Switch GitHub Actions build to uv and --frozen-lockfile yarn install
---
 src/index.tsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
index c1a4211..d239501 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,5 +1,5 @@
 import * as React from "react";
-import * as ReactDOM from "react-dom";
+import { createRoot } from "react-dom/client";
 import App from "~/components/App/App";
 
 import "~/index.scss";
@@ -10,11 +10,10 @@ import localizedFormat from "dayjs/plugin/localizedFormat";
 import ConnectionProvider from "~/contexts/Connection";
 dayjs.extend(localizedFormat);
 
-ReactDOM.render(
+createRoot(document.getElementById("root")).render(
   <SettingsProvider>
     <ConnectionProvider>
       <App />
     </ConnectionProvider>
-  </SettingsProvider>,
-  document.getElementById("root")
+  </SettingsProvider>
 );
-- 
cgit v1.2.3

