Skip to content

Hang on: version 2.0.0

Compare
Choose a tag to compare
@joepdooper joepdooper released this 09 May 22:30
· 2 commits to main since this release

What's New

  • Class-based Refactor: The library is now built around a class, allowing you to create multiple independent instances of CallbackHooks.
  • Enhanced Flexibility: You can now manage callbacks in isolated contexts, perfect for modular applications.
  • Cleaner and More Intuitive API: The updated API offers a more consistent and modern approach for adding and calling hooks.
  • Improved Call Management: Trigger events with a streamlined, easy-to-use method that supports better error handling and performance.
  • Backward Compatibility: All existing functionality is still supported, but you can now enjoy a more extensible architecture.

This release offers a smoother, more flexible API for managing events, making sure that your hooks are always ready to be called.

Upgrade Notes

You can now instantiate multiple CallbackHooks objects. This version introduces a class structure, so you may need to adjust your code if you were previously using the static object approach.