Skip to content

Releases: mamedul/node-hooker

2025.09.07 - Second Release

06 Sep 18:22

Choose a tag to compare

[v2025.09.07] - 2025-09-07

Updated & Changed

* Documentations only

2025.09.06- First Release

06 Sep 18:06

Choose a tag to compare

[v2025.09.06] - 2025-09-06

Added

  • Initial Release: First public version of node-hooker.

  • Full WordPress Hook API Parity: Implemented the complete WordPress hooks system for Node.js.

  • Core Architecture:

    • Hook.js class to manage individual hooks.

    • Hooker class to orchestrate all actions and filters.

    • A default singleton instance is exported for ease of use, and the Hooker class is exported for creating isolated instances.

  • Core API Methods:

    • add, remove for generic hook management.

    • Action Functions: add_action, remove_action, do_action, do_action_ref_array, remove_all_actions.

    • Filter Functions: add_filter, remove_filter, apply_filters, apply_filters_ref_array, remove_all_filters.

    • Inspection Functions: has_action, has_filter, did_action, current_action, current_filter, doing_action, doing_filter.

  • Features: Support for callback priorities and defining the number of accepted arguments.

  • Project Files:

    • Comprehensive README.md for documentation.

    • package.json for NPM distribution.

    • A full test suite (test.js) ensuring all functions work as expected.