Skip to content

Releases: seed-rs/seed

v0.4.0

28 Jul 17:15
Compare
Choose a tag to compare
  • 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

v0.3.7

22 Jun 11:30
Compare
Choose a tag to compare
  • 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)

0.3.6

09 Jun 13:07
Compare
Choose a tag to compare
  • 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

0.3.5

28 May 03:33
Compare
Choose a tag to compare
  • Fixed a bug where view functions returning Vec<El> weren't rendering properly
  • Fixed a type with the viewBox attribute

v0.3.4

17 May 12:09
Compare
Choose a tag to compare
  • 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)

v0.3.3

07 May 12:44
Compare
Choose a tag to compare
  • Added seed::update function, which allows custom events, and updates from JS.

v0.3.2

21 Apr 23:57
Compare
Choose a tag to compare
  • Top level view functions can now return Vec<El<Ms>>, El<Ms>, or something else implementing
    the new ElContainer trait

0.3.1

08 Apr 23:38
Compare
Choose a tag to compare
  • 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

v0.3.0

13 Mar 11:52
Compare
Choose a tag to compare
  • 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

V0.2.10

03 Mar 14:37
Compare
Choose a tag to compare
  • 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