Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hooks.macro

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hooks.macro - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

4

CHANGELOG.md

@@ -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 @@

21

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc