Skip to content

v1.0.0-rc.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@oliviertassinari oliviertassinari released this 13 May 19:14
· 18603 commits to master since this release
May 13, 2018

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

Here are some highlights ✨:

  • Introduce the last planned breaking changes before stable v1

Breaking change

-import { withStyles } from 'material-ui/styles';
+import { withStyles } from '@material-ui/core/styles';

Motivation

  1. It's a simple pattern to learn. People won't need to go back and forth with the documentation to learn the import paths 💭.
  2. People bundle size will decrease 🚀.
  3. In an ideal world, we would import everything from the root module and tree sharking would be taken care of for us. This change doesn't matter in this world ☮️.
import {
  Table,
  TableBody,
  TableCell,
  TableFooter,
  TablePagination,
  TableRow,
} from 'material-ui';

The diff

-import CircularProgress from '@material-ui/core/Progress/CircularProgress';
+import CircularProgress from '@material-ui/core/CircularProgress';
-import { ListItem } from '@material-ui/core/List';
+import ListItem from '@material-ui/core/ListItem';

Upgrade path

We provide a codemod to automate the migration: https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod#import-path. I have used it to upgrade all the demos in the documentation :).

Split the responsabilities between the different components. Help with tree-shaking.

-        <Grid item xs hidden={{ xlUp: true }}>
-          <Paper>xlUp</Paper>
-        </Grid>
+        <Hidden xlUp>
+          <Grid item xs>
+            <Paper>xlUp</Paper>
+          </Grid>
+        </Hidden>
  • [TextField] change underline approach to prevent browser zoom issue (#11181) @Jdubedition

The text underline color customization change:

   underline: {
     '&:after': {
-      backgroundColor: purple[500],
+      borderBottomColor: purple[500],
     },
   },

Component Fixes / Enhancements

Docs

Core

  • [typescript] Add CreateMuiTheme props Typescript definition (#11296) @abnersajr
  • [typescript] Fix color type in augmentColor function (#11302) @AiusDa
  • Make WithStylesOptions extend the options argument of createStyleSheet (#11325) @pelotom
  • [core] Update the dev dependencies (#11355) @oliviertassinari