Skip to content

v0.1.5

Compare
Choose a tag to compare
@LeaVerou LeaVerou released this 05 Dec 06:32

Breaking changes

Important, the following changes mean you need to modify your code to use this version:

  • $url, which became deprecated in the previous version, is now removed. Please use the url() function instead.
  • The syntax of the mv-bar attribute has changed, although most of the previous syntax still works for compatibility. The yes- prefix will be removed in the next version. Please read about the new mv-bar syntax in the docs.
  • In case you were using identifiers in mv-path to only edit a collection item with that id, you will now need to use id= before it (e.g. mv-path="pages/foo" becomes mv-path="pages/id=foo"). And yes, other properties besides id are now possible too :)
  • For advanced users using Mavo with JS: Event names have changed. You will need to change them in your code or it will stop working. mavo:datachange became mv-change, all other mavo:* events became mv-*.

Other changes:

  • Basic IE 11 support!
  • New Import and Export optional toolbar buttons! Try them out by using mv-bar="with import export" or visit the SVG Path demo which already uses them.
  • The Mavo toolbar now uses position: sticky in browsers that support it, so that it remains visible while its Mavo app is visible. This is especially useful for long Mavo applications, to avoid scrolling up and down to toggle between edit and read modes.
  • The $now special property now updates on every repaint instead of every 100ms, making it possible to use it for smooth animations.
  • New $startup special property, which corresponds to the value of $now when the page loaded.
  • Improved editing popups: Now positioned above the property they are editing if there is no space below, with the arrow pointing downwards.
  • Improved image uploading user experience: Image is now displayed immediately, even before it's uploaded to the remote service.
  • New MavoScript functions: reverse()
  • Backspace (or Shift + Backspace in complex collections) can now delete collection items.
  • For advanced users using Mavo with JS: new mv-edit and mv-done events. Mavo.prototype.dataLoaded promise for when the data has loaded. Mavo.options() utility method for
    loosely parsing key-value pairs.
  • 39 smaller improvements and bugfixes