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

  • Actively maintained, with very recent activity (last upstream push 2026-09-22, latest published update v3.0.4 dated 2026-09-21).
  • Update cadence looks steady, with multiple releases across 2026 at roughly monthly intervals (v3.0.4, v3.0.3, v3.0.2, v3.0.1, then earlier v3.0.0).

AI summary generated

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

Recent updates

  • v3.0.4

    v3.0.4 primarily updates tooling and CI hardening, including pinning pnpm and Dev Container images, and upgrading dependencies and security-related CI actions. The release notes also call out a Cloudflare Pages deploy change by pinning Wrangler, but the provided diff excerpt mostly shows CI, devcontainer, and dependency/tooling upgrades.

  • v3.0.3

    v3.0.3 focuses on CI and release pipeline hardening plus development tooling upgrades, with no stated changes to the published library runtime code. The diff shows extensive GitHub Actions changes (Socket Firewall wrapping, pinned action SHAs, Aikido release gating, and staged npm publishing), alongside dev toolchain upgrades (pnpm, TypeScript, tinybench, etc.).

    Security
  • 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