Skip to content

Commit

Permalink
Merge pull request #61 from fedoryakubovich/release/v0.3.0
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
fedoryakubovich authored Jan 4, 2021
2 parents 0afcc34 + 1365c9a commit aad85c5
Show file tree
Hide file tree
Showing 8 changed files with 9,445 additions and 5,791 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ yarn-error.log*

# library
/dist

.eslintcache
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ script:
- npm test
- npm run coveralls
env:
- REACT=16.8
- REACT=17.0
15,183 changes: 9,410 additions & 5,773 deletions package-lock.json

Large diffs are not rendered by default.

37 changes: 24 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
{
"name": "react-awesome-stars-rating",
"version": "0.2.5",
"version": "0.3.0",
"main": "./dist/index.js",
"module": "./dist/index.js",
"files": [
"dist",
"README.md"
],
"eslintConfig": {
"extends": "react-app"
"extends": [
"react-app",
"eslint-config-prettier"
],
"plugins": [
"eslint-plugin-prettier"
],
"rules": {
"prettier/prettier": [
"error"
]
}
},
"browserslist": {
"production": [
Expand Down Expand Up @@ -59,20 +70,20 @@
},
"dependencies": {
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"coveralls": "^3.0.11",
"@babel/cli": "^7.12.10",
"@wojtekmaj/enzyme-adapter-react-17": "^0.4.1",
"coveralls": "^3.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"prettier": "^2.0.2",
"react-redux": "^7.2.0",
"react-scripts": "3.4.1",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.1",
"prettier": "^2.2.1",
"react-redux": "^7.2.2",
"react-scripts": "4.0.1",
"redux": "^4.0.5",
"redux-form": "^8.3.2"
"redux-form": "^8.3.7"
}
}
4 changes: 3 additions & 1 deletion src/examples/ReduxFormExample/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import { compose, createStore } from 'redux';

import reducer from './reducer';

export default () => {
const store = () => {
const composeEnhancers =
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const store = createStore(reducer, composeEnhancers());

return store;
};

export default store;
2 changes: 1 addition & 1 deletion src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ class ReactStarsRating extends PureComponent {
<span
id={id}
role="button"
className={className}
{...props}
style={isEdit ? styles.activeContainer : styles.inActiveContainer}
className={className}
>
{stars}
</span>
Expand Down
4 changes: 3 additions & 1 deletion src/lib/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
const styles = {
activeContainer: {
border: 'none',
},
Expand All @@ -7,3 +7,5 @@ export default {
outline: 0,
},
};

export default styles;
2 changes: 1 addition & 1 deletion src/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';

Enzyme.configure({ adapter: new Adapter() });

0 comments on commit aad85c5

Please sign in to comment.