Skip to content

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

Merged
sdirix merged 1 commit into
eclipsesource:masterfrom
seanparmelee:datepickers
Jun 27, 2024
Merged

feat: support @mui/x-date-pickers v7#2349
sdirix merged 1 commit into
eclipsesource:masterfrom
seanparmelee:datepickers

Conversation

@seanparmelee

Copy link
Copy Markdown
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

CLAassistant commented Jun 27, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@netlify

netlify Bot commented Jun 27, 2024

Copy link
Copy Markdown

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.

@sdirix sdirix left a comment

Copy link
Copy Markdown
Member

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

Comment thread packages/material-renderers/package.json
@coveralls

Copy link
Copy Markdown

Coverage Status

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

@coveralls

Copy link
Copy Markdown

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
@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