Skip to content

Commit ae1b1f5

Browse files
Merge pull request #679 from aXenDeveloper/react_19.2_next_canary_update
perf: Update to React 19.2, Next.js canary
2 parents 157114f + fe4e785 commit ae1b1f5

File tree

23 files changed

+3551
-3418
lines changed

23 files changed

+3551
-3418
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build, Lint & Test
22

33
on:
44
pull_request:
5-
branches: '*'
5+
branches: "*"
66
types:
77
- opened
88
- edited
@@ -22,13 +22,13 @@ jobs:
2222
- uses: pnpm/action-setup@v4
2323
name: Install pnpm
2424
with:
25-
version: 10.15.0
25+
version: 10.18.0
2626

2727
- name: Install Node.js
2828
uses: actions/setup-node@v4
2929
with:
3030
node-version-file: .nvmrc
31-
cache: 'pnpm'
31+
cache: "pnpm"
3232

3333
- name: Install dependencies
3434
run: pnpm install --frozen-lockfile

.github/workflows/bump_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- uses: pnpm/action-setup@v4
5353
name: Install pnpm
5454
with:
55-
version: 10.15.0
55+
version: 10.18.0
5656

5757
- name: Install Node.js
5858
uses: actions/setup-node@v4

apps/api/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@
1414
"lint:fix": "eslint . --fix"
1515
},
1616
"dependencies": {
17-
"@hono/zod-openapi": "^1.1.0",
18-
"@hono/zod-validator": "^0.7.2",
17+
"@hono/zod-openapi": "^1.1.3",
18+
"@hono/zod-validator": "^0.7.3",
1919
"@vitnode/core": "workspace:*",
20-
"drizzle-kit": "^0.31.4",
21-
"drizzle-orm": "^0.44.5",
22-
"hono": "^4.9.6",
23-
"next-intl": "^4.3.6",
24-
"react": "^19.1.1",
25-
"react-dom": "^19.1.1",
26-
"use-intl": "^4.3.6",
27-
"zod": "^4.1.5"
20+
"drizzle-kit": "^0.31.5",
21+
"drizzle-orm": "^0.44.6",
22+
"hono": "^4.9.9",
23+
"next-intl": "^4.3.9",
24+
"react": "^19.2.0",
25+
"react-dom": "^19.2.0",
26+
"use-intl": "^4.3.9",
27+
"zod": "^4.1.11"
2828
},
2929
"devDependencies": {
30-
"@hono/node-server": "^1.19.1",
31-
"@react-email/components": "^0.5.2",
32-
"@types/node": "^24.3.1",
33-
"@types/react": "^19.1.12",
34-
"@types/react-dom": "^19.1.9",
30+
"@hono/node-server": "^1.19.5",
31+
"@react-email/components": "^0.5.5",
32+
"@types/node": "^24.6.2",
33+
"@types/react": "^19.2.0",
34+
"@types/react-dom": "^19.2.0",
3535
"@vitnode/config": "workspace:*",
36-
"dotenv": "^17.2.2",
36+
"dotenv": "^17.2.3",
3737
"eslint": "^9.36.0",
38-
"react-email": "^4.2.8",
38+
"react-email": "^4.2.12",
3939
"tsc-alias": "^1.8.16",
40-
"tsx": "^4.20.5",
41-
"typescript": "^5.9.2"
40+
"tsx": "^4.20.6",
41+
"typescript": "^5.9.3"
4242
}
4343
}

