Skip to content

Commit e242534

Browse files
committed
2.0.0
1 parent 017216c commit e242534

8 files changed

+17
-17
lines changed

lib/react-rating.cjs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ function (_React$PureComponent) {
277277
}
278278

279279
_createClass(Rating, [{
280-
key: "componentWillReceiveProps",
281-
value: function componentWillReceiveProps(nextProps) {
280+
key: "UNSAFE_componentWillReceiveProps",
281+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
282282
var valueChanged = this.props.value !== nextProps.value;
283283
this.setState(function (prevState) {
284284
return {
@@ -458,8 +458,8 @@ function (_React$PureComponent) {
458458
}
459459

460460
_createClass(RatingAPILayer, [{
461-
key: "componentWillReceiveProps",
462-
value: function componentWillReceiveProps(nextProps) {
461+
key: "UNSAFE_componentWillReceiveProps",
462+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
463463
this.setState({
464464
value: nextProps.initialRating
465465
});

lib/react-rating.esm.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ function (_React$PureComponent) {
273273
}
274274

275275
_createClass(Rating, [{
276-
key: "componentWillReceiveProps",
277-
value: function componentWillReceiveProps(nextProps) {
276+
key: "UNSAFE_componentWillReceiveProps",
277+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
278278
var valueChanged = this.props.value !== nextProps.value;
279279
this.setState(function (prevState) {
280280
return {
@@ -454,8 +454,8 @@ function (_React$PureComponent) {
454454
}
455455

456456
_createClass(RatingAPILayer, [{
457-
key: "componentWillReceiveProps",
458-
value: function componentWillReceiveProps(nextProps) {
457+
key: "UNSAFE_componentWillReceiveProps",
458+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
459459
this.setState({
460460
value: nextProps.initialRating
461461
});

lib/react-rating.umd.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-rating.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-rating.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-rating.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-rating",
3-
"version": "1.7.2",
3+
"version": "2.0.0",
44
"description": "A rating react component with custom symbols",
55
"main": "lib/react-rating.cjs.js",
66
"module": "lib/react-rating.esm.js",

0 commit comments

Comments
 (0)