Skip to content

Releases: yishn/wasm-react

v0.6.0

24 Nov 18:52
Compare
Choose a tag to compare
  • BREAKING: Removed callback! and introduced clones! macro

    Instead of writing

    let cb = callback!(clones(mut state, read_state), move |…| …);

    you can write:

    let cb = Callback::new({
      clones!(mut state, read_state);
      
      move |…| …
    });
  • BREAKING: ValueContainer has been renamed to PropContainer, and ValueContainerRef to PropContainerRef accordingly

  • BREAKING: Removed ContextProvider::children() method, use ContextProvider::build() instead

  • BREAKING: Removed Persistent trait

  • use_effect() and use_layout_effect() can now handle closures which return () as a noop destructor

v0.5.0

23 Sep 01:37
Compare
Choose a tag to compare
  • BREAKING: Removed c! and Fragment, instead children can be built using a tuple, e.g.

    h!(div).build((
      h!(h1).build("Hello"),
      h!(h2).build("World!")
    ))
  • BREAKING: Removed Callable trait and PersistedCallback, only Callback and Void are left of the previous wasm_react::callback module and moved to wasm_react::Callback and wasm_react::Void. Callbacks can now be passed directly into props without persisting them with use_callback() first.

  • BREAKING: Removed VNodeList, replaced by VNode. VNode is now an enum. VNode::empty() has been renamed to VNode::new().

  • Added callback! macro to create Callback's which can clone-capture its environment.

wasm-react v0.3.2

03 Jul 11:34
Compare
Choose a tag to compare
  • Breaking: ContextProvider::build() accepts children again
  • Keyed and Memoized all implement Component trait now
  • New KeyType trait allows more types to be set as key
  • Better React effect names in dev tools

wasm-react v0.3.0

22 Jun 21:11
Compare
Choose a tag to compare
  • Breaking: More consistent way to add React key to a component: Instead of MyComponent.build_with_key(…), there's now MyComponent.key(…).build().
  • Breaking: Rewrite context handling, also fix potential UB related to it
  • Breaking: Change definition of HType trait
  • Breaking: H<HtmlTag>::style() now accepts a reference
  • Add Component::memoized() that returns a memoized version of the component

wasm-react v0.2.1

16 Jun 11:16
Compare
Choose a tag to compare
  • Breaking: Imported components are now built with H<[MyComponent]> instead of H<ImportedComponent> therefore allowing custom convenience methods
  • Allow doc comments for exported components in export_components!
  • HType trait is not sealed anymore

wasm-react v0.2.0

12 Jun 11:21
Compare
Choose a tag to compare
  • Breaking: Better ergonomics for including imported components by using H
  • Breaking: H has now a slightly different definition

wasm-react v0.1.1

11 Jun 08:41
Compare
Choose a tag to compare

Initial release.