Skip to content

Commit

Permalink
Bump next from 14.2.14 to 15.0.2 (#999)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dependabot[bot] and ken-matsui authored Nov 3, 2024
1 parent c994e49 commit 1718ca8
Show file tree
Hide file tree
Showing 6 changed files with 260 additions and 100 deletions.
21 changes: 12 additions & 9 deletions app/packages/[group]/[name]/[version]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,30 @@ import { Pack } from "../_components/pack";

export const revalidate = 86400; // 1 day

type Params = {
type Params = Promise<{
group: string;
name: string;
version: string;
};

type Props = {
params: Params;
searchParams: { [key: string]: string | string[] | undefined };
};
}>;
type SearchParams = Promise<{ [key: string]: string | string[] | undefined }>;

export async function generateMetadata(
{ params, searchParams }: Props,
props: {
params: Params;
},
parent: ResolvingMetadata,
): Promise<Metadata> {
const params = await props.params;
return {
title: `${params.group}/${params.name} (v${params.version})`,
};
}

export default async function Version({ params }: { params: Params }) {
export default async function Page(props: {
params: Params;
}) {
const params = await props.params;

const hasuraClient = getHasuraClient();
const data = await hasuraClient.getPackageByNameAndVersion({
name: `${params.group}/${params.name}`,
Expand Down
21 changes: 12 additions & 9 deletions app/packages/[group]/[name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,29 @@ import { Pack } from "./_components/pack";

export const revalidate = 86400; // 1 day

type Params = {
type Params = Promise<{
group: string;
name: string;
};

type Props = {
params: Params;
searchParams: { [key: string]: string | string[] | undefined };
};
}>;
type SearchParams = Promise<{ [key: string]: string | string[] | undefined }>;

export async function generateMetadata(
{ params, searchParams }: Props,
props: {
params: Params;
},
parent: ResolvingMetadata,
): Promise<Metadata> {
const params = await props.params;
return {
title: `${params.group}/${params.name} (latest)`,
};
}

export default async function Name({ params }: { params: Params }) {
export default async function Page(props: {
params: Params;
}) {
const params = await props.params;

const hasuraClient = getHasuraClient();
const data = await hasuraClient.getPackagesByName({
name: `${params.group}/${params.name}`,
Expand Down
16 changes: 11 additions & 5 deletions app/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ import { Pagination } from "./_components/pagination";

export const revalidate = 86400; // 1 day

type Props = {
searchParams: { [key: string]: string | string[] | undefined };
};
type SearchParams = Promise<{ [key: string]: string | string[] | undefined }>;

export async function generateMetadata(
{ searchParams }: Props,
props: {
searchParams: SearchParams;
},
parent: ResolvingMetadata,
): Promise<Metadata> {
const searchParams = await props.searchParams;

if (!searchParams || searchParams.q === "") {
return {
title: "All packages",
Expand All @@ -27,7 +29,11 @@ export async function generateMetadata(
};
}

export default async function Search({ searchParams }: Props) {
export default async function Page(props: {
searchParams: SearchParams;
}) {
const searchParams = await props.searchParams;

const query = String(searchParams?.q) ?? "";
const page = Number(searchParams?.page ?? 1);
const perPage = Number(searchParams?.perPage ?? PER_PAGE);
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@vercel/speed-insights": "^1.0.14",
"framer-motion": "^11.11.11",
"graphql": "^16.9.0",
"next": "^14.2.14",
"next": "^15.0.2",
"next-themes": "^0.3.0",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
Expand Down
Loading

0 comments on commit 1718ca8

Please sign in to comment.