Skip to content

Commit 0d15a39

Browse files
committed
upgrade deps and fix types
1 parent 9cce984 commit 0d15a39

File tree

13 files changed

+583
-526
lines changed

13 files changed

+583
-526
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
node-version: 20
2323
- run: npm i -g pnpm && pnpm i
2424
name: Install dependencies
25+
- run: git stash --include-untracked
26+
name: clean up working directory
2527
- run: npx @turbo/codemod update . && pnpm update --latest -r
2628
name: Update dependencies
2729
- run: pnpm build

examples/nextjs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
"@repo/logger": "workspace:*",
1616
"@repo/shared": "workspace:*",
1717
"esbuild-plugin-react18": "workspace:*",
18-
"next": "^15.0.3",
18+
"next": "^15.0.4",
1919
"nextjs-themes": "^4.0.3",
20-
"react": "^18.3.1",
21-
"react-dom": "^18.3.1",
20+
"react": "^19.0.0",
21+
"react-dom": "^19.0.0",
2222
"react18-loaders": "^1.1.3"
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
@@ -5,11 +5,12 @@ import { ThemeSwitcher } from "nextjs-themes";
55
import { Layout } from "@repo/shared/dist/server";
66
import { GlobalLoader, Header } from "@repo/shared";
77
import { Inter } from "next/font/google";
8+
import { ReactNode } from "react";
89

910
const inter = Inter({ subsets: ["latin"] });
1011

1112
/** Root layout. */
12-
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
13+
export default function RootLayout({ children }: { children: React.ReactNode }): ReactNode {
1314
return (
1415
<html lang="en">
1516
<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
@@ -3,6 +3,7 @@ import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "@re
33
import { Analytics } from "@vercel/analytics/react";
44
import styles from "./styles.css";
55
import { Layout } from "@repo/shared/dist/server";
6+
import { ReactNode } from "react";
67

78
/** Page metadata */
89
export const meta: MetaFunction = () => [
@@ -17,7 +18,7 @@ export const meta: MetaFunction = () => [
1718
export const links: LinksFunction = () => [{ rel: "stylesheet", href: styles }];
1819

1920
/** Remix app root */
20-
export default function App(): JSX.Element {
21+
export default function App(): ReactNode {
2122
return (
2223
<html lang="en">
2324
<head>

examples/remix/app/routes/_index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import { ReactNode } from "react";
2+
13
/** Remix App */
2-
export default function Index(): JSX.Element {
4+
export default function Index(): ReactNode {
35
return (
46
<div className="container">
57
<h1 className="title">

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
"esbuild-plugin-react18": "workspace:*",
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": "^1.1.3",
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,16 +13,16 @@
1313
"dependencies": {
1414
"@repo/shared": "workspace:*",
1515
"esbuild-plugin-react18": "workspace:*",
16-
"react": "^18.3.1",
17-
"react-dom": "^18.3.1",
16+
"react": "^19.0.0",
17+
"react-dom": "^19.0.0",
1818
"react18-loaders": "^1.1.3",
1919
"react18-themes": "^3.2.0"
2020
},
2121
"devDependencies": {
2222
"@repo/eslint-config": "workspace:*",
2323
"@repo/typescript-config": "workspace:*",
24-
"@types/react": "^18.3.13",
25-
"@types/react-dom": "^18.3.1",
24+
"@types/react": "^19.0.1",
25+
"@types/react-dom": "^19.0.1",
2626
"@vitejs/plugin-react": "^4.3.4",
2727
"typescript": "^5.7.2",
2828
"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,10 +1,10 @@
1-
import React, { useCallback } from "react";
1+
import React, { ReactNode, useCallback } from "react";
22
import "./styles.css";
33
import { Bars1, Bars2, Dots1, Dots2 } from "react18-loaders/dist/server";
44
import { LoaderContainer, useLoader } from "react18-loaders";
55

66
/** Vite App */
7-
function App(): JSX.Element {
7+
function App(): ReactNode {
88
const { setLoading } = useLoader();
99
const handleClick = useCallback(() => setLoading(true), []);
1010
return (

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"tiny-glob": "^0.2.9",
3434
"tsup": "^8.3.5",
3535
"typescript": "^5.7.2",
36-
"vite-tsconfig-paths": "^5.1.3",
36+
"vite-tsconfig-paths": "^5.1.4",
3737
"vitest": "^2.1.8"
3838
},
3939
"peerDependencies": {

0 commit comments

Comments
 (0)