@rematch/immer
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.1](https://github.com/rematch/rematch/compare/@rematch/immer@2.0.0...@rematch/immer@2.0.1) (2021-02-23) | ||
### Bug Fixes | ||
* immer `whitelist` and `blacklist` conf no longer ignored ([#867](https://github.com/rematch/rematch/issues/867)) ([775258e](https://github.com/rematch/rematch/commit/775258eb8c81ad4bb3548b0d43445c4061bbbd5d)) | ||
# [2.0.0](https://github.com/rematch/rematch/compare/@rematch/immer@2.0.0-next.10...@rematch/immer@2.0.0) (2021-01-31) | ||
@@ -8,0 +19,0 @@ |
@@ -22,3 +22,3 @@ 'use strict'; | ||
onReducer: function onReducer(reducer, model) { | ||
if (!config || !config.whitelist && !config.blacklist || config.whitelist && model in config.whitelist || config.blacklist && !(model in config.blacklist)) { | ||
if (!config || !config.whitelist && !config.blacklist || config.whitelist && config.whitelist.includes(model) || config.blacklist && !config.blacklist.includes(model)) { | ||
return wrapReducerWithImmer(reducer); | ||
@@ -25,0 +25,0 @@ } |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=(t=require("immer"))&&"object"==typeof t&&"default"in t?t.default:t;exports.default=function(t){return{onReducer:function(i,r){if(!t||!t.whitelist&&!t.blacklist||t.whitelist&&r in t.whitelist||t.blacklist&&!(r in t.blacklist))return function(t){return function(i,r){return"object"==typeof i?e(i,(function(e){var i=t(e,r);if("object"==typeof i)return i})):t(i,r)}}(i)}}}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("immer"))&&"object"==typeof e&&"default"in e?e.default:e;exports.default=function(e){return{onReducer:function(i,r){if(!e||!e.whitelist&&!e.blacklist||e.whitelist&&e.whitelist.includes(r)||e.blacklist&&!e.blacklist.includes(r))return function(e){return function(i,r){return"object"==typeof i?t(i,(function(t){var i=e(t,r);if("object"==typeof i)return i})):e(i,r)}}(i)}}}; | ||
//# sourceMappingURL=immer.cjs.production.min.js.map |
@@ -16,3 +16,3 @@ import produce from 'immer'; | ||
onReducer: function onReducer(reducer, model) { | ||
if (!config || !config.whitelist && !config.blacklist || config.whitelist && model in config.whitelist || config.blacklist && !(model in config.blacklist)) { | ||
if (!config || !config.whitelist && !config.blacklist || config.whitelist && config.whitelist.includes(model) || config.blacklist && !config.blacklist.includes(model)) { | ||
return wrapReducerWithImmer(reducer); | ||
@@ -19,0 +19,0 @@ } |
@@ -22,3 +22,3 @@ (function (global, factory) { | ||
onReducer: function onReducer(reducer, model) { | ||
if (!config || !config.whitelist && !config.blacklist || config.whitelist && model in config.whitelist || config.blacklist && !(model in config.blacklist)) { | ||
if (!config || !config.whitelist && !config.blacklist || config.whitelist && config.whitelist.includes(model) || config.blacklist && !config.blacklist.includes(model)) { | ||
return wrapReducerWithImmer(reducer); | ||
@@ -25,0 +25,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("immer")):"function"==typeof define&&define.amd?define(["exports","immer"],t):t((e=e||self)["@rematch/immer"]={},e.produce)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,e.default=function(e){return{onReducer:function(i,n){if(!e||!e.whitelist&&!e.blacklist||e.whitelist&&n in e.whitelist||e.blacklist&&!(n in e.blacklist))return function(e){return function(i,n){return"object"==typeof i?t(i,(function(t){var i=e(t,n);if("object"==typeof i)return i})):e(i,n)}}(i)}}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("immer")):"function"==typeof define&&define.amd?define(["exports","immer"],t):t((e=e||self)["@rematch/immer"]={},e.produce)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,e.default=function(e){return{onReducer:function(i,n){if(!e||!e.whitelist&&!e.blacklist||e.whitelist&&e.whitelist.includes(n)||e.blacklist&&!e.blacklist.includes(n))return function(e){return function(i,n){return"object"==typeof i?t(i,(function(t){var i=e(t,n);if("object"==typeof i)return i})):e(i,n)}}(i)}}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=immer.umd.production.min.js.map |
{ | ||
"name": "@rematch/immer", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Redux-Immer v6 plugin for Rematch. Provides immutable ability for rematch.", | ||
@@ -27,8 +27,8 @@ "homepage": "https://rematch.github.io/rematch", | ||
"devDependencies": { | ||
"@rematch/core": "^2.0.0", | ||
"immer": "^7.0.9", | ||
"@rematch/core": "^2.0.1", | ||
"immer": "^8.0.1", | ||
"redux": "^4.0.5" | ||
}, | ||
"peerDependencies": { | ||
"@rematch/core": ">=2.0.0-next.0", | ||
"@rematch/core": "^2.0.0", | ||
"immer": ">=7 | >= 8", | ||
@@ -58,3 +58,3 @@ "redux": ">=4" | ||
}, | ||
"gitHead": "d575883af19a6f105655ea23b143e64590720acb" | ||
"gitHead": "e123bb5976bcc1ef7f178c2b685bed9805d80cda" | ||
} |
@@ -32,4 +32,4 @@ import { Plugin, Models } from '@rematch/core' | ||
(!config.whitelist && !config.blacklist) || | ||
(config.whitelist && model in config.whitelist) || | ||
(config.blacklist && !(model in config.blacklist)) | ||
(config.whitelist && config.whitelist.includes(model)) || | ||
(config.blacklist && !config.blacklist.includes(model)) | ||
) { | ||
@@ -36,0 +36,0 @@ return wrapReducerWithImmer(reducer) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
27950
18
0
110
1
1