v0.10.0
What's Changed
Breaking Changes
None. All changes are backward compatible.
Deprecations
dispatch()function is now deprecated. Usepierce()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
- jsDelivr:
- Added
modulefield in package.json for better bundler support
Improvements
- Renamed
baseEventTargetparameter tobaseTargetfor 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(), andthrottle() - 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 ofdispatch() - Improved parameter documentation
- Added note about
baseTargetandevt.currentTargetrelationship
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