hooks.macro
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -0,1 +1,5 @@ | ||
## v1.1.0 (April 6, 2020) | ||
- Ignore constant state setters, reducers’ dispatch functions, refs. Closes #10 (f0082d33a3bf2879df0270532d5415a719bad703) | ||
## v1.0.1 (February 6, 2019) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "hooks.macro", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": "Pier Paolo Ramon <ramonpierre@gmail.com>", | ||
@@ -25,16 +25,15 @@ "main": "build/hooks.macro.js", | ||
"dependencies": { | ||
"@babel/helper-module-imports": "^7.0.0", | ||
"babel-plugin-macros": "^2.4.2" | ||
"@babel/helper-module-imports": "^7.8.3", | ||
"babel-plugin-macros": "^2.8.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/preset-env": "^7.1.6", | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/preset-env": "^7.9.0", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^23.6.0", | ||
"babel-plugin-macros": "^2.4.2", | ||
"babel-plugin-tester": "^5.5.2", | ||
"jest": "^23.6.0", | ||
"prettier": "^1.15.2" | ||
"babel-jest": "^25.2.3", | ||
"babel-plugin-tester": "^9.0.0", | ||
"jest": "^25.2.3", | ||
"prettier": "^2.0.2" | ||
} | ||
} |
@@ -138,8 +138,5 @@ # Hooks’ Macro :umbrella: | ||
```js | ||
useCallback( | ||
() => { | ||
doSomethingWith(value); | ||
}, | ||
[doSomethingWith, value], | ||
); | ||
useCallback(() => { | ||
doSomethingWith(value); | ||
}, [doSomethingWith, value]); | ||
``` | ||
@@ -164,8 +161,5 @@ | ||
```js | ||
useEffect( | ||
() => { | ||
doSomethingWith(value); | ||
}, | ||
[doSomethingWith, value], | ||
); | ||
useEffect(() => { | ||
doSomethingWith(value); | ||
}, [doSomethingWith, value]); | ||
``` | ||
@@ -172,0 +166,0 @@ |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8
10834
4
0
1
193