Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

1.1.0

Latest
Compare
Choose a tag to compare
@DataDink DataDink released this 14 Jun 00:03
· 35 commits to main since this release
  • Preformance Pass
    • Increased performance at the expense of a bump to caching on elements
    • Switched some RegExp to quicker, manual parsing
  • Support for parameter selectors
    • Selectors can now have parameter statements to define values passed to handlers
    • Example: <input name="field" data-onclick="member1.member2(name, value, value.length)">
  • Added configurability
    • attributePrefix: ('data-') The prefix used to identify mapping attributes
    • attributeDelimiter: ('-') The character used for separating properties in an attribute name
    • memberDelimiter: ('.') The character used for separating properties in a selector
    • selectorDelimiter: ('(') The opening character for parameter queries
    • parameterDelimiter: (',') The character used for separating parameter queries
    • selectorTerminator: (')') The character used marking the end of parameter queries
    • Example: document.body.map(model, {attributePrefix: 'map-'})
  • Breaking changes to ObjectQuery
    • Renamed to MemberQuery
    • Now creates a compiled selector that can be re-evaluated (vs single evaluation)
  • Breaking change to HTMLTemplateElement.prototype.template
    • Reading the template in js now returns the data rather than a content clone.