Releases: seed-rs/seed
Releases · seed-rs/seed
0.10.0
- Updated dependencies
- Adapted to Rust 1.67.1.
- [BREAKING] removed fetchmodule (usegloo-net)
- [BREAKING] removed websocketmodule (usegloo-netorwasm-sockets)
- [BREAKING] removed web-storagemodule (usegloo-storage)
- [BREAKING] removed log!anderror!macros (usegloo-console)
- [BREAKING] removed md!macro (use an external crate +El::from_html)
- [BREAKING] removed cookies()function (use an external crate like cookie)
- [BREAKING] removed panic-hookfeature (useconsole_error_panic_hook)
- [BREAKING] removed serde-jsonandserde-wasm-bindgenfeatures
- [BREAKING] added routingfeature
0.9.2
0.9.1
0.9.0
- [BREAKING] Base path changed from Rc<Vec<String>>toRc<[String]>.
 It means alsoOrders::clone_base_pathreturns a slice.
- [BREAKING] Hid markdown functionality behind optional markdownfeature
- [BREAKING] Added argument Option<&Namespace>to functionsNode::from_htmlandEl::from_html.
- [BREAKING] Added blanket impl<Ms, T: IntoNodes<Ms>> IntoNode<Ms> for Option<T>.
 This might conflict with localimpls ofIntoNodes, but should make those unnecessary and safe to remove.
