Packages

before-after-hook

4.0.0 · 12 May 2025Apache-2.049.1M / weekRepositoryHomepagenpmAtom feed

Your version

21 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.x · latest line
  2. 4.0.0

    12 May 2025
    • Breaking

      Drop support for Node 16 and Node 18

  3. 3.x
  4. 3.0.2

    6 Oct 2022
    • types: export Hook as type interface

  5. 3.0.1

    4 Oct 2022
    • README: Node usage

  6. 3.0.0

    4 Oct 2022
    • Breaking

      before-after-hook is now a native ES Module

    • Breaking

      before-after-hook now has a single default export of { Collection, Singular }

  7. 2.x
  8. 2.2.3

    4 Oct 2022
    • typescript: permit catching errors by returning a value in error hook

  9. 2.2.2

    4 Jun 2021
    • README: name the right things when explaining the usage examples

  10. 2.2.1

    5 Apr 2021
    • typescript: async hooks are supported

  11. 2.2.0

    5 Mar 2021
    • TypeScript support for Collection

  12. 2.1.1

    31 Jan 2021
  13. 2.1.0

    12 Jul 2019
    • typescript: improved definitions

  14. 2.0.1

    9 Jul 2019
    • typescript: adapt definitions for v2

  15. 2.0.0

    9 Jul 2019
    • Breaking

      hook(/* options, */ method) is now hook(method /*, options */)

    • Deprecated

      Deprecated hook.remove.{before, error, after, wrap}() methods removed. Use hook.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

  16. 1.x
  17. 1.4.0

    4 Mar 2019
    • new Hook.Singular for better Typescript support

  18. 1.3.2

    11 Jan 2019
    • Hook passes option when no handlers are defined

  19. 1.3.1

    29 Dec 2018
    • Better TypeScript definitions

  20. 1.3.0

    27 Dec 2018
  21. 1.2.0

    31 Oct 2018
    • Remove es6 features for browser compatibility

    • Hook.wrap() & hook.remove()

  22. 1.1.0

    16 Jan 2018
    • Hook.error()

  23. 1.0.2

    16 Jan 2018
    • package: don’t publish dist files to npm, but upload to github release

  24. 1.0.1

    10 Dec 2016
    • Unshift before hooks

  25. 1.0.0

    7 Dec 2016
    • Initial 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.