use-debounce
Advanced tools
Comparing version 8.0.4 to 9.0.0
{ | ||
"name": "use-debounce", | ||
"version": "8.0.4", | ||
"version": "9.0.0", | ||
"description": "Debounce hook for react", | ||
"type": "module", | ||
"source": "src/index.ts", | ||
@@ -85,3 +86,3 @@ "main": "dist/index.js", | ||
"react-dom": "16.8.3", | ||
"size-limit": "^4.6.2", | ||
"size-limit": "^8.1.0", | ||
"ts-jest": "^26.3.0", | ||
@@ -95,3 +96,3 @@ "typescript": "^3.5.1" | ||
{ | ||
"path": "dist/index.js", | ||
"path": "dist/index.cjs", | ||
"limit": "1 KB" | ||
@@ -112,3 +113,3 @@ }, | ||
{ | ||
"path": "dist/index.js", | ||
"path": "dist/index.cjs", | ||
"import": "{ useDebounce }", | ||
@@ -118,3 +119,3 @@ "limit": "1 KB" | ||
{ | ||
"path": "dist/index.js", | ||
"path": "dist/index.cjs", | ||
"import": "{ useDebouncedCallback }", | ||
@@ -124,3 +125,3 @@ "limit": "1 KB" | ||
{ | ||
"path": "dist/index.js", | ||
"path": "dist/index.cjs", | ||
"import": "{ useThrottledCallback }", | ||
@@ -127,0 +128,0 @@ "limit": "1 KB" |
@@ -201,3 +201,3 @@ <div align="center"> | ||
```javascript | ||
import React, { useState, useCallback } from 'react'; | ||
import React, { useState } from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
@@ -236,3 +236,3 @@ import { useDebouncedCallback } from 'use-debounce'; | ||
```javascript | ||
import React, { useState, useCallback } from 'react'; | ||
import React, { useState } from 'react'; | ||
import { useDebouncedCallback } from 'use-debounce'; | ||
@@ -266,2 +266,4 @@ | ||
```javascript | ||
import React, { useCallback } from 'react'; | ||
function Component({ text }) { | ||
@@ -268,0 +270,0 @@ const debounced = useDebouncedCallback(useCallback(() => {}, []), 500); |
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
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
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
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
106011
358
Yes