All notable changes to moddle-xml are documented here. We use semantic versioning for releases.
Note: Yet to be released changes appear here.
CHORE: drop CJS distribution, turn into ESM only moduleDEPS: update tosaxen@11.0.2DEPS: update tomin-dash@5.0.0
- Dropped CJS distribution; consume in
Node >= 20.12from CommonJS
FEAT: add packageexports(#73)FEAT: access:xmlnsas a global name (#69,bdb5824)FEAT: allow to configure custom namespace map (#69,17d8cb0)FEAT: support alternative serialization methods (#69,2cb16b2)FIX: correct export of generic element (#69,235504f)FIX: remove brokenmainconfiguration (#73)CHORE: dropUMDdistribution (#73)DEPS: update tomin-dash@4.2.1DEPS: update tomin-dash@4.2.1DEPS: update tosaxen@10DEPS: update tomoddle@7
- UMD distribution no longer bundled. The module is now available as an ES module.
FEAT: generate sourcemaps
DEPS: update tomin-dash@4DEPS: update tomoddle@6CHORE: turn into ES module
FIX: correctly handle duplicated attributes (#66)
FIX: correct serialization ofxmlnamespace attributes onAnyelements (#60)FIX: do not trim non-empty element text (#58)
FIX: make hasOwnProperty check safe (#54)
FIX: handle defaultxmlnamespace (#50)
FIX: handle defaultxmlnamespace
FIX: recursively log namespace as used (#49)
FIX: recursively log namespace as used (#49)
FIX: correctly serialize nested local namespaced elements (#47)
FIX: correctly serialize nested local namespaced elements (#48)
FEAT: promisifyReader#fromXML(#45)
Reader#fromXMLAPI now returns a Promise. Support for callbacks is dropped. Refer to the documentation for updated usage information.
Republish of v8.0.4.
CHORE: bump tosaxen@8.1.2
CHORE: bump tosaxen@8.1.1
FIX: read element as type if conflicting named propery is defines an attribute (#43)
DOCS: update documentation
FEAT: provide pre-packaged distributionCHORE: bump tomoddle@5
FEAT: validate ID attributes are QNames
FIX: make ES5 compliant
CHORE: get rid oftiny-stackas a dependency (#38)
FEAT: warn on unexpected body textFEAT: warn on text outside root nodeCHORE: removeconsole.logduring import (#28)CHORE: bump tosaxen@8.1.0
FIX: correctly serialize extension attributes along with typed elements
FEAT: warn on invalid attributes under well-known namespaces (#32)
CHORE: bump dependency versions
FEAT: migrate to ES modules. Useesmor a ES module aware transpiler to consume this library.
FEAT: encode entities in body properties (instead of escaping viaCDATA) (5645b582)
FIX: properly handle.in attribute names
FIX: decode entities intextnodes
FEAT: replace lodash with min-dashFEAT: don't bail out from attribute parsing on parse errors (fd0c8b40)
Check git log for earlier history.