Skip to content

Commit f32959f

Browse files
committed
update deps and fix types
1 parent 701ec6c commit f32959f

File tree

14 files changed

+600
-560
lines changed

14 files changed

+600
-560
lines changed

examples/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@repo/logger": "workspace:*",
1919
"body-parser": "^1.20.3",
2020
"cors": "^2.8.5",
21-
"express": "^4.21.1",
21+
"express": "^4.21.2",
2222
"morgan": "^1.10.0"
2323
},
2424
"devDependencies": {

examples/nextjs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
},
1313
"dependencies": {
1414
"@repo/shared": "workspace:*",
15-
"next": "^15.0.3",
15+
"next": "^15.0.4",
1616
"nextjs-darkmode": "^1.0.4",
1717
"nextjs-themes": "^4.0.3",
18-
"react": "^18.3.1",
19-
"react-dom": "^18.3.1",
18+
"react": "^19.0.0",
19+
"react-dom": "^19.0.0",
2020
"react-mouse-trails": "^0.0.4",
2121
"react18-loaders": "workspace:*",
2222
"webgl-generative-particles": "^0.0.1"
2323
},
2424
"devDependencies": {
25-
"@next/eslint-plugin-next": "^15.0.3",
25+
"@next/eslint-plugin-next": "^15.0.4",
2626
"@repo/eslint-config": "workspace:*",
2727
"@repo/typescript-config": "workspace:*",
2828
"@types/node": "^22.10.1",
29-
"@types/react": "^18.3.13",
30-
"@types/react-dom": "^18.3.1",
29+
"@types/react": "^19.0.1",
30+
"@types/react-dom": "^19.0.1",
3131
"typescript": "^5.7.2"
3232
}
3333
}

examples/nextjs/src/app/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import { Inter } from "next/font/google";
77
import Link from "next/link";
88
import { MouseTrail } from "react-mouse-trails";
99
import { Particles } from "webgl-generative-particles/react";
10+
import { ReactNode } from "react";
1011

1112
const inter = Inter({ subsets: ["latin"] });
1213

1314
/** Root layout. */
14-
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
15+
export default function RootLayout({ children }: { children: React.ReactNode }): ReactNode {
1516
return (
1617
<html lang="en" suppressHydrationWarning>
1718
<body className={inter.className}>

examples/nextjs/src/app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import MyButton from "./button";
22
import { LandingPage } from "@repo/shared/dist/server";
33
import { Demo } from "@repo/shared";
4+
import { ReactNode } from "react";
45

56
export const metadata = {
67
title: "React 18 Loaders",
78
};
89

910
/** next.js landing page */
10-
export default function Page(): JSX.Element {
11+
export default function Page(): ReactNode {
1112
return (
1213
<LandingPage title="Next.js Example">
1314
<Demo />

examples/remix/app/root.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import styles from "./styles.css";
55
import { Layout } from "@repo/shared/dist/server";
66
import { Core } from "nextjs-darkmode";
77
import { Header } from "@repo/shared";
8+
import { ReactNode } from "react";
89

910
/** Page metadata */
1011
export const meta: MetaFunction = () => [
@@ -19,7 +20,7 @@ export const meta: MetaFunction = () => [
1920
export const links: LinksFunction = () => [{ rel: "stylesheet", href: styles }];
2021

2122
/** Remix app root */
22-
export default function App(): JSX.Element {
23+
export default function App(): ReactNode {
2324
return (
2425
<html lang="en">
2526
<head>

examples/remix/app/routes/_index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Demo } from "@repo/shared";
22
import { LandingPage } from "@repo/shared/dist/server";
3+
import { ReactNode } from "react";
34

45
/** Remix App */
5-
export default function Index(): JSX.Element {
6+
export default function Index(): ReactNode {
67
return (
78
<LandingPage title="Remix Example">
89
<Demo />

examples/remix/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
"@vercel/analytics": "^1.4.1",
1919
"@vercel/remix-entry-server": "^0.1.1",
2020
"nextjs-darkmode": "^1.0.4",
21-
"react": "^18.3.1",
22-
"react-dom": "^18.3.1",
21+
"react": "^19.0.0",
22+
"react-dom": "^19.0.0",
2323
"react18-loaders": "workspace:*",
2424
"react18-themes": "^3.2.0"
2525
},
2626
"devDependencies": {
2727
"@remix-run/dev": "^2.15.0",
2828
"@repo/eslint-config": "workspace:*",
2929
"@repo/typescript-config": "workspace:*",
30-
"@types/react": "^18.3.13",
31-
"@types/react-dom": "^18.3.1",
30+
"@types/react": "^19.0.1",
31+
"@types/react-dom": "^19.0.1",
3232
"typescript": "^5.7.2"
3333
},
3434
"engines": {

examples/vite/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
"dependencies": {
1414
"@repo/shared": "workspace:*",
1515
"nextjs-darkmode": "^1.0.4",
16-
"react": "^18.3.1",
17-
"react-dom": "^18.3.1",
16+
"react": "^19.0.0",
17+
"react-dom": "^19.0.0",
1818
"react-mouse-trails": "^0.0.4",
1919
"react18-loaders": "workspace:*",
2020
"react18-themes": "^3.2.0"
2121
},
2222
"devDependencies": {
2323
"@repo/eslint-config": "workspace:*",
2424
"@repo/typescript-config": "workspace:*",
25-
"@types/react": "^18.3.13",
26-
"@types/react-dom": "^18.3.1",
25+
"@types/react": "^19.0.1",
26+
"@types/react-dom": "^19.0.1",
2727
"@vitejs/plugin-react": "^4.3.4",
2828
"typescript": "^5.7.2",
2929
"vite": "^6.0.3"

examples/vite/src/app/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback } from "react";
1+
import React, { ReactNode, useCallback } from "react";
22
import "./styles.css";
33
import { Bars1 } from "react18-loaders/dist/server";
44
import { LoaderContainer, useLoader } from "react18-loaders";
@@ -7,7 +7,7 @@ import { Core } from "nextjs-darkmode";
77
import { Demo, Header } from "@repo/shared";
88

99
/** Vite App */
10-
function App(): JSX.Element {
10+
function App(): ReactNode {
1111
const { setLoading } = useLoader();
1212
const handleClick = useCallback(() => setLoading(true), []);
1313
return (

lib/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@
2626
"devDependencies": {
2727
"@repo/eslint-config": "workspace:*",
2828
"@repo/typescript-config": "workspace:*",
29-
"@testing-library/react": "^16.0.1",
29+
"@testing-library/react": "^16.1.0",
3030
"@types/node": "^22.10.1",
31-
"@types/react": "^18.3.13",
32-
"@types/react-dom": "^18.3.1",
31+
"@types/react": "^19.0.1",
32+
"@types/react-dom": "^19.0.1",
3333
"@vitejs/plugin-react": "^4.3.4",
3434
"@vitest/coverage-v8": "^2.1.8",
3535
"esbuild-plugin-rdi": "^0.0.0",
3636
"esbuild-plugin-react18": "0.2.5",
3737
"esbuild-plugin-react18-css": "^0.0.4",
3838
"jsdom": "^25.0.1",
39-
"react": "^18.3.1",
40-
"react-dom": "^18.3.1",
39+
"react": "^19.0.0",
40+
"react-dom": "^19.0.0",
4141
"tsup": "^8.3.5",
4242
"typescript": "^5.7.2",
43-
"vite-tsconfig-paths": "^5.1.3",
43+
"vite-tsconfig-paths": "^5.1.4",
4444
"vitest": "^2.1.8"
4545
},
4646
"dependencies": {

0 commit comments

Comments
 (0)