Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
mutation-summary
Advanced tools
Branch | Status |
---|---|
master | |
develop |
Mutation Summary is a JavaScript library that makes observing changes to the DOM fast, easy and safe. It's built on top DOM Mutation Observers, which is widely supported support. Mutation Summary watches the DOM for changes, and summaries those changes in a compact and efficient set of changes.
The API is simple and easy to use. To monitor all changes in the DOM:
const ms = new MutationSummary({
callback(summaries: Summary[]) {
summaries.forEach((summary: Summary) => console.log(summary));
},
queries: [
{ all: true }
]
});
For more detailed information on how to use Mutation Summary see these references:
The raw MutationObserver API is powerful, yet complex and cumbersome to use directly. Mutation Summary does five main things for you:
Lots of things, here are some examples:
The intent here isn't to be all things to all use-cases. Mutation Summary is not meant to:
“div[foo] span.bar > p:first-child”
? Unfortunately, efficiently computing that is much harder and currently outside the scope of this library.Note that both of the above use cases are possible given the data that the underlying Mutation Observers API provides -- we simply judged them to be outside the "80% use case" that we targeted with this particular library.
If you have been using a 0.x version of Mutation Summary and are upgrading to a 1.x version. There are breaking changes in the API. Most notable, the API has been converted to a module based packaging.
Please see the Upgrade Guide
Initial implementation contributed by:
Rafael Weinstein https://github.com/rafaelw
1.0.0 (May 15, 2021)
FAQs
Makes observing the DOM fast and easy
The npm package mutation-summary receives a total of 1,903 weekly downloads. As such, mutation-summary popularity was classified as popular.
We found that mutation-summary demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.