Skip to content

Latest commit

 

History

History
297 lines (135 loc) · 12.9 KB

File metadata and controls

297 lines (135 loc) · 12.9 KB

4.8.0 (2026-04-28)

Features

  • Validate timeout option value in wait() and watch() (#69) (3ba8032)

4.7.0 (2026-04-28)

Features

  • Support multiple targets in wait() (#68) (d229660)

4.6.0 (2026-04-28)

Features

  • Add filter callback option to restrict which matched nodes trigger the callback (#67) (e1bca5a)

4.5.0 (2026-04-28)

Features

  • add root option to restrict observation scope (#66) (64b67b0)

4.4.0 (2026-04-28)

Features

4.3.0 (2026-04-28)

Features

  • add once option to watch() for callback-style one-shot observation (#64) (f799bbb)

4.2.0 (2026-04-28)

Features

4.1.0 (2026-04-28)

Features

  • make clear() return this to enable method chaining (#61) (7c7a7a1)

4.0.3 (2026-04-17)

Bug Fixes

  • Restrict CHANGE-only observer optimization to Element references (#59) (63d5369)

4.0.2 (2026-04-15)

Bug Fixes

  • Throw [TARGET] error on invalid CSS selector instead of propagating SyntaxError (#58) (60fed6f)

4.0.1 (2026-04-15)

Bug Fixes

  • Disconnect observer and clear timeout after wait() resolves (#57) (08f9251)

4.0.0 (2026-04-03)

Features

  • Move timeout/onError to watch(), remove continuous mode from wait() (#34) (2eaef59)

BREAKING CHANGES

  • wait() no longer accepts an onEvent callback. Use watch() instead.
  • onError removed from WaitOptions; moved to WatchOptions.

3.1.0 (2026-04-03)

Features

3.0.0 (2026-04-02)

Bug Fixes

  • Trigger major version bump for breaking changes (3836c92)

BREAKING CHANGES

  • watch() is a new dedicated method for recurring mutations. wait() with a callback still works but watch() is the preferred API going forward.
  • AbortSignal support added to both wait() and watch(). Passing an already-aborted signal to wait() now rejects immediately with an AbortError instead of starting observation.

2.1.0 (2026-04-02)

Features

  • Add AbortSignal support to wait() and watch() (#30) (2e26fcb)
  • Add watch() method for recurring mutation callbacks (#29) (2366741)

3.0.0-beta.2 (2026-04-02)

Features

  • Add AbortSignal support to wait() and watch() (#30) (17406c2)

3.0.0-beta.1 (2026-04-02)

Bug Fixes

  • Flag watch() as breaking change for correct semver bump (4a74e47)

BREAKING CHANGES

  • watch() shares the observer slot with wait(). Calling watch() rejects any pending wait() Promise with [ABORT] and stops any ongoing observation. Use separate instances for parallel observations.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

2.1.0-beta.1 (2026-04-02)

Features

  • Add watch() method for recurring mutation callbacks (#29) (7376e8b)

2.0.6 (2026-04-02)

Bug Fixes

  • Reject pending Promise when wait() is called again (#26) (7c60776)

2.0.5 (2026-04-02)

Performance Improvements

  • Observe element directly when only CHANGE events are watched (#25) (64ae8d6)

2.0.4 (2026-04-02)

Bug Fixes

  • Remove redundant double negation on el (#24) (d6f0fbb)

2.0.3 (2026-04-02)

Performance Improvements

  • Eliminate redundant Array.from conversions in childList handler (#22) (4744c3c)

2.0.2 (2026-04-01)

Performance Improvements

  • Precompute event flag checks outside MutationObserver callback (#21) (ac0dc81)

2.0.1 (2026-04-01)

Bug Fixes

  • Validate events array is not empty with explicit error (#20) (7070d6b)

2.0.0 (2022-01-10)

Bug Fixes

  • Change node with selector matching to be more consistent and fix issue with matches is not a function (d02b839)
  • Fix console error when target is a DOM element (390d42f)
  • Fix console error when target is a DOM element - new attempt (8260eb4)

Code Refactoring

  • Refactor wait method in-depth and merge into watch method (ac2bc0a)

Features

  • Add exist event (#13) (79faa5e)
  • Allow to target a DOM element directly (5467b6a)
  • Allow to trigger observation event with promise resolution (1f774be)

BREAKING CHANGES

  • The signature of the wait method has changed and the watch method has been removed

2.0.0-beta.7 (2022-01-07)

Features

2.0.0-beta.6 (2021-12-02)

Bug Fixes

  • Fix console error when target is a DOM element - new attempt (5e0eb6c)

2.0.0-beta.5 (2021-12-01)

Bug Fixes

  • Fix console error when target is a DOM element (023fc60)

2.0.0-beta.4 (2021-11-30)

Features

  • Allow to target a DOM element directly (2b9c5b5)

2.0.0-beta.3 (2021-11-16)

Features

  • Allow to trigger observation event with promise resolution (4e22343)

2.0.0-beta.2 (2021-11-04)

Bug Fixes

  • Change node with selector matching to be more consistent and fix issue with matches is not a function (3dceec7)

2.0.0-beta.1 (2021-11-03)

Code Refactoring

  • Refactor wait method in-depth and merge into watch method (7213938)

BREAKING CHANGES

  • The signature of the wait method has changed and the watch method has been removed

1.2.0 (2021-03-14)

Features

  • Add element modification support (#11) (e06e05a)

1.1.0 (2021-02-27)

Features

  • Add support for element removal (#7) (58f9e13)

1.0.1 (2021-02-19)

1.0.0 (2021-02-13)

Features