util-deprecate
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -11,4 +11,11 @@ | ||
* Returns a modified function which warns once by default. | ||
* If --no-deprecation is set, then it is a no-op. | ||
* | ||
* If `localStorage.noDeprecation = true` is set, then it is a no-op. | ||
* | ||
* If `localStorage.throwDeprecation = true` is set, then deprecated functions | ||
* will throw an Error when invoked. | ||
* | ||
* If `localStorage.traceDeprecation = true` is set, then deprecated functions | ||
* will invoke `console.trace()` instead of `console.error()`. | ||
* | ||
* @param {Function} fn - the function to deprecate | ||
@@ -33,3 +40,3 @@ * @param {String} msg - the string to print to the console when `fn` is invoked | ||
} else { | ||
console.error(msg); | ||
console.warn(msg); | ||
} | ||
@@ -36,0 +43,0 @@ warned = true; |
1.0.1 / 2014-11-25 | ||
================== | ||
* browser: use `console.warn()` for deprecation calls | ||
* browser: more jsdocs | ||
1.0.0 / 2014-04-30 | ||
@@ -3,0 +9,0 @@ ================== |
{ | ||
"name": "util-deprecate", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The Node.js `util.deprecate()` function with browser support", | ||
@@ -5,0 +5,0 @@ "main": "node.js", |
5248
58