Releases: seed-rs/seed
Releases · seed-rs/seed
v0.4.0
ElContainer
, imported in prelude, renamed toView
. (Breaking)- Internal refactor of
El
: Now wrapped inNode
, along with
Empty
andText
. Creation macros returnNode(Element)
. (Breaking) - Changed the way special attributes like
disabled
,autofocus
, and
checked
are handled (Breaking) MessageMapper
now accepts closuresOrders
is a trait now instead of a struct. (Breaking)- Significant changes to MessageMapper
- Orders has new methods,
clone_app
andmsg_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
routes
now acceptsUrl
instead of&Url
(Breaking)- Improvements to fetch API
- Added
raw!
,md!
, andplain!
macros that aliasEl::from_html
,El::from_markdown
,
andEl::new_text
respectively Attrs!
andStyle!
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 toElm
'sclassList
Listener
now implementsMessageMapper
El methods
add_child
,add_style
,add_attr
, andset_text
now return the elements,
allowing chaining- Fixed a bug with
set_text
. Renamed toreplace_text
. Addedadd_text
, which adds
a text node, but doesn't remove existing ones. Addedadd_class
. (Breaking)
0.3.6
- Fetch module and API heavily changed (breaking)
- Added support for
requestAnimationFrame
, which improves render performance,
especially for animations - Styles no longer implicitly add
px
. Addedunit!
macro in its place. Map
can now be used directly in elements, without needing to annotate type and collect
(ie for childElements
, andListener
s)- Fixed a bug where
empty
elements at the top-level were rendering in the wrong order - Added an
empty!
macro, which is similar toseed::empty
- Attributes and style now retain order
0.3.5
- Fixed a bug where view functions returning
Vec<El>
weren't rendering properly - Fixed a type with the
viewBox
attribute
v0.3.4
- 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 implementDebug
- Removed deprecated
routing::push_path
function (breaking)
v0.3.3
- Added
seed::update
function, which allows custom events, and updates from JS.
v0.3.2
- Top level view functions can now return
Vec<El<Ms>>
,El<Ms>
, or something else implementing
the new ElContainer trait
0.3.1
- Top level view functions now return
Vec<El<Ms>>
instead ofEl<Ms>
, mounted directly to
the mount point. (Breaking) push_route()
can now accept aVec<&str>
, depreciatingpush_path()
.- Fixed a bug where window events couldn't be enabled on initialization
v0.3.0
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
- 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