All Versions
31
Latest Version
Avg Release Cycle
54 days
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v0.9.2 Changes
๐ Fixed
- ๐ Make
fetch::JsonError
public. - Adapted to Rust 1.61.0.
- ๐ Make Seed compile with
wasm_bindgen >= v0.2.81
- Decoding WebSocket JSON messages
- ๐ Make
-
v0.9.1 Changes
- ๐ Fix:
serde-wasm-bindgen
feature.
- ๐ Fix:
-
v0.9.0 Changes
- [BREAKING] Base path changed from
Rc<Vec<String>>
toRc<[String]>
. It means alsoOrders::clone_base_path
returns a slice. - [BREAKING] Hid markdown functionality behind optional
markdown
feature - [BREAKING] Added argument
Option<&Namespace>
to functionsNode::from_html
andEl::from_html
. - [BREAKING] Added blanket
impl<Ms, T: IntoNodes<Ms>> IntoNode<Ms> for Option<T>
. This might conflict with localimpl
s ofIntoNodes
, but should make those unnecessary and safe to remove. - ๐ [BREAKING] Removed the deprecated
browser::service::fetch
module. - [BREAKING]
fetch::Error::SerdeError
changed tofetch::Error::JsonError
- ๐ Fixed: Prevent link listener from intercepting links with the
download
attribute. - ๐ Fixed an issue in vdom where inputs with invalid contents being cleared on Firefox.
- Added helpers for wheel event:
wheel_ev
andto_wheel_event
. - โ Added
Response::blob
- Added
panic-hook
feature, enabled by default, to conditionally includeconsole_error_panic_hook
- โ Added macro
raw_svg!
(#589). - โ Added
browser::dom::Namespace
toprelude
. - โ Added
At::Role
variant. - โ Added
Response::headers
. - โ Added
Headers::new
. - โ Added
Header::name()
andHeader::value()
. - Added
fetch::form_data::FormData
andRequest.form_data
. - โ Added
serde-wasm-bindgen
andserde-json
features to use eitherserde-wasm-bindgen
orserde_json
for JSON de-/serialization.serde-wasm-bindgen
reduces final binary size for downstream users.serde-json
is enabled by default. - โ Added method to return detailed error response from server with
FetchError
. - โ Added
Request.body_ref
to take the body by reference. - Added
sl_input
to thecustom_elements
example. - Added examples
drag_and_drop
,record_screen
,e2e_encryption
andcounters
. - โ Added
charts
example. - โ Added
page_trait
example. - โ Added
on_insert
event on elements, triggered when they are inserted into the DOM. - Implemented
AsAtValue
forOption<T>
- Implemented
From<impl AsRef<web_sys::Headers>>
forHeaders
. - Implemented
FromIterator<(impl Into<Cow<'a, str>>, impl Into<Cow<'a, str>>)>
forHeaders
. - ๐ Use
wheel_ev
incanvas
example to zoom rectangle with mouse scroll wheel. - Derived
Eq
andPartialEq
forHeader
. - Element macros like
div!
can now containIterator
s inside ofOption
values. Previously only one or the other was possible. - Adapted to Rust 1.60.0.
- โก๏ธ Updated dependencies
- [BREAKING] Base path changed from
-
v0.8.0 Changes
October 23, 2020- [BREAKING] Rename
linear_gradient!
tolinearGradient!
for consistency with the other svg macros (same withradial_gradient!
andmesh_gradient!
) (#377). - ๐ Fixed
base_path
with a trailing slash parsing / handling. - ๐ Fixed
C
macro memory / WASM file size issue. - ๐ท Added examples
tests
,service_worker
,resize_observer
,component_builder
,i18n
andunsaved_changes
(#459). - ๐ Fixed
UrlRequested
handling (#459). - [BREAKING] Hidden and renamed module
effects
toeffect
. - Added
App::update_with_option
. - โ Added
Navigator
andBeforeUnloadEvent
into Seed'sweb_sys
. - ๐ Fixed runtime exception when using binary data in WS on some browsers (#470).
- Exported macro
with_dollar_sign!
. - [deprecated]
RequestAnimationFrameTime
+RequestAnimationFrameHandle
+request_animation_frame
are deprecated. - [deprecated]
set_interval
+set_timeout
are deprecated. - ๐ [deprecated]
class!
is deprecated in favor ofC!
. - [BREAKING] Removed deprecated
AppBuilder
withsink
,mount_point
,routes
,window_events
, etc. (UseApp::start
instead.) - ๐ [BREAKING] Removed support for deprecated global messages (
GMsg
,GMs
, ..). Useorders.notify
+orders.subscribe
instead. - โก๏ธ Relaxed
view
andupdate
type inApp::start
fromfn
toFnOnce + Clone
. - โก๏ธ [BREAKING] Removed deprecated
Ev::TriggerUpdate
. - ๐ [deprecated]
simple_ev
is deprecated. - Exposed dependency
console_error_panic_hook
. - ๐ Fixed double
UrlChanged
firing by removinghashchange
listener. - โ Added
Request::bytes
. - Build Changes - Remove all workspace=false and instead defined default_to_workspace=false in the config.
- ๐ Build Changes - Make all core cargo-make tasks private with default namespace and remove clear=true from all seed tasks.
- ๐ Build Changes - Remove installation instructions and instead depend on core cargo-make installation tasks.
- ๐ Build Changes - Replace rust for_each implementation with duckscript which is much shorter, simpler and faster (in case you don't have cargo-script installed).
- ๐ Build Changes - Enforce minimal cargo-make version: 0.32.1.
- ๐ Added new
Orders
methodsrequest_url
(#518) andmsg_sender
(#502). - [BREAKING]
Orders::msg_mapper
returnsRc<..>
instead ofBox<..>
. - Reexported
pub use wasm_bindgen_futures::{self, spawn_local, JsFuture};
andpub use futures::{self, future::{self, FutureExt, TryFutureExt}};
inlib.rs
. - โก๏ธ Updated example
websocket
. - ๐ Fixed link handling (#527).
- ๐ Fixed attribute ordering (#335).
- ๐ Implemented
Display
forNode
(#294). - ๐ Fixed url requests from pages when the hash routing is used.
- Fixed url encoding, serializing in
push_route
and the methodUrl::hash_path
. - Added
Url
methodsskip_hash_base_path
andencode_uri_component
(#424). - โ Added
Node::NoChange
.
- [BREAKING] Rename
-
v0.7.0 Changes
May 08, 2020- ๐ [BREAKING] Custom elements are now patched in-place (#364). Use
el_key
to force reinitialize an element. - โ Added
el_key
method for adding keys toEl
s (#354). - โ Enabled all additional markdown extensions.
- โ Removed
'static
bound fromEl
andNode
. - ๐ [BREAKING] Changed
perform_cmd
andseed::browser::service::fetch
return type toT
instead ofResult<T, T>
. - โ Added Aria attributes.
- โก๏ธ [BREAKING]
UpdateEl<T>
changed toUpdateEl<Ms>
andfn update(self, el: &mut T);
tofn update_el(self, el: &mut El<Ms>);
(#370). - โ Added trait
UpdateElForIterator<Ms>
. - โ Added support for all
Iterator
s,Option
,u32
,i32
,usize
,f64
and references in element creation macros (#365, #128). - โก๏ธ [BREAKING]
String
implementsUpdateEl<T>
. (References are now required forString
properties, e.g.div![&model.title]
.) - ๐ Fixed
href
detection to ignoreuse
elements (#384). - Added methods
subscribe
,subscribe_with_handle
,perform_cmd_with_handle
,stream
,stream_with_handle
andnotify
intoOrders
(#130). - Added
cmds::timeout
,stream::interval
,stream::window_event
,stream::document_event
,subs::UrlChanged
andsubs::UrlRequested
(#131). - [BREAKING] Futures in
perform_cmd
andperform_g_cmd
are executed immediately. - Added
App
methodsnotify
andnotify_with_notification
. - [BREAKING]
App
methodprocess_cmd_and_msg_queue
renamed toprocess_effect_queue
. - [BREAKING] Url change listeners are always active (even if
routes
is not defined). - โ Added
cmds
,streams
,subs
,CmdHandle
,SubHandle
andStreamHandle
into the Seed's prelude. - ๐ [BREAKING] Removed module
next_tick
. - โ Added method
App::start
(alternative toAppBuilder
) (#376, #382). - โ Added trait
GetElement
+ included in theprelude
(alternative toMountPoint
, used inAppStart
). - Derive
Debug
forElRef
. - โ Added macros
C!
andIF!
and helpernot
(#375). - โ Added trait
ToClasses
+ included in theprelude
. - ๐
ev
accepts handlers that returnMsg
,Option<Msg>
or()
(#394). - [BREAKING]
EventHandler::new
accepts only handlers that returnOption<Msg>
. - [BREAKING]
ev
-like functions and someOrders
method require'static
bound for generic types (temporary). Orders::after_next_render
now accepts callbacks that returnMsg
,Option<Msg>
or()
.- ๐ [deprecated]
View
is deprecated in favor ofIntoNodes
. - [BREAKING]
View
isn't implemented forEl
andVec<El>
. - [BREAKING]
Node::add_listener
renamed toadd_event_handler
. - Rewritten
README.md
. - โ Added new Fetch API module. See
seed::browser::fetch
(#353) - ๐ [deprecated] -
seed::browser::service::fetch
module is deprecated in favor ofseed::browser::fetch
. - Implemented
IntoNodes
forOption<Node<Msg>>
andOption<Vec<Node<Msg>>>
. - โก๏ธ Implemented
UpdateEl
fori64
andu64
. - ๐ Reset properties
checked
andvalue
on attribute remove (#405). - Added examples
markdown
,tea_component
,subscribe
,custom_elements
,fetch
,url
,pages
,pages_hash_routing
,pages_keep_state
,auth
,bunnies
andgraphql
(#400). - โก๏ธ Updated examples.
- ๐ Removed examples
app_builder
,orders
,server_interaction
,counter_advanced
andmathjax
. - Example
animation_frame
renamed toanimation
. - โ Added base url handling + method
Orders::clone_base+path
(#369). - โก๏ธ [BREAKING] Updated
Url
androuting.rs
. - ๐ [deprecated]
seed::browser::service::storage
. - โ Added
LocalStorage
,SessionStorage
andWebStorage
(trait). - โ Added
TouchEvent
andtouch_ev
definitions. - โ Added
DragEvent
anddrag_ev
definitions. - [BREAKING] Renamed
to_kbevent
toto_keyboard_event
. - [BREAKING]
after_next_render
returnsRenderInfo
. web_sys
,js_sys
andwasm_bindgen
+wasm_bindgen::JsCast
included inprelude
.- โ Added
WebSocket
+ related items (#8). - ๐ฆ Exposed
App::mailbox
. - โ Added
streams::backoff
+ updatedwebsocket
example.
- ๐ [BREAKING] Custom elements are now patched in-place (#364). Use
-
v0.6.0 Changes
February 05, 2020- โก๏ธ Implemented
UpdateEl
forFilter
andFilterMap
. - โ Added method
El::is_custom(&self)
. - ๐ Fixed custom elements patching (#325).
- โ Removed unnecessary error message for comment nodes.
- โก๏ธ [BREAKING] Removed deprecated
update
andtrigger_update_ev
. - ๐ [BREAKING] Removed the remains of lifecycle hooks.
- ๐ Fixed
value
andchecked
setting for input elements (a bug in VirtualDOM patch algorithm). - ๐ [BREAKING] Removed unpredictable internal input listeners - Seed will not longer react to external input value changes.
- [BREAKING] Use
EventHandler
instead ofListener
. (Listener
is now used as the internal DOM EventListener representation.) - ๐ [deprecated] -
raw_ev
is deprecated in favor ofev
. Functionality is the same. - ๐ Improved performance - rewritten event-handling and other refactors in VirtualDOM.
- ๐ Fixed processing of multiple event-handlers (#138).
- โ Added DOM Element references - see
ElRef
and examples (canvas
,user_media
ortodomvc
) (#115). - โ Removed
Ms: Clone
restriction as much as possible. - [BREAKING] Added or changed
Custom
variant fromCustom(String)
toCustom(Cow<'static, str>)
๐ inEv
,Tag
,At
andSt
. Use functionfrom
to create custom entities (e.g.At::from("my-attribute")
) (#208). - โ Added macro
nodes!
. It acceptsNode<Msg>
andVec<Node<Msg
, returns flattenedVec<Node<Msg>
. - ๐จ Refactored all examples.
- ๐ Fixed and rewritten example
todomvc
. - ๐ Renamed
counter
example tocounter_advanced
. - ๐ Renamed
drop
example todrop_zone
. - Removed
server_interaction_detailed
example. - โ Added a new simpler
counter
example. - ๐ Changed example in the main
README.md
. - โ Added flag
#![forbid(unsafe_code)]
so the Seed will be marked as a safe library by the Rust community tools. - โ Removed
clone
restriction from the methodEffect::map_msg
. - โก๏ธ Implemented
UpdateEl
forFlatMap
. - Adapted to Rust 1.41.0.
- โก๏ธ Implemented
-
v0.5.1 Changes
December 29, 2019- [BREAKING]
MessageMapper::map_message
changed toMessageMapper::map_msg
. - ๐ [BREAKING]
fetch
andstorage
moved toseed::browser::service::{fetch, storage}
,
๐ but reimported at the lib level. Ie:seed::fetch
, andseed::storage
. - โ Added support for
Vec<Attr>
andVec<Style>
in view macros. App
included inprelude
.- ๐จ [BREAKING] Seed refactored to use
async/.await
.fetch.rs
docs updated. - ๐
Export
Attrs
,Style
,Listener
. ie, can import withseed::Style
etc. - ๐ Fixed a bug causing the docs not to build.
- [BREAKING]
-
v0.5.0 Changes
December 04, 2019- โ Added helper
seed::canvas()
, andseed::canvas_context()
helper functions. - ๐ Fixed
Url
parsing (resolves issue with hash routing). - [BREAKING]
From<String> for Url
changed toTryFrom<String> for Url
. - ๐ Fixed jumping cursor in inputs (#158) .
- Added method
orders.after_next_render(Option<RenderTimestampDelta>)
(#207). - ๐ Fixed a bug with back/forward routing to the landing page (#296).
- ๐ Deprecated
Init
struct, replacing it withBeforeMount
andAfterMount
structs to
๐ better denote state before and after mounting theApp
occurs. - โ Added a new function
builder
which replacesbuild
as part of deprecatingInit
. - Added a new function
build_and_start
which replacesfinish
as part of deprecatingInit
. - โ Added
IntoInit
andIntoAfterMount
traits. It is possible to use these
in place of a closure or function to produce the correspondingInit
andAfterMount
structs. - Messages sent from
IntoAfterMount
will now be run after the routing message. - โ Added example
app_builder
. events::Listener
is included inprelude
.()
s have been replaced with structs - e.g.GMs = ()
=>GMs = UndefinedGMs
.WindowEvents
alias changed toWindowEventsFn
for consistency with other*Fn
.- ๐ Commented builder and helper methods.
- โ Added helper
-
v0.4.2 Changes
- โ Added an
Init
struct, which can help with initial routing (Breaking) - The
routes
function now returns anOption<Msg>
(Breaking) - โก๏ธ Updated
Tag::from()
to accept more input types - ๐
style!
now accepts alsoOption<impl ToString>
- ๐ Fixed a bug affecting element render order
- โ Added a
hashchange
listener - ๐ Improved error-handling
- Tweaked bootstrap order so that
main_el_vdom
is initialized first (internal) - Macro
custom!
checks if you set tag, and panics when you forget - ๐ Fixed a bug with children being absent from cloned elements
- ๐ Improved debugging
- ๐ Fixed a namespace bug with adding children to
Svg
elements - ๐ Fixed a bug affecting Safari
- โ Added
seed::html_document()
andseed::cookies
convenience functions
- โ Added an
-
v0.4.1 Changes
September 09, 2019- โ Added more SVG
At
variants - โ Added the
St
enum, for style keys; similar toAt
- Improved ergonomics of
add_child
,add_attr
,add_class
,
๐add_style
,replace_text
, andadd_text
,Node
methods
- โ Added more SVG