Skip to content

Conversation

@joshblack
Copy link
Member

Update our Next.js examples to v16: https://nextjs.org/blog/next-16

Changelog

New

Changed

  • Update Next.js examples to use v16

Removed

Rollout strategy

  • None; if selected, include a brief description as to why

This is a change only to our examples

Copilot AI review requested due to automatic review settings October 28, 2025 17:50
@joshblack joshblack requested a review from a team as a code owner October 28, 2025 17:50
@joshblack joshblack requested a review from jonrohan October 28, 2025 17:50
@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2025

⚠️ No Changeset found

Latest commit: 6647f6c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the staff Author is a staff member label Oct 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Next.js examples to version 16, aligning with the latest Next.js release. The changes include upgrading dependencies, updating TypeScript configurations to match Next.js 16 requirements, and adding proper type annotations.

Key changes:

  • Updated Next.js from v15.2.3 to v16.0.0 and React from v18.3.1 to v19.2.0
  • Modified TypeScript configuration to use jsx: "react-jsx" instead of jsx: "preserve"
  • Added type annotations and theme-related attributes for better type safety

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
examples/theming/package.json Updated Next.js to v16.0.0, React to v19.2.0, and removed --no-lint flag from build script
examples/theming/tsconfig.json Changed jsx compiler option to react-jsx and added .next/dev/types path to include array
examples/nextjs/package.json Updated Next.js to v16.0.0, React to v19.2.0, and removed --no-lint flag from build script
examples/nextjs/tsconfig.json Changed jsx compiler option to react-jsx and added .next/dev/types path to include array
examples/nextjs/src/app/layout.tsx Added Metadata type import, typed metadata export, and added theme data attributes to html element

@github-actions github-actions bot requested a deployment to storybook-preview-7088 October 31, 2025 15:55 Abandoned
@joshblack joshblack added the skip changeset This change does not need a changelog label Oct 31, 2025
@joshblack joshblack enabled auto-merge October 31, 2025 15:58
@github-actions github-actions bot requested a deployment to storybook-preview-7088 October 31, 2025 16:01 Abandoned
@joshblack joshblack added this pull request to the merge queue Oct 31, 2025
Merged via the queue into main with commit 3528836 Oct 31, 2025
46 of 47 checks passed
@joshblack joshblack deleted the refactor/update-nextjs-examples-to-v16 branch October 31, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants