Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
[![build](https://github.com/knowledgecode/delegate/actions/workflows/ci.yml/badge.svg)](https://github.com/knowledgecode/delegate/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/@knowledgecode/delegate)](https://www.npmjs.com/package/@knowledgecode/delegate)

An event delegation library with support for Web Components.
Event delegation library with support for Web Components.

## Features

- **🎯 Event Delegation**: Efficient event handling with automatic bubbling capture
- **🌐 Web Components Support**: Shadow DOM traversal with `>>` selector syntax
- **⚙️ Passive Listeners**: Support for passive event listeners with `:passive` syntax
- **⚡ Performance Utilities**: Built-in debounce and throttle functions
- **🔗 jQuery-like API**: Familiar method chaining interface for easy adoption
- **💾 Memory Efficient**: WeakMap-based caching prevents memory leaks
- **📦 TypeScript Native**: Full TypeScript support with comprehensive type definitions

## Notice

Expand Down
4 changes: 1 addition & 3 deletions eslint.config.ts → eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import tseslint from 'typescript-eslint';
import globals from 'globals';

export default tseslint.config(
{
Expand All @@ -13,8 +12,7 @@ export default tseslint.config(
ecmaVersion: 2015,
sourceType: 'module',
globals: {
...globals.browser,
...globals.node
self: 'readonly'
},
parserOptions: {
project: './tsconfig.json'
Expand Down
Loading