- [BREAKING] Removed the deprecated browser::service::fetchmodule.
- [BREAKING] fetch::Error::SerdeErrorchanged tofetch::Error::JsonError
- Fixed: Prevent link listener from intercepting links with the downloadattribute.
- Fixed an issue in vdom where inputs with invalid contents being cleared on Firefox.
- Added helpers for wheel event: wheel_evandto_wheel_event.
- Added Response::blob
- Added panic-hookfeature, enabled by default, to conditionally includeconsole_error_panic_hook
- Added macro raw_svg!(#589).
- Added browser::dom::Namespacetoprelude.
- Added At::Rolevariant.
- Added Response::headers.
- Added Headers::new.
- Added Header::name()andHeader::value().
- Added fetch::form_data::FormDataandRequest.form_data.
- Added serde-wasm-bindgenandserde-jsonfeatures to use eitherserde-wasm-bindgenorserde_jsonfor JSON de-/serialization.
 serde-wasm-bindgenreduces final binary size for downstream users.serde-jsonis enabled by default.
- Added method to return detailed error response from server with FetchError.
- Added Request.body_refto take the body by reference.
- Added sl_inputto thecustom_elementsexample.
- Added examples drag_and_drop,record_screen,e2e_encryptionandcounters.
- Added chartsexample.
- Added page_traitexample.
- Added on_insertevent on elements, triggered when they are inserted into the DOM.
- Implemented AsAtValueforOption<T>
- Implemented From<impl AsRef<web_sys::Headers>>forHeaders.
- Implemented FromIterator<(impl Into<Cow<'a, str>>, impl Into<Cow<'a, str>>)>forHeaders.
- Use wheel_evincanvasexample to zoom rectangle with mouse scroll wheel.
- Derived EqandPartialEqforHeader.
- Element macros like div!can now containIterators inside ofOptionvalues. Previously only one or the other was possible.
- Adapted to Rust 1.60.0.
- Updated dependencies
0.8.0
- [BREAKING] Rename linear_gradient!tolinearGradient!for consistency with the other svg macros (same withradial_gradient!andmesh_gradient!) (#377).
- Fixed base_pathwith a trailing slash parsing / handling.
- Fixed Cmacro memory / WASM file size issue.
- Added examples tests,service_worker,resize_observer,component_builder,i18nandunsaved_changes(#459).
- Fixed UrlRequestedhandling (#459).
- [BREAKING] Hidden and renamed module effectstoeffect.
- Added App::update_with_option.
- Added NavigatorandBeforeUnloadEventinto 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_frameare deprecated.
- [deprecated] set_interval+set_timeoutare deprecated.
- [deprecated] class!is deprecated in favor ofC!.
- [BREAKING] Removed deprecated AppBuilderwithsink,mount_point,routes,window_events, etc. (UseApp::startinstead.)
- [BREAKING] Removed support for deprecated global messages (GMsg,GMs, ..). Useorders.notify+orders.subscribeinstead.
- Relaxed viewandupdatetype inApp::startfromfntoFnOnce + Clone.
- [BREAKING] Removed deprecated Ev::TriggerUpdate.
- [deprecated] simple_evis deprecated.
- Exposed dependency console_error_panic_hook.
- Fixed double UrlChangedfiring by removinghashchangelistener.
- 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 Ordersmethodsrequest_url(#518) andmsg_sender(#502).
- [BREAKING] Orders::msg_mapperreturnsRc<..>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 DisplayforNode(#294).
- Fixed url requests from pages when the hash routing is used.
- Fixed url encoding, serializing in push_routeand the methodUrl::hash_path.
- Added Urlmethodsskip_hash_base_pathandencode_uri_component(#424).
- Added Node::NoChange.
0.7.0
- [BREAKING] Custom elements are now patched in-place (#364). Use el_keyto force reinitialize an element.
- Added el_keymethod for adding keys toEls (#354).
- Enabled all additional markdown extensions.
- Removed 'staticbound fromElandNode.
- [BREAKING] Changed perform_cmdandseed::browser::service::fetchreturn type toTinstead 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 Iterators,Option,u32,i32,usize,f64and references in element creation macros (#365, #128).
- [BREAKING] StringimplementsUpdateEl<T>. (References are now required forStringproperties, e.g.div![&model.title].)
- Fixed hrefdetection to ignoreuseelements (#384).
- Added methods subscribe,subscribe_with_handle,perform_cmd_with_handle,stream,stream_with_handleandnotifyintoOrders(#130).
- Added cmds::timeout,stream::interval,stream::window_event,stream::document_event,subs::UrlChangedandsubs::UrlRequested(#131).
- [BREAKING] Futures in perform_cmdandperform_g_cmdare executed immediately.
- Added Appmethodsnotifyandnotify_with_notification.
- [BREAKING] Appmethodprocess_cmd_and_msg_queuerenamed toprocess_effect_queue.
- [BREAKING] Url change listeners are always active (even if routesis not defined).
- Added cmds,streams,subs,CmdHandle,SubHandleandStreamHandleinto 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 DebugforElRef.
- Added macros C!andIF!and helpernot(#375).
- Added trait ToClasses+ included in theprelude.
- evaccepts handlers that return- Msg,- Option<Msg>or- ()(#394).
- [BREAKING] EventHandler::newaccepts only handlers that returnOption<Msg>.
- [BREAKING] ev-like functions and someOrdersmethod require'staticbound for generic types (temporary).
- Orders::after_next_rendernow accepts callbacks that return- Msg,- Option<Msg>or- ().
- [deprecated] Viewis deprecated in favor ofIntoNodes.
- [BREAKING] Viewisn't implemented forElandVec<El>.
- [BREAKING] Node::add_listenerrenamed toadd_event_handler.
- Rewritten README.md.
- Added new Fetch API module. See seed::browser::fetch(#353)
- [deprecated] - seed::browser::service::fetchmodule is deprecated in favor ofseed::browser::fetch.
- Implemented IntoNodesforOption<Node<Msg>>andOption<Vec<Node<Msg>>>.
- Implemented UpdateElfori64andu64.
- Reset properties checkedandvalueon attribute remove (#405).
- Added examples markdown,tea_component,subscribe,custom_elements,fetch,url,pages,pages_hash_routing,pages_keep_state,auth,bunniesandgraphql(#400).
- Updated examples.
- Removed examples app_builder,orders,server_interaction,counter_advancedandmathjax.
- Example animation_framerenamed toanimation.
- Added base url handling + method Orders::clone_base+path(#369).
- [BREAKING] Updated Urlandrouting.rs.
- [deprecated] seed::browser::service::storage.
- Added LocalStorage,SessionStorageandWebStorage(trait).
- Added TouchEventandtouch_evdefinitions.
- Added DragEventanddrag_evdefinitions.
- [BREAKING] Renamed to_kbeventtoto_keyboard_event.
- [BREAKING] after_next_renderreturnsRenderInfo.
- web_sys,- js_sysand- wasm_bindgen+- wasm_bindgen::JsCastincluded in- prelude.
- Added WebSocket+ related items (#8).
- Exposed App::mailbox.
- Added streams::backoff+ updatedwebsocketexample.
0.6.0
- Implemented UpdateElforFilterandFilterMap.
- Added method El::is_custom(&self).
- Fixed custom elements patching (#325).
- Removed unnecessary error message for comment nodes.
- [BREAKING] Removed deprecated updateandtrigger_update_ev.
- [BREAKING] Removed the remains of lifecycle hooks.
- Fixed valueandcheckedsetting 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 EventHandlerinstead ofListener. (Listeneris now used as the internal DOM EventListener representation.)
- [deprecated] - raw_evis 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 ElRefand examples (canvas,user_mediaortodomvc) (#115).
- Removed Ms: Clonerestriction as much as possible.
- [BREAKING] Added or changed Customvariant fromCustom(String)toCustom(Cow<'static, str>)
 inEv,Tag,AtandSt. Use functionfromto 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 counterexample tocounter_advanced.
- Renamed dropexample todrop_zone.
- Removed server_interaction_detailedexample.
- Added a new simpler counterexample.
- 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 clonerestriction from the methodEffect::map_msg.
- Implemented UpdateElforFlatMap.
- Adapted to Rust 1.41.0.
0.5.1
- [BREAKING] MessageMapper::map_messagechanged toMessageMapper::map_msg.
- [BREAKING] fetchandstoragemoved 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.
- Appincluded in- prelude.
- [BREAKING] Seed refactored to use async/.await.fetch.rsdocs updated.
- Export Attrs,Style,Listener. ie, can import withseed::Styleetc.
- Fixed a bug causing the docs not to build.
0.5.0
- Added helper seed::canvas(), andseed::canvas_context()helper functions.
- Fixed Urlparsing (resolves issue with hash routing).
- [BREAKING] From<String> for Urlchanged 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 Initstruct, replacing it withBeforeMountandAfterMountstructs to
 better denote state before and after mounting theAppoccurs.
- Added a new function builderwhich replacesbuildas part of deprecatingInit.
- Added a new function build_and_startwhich replacesfinishas part of deprecatingInit.
- Added IntoInitandIntoAfterMounttraits. It is possible to use these
 in place of a closure or function to produce the correspondingInitandAfterMountstructs.
- Messages sent from IntoAfterMountwill now be run after the routing message.
- Added example app_builder.
- events::Listeneris included in- prelude.
- ()s have been replaced with structs - e.g.- GMs = ()=>- GMs = UndefinedGMs.
- WindowEventsalias changed to- WindowEventsFnfor consistency with other- *Fn.
- Commented builder and helper methods.
0.4.1
- Added more SVG Atvariants
- Added the Stenum, for style keys; similar toAt
- Improved ergonomics of add_child,add_attr,add_class,
 add_style,replace_text, andadd_text,Nodemethods