Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support @mui/x-date-pickers v7 #2349

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

seanparmelee
Copy link
Contributor

Closes #2328

This PR updates the peerDependencies of @jsonforms/material-renderers to allow for either v6 or v7 of @mui/x-date-pickers. I went through the v6 to v7 migration guide and didn't see any breaking changes that require a code change in @jsonforms/material-renderers. I also tried running the pickers codemod to see if it changes anything, but it didn't. I also checked the material-renderers Dates examples and confirmed they still work.

There is mention of updating @mui/material, but the examples seem to work without it. I was trying to better understand why the need for the update (mui/mui-x#12516) and it seemed like it was for a very specific use case (mui/mui-x#12248) that I don't think requires a corresponding peer dependency bump in @jsonforms/material-renderers, but happy to do so if you prefer.

In other words, think the material-renderers (as it's currently implemented) can support both @mui/x-date-pickers 6 and 7, but this would also mean that any future changes made in the control components would need to be tested against both versions, at least until the next major release of jsonforms where v6 support could be dropped.

@CLAassistant
Copy link

CLAassistant commented Jun 27, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

netlify bot commented Jun 27, 2024

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 4be187b
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/667d9db92960c40008a0c888
😎 Deploy Preview https://deploy-preview-2349--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

Hi @seanparmelee,

Thank you very much for the PR and the testing ❤️

I just have a minor question

packages/material-renderers/package.json Show resolved Hide resolved
@coveralls
Copy link

Coverage Status

coverage: 83.337%. remained the same
when pulling 3d03f61 on seanparmelee:datepickers
into c00b664 on eclipsesource:master.

@coveralls
Copy link

Coverage Status

coverage: 83.337%. remained the same
when pulling 4be187b on seanparmelee:datepickers
into c00b664 on eclipsesource:master.

@sdirix sdirix merged commit c3cead7 into eclipsesource:master Jun 27, 2024
8 checks passed
@seanparmelee seanparmelee deleted the datepickers branch June 27, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support @mui/x-date-pickers v7
4 participants