Skip to content

Commit 1718ca8

Browse files
Bump next from 14.2.14 to 15.0.2 (#999)
Bumps [next](https://github.com/vercel/next.js) from 14.2.14 to 15.0.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vercel/next.js/releases">next's releases</a>.</em></p> <blockquote> <h2>v15.0.2</h2> <h3>Core Changes</h3> <ul> <li>Read page name from work store in server module map proxy: <a href="https://redirect.github.com/vercel/next.js/issues/71669">#71669</a></li> <li>codemod: should not transform when param is not used: <a href="https://redirect.github.com/vercel/next.js/issues/71664">#71664</a></li> <li>[dynamicIO] complete refactor to prerender: <a href="https://redirect.github.com/vercel/next.js/issues/71687">#71687</a></li> <li>fix: metadata image route normalize path posix for windows: <a href="https://redirect.github.com/vercel/next.js/issues/71673">#71673</a></li> <li>next-codemod(upgrade): optional catch when missing dev script: <a href="https://redirect.github.com/vercel/next.js/issues/71598">#71598</a></li> <li>Avoid server action function indirection in Turbopack: <a href="https://redirect.github.com/vercel/next.js/issues/71628">#71628</a></li> <li>fix: exclude <code>basePath</code> in <code>findSourceMapURL</code>: <a href="https://redirect.github.com/vercel/next.js/issues/71719">#71719</a></li> <li>fix: stack frame text color in dark mode: <a href="https://redirect.github.com/vercel/next.js/issues/71656">#71656</a></li> <li>Fix: revert the bad node binary handling: <a href="https://redirect.github.com/vercel/next.js/issues/71723">#71723</a></li> <li>next-codemod: add empty <code>pnpm-workspace.yaml</code> to test fixtures to bypass PNPM workspace checks: <a href="https://redirect.github.com/vercel/next.js/issues/71726">#71726</a></li> <li>warn on sync access if dynamicIO is not enabled: <a href="https://redirect.github.com/vercel/next.js/issues/71696">#71696</a></li> <li>Update React from <code>69d4b800-20241021</code> to <code>45804af1-20241021</code>: <a href="https://redirect.github.com/vercel/next.js/issues/71718">#71718</a></li> <li>next-upgrade: do not add <code>--turbopack</code> flag when <code>--turbo</code> exists in <code>next dev</code>: <a href="https://redirect.github.com/vercel/next.js/issues/71730">#71730</a></li> <li>feat: stitch errors with react owner stack: <a href="https://redirect.github.com/vercel/next.js/issues/70393">#70393</a></li> <li>[dynamicIO] update data access error and documentation: <a href="https://redirect.github.com/vercel/next.js/issues/71738">#71738</a></li> <li>Test cached form action with revalidate: <a href="https://redirect.github.com/vercel/next.js/issues/71591">#71591</a></li> <li>Upgrade React from <code>45804af1-20241021</code> to <code>28668d39-20241023</code>: <a href="https://redirect.github.com/vercel/next.js/issues/71745">#71745</a></li> <li>Fix race condition when setting client reference manifests: <a href="https://redirect.github.com/vercel/next.js/issues/71741">#71741</a></li> <li>Fix fetch with no-store inside of use cache: <a href="https://redirect.github.com/vercel/next.js/issues/71754">#71754</a></li> <li>Remove the bottom collapse button in dev overlay: <a href="https://redirect.github.com/vercel/next.js/issues/71658">#71658</a></li> <li>[dynamicIO] unify cache filling and lazy-module warming: <a href="https://redirect.github.com/vercel/next.js/issues/71749">#71749</a></li> <li>Don't filter out <!-- raw HTML omitted --> source location frames through RSC: <a href="https://redirect.github.com/vercel/next.js/issues/71752">#71752</a></li> <li>fix undefined default export error msg: <a href="https://redirect.github.com/vercel/next.js/issues/71762">#71762</a></li> <li>Upgrade React from <code>28668d39-20241023</code> to <code>1631855f-20241023</code>: <a href="https://redirect.github.com/vercel/next.js/issues/71769">#71769</a></li> <li>Enable owner stack in experimental build: <a href="https://redirect.github.com/vercel/next.js/issues/71716">#71716</a></li> <li>feat: add experiment for sharpjs cpu flags: <a href="https://redirect.github.com/vercel/next.js/issues/71733">#71733</a></li> <li>fix: handle server component replay error in error overlay: <a href="https://redirect.github.com/vercel/next.js/issues/71772">#71772</a></li> <li>Don't error asking for prebuilt bundles: <a href="https://redirect.github.com/vercel/next.js/issues/71778">#71778</a></li> <li>Replace <code>turbopack://[project]/...</code> sourcemap uris with <code>file://...</code> in development: <a href="https://redirect.github.com/vercel/next.js/issues/71489">#71489</a></li> <li>misc: update source map paths for bundled Next.js runtime: <a href="https://redirect.github.com/vercel/next.js/issues/71779">#71779</a></li> <li>[dynamicIO] refine error message and docs: <a href="https://redirect.github.com/vercel/next.js/issues/71781">#71781</a></li> <li>next-upgrade: change <code>--turbo</code> to <code>--turbopack</code> if applicable: <a href="https://redirect.github.com/vercel/next.js/issues/71737">#71737</a></li> <li>Show all diff when uncollapse: <a href="https://redirect.github.com/vercel/next.js/issues/71792">#71792</a></li> <li>Sourcemap errors in terminal by default : <a href="https://redirect.github.com/vercel/next.js/issues/71444">#71444</a></li> <li>Fully enable custom error callbacks for app router: <a href="https://redirect.github.com/vercel/next.js/issues/71794">#71794</a></li> <li>Simplify Server Action Webpack plugin: <a href="https://redirect.github.com/vercel/next.js/issues/71721">#71721</a></li> <li>ensure DIO development segment errors are cleared after correcting: <a href="https://redirect.github.com/vercel/next.js/issues/71811">#71811</a></li> <li>Include sourceframe in errors logged in the terminal during development: <a href="https://redirect.github.com/vercel/next.js/issues/71803">#71803</a></li> <li>[dynamicIO] update prerender cache scoping and cache warming for validation: <a href="https://redirect.github.com/vercel/next.js/issues/71822">#71822</a></li> <li>only force stack frame color in tty: <a href="https://redirect.github.com/vercel/next.js/issues/71860">#71860</a></li> <li>Add test for fetch with auth in use cache: <a href="https://redirect.github.com/vercel/next.js/issues/71768">#71768</a></li> <li>Fix race with hot-reloader-client clearing overlay errors: <a href="https://redirect.github.com/vercel/next.js/issues/71771">#71771</a></li> <li>Fix dynamic tracking in dev: <a href="https://redirect.github.com/vercel/next.js/issues/71867">#71867</a></li> <li>Revert &quot;Sourcemap errors in terminal by default (<a href="https://redirect.github.com/vercel/next.js/issues/71444">#71444</a>)&quot;: <a href="https://redirect.github.com/vercel/next.js/issues/71868">#71868</a></li> <li>Fix fetch caching inside of <code>&quot;use cache&quot;</code>: <a href="https://redirect.github.com/vercel/next.js/issues/71793">#71793</a></li> <li>Trace upload: only send traces for current session: <a href="https://redirect.github.com/vercel/next.js/issues/71838">#71838</a></li> <li>Reland &quot;Sourcemap errors in terminal by default&quot;: <a href="https://redirect.github.com/vercel/next.js/issues/71877">#71877</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/next.js/commit/2e28c965279de90ce4bfca673196c27dd6117027"><code>2e28c96</code></a> v15.0.2</li> <li><a href="https://github.com/vercel/next.js/commit/9fe44a50dd5b9babed57ae72f2d0addbcaf4dd5f"><code>9fe44a5</code></a> v15.0.2-canary.11</li> <li><a href="https://github.com/vercel/next.js/commit/1fb83619d87fef08058236c3d5fa17b94a6b9cf1"><code>1fb8361</code></a> Compare error stack to dedupe error (<a href="https://redirect.github.com/vercel/next.js/issues/71798">#71798</a>)</li> <li><a href="https://github.com/vercel/next.js/commit/14b92e6e13ef18efaf02b3aa405a6495b7678126"><code>14b92e6</code></a> fix: log the error instance modified extra location info (<a href="https://redirect.github.com/vercel/next.js/issues/71930">#71930</a>)</li> <li><a href="https://github.com/vercel/next.js/commit/b2bc1ed6b1cf29c410e7ef81ecc08d80664da9de"><code>b2bc1ed</code></a> Fix swc version mismatch when checking out an older version (<a href="https://redirect.github.com/vercel/next.js/issues/71978">#71978</a>)</li> <li><a href="https://github.com/vercel/next.js/commit/256b662c4038d774c2033e1cd80aa69d3f0abe0a"><code>256b662</code></a> Docs: Address internal <code>use cache</code> comments (<a href="https://redirect.github.com/vercel/next.js/issues/71981">#71981</a>)</li> <li><a href="https://github.com/vercel/next.js/commit/3f2d2f6949aced93d1b0da9a3b939963867ed60c"><code>3f2d2f6</code></a> correct expire calc &amp; and Nested usage import in use-cache docs (<a href="https://redirect.github.com/vercel/next.js/issues/71899">#71899</a>)</li> <li><a href="https://github.com/vercel/next.js/commit/3768aeaf32b72ba2d29ca4055c35340c036fa2c9"><code>3768aea</code></a> Documentation Fix: Correct <code>cacheTag</code> Function Usage (<a href="https://redirect.github.com/vercel/next.js/issues/71912">#71912</a>)</li> <li><a href="https://github.com/vercel/next.js/commit/4db1ae91f5233a5fea6f42cbf7422f64c7821398"><code>4db1ae9</code></a> docs: update file structure (<a href="https://redirect.github.com/vercel/next.js/issues/71951">#71951</a>)</li> <li><a href="https://github.com/vercel/next.js/commit/6ae660571637b4a7d3f25b4bf09f2510b78f41c9"><code>6ae6605</code></a> (docs) <code>use cache</code>: Add text code formatting (<a href="https://redirect.github.com/vercel/next.js/issues/71999">#71999</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vercel/next.js/compare/v14.2.14...v15.0.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=next&package-manager=npm_and_yarn&previous-version=14.2.14&new-version=15.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ken Matsui <[email protected]>
1 parent c994e49 commit 1718ca8

File tree

6 files changed

+260
-100
lines changed

6 files changed

+260
-100
lines changed

app/packages/[group]/[name]/[version]/page.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@ import { Pack } from "../_components/pack";
55

66
export const revalidate = 86400; // 1 day
77

8-
type Params = {
8+
type Params = Promise<{
99
group: string;
1010
name: string;
1111
version: string;
12-
};
13-
14-
type Props = {
15-
params: Params;
16-
searchParams: { [key: string]: string | string[] | undefined };
17-
};
12+
}>;
13+
type SearchParams = Promise<{ [key: string]: string | string[] | undefined }>;
1814

1915
export async function generateMetadata(
20-
{ params, searchParams }: Props,
16+
props: {
17+
params: Params;
18+
},
2119
parent: ResolvingMetadata,
2220
): Promise<Metadata> {
21+
const params = await props.params;
2322
return {
2423
title: `${params.group}/${params.name} (v${params.version})`,
2524
};
2625
}
2726

28-
export default async function Version({ params }: { params: Params }) {
27+
export default async function Page(props: {
28+
params: Params;
29+
}) {
30+
const params = await props.params;
31+
2932
const hasuraClient = getHasuraClient();
3033
const data = await hasuraClient.getPackageByNameAndVersion({
3134
name: `${params.group}/${params.name}`,

app/packages/[group]/[name]/page.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,29 @@ import { Pack } from "./_components/pack";
55

66
export const revalidate = 86400; // 1 day
77

8-
type Params = {
8+
type Params = Promise<{
99
group: string;
1010
name: string;
11-
};
12-
13-
type Props = {
14-
params: Params;
15-
searchParams: { [key: string]: string | string[] | undefined };
16-
};
11+
}>;
12+
type SearchParams = Promise<{ [key: string]: string | string[] | undefined }>;
1713

1814
export async function generateMetadata(
19-
{ params, searchParams }: Props,
15+
props: {
16+
params: Params;
17+
},
2018
parent: ResolvingMetadata,
2119
): Promise<Metadata> {
20+
const params = await props.params;
2221
return {
2322
title: `${params.group}/${params.name} (latest)`,
2423
};
2524
}
2625

27-
export default async function Name({ params }: { params: Params }) {
26+
export default async function Page(props: {
27+
params: Params;
28+
}) {
29+
const params = await props.params;
30+
2831
const hasuraClient = getHasuraClient();
2932
const data = await hasuraClient.getPackagesByName({
3033
name: `${params.group}/${params.name}`,

app/search/page.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ import { Pagination } from "./_components/pagination";
88

99
export const revalidate = 86400; // 1 day
1010

11-
type Props = {
12-
searchParams: { [key: string]: string | string[] | undefined };
13-
};
11+
type SearchParams = Promise<{ [key: string]: string | string[] | undefined }>;
1412

1513
export async function generateMetadata(
16-
{ searchParams }: Props,
14+
props: {
15+
searchParams: SearchParams;
16+
},
1717
parent: ResolvingMetadata,
1818
): Promise<Metadata> {
19+
const searchParams = await props.searchParams;
20+
1921
if (!searchParams || searchParams.q === "") {
2022
return {
2123
title: "All packages",
@@ -27,7 +29,11 @@ export async function generateMetadata(
2729
};
2830
}
2931

30-
export default async function Search({ searchParams }: Props) {
32+
export default async function Page(props: {
33+
searchParams: SearchParams;
34+
}) {
35+
const searchParams = await props.searchParams;
36+
3137
const query = String(searchParams?.q) ?? "";
3238
const page = Number(searchParams?.page ?? 1);
3339
const perPage = Number(searchParams?.perPage ?? PER_PAGE);

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/// <reference types="next/navigation-types/compat/navigation" />
44

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@vercel/speed-insights": "^1.0.14",
2323
"framer-motion": "^11.11.11",
2424
"graphql": "^16.9.0",
25-
"next": "^14.2.14",
25+
"next": "^15.0.2",
2626
"next-themes": "^0.3.0",
2727
"nextra": "^2.13.4",
2828
"nextra-theme-docs": "^2.13.4",

0 commit comments

Comments
 (0)