use-debouncy
Advanced tools
Comparing version 1.6.1 to 1.7.0
@@ -0,1 +1,16 @@ | ||
# [1.7.0](https://github.com/egorAva/use-debouncy/compare/v1.6.1...v1.7.0) (2020-06-23) | ||
### Bug Fixes | ||
* brotli disable ([1db05ff](https://github.com/egorAva/use-debouncy/commit/1db05ffbf3e359083dd7cf28a199dbd185f654fc)) | ||
* clear moved in up scope ([a58fe87](https://github.com/egorAva/use-debouncy/commit/a58fe87357d49423f20efbdd3be282a1de7a7412)) | ||
* disable run size-limit in test ([c5560b8](https://github.com/egorAva/use-debouncy/commit/c5560b8046885655b6799aee50c3bc6e96777fd4)) | ||
### Features | ||
* compress size bundle ([0d2976e](https://github.com/egorAva/use-debouncy/commit/0d2976ecfb6b67ab30cd3097aa037f4de57c11a2)) | ||
* remove update function for comprese size ([a71b259](https://github.com/egorAva/use-debouncy/commit/a71b259eb6eac65beb120103d3ead625834dbc6f)) | ||
## [1.6.1](https://github.com/egorAva/use-debouncy/compare/v1.6.0...v1.6.1) (2020-06-23) | ||
@@ -2,0 +17,0 @@ |
@@ -1,2 +0,2 @@ | ||
import{useRef as o,useCallback as n,useEffect as t}from"react";export default function(i,u,c){void 0===u&&(u=0),void 0===c&&(c=[]);var f=t,r=o([void 0,i,function(){var o=r.current[0];o&&clearTimeout(o)}]),e=n((function(){var o=r.current,n=o[1];(0,o[2])(),r.current[0]=setTimeout((function(){n()}),u)}),[u]);f((function(){r.current[1]=i}),[i]),f((function(){e()}),c),f((function(){r.current[2]()}),[])} | ||
import{useRef as o,useEffect as t}from"react";var i=t,n=function(o){o&&clearTimeout(o)};export default function(t,u,c){void 0===u&&(u=0),void 0===c&&(c=[]);var f=o([void 0,t]);i((function(){f.current[1]=t}),[t]),i((function(){n(f.current[0]),f.current[0]=setTimeout((function(){f.current[1]()}),u)}),c),i((function(){n(f.current[0])}),[])} | ||
//# sourceMappingURL=index.es.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var i=require("react");module.exports=function(n,o,t){void 0===o&&(o=0),void 0===t&&(t=[]);var u=i.useEffect,c=i.useRef([void 0,n,function(){var i=c.current[0];i&&clearTimeout(i)}]),e=i.useCallback((function(){var i=c.current,n=i[1];(0,i[2])(),c.current[0]=setTimeout((function(){n()}),o)}),[o]);u((function(){c.current[1]=n}),[n]),u((function(){e()}),t),u((function(){c.current[2]()}),[])}; | ||
"use strict";var i=require("react"),n=i.useEffect,o=function(i){i&&clearTimeout(i)};module.exports=function(t,u,c){void 0===u&&(u=0),void 0===c&&(c=[]);var e=i.useRef([void 0,t]);n((function(){e.current[1]=t}),[t]),n((function(){o(e.current[0]),e.current[0]=setTimeout((function(){e.current[1]()}),u)}),c),n((function(){o(e.current[0])}),[])}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "use-debouncy", | ||
"version": "1.6.1", | ||
"version": "1.7.0", | ||
"author": "Egor Avakumov", | ||
@@ -21,3 +21,3 @@ "description": "React effect hook for debounce", | ||
"size": "size-limit", | ||
"test": "jest && size-limit", | ||
"test": "jest", | ||
"build": "rollup -c", | ||
@@ -44,2 +44,3 @@ "prebuild": "rimraf lib compile && tsc --outDir compile --declarationDir lib --declaration true", | ||
"@size-limit/preset-small-lib": "4.5.1", | ||
"@size-limit/time": "4.5.1", | ||
"@testing-library/react-hooks": "3.3.0", | ||
@@ -65,3 +66,2 @@ "@types/jest": "26.0.0", | ||
"rollup": "2.18.0", | ||
"rollup-plugin-analyzer": "3.2.3", | ||
"rollup-plugin-terser": "6.1.0", | ||
@@ -82,3 +82,19 @@ "semantic-release": "17.1.0", | ||
"limit": "200 B", | ||
"path": "lib/index.js" | ||
"path": [ | ||
"lib/index.js" | ||
], | ||
"import": "{ createStore }", | ||
"running": true, | ||
"gzip": true, | ||
"brotli": false | ||
}, | ||
{ | ||
"limit": "200 B", | ||
"path": [ | ||
"lib/index.es.js" | ||
], | ||
"import": "{ createStore }", | ||
"running": true, | ||
"gzip": true, | ||
"brotli": false | ||
} | ||
@@ -85,0 +101,0 @@ ], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
12516