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

Bump @material-ui/icons from 4.9.1 to 4.11.2 in /web/app #6310

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 18, 2021

Bumps @material-ui/icons from 4.9.1 to 4.11.2.

Release notes

Sourced from @​material-ui/icons's releases.

v4.11.2

Nov 24, 2020

This release widens the peer dependency scope of React to accept ^17.0.0 ⚛️ . The change makes it easier for developers to upgrade React independently from Material-UI. The best support for React 17 will be found in Material-UI v5.

This is a reminder that all ongoing work has moved to v5. This means a feature freeze on v4. The development of v4 is limited to important bug fixes, security patches, and easing the upgrade path to v5.

@material-ui/core@v4.11.2

@material-ui/icons@v4.11.2

@material-ui/lab@v4.11.2

@material-ui/styles@v4.11.2

@material-ui/system@v4.11.2

@material-ui/utils@v4.11.2

@material-ui/lab@v4.0.0-alpha.57

v4.11.1

Nov 24, 2020

Big thanks to the 12 contributors who made this release possible.

  • 🐛 Fix integration issue with TypeScript 4.1 (#23692) @​ldrick
  • 🐛 Fix right-to-left support of Tabs since Chrome 85 (#22830) @​ankit
  • 🐛 Fix two issues with React 17 (#22263, #23367) @​eps1lon v4.11.1 doesn't have official support for React 17 like v5 has. Be careful, use React 17 at your own risk.

@material-ui/core@v4.11.1

... (truncated)

Changelog

Sourced from @​material-ui/icons's changelog.

4.11.2

Dec 2 2020

This release widens the peer dependency scope of React to accept ^17.0.0. The change makes it easier for developers to upgrade React independently from Material-UI. The best support for React 17 will be found in Material-UI v5.

This is a reminder that all ongoing work has moved to v5. This means a feature freeze on v4. The development of v4 is limited to important bug fixes, security patches and easing the upgrade path to v5.

@material-ui/core@v4.11.2

@material-ui/icons@v4.11.2

@material-ui/lab@v4.11.2

@material-ui/styles@v4.11.2

@material-ui/system@v4.11.2

@material-ui/utils@v4.11.2

@material-ui/lab@v4.0.0-alpha.57

4.11.1

Nov 24 2020

Big thanks to the 12 contributors who made this release possible.

  • 🐛 Fix integration issue with TypeScript 4.1 (#23692) @​ldrick
  • ⚛️ Fix two issues with React 17 (#22263, #23367) @​eps1lon v4 doesn't have official support for React 17 like v5 has. Use it at your own risk.
  • 🐛 Fix right-to-left support of Tabs since Chrome 85 (#22830) @​ankit

@material-ui/core@v4.11.1

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner June 18, 2021 17:17
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 18, 2021
@dadjeibaah dadjeibaah self-assigned this Jun 18, 2021
dependabot bot and others added 2 commits June 18, 2021 18:04
Bumps [@material-ui/icons](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-icons) from 4.9.1 to 4.11.2.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/v4.11.2/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.11.2/packages/material-ui-icons)

---
updated-dependencies:
- dependency-name: "@material-ui/icons"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io>
@dadjeibaah dadjeibaah force-pushed the dependabot/npm_and_yarn/web/app/material-ui/icons-4.11.2 branch from 81d7800 to 2c32239 Compare June 18, 2021 19:47
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this up, @dadjeibaah!

A few questions for my own information:

  • Can you briefly explain what the relevant change in the underlying library was? icons can no longer be looked up by name?
  • I notice the test switches from testing that the result is defined instead of testing that it has length 1. Can you explain? Could the result have a different length and would that be okay?
  • There are a bunch of whitespace changes in this diff. Do they make the formatting in this file more consistent with the rest of the repo?

@dadjeibaah
Copy link
Contributor

@adleong, these are all good questions.

Can you briefly explain what the relevant change in the underlying library was? icons can no longer be looked up by name?
From what I gather, the underlying representation of icons between the two versions of @material-icons has changed. Prior to this version upgrade, Icons looked like

<FilterListIcon className="BaseTable-toolbarIcon-6" onClick={[Function: bound ]} />

It seems they were not wrapped by a React functional component. After this update, this is what an icon looks like now

<Memo(ForwardRef(FilterListIcon)) className="BaseTable-toolbarIcon-6" onClick={[Function: bound ]} />

My guess is that the current test doesn't work quite well with React functional components like React.memo. A quick google search shows that this was an issue but it seems to be fixed? Either way it doesn't hurt to change the way we lookup react components as this way helps circumvent the issue of finding components that have been wrapped by functional components.

I notice the test switches from testing that the result is defined instead of testing that it has length 1. Can you explain? Could the result have a different length and would that be okay?

Ah it looks like this change is unnecessary. The tests still work even if we test to make sure the component has a length of 1 as long as we change the way we lookup the component. I'll revert this change.

There are a bunch of whitespace changes in this diff. Do they make the formatting in this file more consistent with the rest of the repo?

I can back those out. I'm not entirely clear on what are formatting is for the frontend so I'm not sure if this makes things more consistent or the opposite. I think we probably need to revisit frontend formatting and go through to make sure things are consistent. In the interest of keeping this diff concise, I'll remove these whitespace changes.

Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io>
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

Thank you, @dadjeibaah!

Copy link
Contributor

@kleimkuhler kleimkuhler left a comment

Choose a reason for hiding this comment

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

👍

@kleimkuhler kleimkuhler merged commit 188c615 into main Jun 21, 2021
@kleimkuhler kleimkuhler deleted the dependabot/npm_and_yarn/web/app/material-ui/icons-4.11.2 branch June 21, 2021 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants