All Versions
31
Latest Version
Avg Release Cycle
54 days
Latest Release
-

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
  • v0.9.1 Changes

    • ๐Ÿ›  Fix: serde-wasm-bindgen feature.
  • v0.9.0 Changes

    • [BREAKING] Base path changed from Rc<Vec<String>> to Rc<[String]>. It means also Orders::clone_base_path returns a slice.
    • [BREAKING] Hid markdown functionality behind optional markdown feature
    • [BREAKING] Added argument Option<&Namespace> to functions Node::from_html and El::from_html.
    • [BREAKING] Added blanket impl<Ms, T: IntoNodes<Ms>> IntoNode<Ms> for Option<T>. This might conflict with local impls of IntoNodes, but should make those unnecessary and safe to remove.
    • ๐Ÿšš [BREAKING] Removed the deprecated browser::service::fetch module.
    • [BREAKING] fetch::Error::SerdeError changed to fetch::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 and to_wheel_event.
    • โž• Added Response::blob
    • Added panic-hook feature, enabled by default, to conditionally include console_error_panic_hook
    • โž• Added macro raw_svg! (#589).
    • โž• Added browser::dom::Namespace to prelude.
    • โž• Added At::Role variant.
    • โž• Added Response::headers.
    • โž• Added Headers::new.
    • โž• Added Header::name() and Header::value().
    • Added fetch::form_data::FormData and Request.form_data.
    • โž• Added serde-wasm-bindgen and serde-json features to use either serde-wasm-bindgen or serde_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 the custom_elements example.
    • Added examples drag_and_drop, record_screen, e2e_encryption and counters.
    • โž• Added charts example.
    • โž• Added page_trait example.
    • โž• Added on_insert event on elements, triggered when they are inserted into the DOM.
    • Implemented AsAtValue for Option<T>
    • Implemented From<impl AsRef<web_sys::Headers>> for Headers.
    • Implemented FromIterator<(impl Into<Cow<'a, str>>, impl Into<Cow<'a, str>>)> for Headers.
    • ๐Ÿ‘‰ Use wheel_ev in canvas example to zoom rectangle with mouse scroll wheel.
    • Derived Eq and PartialEq for Header.
    • Element macros like div! can now contain Iterators inside of Option values. Previously only one or the other was possible.
    • Adapted to Rust 1.60.0.
    • โšก๏ธ Updated dependencies
  • v0.8.0 Changes

    October 23, 2020
    • [BREAKING] Rename linear_gradient! to linearGradient! for consistency with the other svg macros (same with radial_gradient! and mesh_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 and unsaved_changes (#459).
    • ๐Ÿ›  Fixed UrlRequested handling (#459).
    • [BREAKING] Hidden and renamed module effects to effect.
    • Added App::update_with_option.
    • โž• Added Navigator and BeforeUnloadEvent into Seed's web_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 of C!.
    • [BREAKING] Removed deprecated AppBuilder with sink, mount_point, routes, window_events, etc. (Use App::start instead.)
    • ๐Ÿšš [BREAKING] Removed support for deprecated global messages (GMsg, GMs, ..). Use orders.notify + orders.subscribe instead.
    • โšก๏ธ Relaxed view and update type in App::start from fn to FnOnce + Clone.
    • โšก๏ธ [BREAKING] Removed deprecated Ev::TriggerUpdate.
    • ๐Ÿ—„ [deprecated] simple_ev is deprecated.
    • Exposed dependency console_error_panic_hook.
    • ๐Ÿ›  Fixed double UrlChanged firing by removing hashchange 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 methods request_url (#518) and msg_sender (#502).
    • [BREAKING] Orders::msg_mapper returns Rc<..> instead of Box<..>.
    • Reexported pub use wasm_bindgen_futures::{self, spawn_local, JsFuture}; and pub use futures::{self, future::{self, FutureExt, TryFutureExt}}; in lib.rs.
    • โšก๏ธ Updated example websocket.
    • ๐Ÿ›  Fixed link handling (#527).
    • ๐Ÿ›  Fixed attribute ordering (#335).
    • ๐Ÿ‘€ Implemented Display for Node (#294).
    • ๐Ÿ›  Fixed url requests from pages when the hash routing is used.
    • Fixed url encoding, serializing in push_route and the method Url::hash_path.
    • Added Url methods skip_hash_base_path and encode_uri_component (#424).
    • โž• Added Node::NoChange.
  • 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 to Els (#354).
    • โœ… Enabled all additional markdown extensions.
    • โœ‚ Removed 'static bound from El and Node.
    • ๐Ÿ‘€ [BREAKING] Changed perform_cmd and seed::browser::service::fetch return type to T instead of Result<T, T>.
    • โž• Added Aria attributes.
    • โšก๏ธ [BREAKING] UpdateEl<T> changed to UpdateEl<Ms> and fn update(self, el: &mut T); to fn update_el(self, el: &mut El<Ms>); (#370).
    • โž• Added trait UpdateElForIterator<Ms>.
    • โž• Added support for all Iterators, Option, u32, i32, usize, f64 and references in element creation macros (#365, #128).
    • โšก๏ธ [BREAKING] String implements UpdateEl<T>. (References are now required for String properties, e.g. div![&model.title].)
    • ๐Ÿ›  Fixed href detection to ignore use elements (#384).
    • Added methods subscribe, subscribe_with_handle, perform_cmd_with_handle, stream, stream_with_handle and notify into Orders (#130).
    • Added cmds::timeout, stream::interval, stream::window_event, stream::document_event, subs::UrlChanged and subs::UrlRequested (#131).
    • [BREAKING] Futures in perform_cmd and perform_g_cmd are executed immediately.
    • Added App methods notify and notify_with_notification.
    • [BREAKING] App method process_cmd_and_msg_queue renamed to process_effect_queue.
    • [BREAKING] Url change listeners are always active (even if routes is not defined).
    • โž• Added cmds, streams, subs, CmdHandle, SubHandle and StreamHandle into the Seed's prelude.
    • ๐Ÿšš [BREAKING] Removed module next_tick.
    • โž• Added method App::start (alternative to AppBuilder) (#376, #382).
    • โž• Added trait GetElement + included in the prelude (alternative to MountPoint, used in AppStart).
    • Derive Debug for ElRef.
    • โž• Added macros C! and IF! and helper not (#375).
    • โž• Added trait ToClasses + included in the prelude.
    • ๐Ÿ‘€ ev accepts handlers that return Msg, Option<Msg> or () (#394).
    • [BREAKING] EventHandler::new accepts only handlers that return Option<Msg>.
    • [BREAKING] ev-like functions and some Orders method require 'static bound for generic types (temporary).
    • Orders::after_next_render now accepts callbacks that return Msg, Option<Msg> or ().
    • ๐Ÿ—„ [deprecated] View is deprecated in favor of IntoNodes.
    • [BREAKING] View isn't implemented for El and Vec<El>.
    • [BREAKING] Node::add_listener renamed to add_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 of seed::browser::fetch.
    • Implemented IntoNodes for Option<Node<Msg>> and Option<Vec<Node<Msg>>>.
    • โšก๏ธ Implemented UpdateEl for i64 and u64.
    • ๐Ÿ‘€ Reset properties checked and value on attribute remove (#405).
    • Added examples markdown, tea_component, subscribe, custom_elements, fetch, url, pages, pages_hash_routing, pages_keep_state, auth, bunnies and graphql (#400).
    • โšก๏ธ Updated examples.
    • ๐Ÿ— Removed examples app_builder, orders, server_interaction, counter_advanced and mathjax.
    • Example animation_frame renamed to animation.
    • โž• Added base url handling + method Orders::clone_base+path (#369).
    • โšก๏ธ [BREAKING] Updated Url and routing.rs.
    • ๐Ÿ‘€ [deprecated] seed::browser::service::storage.
    • โž• Added LocalStorage, SessionStorage and WebStorage (trait).
    • โž• Added TouchEvent and touch_ev definitions.
    • โž• Added DragEvent and drag_ev definitions.
    • [BREAKING] Renamed to_kbevent to to_keyboard_event.
    • [BREAKING] after_next_render returns RenderInfo.
    • web_sys, js_sys and wasm_bindgen + wasm_bindgen::JsCast included in prelude.
    • โž• Added WebSocket + related items (#8).
    • ๐Ÿ”ฆ Exposed App::mailbox.
    • โž• Added streams::backoff + updated websocket example.
  • v0.6.0 Changes

    February 05, 2020
    • โšก๏ธ Implemented UpdateEl for Filter and FilterMap.
    • โž• Added method El::is_custom(&self).
    • ๐Ÿ›  Fixed custom elements patching (#325).
    • โœ‚ Removed unnecessary error message for comment nodes.
    • โšก๏ธ [BREAKING] Removed deprecated update and trigger_update_ev.
    • ๐Ÿšš [BREAKING] Removed the remains of lifecycle hooks.
    • ๐Ÿ›  Fixed value and checked 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 of Listener. (Listener is now used as the internal DOM EventListener representation.)
    • ๐Ÿ—„ [deprecated] - raw_ev is deprecated in favor of ev. 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 or todomvc) (#115).
    • โœ‚ Removed Ms: Clone restriction as much as possible.
    • [BREAKING] Added or changed Custom variant from Custom(String) to Custom(Cow<'static, str>)
      ๐Ÿ‘€ in Ev, Tag, At and St. Use function from to create custom entities (e.g. At::from("my-attribute")) (#208).
    • โž• Added macro nodes!. It accepts Node<Msg> and Vec<Node<Msg, returns flattened Vec<Node<Msg>.
    • ๐Ÿ”จ Refactored all examples.
    • ๐Ÿ›  Fixed and rewritten example todomvc.
    • ๐Ÿ“‡ Renamed counter example to counter_advanced.
    • ๐Ÿ“‡ Renamed drop example to drop_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 method Effect::map_msg.
    • โšก๏ธ Implemented UpdateEl for FlatMap.
    • Adapted to Rust 1.41.0.
  • v0.5.1 Changes

    December 29, 2019
    • [BREAKING] MessageMapper::map_message changed to MessageMapper::map_msg.
    • ๐Ÿ‘€ [BREAKING] fetch and storage moved to seed::browser::service::{fetch, storage},
      ๐Ÿ‘€ but reimported at the lib level. Ie: seed::fetch, and seed::storage.
    • โž• Added support for Vec<Attr> and Vec<Style> in view macros.
    • App included in prelude.
    • ๐Ÿ”จ [BREAKING] Seed refactored to use async/.await. fetch.rs docs updated.
    • ๐Ÿ’… Export Attrs, Style, Listener. ie, can import with seed::Style etc.
    • ๐Ÿ›  Fixed a bug causing the docs not to build.
  • v0.5.0 Changes

    December 04, 2019
    • โž• Added helper seed::canvas(), and seed::canvas_context() helper functions.
    • ๐Ÿ›  Fixed Url parsing (resolves issue with hash routing).
    • [BREAKING] From<String> for Url changed to TryFrom<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 with BeforeMount and AfterMount structs to
      ๐Ÿ‘ better denote state before and after mounting the App occurs.
    • โž• Added a new function builder which replaces build as part of deprecating Init.
    • Added a new function build_and_start which replaces finish as part of deprecating Init.
    • โž• Added IntoInitand IntoAfterMount traits. It is possible to use these
      in place of a closure or function to produce the corresponding Init and AfterMount structs.
    • Messages sent from IntoAfterMount will now be run after the routing message.
    • โž• Added example app_builder.
    • events::Listener is included in prelude.
    • ()s have been replaced with structs - e.g. GMs = () => GMs = UndefinedGMs.
    • WindowEvents alias changed to WindowEventsFn for consistency with other *Fn.
    • ๐Ÿ— Commented builder and helper methods.
  • v0.4.2 Changes

    • โž• Added an Init struct, which can help with initial routing (Breaking)
    • The routes function now returns an Option<Msg> (Breaking)
    • โšก๏ธ Updated Tag::from() to accept more input types
    • ๐Ÿ’… style! now accepts also Option<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() and seed::cookies convenience functions
  • v0.4.1 Changes

    September 09, 2019
    • โž• Added more SVG At variants
    • โž• Added the St enum, for style keys; similar to At
    • Improved ergonomics of add_child, add_attr, add_class,
      ๐Ÿ’… add_style, replace_text, and add_text, Node methods