Skip to content

v0.9.0

Compare
Choose a tag to compare
@kbrsh kbrsh released this 15 Apr 16:46
· 849 commits to master since this release

Minor Changes

  • ⚡ much better detection of static nodes: 6b1d0ef
  • Allow () in template modifiers: 612527a
  • Throw error if no closing delimiter for template is given: 530e142
  • Remove the pre directive completely: af6a528
  • Don't rely on shouldRender to update text during hydration and diff: f1ccd80
  • Remove m-once: d503f67
  • Simplify h function and do more work during codegen instead: fa17963
  • Flatten children during render: f5483ef
  • Generate code that flattens shallow arrays instead of doing it during runtime: 7f19ade
  • Treat vnode as source of truth for directives when diffing props: 45bcc7b
  • Remove text directive (pretty useless): b18b578
  • New header: c6b2ac0
  • Make compiler independent (not needing instance): d93a353
  • Remove initialRender property (useless): 3457f0b
  • By default, instance is destroyed (until mount): 50c58f7
  • ⚡ parser can now handle weird HTML: 4c07f70
  • Make lexer flexible, allowing unescaped HTML: e72d67c
  • Add support for custom delimiters (fixes #29): c82ac63
  • Merge methods with data: 416c10a
  • Bind all methods during initialization: fc89920
  • Allow directive to be added by m-literal: 9eaf4bc
  • M-if now generates an empty text node: 454e04f

Patches

  • Patch old vnode tree to match new one instead of creating a new tree each update: 850ea1b
  • Fix bugs when appending components: 2cdd5d9
  • Ensure no props are generated by the time beforeGenerate is called for special directives: eb9c848
  • Update reference correctly when diffing children: 5b562ed
  • Ignore null children (conditional): 0b9b870
  • Add dependencies if not already added: 5133bf2
  • Ensure slots are treated as dynamic: 9d11f0a
  • Faster way to check svg: 608a4b6
  • ⚡ faster way to check for svg: 159eee8
  • Efficient template compiler: 9d577b8
  • Memory efficient way of optimizing static nodes: e4f7c87
  • Generate regex for m-for: 721f3fe
  • Memory efficient lexer: ea9c861
  • Faster, memory efficient HTML parser: 1b9e107
  • Specific cases for slight perf boost in hydration: c05a0bc
  • Specific cases with utility functions: d6e568d
  • Avoid creating new strings every diff: 0c3dbc9
  • Generate code for directives seperate from normal attributes: 3e2687d
  • Execute directives later when diffing props: 7bd1bcf
  • More elegant solution to m-show and custom directives: 5380d31
  • Optimize checks in h function: 33e21bb
  • Check for index out of bounds (perf boost): b7431bf
  • Refactor events .on: a1121a2
  • Let off be more flexible: 862d4af
  • Refactor code generator: 8333853
  • Refactor before special directive generation: 6b1a2b0
  • Refactor special directive after generation: 5342b8a
  • More specific check: 12fd76a
  • Empty oldChildren in dom when emptying element: e9f488f
  • Make parser even more flexible: dad261c
  • Cache props when creating functional components: 34ed75e
  • Make template compiler more flexible: 838e7a2
  • Allow parser to handle cases with nested elements of same type: a135ab2
  • Allow conditionally set attributes (fixes #25): c92f581
  • Add faster versions of directives: 3cf8f66
  • Use delimiters while compiling 'm-model': 7774cc6
  • Keep reference to nextSibling during hydration: 99ac4c8
  • Add better falsy values, and fix setting attributes for xlink:href (fixes #31): 9b90318
  • Make notifying and observing faster: 8c3fe88
  • Clean up observer code: 218903e
  • Invoke setters in direct set, not by notification: 4343cf7
  • Use base for custom setters and add default setter as noop in favor of custom one: 669a3bb