Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.8k
[poll] Next.js integration package names and versioning#39712
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
A continuation from#34575 (comment) We need to decide on the package names and versioning strategy for Next.js integration (as part of the OKR). Feel free to add more options as you see fit. How many packagesOption 1: single package with subfoldersimport{Link,Image,}from'@mui/$name/material-ui'import{Link,Image,}from'@mui/$name/material-ui-v4'import{Link,Image,}from'@mui/$name/joy-ui'import{Link,Image,}from'@mui/$name/system' Option 2: multiple packages
Package namesI think regardless of the option we decide on, it should have Option 1combination of the package
Option 2contains
VersioningOption 1Follows Next.js, so the package will start with Option 2Follows MUI, so the package will start with IndependentStarts with |
BetaWas this translation helpful?Give feedback.
All reactions
👍 10🚀 3
Replies: 3 comments 8 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I'd vote for: |
BetaWas this translation helpful?Give feedback.
All reactions
👍 4
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
As an end user, integrated in |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
Bundles of end-users that don't use That being said, the argument you make applies to "Option 1: single package with subfolders" as well. e.g. Under this option all |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
I will create a POC for this approach. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
One question about this approach. How to support multiple versions of NextJS, eg. v13 and v14? For example:
If I want to upgrade to v5.21.0 to get bug fixes or new features of Material UI and I want to keep using Next.js 13. My assumption would be to have both?
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Also, the integration needs |
BetaWas this translation helpful?Give feedback.
All reactions
-
if we want to avoid adding too many peer dependencies, or if we want to make the integration more straightforward we could use separate packages ( |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
My take on it How many packagesI think that at most one npm package would bring the best experience. I don't see why we would need more than one. Now, I still think that we need a dedicated npm package, to help with the dependencies management. Package names
VersioningI would match Material UI & Joy UI version (should be the same) |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I think appRouter (needs IMHO, it would be much simpler to go with
|
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
@siriwatknp Yes, but I wouldn't be surprised if each theme has its own npm package, like Joy Design and Material Design have today.
It makes sense, so that we can use two different optional peer dependencies. |
BetaWas this translation helpful?Give feedback.