immutable-assign
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,3 +6,2 @@ "use strict"; | ||
var deepFreeze = require("deep-freeze-strict"); | ||
var proxyPolyfill = require('./Libs/proxy'); | ||
} | ||
@@ -12,2 +11,8 @@ catch (ex) { | ||
} | ||
try { | ||
var proxyPolyfill = require('proxy-polyfill'); | ||
} | ||
catch (ex) { | ||
console.warn("Cannot load proxy-polyfill module. iassign() will not work in IE 11 or other old browsers."); | ||
} | ||
var v = factory(deepFreeze, proxyPolyfill, exports); | ||
@@ -18,3 +23,3 @@ if (v !== undefined) | ||
else if (typeof define === 'function' && define.amd) { | ||
define(["deep-freeze-strict", './Libs/proxy', "exports"], factory); | ||
define(["deep-freeze-strict", 'proxy-polyfill', "exports"], factory); | ||
} | ||
@@ -21,0 +26,0 @@ else { |
{ | ||
"name": "immutable-assign", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Lightweight immutable helper that allows you to continue working with Plain JavaScript Objects", | ||
@@ -38,3 +38,4 @@ "main": "deploy/iassign.js", | ||
"optionalDependencies": { | ||
"deep-freeze-strict": "^1.1.1" | ||
"deep-freeze-strict": "^1.1.1", | ||
"proxy-polyfill": "^0.1.7" | ||
}, | ||
@@ -65,3 +66,2 @@ "devDependencies": { | ||
"merge2": "^1.0.2", | ||
"proxy-polyfill": "^0.1.7", | ||
"seamless-immutable": "^7.0.1", | ||
@@ -68,0 +68,0 @@ "timm": "^1.2.3", |
@@ -482,4 +482,5 @@ # immutable-assign (iassign.js) | ||
* 2.0.1 - Minor bug fixes. | ||
* 2.0.0 - | ||
* Used [ES6 Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instead of eval() to process getProp(). | ||
* Used [ES6 Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instead of [eval()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) to process getProp(), which is more secure. | ||
* Also works on platforms that don't support Proxy and Map, such as IE 10 and IE 11 using the [proxy-polyfill](https://github.com/GoogleChrome/proxy-polyfill) and [ES6 Map polyfill](https://github.com/zloirock/core-js) | ||
@@ -486,0 +487,0 @@ |
Sorry, the diff of this file is too big to display
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
27
7232
513
1517783
2
18