apps/docs/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const withBundleAnalyzer = nextAnalyzer({
1212
const nextConfig: NextConfig = {
1313
experimental: {
1414
inlineCss: true,
15-
reactCompiler: process.env.ANALYZE !== "true",
15+
ppr: "incremental",
1616
},
1717
};
1818

apps/docs/package.json

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,47 +22,46 @@
2222
"lint:fix": "eslint . --fix"
2323
},
2424
"dependencies": {
25-
"@hono/zod-openapi": "^1.1.0",
26-
"@hono/zod-validator": "^0.7.2",
25+
"@hono/zod-openapi": "^1.1.3",
26+
"@hono/zod-validator": "^0.7.3",
2727
"@vitnode/blog": "workspace:*",
2828
"@vitnode/core": "workspace:*",
29-
"babel-plugin-react-compiler": "19.1.0-rc.3",
30-
"drizzle-kit": "^0.31.4",
31-
"drizzle-orm": "^0.44.5",
32-
"fumadocs-core": "^15.7.10",
33-
"fumadocs-mdx": "^11.9.0",
34-
"fumadocs-ui": "^15.7.10",
35-
"hono": "^4.9.6",
36-
"lucide-react": "^0.542.0",
37-
"motion": "^12.23.12",
38-
"next": "^15.5.2",
39-
"next-intl": "^4.3.6",
29+
"drizzle-kit": "^0.31.5",
30+
"drizzle-orm": "^0.44.6",
31+
"fumadocs-core": "^15.8.3",
32+
"fumadocs-mdx": "^12.0.2",
33+
"fumadocs-ui": "^15.8.3",
34+
"hono": "^4.9.9",
35+
"lucide-react": "^0.544.0",
36+
"motion": "^12.23.22",
37+
"next": "15.6.0-canary.41",
38+
"next-intl": "^4.3.9",
4039
"node-cron": "^4.2.1",
41-
"react": "^19.1.1",
42-
"react-dom": "^19.1.1",
43-
"react-hook-form": "^7.62.0",
40+
"react": "^19.2.0",
41+
"react-dom": "^19.2.0",
42+
"react-hook-form": "^7.63.0",
4443
"react-use": "^17.6.0",
4544
"sonner": "^2.0.7"
4645
},
4746
"devDependencies": {
48-
"@next/bundle-analyzer": "^15.5.2",
49-
"@playwright/test": "^1.55.0",
50-
"@react-email/components": "^0.5.2",
51-
"@tailwindcss/postcss": "^4.1.13",
47+
"@next/bundle-analyzer": "^15.5.4",
48+
"@playwright/test": "^1.55.1",
49+
"@react-email/components": "^0.5.5",
50+
"@tailwindcss/postcss": "^4.1.14",
5251
"@types/mdx": "^2.0.13",
53-
"@types/node": "^24.3.1",
54-
"@types/react": "^19.1.12",
55-
"@types/react-dom": "^19.1.9",
52+
"@types/node": "^24.6.2",
53+
"@types/react": "^19.2.0",
54+
"@types/react-dom": "^19.2.0",
5655
"@vitnode/config": "workspace:*",
5756
"class-variance-authority": "^0.7.1",
5857
"eslint": "^9.36.0",
5958
"postcss": "^8.5.6",
60-
"react-email": "^4.2.8",
61-
"shiki": "^3.12.2",
62-
"tailwindcss": "^4.1.13",
63-
"tw-animate-css": "^1.3.8",
64-
"typescript": "^5.9.2",
65-
"use-intl": "^4.3.6",
66-
"zod": "^4.1.5"
59+
"react-email": "^4.2.12",
60+
"shiki": "^3.13.0",
61+
"tailwindcss": "^4.1.14",
62+
"tw-animate-css": "^1.4.0",
63+
"typescript": "^5.9.3",
64+
"use-intl": "^4.3.9",
65+
"zod": "^4.1.11"
6766
}
6867
}

apps/docs/src/app/[locale]/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const geistMono = Geist_Mono({
2626
export const generateMetadata = (): Metadata =>
2727
generateMetadataRootLayout(vitNodeConfig);
2828

29-
export const generateStaticParams = () =>
30-
vitNodeConfig.i18n.locales.map(locale => ({ locale: locale.code }));
29+
// export const generateStaticParams = () =>
30+
// vitNodeConfig.i18n.locales.map(locale => ({ locale: locale.code }));
3131

3232
export default async function LocaleLayout(props: RootLayoutProps) {
3333
const { locale } = await props.params;

apps/docs/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import "./global.css";
22

3+
export const experimental_ppr = true;
4+
35
export default async function RootLayout({
46
children,
57
}: {

apps/docs/src/components/animated-beam/animated-beam.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-effect */
12
"use client";
23

34
import { cn } from "@vitnode/core/lib/utils";
@@ -91,6 +92,7 @@ export const AnimatedBeam = ({
9192
// Initialize ResizeObserver
9293
const resizeObserver = new ResizeObserver(entries => {
9394
// For all entries, recalculate the path
95+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
9496
for (const _entry of entries) {
9597
updatePath();
9698
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
"test:e2e": "turbo test:e2e"
1818
},
1919
"devDependencies": {
20-
"@types/node": "^24.3.1",
20+
"@types/node": "^24.6.2",
2121
"@vitnode/config": "workspace:*",
2222
"prettier": "^3.6.2",
2323
"prettier-plugin-tailwindcss": "^0.6.14",
24-
"tsx": "^4.20.5",
25-
"turbo": "^2.5.6",
26-
"typescript": "^5.9.2",
27-
"zod": "^4.1.5"
24+
"tsx": "^4.20.6",
25+
"turbo": "^2.5.8",
26+
"typescript": "^5.9.3",
27+
"zod": "^4.1.11"
2828
},
2929
"engines": {
3030
"node": ">=22"
3131
},
32-
"packageManager": "pnpm@10.15.0",
32+
"packageManager": "pnpm@10.18.0",
3333
"workspaces": [
3434
"apps/*",
3535
"packages/*",

packages/config/eslint.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ export default [
161161
],
162162
message: "Please import from `vitnode-frontend/navigation` instead.",
163163
},
164+
{
165+
name: "next/router",
166+
importNames: ["useRouter"],
167+
message:
168+
"This import is from Page router. Please import from `vitnode-frontend/navigation` instead.",
169+
},
164170
],
165171
},
166172
},

0 commit comments

Comments
 (0)