Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Update dependencies to enable Greenkeeper 🌴 (#44)
Browse files Browse the repository at this point in the history
* chore(package): update dependencies

* docs(readme): add Greenkeeper badge

* Fix tests
  • Loading branch information
greenkeeper[bot] authored and Aidurber committed Jul 9, 2018
1 parent 1f1b894 commit aaf62c6
Show file tree
Hide file tree
Showing 7 changed files with 505 additions and 578 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import 'react-picky/dist/picky.css'; // Include CSS

### Custom rendering

[![Edit mmpq6z7lr8](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/mmpq6z7lr8)
[![Edit mmpq6z7lr8](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/mmpq6z7lr8) [![Greenkeeper badge](https://badges.greenkeeper.io/Aidurber/react-picky.svg)](https://greenkeeper.io/)

## Props

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

27 changes: 12 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"devDependencies": {
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-jest": "^22.0.4",
"babel-loader": "^7.0.0",
"babel-jest": "^23.2.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-react-remove-properties": "^0.2.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
Expand All @@ -39,24 +38,22 @@
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.14.0",
"eslint": "^5.1.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.4.0",
"husky": "^0.14.3",
"jest": "^23.3.0",
"react": "^16.2.0",
"react-addons-test-utils": "^15.5.1",
"react-dom": "^16.2.0",
"react-test-renderer": "^16.2.0",
"rollup": "^0.53.0",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"rollup": "^0.62.0",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-css-only": "^0.4.0",
"rollup-plugin-filesize": "^1.5.0",
"rollup-plugin-filesize": "^2.0.0",
"rollup-plugin-jsx": "^1.0.3",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^2.0.1",
"semantic-release": "^11.0.2"
"rollup-plugin-uglify": "^4.0.0",
"semantic-release": "^15.6.3"
},
"jest": {
"collectCoverage": true,
Expand Down Expand Up @@ -86,9 +83,9 @@
]
},
"peerDependencies": {
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-dom": "^16.2.0"
"prop-types": "> 15.6.0",
"react": "> 16.3.0",
"react-dom": "> 16.3.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import resolve from 'rollup-plugin-node-resolve';
// import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';
import uglify from 'rollup-plugin-uglify';
import { uglify } from 'rollup-plugin-uglify';
import filesize from 'rollup-plugin-filesize';
import css from 'rollup-plugin-css-only';

Expand Down
8 changes: 4 additions & 4 deletions src/Picky.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Picky extends React.PureComponent {
this.isItemSelected = this.isItemSelected.bind(this);
this.focusFilterInput = this.focusFilterInput.bind(this);
}
componentWillMount() {
UNSAFE_componentWillMount() {
const allSelected = this.allSelected();

this.setState({
Expand All @@ -47,7 +47,7 @@ class Picky extends React.PureComponent {
this.focusFilterInput(this.state.open);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (
this.props.options !== nextProps.options ||
this.state.selectedValue !== nextProps.value
Expand Down Expand Up @@ -321,7 +321,7 @@ class Picky extends React.PureComponent {
if (open) {
ariaOwns += this.state.id + '-list';
}

const buttonId = `${this.state.id}__button`;
const dropdownStyle = { maxHeight: dropdownHeight, overflowY: 'scroll' };
return (
<div
Expand All @@ -331,7 +331,7 @@ class Picky extends React.PureComponent {
className={['picky', className].join(' ')}
id={this.state.id}
role="combobox"
aria-controls={`${this.state.id}__button`}
aria-controls={buttonId}
aria-expanded={open}
aria-haspopup={open}
aria-owns={ariaOwns}
Expand Down
2 changes: 1 addition & 1 deletion tests/Picky.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ describe('Picky', () => {
const wrapper = mount(<Picky multiple open value={[]} options={[]} />);
const componentWillUpdateSpy = jest.spyOn(
Picky.prototype,
'componentWillReceiveProps'
'UNSAFE_componentWillReceiveProps'
);
expect(wrapper.state('selectedValue')).toHaveLength(0);
setTimeout(() => {
Expand Down
Loading

0 comments on commit aaf62c6

Please sign in to comment.