Skip to content

Commit c3760f4

Browse files
committed
chore: update next 14 -> 15
fix: prettier error feat: update readme.md
1 parent 174fa81 commit c3760f4

File tree

123 files changed

+2293
-953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+2293
-953
lines changed

.pnp.cjs

Lines changed: 1195 additions & 499 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/extensions.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"recommendations": [
3-
"arcanis.vscode-zipfs",
4-
"dbaeumer.vscode-eslint",
5-
"esbenp.prettier-vscode"
6-
]
2+
"recommendations": ["arcanis.vscode-zipfs", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
73
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

README.md

Lines changed: 9 additions & 9 deletions

app/(client)/(main)/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default function MainPage() {
22
return (
33
<main className="flex min-h-screen w-full flex-col items-center p-8">
4-
<h1 className="mb-4 text-5xl font-bold">Welcome to Next.js 14</h1>
5-
<p className="text-lg">Next 14 + TypeScript + TailwindCSS</p>
4+
<h1 className="mb-4 text-5xl font-bold">Welcome to Next.js 15</h1>
5+
<p className="text-lg">Next 15 + TypeScript + TailwindCSS</p>
66
</main>
77
);
88
}

app/(client)/example/dynamic/[id]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export default function ExampleDynamicPage({ params }: { params: { id: string } }) {
1+
export default async function ExampleDynamicPage(props: { params: Promise<{ id: string }> }) {
2+
const params = await props.params;
23
return (
34
<main className="flex min-h-screen flex-col items-center p-8">
45
<div className="flex flex-col gap-y-4">

app/(client)/example/query-string/page.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
export default function QueryStringPage({
2-
searchParams,
3-
}: {
4-
searchParams?: { [key: string]: string | string[] | undefined };
1+
export default async function QueryStringPage(props: {
2+
searchParams?: Promise<{ [key: string]: string | string[] | undefined }>;
53
}) {
4+
const searchParams = await props.searchParams;
65
return (
76
<main className="flex min-h-screen flex-col items-center p-8">
87
{searchParams && (

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const nextConfig = {
77
compiler: {
88
removeConsole: false,
99
},
10+
experimental: {
11+
reactCompiler: true,
12+
},
1013
};
1114

1215
module.exports = nextConfig;

package.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
"@tanstack/react-query": "^5.29.2",
2525
"@tanstack/react-query-devtools": "^5.29.2",
2626
"@tanstack/react-query-next-experimental": "^5.29.2",
27+
"babel-plugin-react-compiler": "19.0.0-beta-8a03594-20241020",
2728
"classnames": "^2.5.1",
2829
"mongoose": "^8.3.1",
29-
"next": "^14.2.5",
30+
"next": "^15.0.0",
3031
"postcss": "^8.4.38",
31-
"react": "^18.3.1",
32-
"react-dom": "^18.3.1",
32+
"react": "19.0.0-rc-65a56d0e-20241020",
33+
"react-dom": "19.0.0-rc-65a56d0e-20241020",
3334
"tailwindcss": "^3.4.3",
3435
"zustand": "^4.5.2"
3536
},
@@ -38,22 +39,22 @@
3839
"@testing-library/react": "^15.0.1",
3940
"@types/jest": "^29.5.12",
4041
"@types/node": "^20.12.7",
41-
"@types/react": "^18.2.77",
42-
"@types/react-dom": "^18.2.25",
42+
"@types/react": "npm:types-react@19.0.0-rc.1",
43+
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
4344
"@typescript-eslint/eslint-plugin": "^7.6.0",
4445
"@typescript-eslint/parser": "^7.6.0",
4546
"eslint": "^8.57.0",
4647
"eslint-config-airbnb-base": "^15.0.0",
4748
"eslint-config-airbnb-typescript": "^18.0.0",
48-
"eslint-config-next": "^14.2.5",
49+
"eslint-config-next": "^15.0.0",
4950
"eslint-config-prettier": "^9.1.0",
5051
"eslint-plugin-import": "^2.29.1",
5152
"eslint-plugin-jest": "^28.2.0",
5253
"eslint-plugin-jest-dom": "^5.2.0",
5354
"eslint-plugin-jest-formatting": "^3.1.0",
5455
"eslint-plugin-prettier": "^5.1.3",
55-
"eslint-plugin-react": "^7.34.1",
56-
"eslint-plugin-react-hooks": "^4.6.0",
56+
"eslint-plugin-react": "^7.37.1",
57+
"eslint-plugin-react-hooks": "^5.0.0",
5758
"eslint-plugin-simple-import-sort": "^12.0.0",
5859
"eslint-plugin-tailwindcss": "^3.15.1",
5960
"eslint-plugin-testing-library": "^6.2.0",
@@ -63,5 +64,9 @@
6364
"prettier": "^3.2.5",
6465
"typescript": "^5.4.5"
6566
},
66-
"packageManager": "yarn@4.3.1"
67+
"packageManager": "yarn@4.3.1",
68+
"resolutions": {
69+
"@types/react": "npm:types-react@19.0.0-rc.1",
70+
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
71+
}
6772
}

src/components/ui/global-nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function GlobalNav() {
44
return (
55
<nav className="sticky top-0 grid h-16 w-full grid-cols-2 items-center justify-center bg-[hsla(0,0%,100%,.8)] px-8 py-4 shadow-bottom backdrop-blur-sm backdrop-saturate-150">
66
<div className="flex justify-start text-2xl text-gray-900">
7-
<Link href="/">Next 14</Link>
7+
<Link href="/">Next 15</Link>
88
</div>
99

1010
<div className="flex justify-end gap-x-2 text-gray-500">

tsconfig.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
"@libs/*": ["src/libs/*"],
3939
"@stores/*": ["src/stores/*"],
4040
"@styles/*": ["src/styles/*"],
41-
"@components/*": ["src/components/*"],
41+
"@components/*": ["src/components/*"]
4242
},
4343
"plugins": [
4444
{
45-
"name": "next",
46-
},
47-
],
45+
"name": "next"
46+
}
47+
]
4848
},
4949
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
50-
"exclude": ["./out/**/*", "./node_modules/**/*"],
50+
"exclude": ["./out/**/*", "./node_modules/**/*"]
5151
}

0 commit comments

Comments
 (0)