Seed Versions Save

A Rust framework for creating web apps

0.4.0

4 years ago
  • ElContainer, imported in prelude, renamed to View. (Breaking)
  • Internal refactor of El: Now wrapped in Node, along with Empty and Text. Creation macros return Node(Element). (Breaking)
  • Changed the way special attributes like disabled, autofocus, and checked are handled (Breaking)
  • MessageMapper now accepts closures
  • Orders is a trait now instead of a struct. (Breaking)
  • Significant changes to MessageMapper
  • Orders has new methods, clone_app and msg_mapper which can allow access to app instance.
  • Added more SVG element macros
  • Several minor bux fixes
  • Examples updated to reflect these changes
  • Improvements to Fetch API, especially regarding error handling and deserialization

0.3.7

4 years ago
  • routes now accepts Url instead of &Url (Breaking)
  • Improvements to fetch API
  • Added raw!, md!, and plain! macros that alias El::from_html, El::from_markdown, and El::new_text respectively
  • Attrs! and Style! macros can now use commas and whitespace as separators, in addition to semicolons
  • Fixed typos in a few attributes (Breaking)
  • Fixed a bug where an HTML namespace was applied to raw html/markdown elements
  • New conditional syntax added in class! macro, similar to Elm's classList
  • Listener now implements MessageMapper
  • El methods add_child, add_style, add_attr, and set_text now return the elements, allowing chaining
  • Fixed a bug with set_text. Renamed to replace_text. Added add_text, which adds a text node, but doesn't remove existing ones. Added add_class. (Breaking)

v0.3.6

4 years ago
  • Fetch module and API heavily changed (breaking)
  • Added support for request​Animation​Frame, which improves render performance, especially for animations
  • Styles no longer implicitly add px. Added unit! macro in its place.
  • Map can now be used directly in elements, without needing to annotate type and collect (ie for child Elements, and Listeners)
  • Fixed a bug where empty elements at the top-level were rendering in the wrong order
  • Added an empty! macro, which is similar to seed::empty
  • Attributes and style now retain order

v0.3.5

5 years ago
  • Fixed a bug where view functions returning Vec<El> weren't rendering properly
  • Fixed a type with the viewBox attribute

0.3.4

5 years ago
  • The update fn now accepts a (new) Orders struct, and returns nothing. Renders occur implicitly, with the option to skip rendering, update with an additional message, or perform an asynchronous action. (Breaking)
  • .mount() now accepts elements. Deprecated .mount_el()
  • The log function and macro now support items which implement Debug
  • Removed deprecated routing::push_path function (breaking)

0.3.3

5 years ago
  • Added seed::update function, which allows custom events, and updates from JS.

0.3.2

5 years ago
  • Top level view functions can now return Vec<El<Ms>>, El<Ms>, or something else implementing the new ElContainer trait

v0.3.1

5 years ago
  • Top level view functions now return Vec<El<Ms>> instead of El<Ms>, mounted directly to the mount point. (Breaking)
  • push_route() can now accept a Vec<&str>, depreciating push_path().
  • Fixed a bug where window events couldn't be enabled on initialization

0.3.0

5 years ago
  • update function now takes a mutable ref of the model. (Breaking)
  • Update (update's return type) is now a struct. (Breaking)
  • Async, etc events are now handled through messages, instead of passing App through the view func. (breaking)
  • Fixed some bugs with empty elements
  • Internal code cleanup
  • Added commented-out release command to example build files
  • Added more tests

0.2.10

5 years ago
  • Routing can be triggered by clicking any element containing a Href attribute with value as a relative link
  • Internal links no longer trigger a page refresh
  • Models no longer need to implement Clone
  • Fixed a bug introduced in 0.2.9 for select elements