Skip to content

Releases: growthbook/dom-mutator

v0.7.0

24 Sep 17:36
ea8dfbf
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.0...v0.7.0

v0.6.0

25 Oct 17:56
98ce4fd
Compare
Choose a tag to compare

What's Changed

  • Fix infinite loops and improve position mutations by @bttf in #15

Full Changelog: v0.5.0...v0.6.0

v0.5.0

18 Apr 20:04
e7a76bd
Compare
Choose a tag to compare

What's Changed

  • New 'move' mutation to re-position elements on the page by @bttf in #12

Full Changelog: v0.4.0...v0.5.0

v0.4.0

24 Mar 17:56
Compare
Choose a tag to compare

Changes

  • Allow setting attribute values to empty strings
  • Improve code readability and variable/type names

Version 0.3.2

11 Jan 20:49
Compare
Choose a tag to compare

Changes

  • Attach global listener to document.documentElement instead of document.body. Now dom-mutator can be loaded in the head before the body is ready.

Version 0.3.1

12 Mar 18:03
Compare
Choose a tag to compare

Changes

  • New mutate.declarative method for serializable mutations that don't use callback functions

Vertion 0.3.0

12 Mar 16:44
Compare
Choose a tag to compare

Breaking Changes

  • New public api:
mutate.html("h1", html => html.toUpperCase());

mutate.classList("div.greeting", classes => classes.add("new-class"));

mutate.attr(".get-started", "title", oldVal => "This is my new title attribute");
  • Return value is now a MutationController object:
const controller = mutate.html("h1", html => html.toUpperCase());
...
controller.revert();

Version 0.2.4

17 Feb 20:20
Compare
Choose a tag to compare

Bug fixes:

  • html mutations were not firing when a child's attribute or textNode changed
  • infinite loop race condition when 2 mutations affected the same element
  • immediately re-applying a mutation after reverting did not work

Version 0.2.1

10 Feb 16:14
Compare
Choose a tag to compare

Changes:

  • Fail gracefully on NodeJS instead of throwing errors. Useful for frameworks like NextJS