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

Releases: DataDink/mvw

1.1.0

14 Jun 00:03
Compare
Choose a tag to compare
  • 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.

1.0.1

24 Mar 14:53
Compare
Choose a tag to compare

Version Notes:

  • 1.0.1
    • Improved naming
      • HTMLElement.prototype.classes -> Element.prototype.class
        • Changed to match the non-plural name change of settings to attribute
        • Less likely to become a future conflict (see (Element.prototype.className)[https://developer.mozilla.org/en-US/docs/Web/API/Element/className])
      • HTMLElement.prototype.settings -> Element.prototype.attribute
        • Changed to better reflect the extensions purpose.

Note: This has breaking changes from 1.0.0

1.0.0

15 Mar 01:20
Compare
Choose a tag to compare

Version Notes

  • 1.0.0
    • Hello World
    • Extensions
      • Node.prototype.map
      • HTMLElement.prototype.classes
      • HTMLElement.prototype.settings
      • HTMLTemplateElement.prototype.template
    • Unit Tests: Yep
    • Performance Tests: Nope