Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-immutable-proptypes

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-immutable-proptypes - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

1

CHANGELOG.md
## 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);

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc