Moon Versions Save

🌙 The minimal & fast library for functional user interfaces

v0.7.1

7 years ago

Patches

  • Remove cache: 4e7fdaeb42309e1e489d4bbec0cc57e8435985b6
  • Correct syntax for getting attribute in m-model generation: 91459425c3c573fbd4e0d6997fd2cd91e4bb2ea8

v0.7.0

7 years ago

Minor Changes

  • New directive style for events, add option for argument: 331759b4d6f696d553ce0e7cb6c4d139d293af99
  • Add new syntax for m-literal with argument: 1c71b4ff6434fc90578f07b5d885287f4de83b04

Patches

  • Check if property exists, (allow falsy values in prop): 4f18778a9ef7501b7eddb5e76dc456e158681cf4
  • Perf boost: skip if element has one text node and hasn't changed: 9ceca426d0fe75ad2573aa584f6d8326293ac7e2

v0.6.3

7 years ago

Patches

  • Avoid overflow in unclosed tags: 11ac6a1c1f348da2030beab9985746dfeaea30f3
  • Allow 'this' to refer to instance in hooks: fe8e7e4040508e9090f8ecd44b6183be07f71ae1
  • Indicate if element is svg: 3a2c6a409f459546e850e76ee4860ca0c7989d07
  • Add svg support: 11636cc3d0083128d4bd5ef1b3bdc522bf25dcf6
  • Allow $ and @ signs in templates: 4f95e32d87638d890ac8e16a9746e6105af43ae0

v0.6.2

7 years ago

Patches

  • Add array/conditional classes via m-literal (fixes #14): 52087823d2ffef285700fcb0d228b1af9b8034ec
  • Improve lexer for attributes: 2e0669244044a04440fede5382129823d4693c9b

v0.6.1

7 years ago

Patches

  • Add summary: 9e4944ea0791eb636b757d58f0f1dc38ead27699
  • Add m-html support: 4c78c11330f47aafbebfa030768cf14a54fc8266

v0.6.0

7 years ago

Minor Changes

  • Better string escape (wip): 0e4585d57e7784f7ccec6e8c88a0c6942641f5a3
  • Add system for creating a difference between dom and regular attributes: 1acfc72639192b7ffce0406685748fb250772b7d
  • Generate dom props more efficiently, and set them during diffing props: ebddad1d0d039dee32719aff8c6a093a1b7cc31a
  • Set value of input (proper 2 way data binding), and treat all DOM properties as literal expressions: aa0b27bd05e57f31cc1fa48c5851cf3e1d185619
  • Allow dynamic values for m-model: 6a589771de1b345ab0d64a459e659f2fea51422e
  • Add ability to set by index in keypath: 443a13617b573863d54b09baae299ec2c72cbdb9
  • Add ability to have 2 way data binding on checkboxes: 1ef85d117fc361b8b697a722fd41f02620bf6f2f
  • Add basic initializer for computed properties: d9c1e4cff06c16c551ab8272ff26e870c856cf1b
  • Add support for computed properties (fixes #13): 92d5fb96db3549574e91b5388a35be85b7e31b45

Patches

  • Make sure dom prop hasn't changed before setting: 4bf615804970ef2a2e8de49761d61e05227a8e0d
  • Use value prop for m-model event listener generated code: c403a5d532001795afb5bd6b3dc47ec181ddaceb
  • Fix comment for queueing build: 0b180517727af5b4262e7b206bd864cc9aa03135

v0.5.1

7 years ago

Patches

  • Better look-ahead for elements, and throw error when element is unclosed: c164422d58452265f4413214308311bc3dfe83ca
  • Compile double quotes correctly: bf8711e742b24d720fb8b7f8cb1be187f0da398b

v0.5.0

7 years ago

Minor Changes

  • Implement basic component system: 2b3114f7e422ebb9e0f717841497d0ba071d7945
  • Add basic slots + named slots support for components: 52b0b7d459889c274786545273664472e0b54508
  • Support for binding 'this' to instance when calling methods: d5fc48a9ebe81cf78f330b32f853673f7c773f86

Patches

  • Jump directly to creating a functional component: 81a5e1995c6dd87c6d620e3627b6aff07858cdcd
  • Add prop merger: aef26cf83f457c76d5c6eb469dff7868d7db57c8
  • Optimize prop builds by seeing if property changed: 056a4ba529f32a2612712f5c90d32650038c1189
  • Be able to create nodes that are components: 0d7928d65c14cce2e841f17088fd6fdf25b1fe25
  • Support creating components as a parent: 7e40f0fa661d0e01ff3f665db05172a0e985f298
  • Support creating components when replacing a child: 759ea23d15f68d202b4f4d936794fc06b0abcb85
  • Destroy components that are unmounted: 2d50b14439204b39ae335108fed38561b5606742
  • Make element null so there is no detached node tree when destroying instance: 225663e5fd4ca4a3dba36699c5401a5f5ac30f95
  • Fix edge case where node needs to be replaced and new node is a component: 866858fd4a87bc4b709403fdd69d606ef1cbf867

v0.4.6

7 years ago

Patches

  • Only change textcontent if node with single textnode changed (perf boost): 9c990018c6f0884d033cd254613de870b16c1daf
  • Allow items to be marked for rendering (partial render): 0f4f076025f1e440278fd29b7694d1c8430610c2
  • Let moon be able to detect static nodes with one text node: 9d1c78af02851d4d1c8d87174076100fff2ca29a
  • Better detection of dynamic vnodes: c7f297e690dd5e2bee9b7ae0aaa39542d88c69c9
  • Use initial render (ie m-once) to optimize: 0bb74c5c5c01b4e14c3faf6eb7f84052613dc47b

v0.4.5

7 years ago

Patches

  • Check for self closing tag or unclosed tag, fixes #8: 7b3681fe974807ee1ad323751fcfff237a9182b8
  • Better regex for template compiler: 8d525910478f3dbf4093417d8e71d055d2662bdc
  • Support for keypath in set: 29ca9e0a3402f0fb723f868a0ee4104931c82897
  • Improve perf by doing a better html check: 42ee6e0afb715a2c6cd8a153865ee2cad57fe7e9
  • Add watcher: cea6ebca4d8be4a555bb0af3d604d600820f4377
  • Use observer: e8d5a2c6460598ae21a36327f80b5532a58d238e
  • Don't queue build every set: 79a2b46fb70f5d49136a51c4965c385ea6ffb451
  • Compile text: d86b3d418b516e5c865e1d9ce1f7ee4110c391af
  • Fix parser to be able to handle a wide variety of closed/unclosed elements: 149f41c0bdcfcbf2acdd6cc3d56c40a5ad66d395
  • Cache special directives that generate after: ceba52f9a937505899672f873a69fe76b0aa93be
  • Push to after/before generated seperately when code generating props: 4a4e5847b76aab3bbe08d0adf782a4a2b42a01aa
  • Fix edge case for generator where a node only has beforeGenerated special directives while generating: 7ffcf7abc0d5cbb383e295de11585f0c79a7e2d1
  • Make m-for require array: fdafa439335de114a12c63b8de2d381dfecf658c
  • Optimize by adding a prop cache: dd258309a1f91ffd4b5a2271221da22dc826baa7
  • Improve code generator to remove special directives: d1cfdd7aba6d0dcd993e53bb5501af809c163ba1
  • Improve code gen performance by removing all special directives: c0fffebbac3d89117301e2af340fc387a00f257d
  • Add m-literal directive: 8c60e1d3ec931f2e85da905edf4e4b93e8237184
  • Allow m-literal to have colons: d143b9604d49d57210590033fa80ae8314473a67
  • Optimize generator for empty elements: 52e0d0acaf5f1cf2010b9500af819b902a48a95a
  • Optimize diff engine to cache nodenames when creating a new node + improve dbmon benchmark: 704a11c1580a911dbec513d3a04493e05c0cd943
  • Faster child normalizer: ecd16816e30f5ce14ca7f623e4253d7162e0ff10