-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: react 19, next 15 support (#2282)
* chore: react 19 upgrade * fix: react type resolution, framer-motion upgrade * fix: jsx types, useRef nullable * fix: nft mint example * fix: content-layer builds * chore: upgrade next-auth * chore: upgrade react types * chore: upgrade packageManager version * fix: react, react-dom overrride resolution * revert: upgrade next-auth * fix: react-three/fiber reconciler * chore: next 15 upgrade * chore: next-intl upgrade * chore: upgrade wagmi to ^2.14.7 * chore: docs sitemap * chore: upgrade jest libraries * chore: upgrade next-auth * chore: with-next-app-i18n style * chore: with-next-app-i18n changeset chore: tweak * chore: rainbowkit changeset * chore: examples, site changesets * chore: changeset docs site * fix: react-remove-scroll peer warning
- Loading branch information
1 parent
176534f
commit f533ac2
Showing
49 changed files
with
1,336 additions
and
982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"with-next-app-i18n": minor | ||
--- | ||
|
||
Upgraded `next-intl` to `3.26.3` and resolved [breaking changes](https://next-intl.dev/blog/next-intl-3-22) introduced in `3.22` in anticipation of v4 and Next 15. | ||
|
||
Migrated to `/i18n/request.ts` and `/i18n/routing.ts` architecture. Refactored middleware. Adopted async `params` prop in `generateMetadata` and `getRequestConfig` to support Next v15. Adopted `setRequestLocale` over `unstable_setRequestLocale`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rainbow-me/rainbowkit": patch | ||
--- | ||
|
||
Support for React 19. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@rainbow-me/create-rainbowkit": patch | ||
"rainbowkit-next-app": patch | ||
"example": patch | ||
"site": patch | ||
"with-next": patch | ||
"with-next-app": patch | ||
"with-vite": patch | ||
"with-next-custom-button": patch | ||
"with-next-wallet-button": patch | ||
"with-create-react-app": patch | ||
"with-next-app-i18n": patch | ||
"with-next-mint-nft": patch | ||
"with-remax": patch | ||
--- | ||
|
||
Upgraded to Next 15 at `15.1.4` and resolved [breaking changes](https://nextjs.org/docs/app/building-your-application/upgrading/version-15). Upgraded to React 19 at `19.0.0` and resolved [breaking changes](https://react.dev/blog/2024/04/25/react-19-upgrade-guide). Upgraded `wagmi` to `^2.14.7`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"site": patch | ||
--- | ||
|
||
Upgraded `framer-motion`, `@react-three/fiber`, and `contentlayer` to resolve breaking changes in Next 15. Fixed `JSX` type imports. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { getRequestConfig } from 'next-intl/server'; | ||
import { routing } from './routing'; | ||
|
||
export default getRequestConfig(async ({ requestLocale }) => { | ||
// This typically corresponds to the `[locale]` segment | ||
let locale = await requestLocale; | ||
|
||
// Ensure that the incoming locale is valid | ||
if (!locale || !routing.locales.includes(locale as any)) { | ||
locale = routing.defaultLocale; | ||
} | ||
|
||
return { | ||
locale, | ||
messages: (await import(`../../messages/${locale}.json`)).default | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { defineRouting } from 'next-intl/routing'; | ||
|
||
export const routing = defineRouting({ | ||
// A list of all locales that are supported | ||
locales: ['en-US', 'zh-CN'], | ||
// Used when no locale matches | ||
defaultLocale: 'en-US', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import createMiddleware from 'next-intl/middleware'; | ||
|
||
export default createMiddleware({ | ||
// A list of all locales that are supported | ||
locales: ['en-US', 'zh-CN'], | ||
// Used when no locale matches | ||
defaultLocale: 'en-US' | ||
}); | ||
|
||
import { routing } from './i18n/routing'; | ||
|
||
export const config = { | ||
// Match only internationalized pathnames | ||
matcher: ['/', '/(de|en)/:path*'] | ||
}; | ||
|
||
export default createMiddleware(routing); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.