react-immutable-proptypes
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -0,1 +1,5 @@ | ||
## 1.7.2 | ||
- [Lexicality](https://github.com/Lexicality) added support for Immutable > 3.6.2 | ||
- [jsdf](https://github.com/jsdf) gave us a nice performance boost by only generating error messages when they are needed | ||
## 1.7.1 added better warnings | ||
@@ -2,0 +6,0 @@ - thanks to [Monday Chen](https://github.com/mondaychen) for adding this new feature. |
@@ -144,4 +144,4 @@ /** | ||
var propValue = props[propName]; | ||
var propType = getPropType(propValue); | ||
if (!(propValue instanceof Immutable.Record)) { | ||
var propType = getPropType(propValue); | ||
var locationName = location; | ||
@@ -172,4 +172,4 @@ return new Error("Invalid " + locationName + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected an Immutable.js Record.")); | ||
var propValue = props[propName]; | ||
var propType = getPropType(propValue); | ||
if (!immutableClassTypeValidator(propValue)) { | ||
var propType = getPropType(propValue); | ||
var locationName = location; | ||
@@ -176,0 +176,0 @@ return new Error("Invalid " + locationName + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected an Immutable.js " + immutableClassName + ".")); |
{ | ||
"name": "react-immutable-proptypes", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "PropType validators that work with Immutable.js.", | ||
@@ -31,3 +31,3 @@ "main": "dist/ImmutablePropTypes.js", | ||
"peerDependencies": { | ||
"immutable": "^3.6.2" | ||
"immutable": ">=3.6.2" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
@@ -77,3 +77,3 @@ # react-immutable-proptypes | ||
* `ImmutbalePropTypes.iterableOf` is the generic form of listOf/mapOf. It is useful when there is no need to validate anything other than Immutable.js compatible (ie. `Immutable.Iterable`). Continue to use `listOf` and/or `mapOf` when you know the type. | ||
* `ImmutablePropTypes.iterableOf` is the generic form of listOf/mapOf. It is useful when there is no need to validate anything other than Immutable.js compatible (ie. `Immutable.Iterable`). Continue to use `listOf` and/or `mapOf` when you know the type. | ||
@@ -80,0 +80,0 @@ * `ImmutablePropTypes.recordOf` is like `contains`, except it operates on Record properties. |
@@ -152,4 +152,4 @@ /** | ||
var propValue = props[propName]; | ||
var propType = getPropType(propValue); | ||
if (!(propValue instanceof Immutable.Record)) { | ||
var propType = getPropType(propValue); | ||
var locationName = location; | ||
@@ -180,4 +180,4 @@ return new Error( | ||
var propValue = props[propName]; | ||
var propType = getPropType(propValue); | ||
if (!immutableClassTypeValidator(propValue)) { | ||
var propType = getPropType(propValue); | ||
var locationName = location; | ||
@@ -184,0 +184,0 @@ return new Error( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25440