before-after-hook
4.0.0 · 12 May 2025Apache-2.049.1M / weekRepositoryHomepagenpmAtom feed
2.2.3 is the newest release of 2.x.
In short
2 breaking1 deprecated
- Breaking
hook(/* options, */ method)is nowhook(method /*, options */) - Breaking
Dropped official support for Node 6. It will still work, but we no longer test with it as Node 6 is no longer maintained
- Deprecated
Deprecated
hook.remove.{before, error, after, wrap}()methods removed. Usehook.remove()instead.
Release note
Breaking changes
- Breaking
hook(/* options, */ method)is nowhook(method /*, options */) - Deprecated
Deprecated
hook.remove.{before, error, after, wrap}()methods removed. Usehook.remove()instead. - Breaking
Dropped official support for Node 6. It will still work, but we no longer test with it as Node 6 is no longer maintained
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.