chore(deps): update dependency @welldone-software/why-did-you-render to v8
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@welldone-software/why-did-you-render | devDependencies | major | ^3.6.0 -> ^8.0.0 |
Release Notes
welldone-software/why-did-you-render (@welldone-software/why-did-you-render)
v8.0.3
: Minor update
- Updated all packages, besides eslint (8->9) because it was a pretty big update. I might do it later.
- Fix #286 - set defaultProps to undefined when it's not present in the original to not have the warning "Support for defaultProps will be removed from function components in a future major release" by @Hypnosphi. Thank you!
- Readme updates by myself @vzaidman and @sergeylaptev. Thank you!
v8.0.1
Breaking changes
- Now only support
React 18
since it differs quite a lot from previous versions when monkey patching. by @vzaidman- For older versions use @^7
- Renamed the internal property that checks if React is monkey patched from
React.isWDYR
toReact.__IS_WDYR__
by @vzaidman
Non-breaking changes
- Add support for
useSyncExternalStore
by @iamakulov in https://github.com/welldone-software/why-did-you-render/pull/283 - Updated all packages to latest versions and adjusted tests, builds and dev server
- no more
yarn audit
vulnerabilities by @vzaidman
- no more
Docs updates
- Smaller logo in README.md by @alex-page in https://github.com/welldone-software/why-did-you-render/pull/248
- Add an example for using named imports with trackExtraHooks by @xepozz in https://github.com/welldone-software/why-did-you-render/pull/245
- fix simple typos by @lpmi-13 in https://github.com/welldone-software/why-did-you-render/pull/282
- Fix sentence by @busybox11 in https://github.com/welldone-software/why-did-you-render/pull/275
New Contributors
- @alex-page made their first contribution in https://github.com/welldone-software/why-did-you-render/pull/248
- @xepozz made their first contribution in https://github.com/welldone-software/why-did-you-render/pull/245
- @iamakulov made their first contribution in https://github.com/welldone-software/why-did-you-render/pull/283
- @lpmi-13 made their first contribution in https://github.com/welldone-software/why-did-you-render/pull/282
- @busybox11 made their first contribution in https://github.com/welldone-software/why-did-you-render/pull/275
v8.0.0
oops! please use v8.0.1 and above :)
v7.0.1
- fixed the reference to React 18 in
peerDependencies
inpackage.json
. Thank you @jussikinnula!
v7.0.0
: React 18
- Added support to React 18! Thank you @jussikinnula!
- Upgraded all packages
- Improved race conditions in E2E tests that caused them to fail in the latest Chrome versions
- It also made the tests clearer and faster
v6.2.3
: maintenance
- Update all packages
- Fixed tests for new versions
- Fixed eslint for new versions
- Added some TS types. Thank you @bduff9.
- Improved the readme
v6.2.2
v6.2.1
- Updated all packages
- Adjusted nollup setup files to work with the latest version
- Fixed TypeScript types for JSX runtime files. Thank you for pointing this one out @jafin!
v6.2.0
- updated all packages
- #203 - Add delegate parameter to allow for harvesting additional data from react element- an advanced feature by @ereddrex. Thank you!
v6.1.4
- fixed #196 - added
jsx-runtime
types (Thank you @hrazmsft)
v6.1.3
v6.1.2
- updated all packages
- fixed
defaultProps
being lost on components patched by wdyr. Thank you @joeyparis!! https://github.com/welldone-software/why-did-you-render/pull/194
v6.1.1
- Ignoring object getters because accessing them often errors and/or has side effects (fixing #184)
- Updated all packages and improved the vscode development environment
v6.1.0
Now also tracks non-plain objects (like new User()
).
Thank you @barakyosi!!
MR: https://github.com/welldone-software/why-did-you-render/pull/179 CLOSED ISSUE: https://github.com/welldone-software/why-did-you-render/issues/74
v6.0.5
fixed the bug "RangeError: Maximum call stack size exceeded" (#168) by making sure WDYR is not applied more than once under any circumstances.
v6.0.4
- updated all packages, including security fixes
- improved the code quality
- updated test file imports
- improved eslint rules
- updated vscode settings files
- added jest extension settings
- added eslint autofix
- improved the readme
v6.0.3
v6.0.2
v6.0.1
: React 17, Automatic JSX runtime transform
Breaking Changes
- No longer minimizes the library.
- The minimization created too many inconveniences.
- It should only be used in dev, and it's small anyway.
Other Changes
- Added support to React 17.
- Added support to the new jsx-runtime transform from babel.
- By the way, this might be a very useful thing for the library in the future.
- Added a mechanism to test both React 16 and React 17
v5.0.0
Notice:
- Support for
React@17
is on it's way.
Breaking changes:
- No longer tracks deep equals results in useMemo.
- No longer tracks re-renders as a result of
useCallback
invalidation due todeps
changes (fixes #46)- This fix was brought to you by the one and only @Hypnosphi :)
- Made
logOwnerReasons
true by default - Only build a minimized UMD version now and won't commit the built files to git anymore
- Removed
babel-plugin-lodash
because lodash optimizations better are done by the user of the library - Removed building in
babel-plugin-transform-classes
because we build with a newer babel where it is not needed anymore
Enhancements:
- Added a feature where upon request you can get a detailed diff between props. For example for the following: const sameObj = {a: {b: 'c'}} ReactDom.render(<Main containerProps={{style: {height: '100%'}, className: 'default-highchart', sameObj}} />, domElement) ReactDom.render(<Main containerProps={{style: {height: '100%'}, className: 'default-highchart', sameObj}} />, domElement) Since props are equal by value, you will see the following option that allows for the generation of a detailed diff report:
Fixes
- Only track hooks if they are supported
Readme
- improved readme in general, including the installation tips
Dev
- Added Travis pipelines that run
lint
,test
,audit
, ande2e tests
for each MR. - Added a full e2e coverage using cypress that runs in the pipelines.
- updated all dev packages
v4.3.2
v4.3.1
- fixed owner reasons bug in strict mode, also added a test
- updated all dev packages
v4.3.0
: Improved development
- Updated packages
- Added E2E tests (Cypress)
- Added CI (Travis CI)
- Running Unit tests, Lint, Audit, and E2E tests in CI
v4.2.7
- small typescript update. thanks @igorrmotta!
v4.2.6
- Fixed "track owner reasons" for cloned elements. Thanks @Hypnosphi !
- Updated all dependencies including a security update for lodash
v4.2.5
fixed WDYR trying to track untrackable React elements which resulted in a redundant console error to the console. thanks @MaffooBristol
v4.2.4
fixed handling of hook state change during render. thanks @Hypnosphi!!
v4.2.3
- minor docs improvements
- minor inner code efficiency improvements
- fixed a bug where broken code like
React.memo(null)
raised a console error regarding WDYR failure. - updated all dev dependencies
v4.2.2
fixed a false positive regarding React elements with several children with different props: https://github.com/welldone-software/why-did-you-render/issues/117
v4.2.1
fixed false positive regarding different react elements (based on their props) reported as deep equlas
v4.2.0
I came across situations where a component is re-rendered because a property that holds a huge object deep equals to it's previous version is passed to it (after a request to the API that returns the same result)
this caused my console to almost crash with tracks of every single nested property of it.
so now we would:
- only report the topmost object as being deepEqulas while ignoring what's inside and how much of it is different / deepEquls.
v4.1.3
fixed a certain error when using with Preact.
Preact is not officially supported by the library but seems to work with it.
v4.1.2
Improved readme to better explain how to add the library to projects without breaking hot reload
v4.1.1
added logOwnerReasons by @Hypnosphi.
You can read about it here: https://github.com/welldone-software/why-did-you-render#logownerreasons
added support to Sets tracking by @jfrumar-infinitusai
v4.0.8
fixed a minor bug where no tracking was made if the previous value of a hook was falsy
v4.0.7
: improved typescript typings
Thank you very much @OliverJAsh for pr https://github.com/welldone-software/why-did-you-render/pull/104 <3
v4.0.6
- improved readme
- updated to react 16.13.1 and tested
- updated all libraries like babel
v4.0.5
- improved readme
- improved typescript support
- updated all dev packages and tested the library with them
v4.0.4
: improved readme
v4.0.3
: fixed lack of tracking where a React.memo extended React.memo (which is not recommended by the way)
v4.0.0
: added "trackAllPureComponents" to typescript definitions and readme
no breaking changes.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.