Skip to content

v0.10.0

Choose a tag to compare

@knowledgecode knowledgecode released this 31 Dec 09:10
· 50 commits to master since this release
8aee79d

What's Changed

Breaking Changes

None. All changes are backward compatible.

Deprecations

  • dispatch() function is now deprecated. Use pierce() instead.

New Features

  • CDN support for ES module imports
    • jsDelivr: https://cdn.jsdelivr.net/npm/@knowledgecode/delegate/+esm
    • unpkg: https://unpkg.com/@knowledgecode/delegate?module
  • Added module field in package.json for better bundler support

Improvements

  • Renamed baseEventTarget parameter to baseTarget for consistency
  • Improved DelegateEvent implementation with generic types
  • Enhanced JSDoc comments throughout the codebase
  • Extracted common utilities to src/common.ts

Testing

  • Added tests for pierce(), debounce(), and throttle()
  • Added passive event listener tests
  • Added error handling tests
  • Improved test structure with Promise-based assertions

Documentation

  • Added CDN installation instructions
  • Updated all examples to use pierce() instead of dispatch()
  • Improved parameter documentation
  • Added note about baseTarget and evt.currentTarget relationship

Configuration

  • Bumped version to 0.10.0
  • Updated all dependencies to latest versions
  • Simplified ESLint configuration
  • Added VS Code settings for ESLint

Full Changelog: v0.9.0...v0.10.0