Releases: TeamworkGuy2/dom-builder
Releases · TeamworkGuy2/dom-builder
dom-builder 0.11.0
Changed
- Update to TypeScript 4.4
dom-builder 0.10.0
Changed
- Update to TypeScript 4.3
dom-builder 0.9.0
Added
- BREAKING: Added
DomValidate.missingAttribute()
interface method - implementations will need to add this - A lot of
dom-builder.d.ts
documentation forDomBuilderHelper
- Added optional 'parent' argument to
DomValidate.missingNode()
NodeLike.removeChild()
- DomLite
ElemLite
now implementsfirstChild
,lastChild
, andremoveChild()
Changed
BuilderHelper
interface changes andDomBuilderHelper
implementation changes:- BREAKING:
getChilds()
split and renamed intogetChildren()
andgetChildNodes()
- BREAKING:
getNodeAttrs()
renamedgetAttrs()
- BREAKING:
removeNodeAttr()
renamedremoveAttr()
- BREAKING:
getNodeAttr*[Int|Float|Bool|String]()
methods renamedgetAttr*()
(i.e.getNodeAttrInt()
is nowgetAttrInt()
) - Simplify
getAttrs()
overload signature attr*()
andgetAttr*()
methods have a new optionalthrowIfMissing
argumentqueryOneChild()
now correctly returnsT | null
addChilds()
andremoveChilds()
expanded to acceptNodeLike
andNode
instead ofElementLike
andElement
- BREAKING:
DomBuilder
element
is no longer a getter but a public field, can be set. SinceDomBuilder
has no other internal state besidesdom
, changing theelement
value should be safe.
dom-builder 0.8.0
Changed
- Update to TypeScript 4.0
dom-builder 0.7.2
Changed
- Update to TypeScript 3.7
dom-builder 0.7.1
Changed
- Update to TypeScript 3.5 and fixed missing lib.dom.d.ts NodeSelector type
dom-builder 0.7.0
Added
- ElementLike
setAttribute()
andsetAttributeNS()
Changed
- DomBuilderHelper
attr*()
functions first parameter changed fromattrs: NamedNodeMap
toelem: 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
Fixed
- Fix attribute creation to use createAttributeNS() for attribute names containing a namespace prefix followed by
:
dom-builder 0.6.4
Changed
- Update to TypeScript 3.2 and fix compile errors
- Update @types dependencies
dom-builder 0.6.3
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