Socket
Socket
Sign inDemoInstall

react-immutable-proptypes

Package Overview
Dependencies
1
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.1 to 1.7.2

4

CHANGELOG.md

@@ -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.

4

dist/ImmutablePropTypes.js

@@ -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(

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc