react-immutable-proptypes
Advanced tools
Comparing version 1.3.0 to 1.4.0
## 1.2.x | ||
- 1.4.0 added support for orderedSetOf and orderedMapOf | ||
- 1.3.0 added support for record and recordOf type checkers. | ||
@@ -3,0 +4,0 @@ - 1.2.3 [Nik Butenko](http://butenko.me/) provided a better .npmignore file |
@@ -16,3 +16,5 @@ /** | ||
mapOf: createMapOfTypeChecker, | ||
orderedMapOf: createOrderedMapOfTypeChecker, | ||
setOf: createSetOfTypeChecker, | ||
orderedSetOf: createOrderedSetOfTypeChecker, | ||
iterableOf: createIterableOfTypeChecker, | ||
@@ -112,2 +114,6 @@ recordOf: createRecordOfTypeChecker, | ||
function createOrderedMapOfTypeChecker(typeChecker) { | ||
return createIterableTypeChecker(typeChecker, "OrderedMap", Immutable.OrderedMap.isOrderedMap); | ||
} | ||
function createSetOfTypeChecker(typeChecker) { | ||
@@ -117,2 +123,6 @@ return createIterableTypeChecker(typeChecker, "Set", Immutable.Set.isSet); | ||
function createOrderedSetOfTypeChecker(typeChecker) { | ||
return createIterableTypeChecker(typeChecker, "OrderedSet", Immutable.OrderedSet.isOrderedSet); | ||
} | ||
function createIterableOfTypeChecker(typeChecker) { | ||
@@ -119,0 +129,0 @@ return createIterableTypeChecker(typeChecker, "Iterable", Immutable.Iterable.isIterable); |
{ | ||
"name": "react-immutable-proptypes", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "PropType validators that work with Immutable.js.", | ||
@@ -5,0 +5,0 @@ "main": "dist/ImmutablePropTypes.js", |
@@ -63,4 +63,6 @@ # react-immutable-proptypes | ||
* `ImmutablePropTypes.setOf` is basically the same as `listOf`, but it is specific to `Immutable.Set`. | ||
* `ImmutablePropTypes.orderedMapOf` is basically the same as `listOf`, but it is specific to `Immutable.OrderedMap`. | ||
* `ImmutablePropTypes.orderedSetOf` is basically the same as `listOf`, but it is specific to `Immutable.OrderedSet`. | ||
* `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. | ||
@@ -67,0 +69,0 @@ |
@@ -14,3 +14,5 @@ /** | ||
mapOf: createMapOfTypeChecker, | ||
orderedMapOf: createOrderedMapOfTypeChecker, | ||
setOf: createSetOfTypeChecker, | ||
orderedSetOf: createOrderedSetOfTypeChecker, | ||
iterableOf: createIterableOfTypeChecker, | ||
@@ -120,2 +122,6 @@ recordOf: createRecordOfTypeChecker, | ||
function createOrderedMapOfTypeChecker(typeChecker) { | ||
return createIterableTypeChecker(typeChecker, 'OrderedMap', Immutable.OrderedMap.isOrderedMap); | ||
} | ||
function createSetOfTypeChecker(typeChecker) { | ||
@@ -125,2 +131,6 @@ return createIterableTypeChecker(typeChecker, 'Set', Immutable.Set.isSet); | ||
function createOrderedSetOfTypeChecker(typeChecker) { | ||
return createIterableTypeChecker(typeChecker, 'OrderedSet', Immutable.OrderedSet.isOrderedSet); | ||
} | ||
function createIterableOfTypeChecker(typeChecker) { | ||
@@ -127,0 +137,0 @@ return createIterableTypeChecker(typeChecker, 'Iterable', Immutable.Iterable.isIterable); |
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
120622
710
97