Back to Explore

jaredwray/hookified

GitHub
3 updates · last 90 days1 watchersOpen source

Last release:

Hookified is a JavaScript utility that combines event emitting with async and sync middleware-style hooks for class methods. It lets you register handlers for named hook events, modify data passed into hooks, and run hook chains sequentially (WaterfallHook) or concurrently (ParallelHook), with support for both ESM and CJS and browser usage via CDN.

Project status

  • The source appears actively maintained, with updates in 2026 (latest on 2026-07-25, plus earlier updates in 2026-06-22 and 2026-05-24).
  • Apparent update cadence is relatively steady in the last few months, roughly one update about every 4 to 6 weeks (May 24 to June 22, then June 22 to July 25).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v3.0.2

    Release v3.0.2 updates only development tooling and the lockfile, with the package version bumped from 3.0.1 to 3.0.2. No application or published runtime code changes are present in the diff, only dependency and typecheck/test tooling updates.

  • v3.0.1

    v3.0.1 focuses on fixing once-hook and once-listener removal behavior when developers call removeHook/off with the original handler reference, and on making emit safe against mid-emit listener mutations. Internally, it also updates the build and CI toolchain (Corepack/pnpm 11, updated tooling, and workflow upgrades) plus adds a multi-listener emit benchmark.

    Security
  • v3.0.0

    v3.0.0 is primarily a tooling and environment upgrade release. It bumps the minimum Node.js requirement to >=22.18.0, updates GitHub Actions workflows (including CodeQL), and upgrades a set of devDependencies used for testing, building, and documentation.

    Breaking
  • v2.2.0

    v2.2.0 introduces a new ParallelHook that runs registered hook functions concurrently with Promise.allSettled and aggregates outcomes for a final handler. The release notes also mention a tooling migration from tsup to tsdown and general dev dependency upgrades.

    Features
  • v2.1.1

    Release v2.1.1 updates several development dependencies (Biome, Vitest, types tooling) and also bumps hookable, emittery, and docula. The release notes describe these as maintenance chores, but the code diff also includes an undocumented behavioral change in the core event dispatch logic.

  • v2.1.0

    v2.1.0 adds support for calling `onHook` using the legacy `(event, handler)` positional style, not just the `onHook({ event, handler }, options?)` object style. The implementation adds TypeScript overloads, runtime argument checking, and accompanying tests and README updates.

    Features
  • v2.0.1

    v2.0.1 focuses on performance improvements in the Eventified event emitter. The release notes mention optimized handling for single listeners and more efficient argument processing during emits.

  • v2.0.0

    v2.0.0 is a large breaking release that refactors hook handling around explicit hook objects (IHook) and a new HookFn function type, alongside a logger rename from logger to eventLogger. The release also changes runtime listener limits and hook error handling semantics, and substantially rewrites the hook-related test suite.

    BreakingFeatures
  • v1.15.1

    v1.15.1 primarily contains documentation and tooling updates, along with several development dependency upgrades. The code diff shows no changes to the library's runtime source code, but it does change the project's Node.js version assumptions and introduces a new script to regenerate benchmark tables in the README.

    Features
  • v1.15.0

    v1.15.0 introduces a new synchronous hook execution API, hookSync(event, ...args), which runs only synchronous handlers. Internally, Hookified refactors onHook/addHook to delegate registration through onHookEntry, and the project upgrades hookable to v6.0.1.

    Features