Skip to content

Commit

Permalink
[core] Increase React peer dependency to v16.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 6, 2019
1 parent 0f3798a commit d53afc2
Show file tree
Hide file tree
Showing 13 changed files with 238 additions and 314 deletions.
6 changes: 3 additions & 3 deletions packages/material-ui-benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
},
"license": "MIT",
"dependencies": {
"@emotion/core": "^10.0.0",
"@emotion/styled": "^10.0.0",
"benchmark": "^2.1.4",
"emotion-server": "^10.0.6",
"nodemod": "^1.5.19",
"styled-system": "^3.1.11",
"@emotion/core": "^10.0.0",
"@emotion/styled": "^10.0.0"
"styled-system": "^3.1.11"
}
}
4 changes: 2 additions & 2 deletions packages/material-ui-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"peerDependencies": {
"@material-ui/core": "^3.0.0",
"react": "^16.3.0",
"react-dom": "^16.3.0"
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
},
"peerDependencies": {
"@material-ui/core": "^3.0.0",
"react": "^16.3.0",
"react-dom": "^16.3.0"
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
},
"peerDependencies": {
"@material-ui/core": "^3.0.0",
"react": "^16.3.0",
"react-dom": "^16.3.0"
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
Expand Down
5 changes: 0 additions & 5 deletions packages/material-ui-lab/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,6 @@ function preventPageScrolling(event) {
event.preventDefault();
}

/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && !React.createContext) {
throw new Error('Material-UI: react@16.3.0 or greater is required.');
}

/**
* @param {number} rawValue
* @param {object} props
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/material-ui-system/**/*.test.js' --exclude '**/node_modules/**'"
},
"peerDependencies": {
"react": "^16.3.0",
"react-dom": "^16.3.0"
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/material-ui-utils/**/*.test.js' --exclude '**/node_modules/**'"
},
"peerDependencies": {
"react": "^16.3.0",
"react-dom": "^16.3.0"
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{ts,tsx}\""
},
"peerDependencies": {
"react": "^16.3.0",
"react-dom": "^16.3.0"
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
Expand Down
5 changes: 0 additions & 5 deletions packages/material-ui/src/ButtonBase/ButtonBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ export const styles = {
focusVisible: {},
};

/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && !React.createContext) {
throw new Error('Material-UI: react@16.3.0 or greater is required.');
}

/**
* `ButtonBase` contains as few styles as possible.
* It aims to be a simple building block for creating a button.
Expand Down
5 changes: 0 additions & 5 deletions packages/material-ui/src/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ export const styles = theme => ({
},
});

/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && !React.createContext) {
throw new Error('Material-UI: react@16.3.0 or greater is required.');
}

/**
* Modal is a lower-level construct that is leveraged by the following components:
*
Expand Down
5 changes: 0 additions & 5 deletions packages/material-ui/src/Snackbar/Snackbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ export const styles = theme => {
};
};

/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && !React.createContext) {
throw new Error('Material-UI: react@16.3.0 or greater is required.');
}

class Snackbar extends React.Component {
state = {};

Expand Down
5 changes: 0 additions & 5 deletions packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ export function reset() {
nodeThatClaimedTheSwipe = null;
}

/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && !React.createContext) {
throw new Error('Material-UI: react@16.3.0 or greater is required.');
}

class SwipeableDrawer extends React.Component {
state = {};

Expand Down
Loading

0 comments on commit d53afc2

Please sign in to comment.