With the new monkey patch of version 1, tests are not passing on React 14 or 15. We decided to drop the support of those at all and added a readme notification about it.
v1.0.1
Added a test to ensure extended class and functional components are not swallowing statics.
v1.0.0 - New monkey patch
We implemented a new monkey patch which was written by @danburzo. Thank you!
This patch allows us to track updates in components with custom componentDidUpdate and on Functional Components. (fixing #10 and #17)
It works by monkey patching React.createElement instead of React.Component and:
On class components, extending them to new components with componentDidUpdateinheriting from the originals and using the extended version instead of the original one.
let WDYUFunctionalComponent = class extends YourReactComponent {
render() {
return ctor(this.props);
}
componentDidUpdate(prevProps, prevState) {
cdu.call(this, prevProps, prevState);
}
}
On functional components, wrapping them by a class component with a custom componentDidUpdate and using the wrapper to create the element instead of the functional component.
Braking Changes
We decided to release it as a major release since we expect it might work a little different then usually tracking more components then previously and (i hope not) braking some components because of the wrapping.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Linux249/cnc-eco/network/alerts).
Bumps lodash to 4.17.21 and updates ancestor dependency why-did-you-update. These dependencies need to be updated together.
Updates
lodash
from 4.17.15 to 4.17.21Commits
f299b52
Bump to v4.17.21c4847eb
Improve performance oftoNumber
,trim
andtrimEnd
on large input strings3469357
Prevent command injection through_.template
'svariable
optionded9bc6
Bump to v4.17.20.63150ef
Documentation fixes.00f0f62
test.js: Remove trailing comma.846e434
Temporarily use a custom fork oflodash-cli
.5d046f3
Re-enable Travis tests on4.17
branch.aa816b3
Remove/npm-package
.d7fbc52
Bump to v4.17.19Maintainer changes
This version was pushed to npm by bnjmnt4n, a new releaser for lodash since your current version.
Updates
why-did-you-update
from 0.0.8 to 1.0.8Release notes
Sourced from why-did-you-update's releases.
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show