Skip to content

Commit 8b79992

Browse files
fix(deps): 🔗 update all dependencies (#18)
* fix(deps): 🔗 update all dependencies * fix: 🐛 await params nextjs --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alexander Liu <[email protected]>
1 parent dabcf25 commit 8b79992

File tree

5 files changed

+1501
-913
lines changed

5 files changed

+1501
-913
lines changed

app/docs/[[...slug]]/page.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { notFound } from "next/navigation";
66
import { source } from "@/app/source";
77
import { metadataImage } from "@/lib/metadata";
88

9-
export default async function Page({
10-
params,
11-
}: {
12-
params: { slug?: string[] };
9+
export default async function Page(props: {
10+
params: Promise<{ slug?: string[] }>;
1311
}) {
12+
const params = await props.params;
1413
const page = source.getPage(params.slug);
1514

1615
if (!page) notFound();
@@ -39,7 +38,8 @@ export async function generateStaticParams() {
3938
return source.generateParams();
4039
}
4140

42-
export function generateMetadata({ params }: { params: { slug?: string[] } }) {
41+
export async function generateMetadata(props: { params: Promise<{ slug?: string[] }> }) {
42+
const params = await props.params;
4343
const page = source.getPage(params.slug);
4444
if (!page) notFound();
4545

app/docs/layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { baseOptions } from "../layout.config";
88
import { source } from "@/app/source";
99
import { categories } from "@/lib/categories";
1010

11-
export function generateViewport() {
12-
const userAgent = headers().get("user-agent");
11+
export async function generateViewport() {
12+
const userAgent = (await headers()).get("user-agent");
1313

1414
return userAgent?.includes("Discordbot")
1515
? {

next-env.d.ts

+1-1
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/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,37 @@
1616
"prepare": "husky"
1717
},
1818
"dependencies": {
19-
"fumadocs-core": "14.4.2",
20-
"fumadocs-mdx": "11.1.1",
21-
"fumadocs-twoslash": "2.0.1",
22-
"fumadocs-ui": "14.4.2",
23-
"lucide-react": "0.447.0",
24-
"next": "14.2.14",
25-
"react": "18.3.1",
26-
"react-dom": "18.3.1"
19+
"fumadocs-core": "14.6.1",
20+
"fumadocs-mdx": "11.1.2",
21+
"fumadocs-twoslash": "2.0.2",
22+
"fumadocs-ui": "14.6.1",
23+
"lucide-react": "0.468.0",
24+
"next": "15.1.1",
25+
"react": "19.0.0",
26+
"react-dom": "19.0.0"
2727
},
2828
"devDependencies": {
2929
"@biomejs/biome": "1.9.4",
30-
"@commitlint/cli": "19.5.0",
31-
"@commitlint/config-conventional": "19.5.0",
30+
"@commitlint/cli": "19.6.1",
31+
"@commitlint/config-conventional": "19.6.0",
3232
"@commitlint/types": "19.5.0",
33-
"@fumadocs/cli": "0.0.3",
33+
"@fumadocs/cli": "0.0.4",
3434
"@opennextjs/cloudflare": "0.2.1",
3535
"@types/mdx": "2.0.13",
36-
"@types/node": "22.7.4",
37-
"@types/react": "18.3.11",
38-
"@types/react-dom": "18.3.0",
39-
"@typescript-eslint/eslint-plugin": "8.8.0",
36+
"@types/node": "22.10.2",
37+
"@types/react": "19.0.2",
38+
"@types/react-dom": "19.0.2",
39+
"@typescript-eslint/eslint-plugin": "8.18.1",
4040
"autoprefixer": "10.4.20",
4141
"clsx": "2.1.1",
4242
"cz-conventional-changelog": "3.3.0",
4343
"devmoji": "2.3.0",
44-
"husky": "9.1.6",
45-
"lint-staged": "15.2.10",
46-
"postcss": "8.4.47",
47-
"tailwindcss": "3.4.15",
48-
"typescript": "5.5.4",
49-
"wrangler": "3.80.0"
44+
"husky": "9.1.7",
45+
"lint-staged": "15.2.11",
46+
"postcss": "8.4.49",
47+
"tailwindcss": "3.4.17",
48+
"typescript": "5.7.2",
49+
"wrangler": "3.96.0"
5050
},
51-
"packageManager": "pnpm@9.4.0"
51+
"packageManager": "pnpm@9.15.0"
5252
}

0 commit comments

Comments
 (0)