GitShow/sindresorhus/dom-mutations
sindresorhus

dom-mutations

Observe changes to the DOM using an async iterable — A nicer API for MutationObserver

by sindresorhus
Star on GitHubForknpm

JavaScript

223 stars6 forks2 contributorsQuiet · 11mo agoSince 2023v1.0.2MIT

Meet the team

See all 2 on GitHub →
sindresorhus
sindresorhus10 contributions
Richienb
Richienb3 contributions

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
Richienb
Test cleanup on throwMergedPR

I don't know if we need this Once again I would like to apologise for not thinking of this in the first two

Richienb · 11mo ago
Richienb
Fix freezing on `return()` for `domMutations`MergedPR

It turns out this problem happens for both functions, sorry! To fix this, we pass the signal down to the batched version, which will run the cleanup. This solution doesn't feel idiomatic, and that's because you're not intended to manually call . Rather, you implicitly call it when you do from within the loop, at which point a value would have needed to be produced so that the loop would run.

Richienb · 11mo ago
sindresorhus
Minor simplificationsMergedPR
sindresorhus · 11mo ago
Structured data for AI agents

Repository: sindresorhus/dom-mutations. Description: Observe changes to the DOM using an async iterable — A nicer API for MutationObserver Stars: 223, Forks: 6. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.0.2 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 71%. Top contributors: sindresorhus, Richienb.

·@ofershap

Replace github.com with gitshow.dev