before-after-hook
4.0.0 · 12 May 2025Apache-2.049.1M / weekRepositoryHomepagenpmAtom feed
21 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 4.x · latest line
4.0.0
12 May 2025- Breaking
Drop support for Node 16 and Node 18
Breaking changes
- Breaking
Drop support for Node 16 and Node 18
- 3.x
3.0.2
6 Oct 2022types: export
Hookas type interface
3.0.1
4 Oct 2022README: Node usage
3.0.0
4 Oct 2022- Breaking
before-after-hookis now a native ES Module - Breaking
before-after-hooknow has a single default export of{ Collection, Singular }
Breaking changes
- Breaking
before-after-hookis now a native ES Module - Breaking
before-after-hooknow has a single default export of{ Collection, Singular }
- 2.x
2.2.3
4 Oct 2022typescript: permit catching errors by returning a value in error hook
2.2.2
4 Jun 2021README: name the right things when explaining the usage examples
2.2.1
5 Apr 2021typescript: async hooks are supported
2.2.0
5 Mar 2021TypeScript support for Collection
2.1.0
12 Jul 2019typescript: improved definitions
2.0.1
9 Jul 2019typescript: adapt definitions for v2
2.0.0
9 Jul 2019- 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
- 1.x
1.4.0
4 Mar 2019new Hook.Singularfor better Typescript support
1.3.2
11 Jan 2019Hook passes option when no handlers are defined
1.3.1
29 Dec 2018Better TypeScript definitions
1.2.0
31 Oct 2018Remove es6 features for browser compatibility
Hook.wrap() & hook.remove()
1.1.0
16 Jan 2018Hook.error()
1.0.2
16 Jan 2018package: don’t publish dist files to npm, but upload to github release
1.0.1
10 Dec 2016Unshift before hooks
1.0.0
7 Dec 2016Initial version
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.