Skip to content

Releases: TeamworkGuy2/dom-builder

dom-builder 0.11.0

02 Jan 19:55
Compare
Choose a tag to compare

Changed

  • Update to TypeScript 4.4

dom-builder 0.10.0

12 Jun 14:22
Compare
Choose a tag to compare

Changed

  • Update to TypeScript 4.3

dom-builder 0.9.0

01 Jan 18:56
Compare
Choose a tag to compare

Added

  • BREAKING: Added DomValidate.missingAttribute() interface method - implementations will need to add this
  • A lot of dom-builder.d.ts documentation for DomBuilderHelper
  • Added optional 'parent' argument to DomValidate.missingNode()
  • NodeLike.removeChild()
  • DomLite ElemLite now implements firstChild, lastChild, and removeChild()

Changed

  • BuilderHelper interface changes and DomBuilderHelper implementation changes:
    • BREAKING: getChilds() split and renamed into getChildren() and getChildNodes()
    • BREAKING: getNodeAttrs() renamed getAttrs()
    • BREAKING: removeNodeAttr() renamed removeAttr()
    • BREAKING: getNodeAttr*[Int|Float|Bool|String]() methods renamed getAttr*() (i.e. getNodeAttrInt() is now getAttrInt())
    • Simplify getAttrs() overload signature
    • attr*() and getAttr*() methods have a new optional throwIfMissing argument
    • queryOneChild() now correctly returns T | null
    • addChilds() and removeChilds() expanded to accept NodeLike and Node instead of ElementLike and Element
  • DomBuilder element is no longer a getter but a public field, can be set. Since DomBuilder has no other internal state besides dom, changing the element value should be safe.

dom-builder 0.8.0

05 Sep 02:44
Compare
Choose a tag to compare

Changed

  • Update to TypeScript 4.0

dom-builder 0.7.2

09 Nov 00:41
Compare
Choose a tag to compare

Changed

  • Update to TypeScript 3.7

dom-builder 0.7.1

05 Jul 11:48
Compare
Choose a tag to compare

Changed

  • Update to TypeScript 3.5 and fixed missing lib.dom.d.ts NodeSelector type

dom-builder 0.7.0

24 May 19:30
Compare
Choose a tag to compare

Added

  • ElementLike setAttribute() and setAttributeNS()

Changed

  • DomBuilderHelper attr*() functions first parameter changed from attrs: NamedNodeMap to elem: ElementLike to allow setAttribute() to be used instead of setNamedItem() (setNamedItem() does not preserve the namespace prefix in some DOM implementations)

dom-builder 0.6.5

24 May 15:20
Compare
Choose a tag to compare

Fixed

  • Fix attribute creation to use createAttributeNS() for attribute names containing a namespace prefix followed by :

dom-builder 0.6.4

24 May 15:20
Compare
Choose a tag to compare

Changed

  • Update to TypeScript 3.2 and fix compile errors
  • Update @types dependencies

dom-builder 0.6.3

16 Oct 21:40
Compare
Choose a tag to compare

Changed

  • Update to TypeScript 3.1
  • Update dev dependencies and @types
  • Enable tsconfig.json strict and fix compile errors
  • Removed compiled bin tarball in favor of git tags