Packages

@material-ui/core

4.12.4 · 3 Apr 2022MIT1.5M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.What to use instead
Your version

3.6.0

26 Nov 2018Where it was published

3.9.4 is the newest release of 3.x.

npm marks 3.6.0 as deprecated: Material UI v4 doesn't receive active development since September 2021. See the guide mui.com/material-ui/migration/migration-v4/ to upgrade to v5.

In short

2 deprecated4 new7 fixed7 changed3 internal

  • Deprecated

    Extract from Button as new component

  • Deprecated

    Add support for middle divider by introducing a variant prop

Release note

The section about @material-ui/core of a note shared by several packages.

@material-ui/core@v3.6.0

Deprecations

  • Deprecated

    Extract from Button as new component

The floating action button doesn't share many styles with the default button component.
We are extracting the variant into its own component.
This way, we better isolate the concerns.
We will remove the FAB styles from the button in v4, making the Button component more lightweight, a win for people overriding our styles.

-import Button from '@material-ui/core/Button';
+import Fab from '@material-ui/core/Fab';

-<Button variant="fab" color="primary">
+<Fab color="primary">
  <AddIcon />
-</Button>
+</Fab>
  • Deprecated

    Add support for middle divider by introducing a variant prop

We are introducing a new variant to the divider component: middle. Following our API guideline, we can no longer use a boolean property, it needs to be an enum, hence the introduction of the variant property.

import Divider from '@material-ui/core/Divider';

-<Divider inset />
+<Divider variant="inset" />

Changes

  • Fix documentation warnings

  • Fix event forwarding

  • Move deprecated variants to the end of the list

  • Use stable context API

  • Improve TypeScript definition

  • Add SwipeAreaProps property

  • Add support for middle divider

  • Add three-line support

  • Fix the IE 11 issue in the demo

  • Correct transition delay value of the example

  • Improve the warning message

  • Condense the demo

  • Fix the property forwarding priority

  • Fix the close jump on Windows

  • Support object value

  • Fix wrong condition

Core

  • Update dev dependencies

  • Make prettier run programmatically

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.