All notable changes to saxen are documented here. We use semantic versioning for releases.
_Note: Yet to be released changes appear here._
FIX
: correct skipping of >
in body tag (#22)CHORE
: rename ES module to dist/index.esm.js
for improved bundler compatibilityFIX
: drop browser
field for better interoperability with module bundlersFIX
: allow .
in attribute name partFEAT
: expose Parser
and decode
via single export only. Use import
or destructuring to access it: var { Parser } = require('saxen');
FEAT
: generate pre-built distributions for CommonJS and Browser targetsFEAT
: generate UMD bundleCHORE
: Migrate code base to ES6This is a re-publish of the broken v6.0.0
version.
FEAT
: recover from attribute parse errors (#13)Unpublished; Use v6.0.1
instead.
FEAT
: detect and gracefully handle local attribute re-declarations that are forbidden via the XML spec: We'll now emit a warning and ignore the offending attribute (7d0c8629
)This release accidently introduced backwards incompatible changes; use >= 5.7.0
instead.
FEAT
: expose getContext
on all hooks (634857b0
)FIX
: bundle decode.js
with published package (528cd1c0
)CHORE
: configure hooks only if actually used (5ab3e2ee
)FIX
: properly handle missing open tags </a>
CHORE
: simplify and speed up entity decoding (066e712d
)CHORE
: properly compile with Google Closure compilerFEAT
: proxy mode exposes clonable view (73c6c44a
)FIX
: return {}
on non-existing attributes, tooCHORE
: don't return true
on empty attrs (f7360b11
)DOCS
: improve readmeFEAT
: fully support anonymous elements in namespace mode (2f48744a
)FEAT
: emit <warn>
for all attribute parse issues (a5014b25
)FEAT
: keep non-decodeable entities as isFEAT
: decode only required sub-set of named entitiesCHORE
: add license field to package.json
FEAT
: throw on handler errors (4b0ebb1
)FEAT
: expose current namespaces in proxy modeFEAT
: normalize xsi:type
attribute values (#4)FEAT
: add warn
event, informing about recoverable errors (7fce2151
)FEAT
: rename events
textNode -> text
startNode -> openTag
endNode -> closeTag
FEAT
: handle non-xml inputDOCS
: better @type
annotationsCHORE
: save a few bytes in decoding logicDOCS
: correct @type
and @return
annotations in parserFIX
: properly handle namespace prefix collisions (#1)CHORE
: improve test coverage and documentationFEAT
: don't skip unknown namespace nodesFEAT
: expose parse context in startNode
, endNode
and error
FEAT
: introduce parser object modeFEAT
: pipe handler errors to error
handlerFEAT
: allow non-args #ns
callFIX
: various namespace handling errorsSTYLE
: unify code styleCHORE
: rename library to saxenCHORE
: improve test coverageCHORE
: add lintingDOCS
: move to english language for documentation and READMECheck git log
for earlier history.