Skip to content

Commit 7b39b0b

Browse files
jakehobbsclaude
andauthored
chore: bump next.js, minimatch, and lerna (#2467)
* fix: upgrade Next.js 14 → 15.5.15 to resolve high-severity DoS vulnerability (Dependabot #361, #362, #363) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: bump minimatch to patched versions and upgrade lerna to v9 Upgrades lerna from v8 to v9 which brings in nx 22.x, eliminating pinned vulnerable minimatch versions. All transitive minimatch dependencies now resolve to patched releases. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: fmt --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ba89da6 commit 7b39b0b

7 files changed

Lines changed: 2155 additions & 1348 deletions

File tree

examples/alchemy-privy-integration-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@account-kit/privy-integration": "*",
1313
"@privy-io/react-auth": "^3.3.0",
1414
"@solana-program/memo": "^0.9.0",
15-
"next": "^14.0.0",
15+
"next": "^15.5.15",
1616
"react": "^18.2.0",
1717
"react-dom": "^18.2.0",
1818
"viem": "^2.45.0"
@@ -22,7 +22,7 @@
2222
"@types/react": "^18.2.0",
2323
"@types/react-dom": "^18.2.0",
2424
"eslint": "^8.0.0",
25-
"eslint-config-next": "^14.0.0",
25+
"eslint-config-next": "^15.5.15",
2626
"typescript": "^5.0.0"
2727
}
2828
}

examples/ui-demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"clsx": "^2.1.1",
4343
"dedent": "^1.5.3",
4444
"lucide-react": "^0.394.0",
45-
"next": "14.2.29",
45+
"next": "^15.5.15",
4646
"prettier": "3.3.3",
4747
"qrcode.react": "^4.2.0",
4848
"react": "^18",
@@ -61,7 +61,7 @@
6161
"@types/react-dom": "^18",
6262
"@types/react-syntax-highlighter": "^15.5.13",
6363
"eslint": "^8",
64-
"eslint-config-next": "14.2.3",
64+
"eslint-config-next": "^15.5.15",
6565
"postcss": "^8",
6666
"tailwind-scrollbar": "^3.1.0",
6767
"tailwindcss": "^3.4.1",

examples/ui-demo/src/app/api/rpc/[...routes]/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { env } from "../../../../../env.mjs";
44

55
export async function POST(
66
req: Request,
7-
{ params }: { params: { routes: string[] } },
7+
{ params }: { params: Promise<{ routes: string[] }> },
88
) {
9+
const { routes } = await params;
910
const body = await req.text();
1011

1112
const headers: Record<string, string> = {
@@ -18,7 +19,7 @@ export async function POST(
1819
headers[key] = value;
1920
});
2021

21-
const res = await fetch(env.ALCHEMY_API_URL + `/${params.routes.join("/")}`, {
22+
const res = await fetch(env.ALCHEMY_API_URL + `/${routes.join("/")}`, {
2223
method: "POST",
2324
headers: {
2425
...headers,

examples/ui-demo/src/app/layout.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ export const metadata: Metadata = {
2020
description: "Protected by Alchemy",
2121
};
2222

23-
export default function RootLayout({
23+
export default async function RootLayout({
2424
children,
2525
}: Readonly<{
2626
children: React.ReactNode;
2727
}>) {
28+
const headerStore = await headers();
2829
const initialState = cookieToInitialState(
2930
alchemyConfig(),
30-
headers().get("cookie") ?? undefined,
31+
headerStore.get("cookie") ?? undefined,
3132
);
3233

33-
const initialConfig = cookieToInitialConfig(headers().get("cookie"));
34+
const initialConfig = cookieToInitialConfig(headerStore.get("cookie"));
3435

3536
const classes = initialConfig
3637
? generateClassesForRoot(initialConfig)

examples/ui-demo/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
],
2020
"paths": {
2121
"@/*": ["./src/*"]
22-
}
22+
},
23+
"target": "ES2017"
2324
},
2425
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
2526
"exclude": ["node_modules"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"is-ci": "^3.0.1",
7676
"js-yaml": "^4.1.0",
7777
"jsdom": "^25.0.1",
78-
"lerna": "^8.0.2",
78+
"lerna": "^9.0.7",
7979
"lint-staged": "^13.2.2",
8080
"markdownlint": "^0.38.0",
8181
"mdx2vast": "^0.3.0",

0 commit comments

Comments
 (0)