@welldone-software/why-did-you-render
Advanced tools
Comparing version 3.3.5 to 3.3.6
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
/** | ||
* @welldone-software/why-did-you-render 3.3.5 | ||
* @welldone-software/why-did-you-render 3.3.6 | ||
* MIT Licensed | ||
* Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman) | ||
* Generated at 2019-09-16 | ||
* Generated at 2019-10-05 | ||
*/ | ||
@@ -7,0 +7,0 @@ |
{ | ||
"name": "@welldone-software/why-did-you-render", | ||
"version": "3.3.5", | ||
"version": "3.3.6", | ||
"description": "Monkey patches React to notify you about avoidable re-renders.", | ||
@@ -59,16 +59,16 @@ "types": "types.d.ts", | ||
"peerDependencies": { | ||
"react": ">=16.9" | ||
"react": ">=16.10" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.0", | ||
"@babel/core": "^7.6.0", | ||
"@babel/cli": "^7.6.2", | ||
"@babel/core": "^7.6.2", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
"@babel/preset-env": "^7.6.0", | ||
"@babel/preset-env": "^7.6.2", | ||
"@babel/preset-react": "^7.0.0", | ||
"@testing-library/jest-dom": "^4.1.0", | ||
"@testing-library/react": "^9.1.4", | ||
"@types/react": "^16.9.2", | ||
"@welldone-software/jest-console-handler": "^0.1.0", | ||
"@testing-library/react": "^9.2.0", | ||
"@types/react": "^16.9.4", | ||
"@welldone-software/jest-console-handler": "^0.1.1", | ||
"acorn-walk": "^7.0.0", | ||
"astring": "^1.4.1", | ||
"astring": "^1.4.2", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -80,20 +80,20 @@ "babel-eslint": "^10.0.3", | ||
"create-react-class": "^15.6.3", | ||
"cross-env": "^5.2.1", | ||
"eslint": "^6.3.0", | ||
"cross-env": "^6.0.0", | ||
"eslint": "^6.5.1", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint-plugin-react": "^7.14.3", | ||
"eslint-plugin-react": "^7.15.0", | ||
"express": "^4.17.1", | ||
"express-history-api-fallback": "^2.2.1", | ||
"husky": "^3.0.5", | ||
"husky": "^3.0.7", | ||
"jest": "^24.9.0", | ||
"jest-cli": "^24.9.0", | ||
"magic-string": "^0.25.3", | ||
"nollup": "^0.7.4", | ||
"react": "^16.9.0", | ||
"magic-string": "^0.25.4", | ||
"nollup": "^0.7.6", | ||
"react": "^16.10.1", | ||
"react-dom": "npm:@hot-loader/react-dom@^16.9.0", | ||
"react-hot-loader": "^4.12.13", | ||
"react-hot-loader": "^4.12.14", | ||
"react-redux": "^7.1.1", | ||
"redux": "^4.0.4", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.21.2", | ||
"rollup": "^1.22.0", | ||
"rollup-plugin-babel": "^4.3.3", | ||
@@ -106,4 +106,4 @@ "rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-terser": "^5.1.2", | ||
"styled-components": "^4.3.2" | ||
"styled-components": "^4.4.0" | ||
} | ||
} |
/// <reference types="react" /> | ||
declare namespace WhyDidYouRender { | ||
interface HookDifference { | ||
pathString: string; | ||
diffType: string; | ||
prevValue: any; | ||
nextValue: any; | ||
} | ||
interface ReasonForUpdate { | ||
hookDifferences: boolean; | ||
hookDifferences: HookDifference[]; | ||
propsDifferences: boolean; | ||
@@ -17,4 +25,7 @@ stateDifferences: boolean; | ||
nextState: any; | ||
prevHook: any; | ||
nextHook: any; | ||
reason: ReasonForUpdate; | ||
options: WhyDidYouRenderOptions; | ||
hookName?: string; | ||
} | ||
@@ -35,2 +46,4 @@ | ||
} | ||
type WhyDidYouRenderComponentMember = WhyDidYouRenderOptions|boolean | ||
} | ||
@@ -42,2 +55,3 @@ | ||
export import WhyDidYouRenderOptions = WhyDidYouRender.WhyDidYouRenderOptions; | ||
export import HookDifference = WhyDidYouRender.HookDifference; | ||
@@ -49,7 +63,7 @@ export default function whyDidYouRender(react: typeof React, options?: WhyDidYouRenderOptions): typeof React; | ||
interface FunctionComponent<P = {}> { | ||
whyDidYouRender?: boolean|WhyDidYouRender.WhyDidYouRenderOptions; | ||
whyDidYouRender?: WhyDidYouRender.WhyDidYouRenderComponentMember; | ||
} | ||
namespace Component { | ||
export const whyDidYouRender: boolean|WhyDidYouRender.WhyDidYouRenderOptions; | ||
const whyDidYouRender: WhyDidYouRender.WhyDidYouRenderComponentMember; | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1202762
15493