Skip to content

Releases: blorbb/leptos-mview

v0.5.0

26 Feb 04:50
0a3d66e

Choose a tag to compare

What's Changed

  • Support --cfg=erase_components by @blorbb in #21

See the readme for details on how to use this flag.

There probably aren't any breaking changes but I'm bumping the minor version to be safe.

Full Changelog: v0.4.4...v0.5.0

v0.4.4

28 Mar 06:17

Choose a tag to compare

Added support for !DOCTYPE html;

Also updated some documentation, rust-analyzer should autocomplete mview! as mview! {} now.

Full Changelog: v0.4.3...v0.4.4

v0.4.3

08 Mar 02:40

Choose a tag to compare

Add a special case for bind:group to match leptos-rs/leptos#3680

Full Changelog: v0.4.2...v0.4.3

v0.4.2

06 Mar 08:36

Choose a tag to compare

Adds support for bind: syntax that I missed when migrating to Leptos 0.7.

Full Changelog: v0.4.1...v0.4.2

v0.4.1

08 Feb 10:46

Choose a tag to compare

Bug fix in #18. Thanks @Portrucci for the fixes!

Full Changelog: v0.4.0...v0.4.1

v0.4.0

01 Dec 09:10
d2d6308

Choose a tag to compare

Support for Leptos 0.7.

A few unfortunate changes:

  • Error reporting has significantly degraded due to traits not being fulfilled. This makes the entire macro output become an error, so it is impossible for error reporting to be at reasonable spans. Most errors will show up for the entire macro call site.
  • Now require leptos::prelude::* to be imported since attributes are checked and come from traits. It is possible to use a fully qualified trait path, but it may provide worse autocomplete. Better autocomplete at the cost of requiring the prelude to be imported seems to be a good trade off.
  • "nightly" feature required for nightly diagnostics, as proc-macro-error2 does not automatically detect nightly.

Breaking changes:

  • Special class and id directives on components now just use the attribute spreading that already comes with Leptos instead of the custom solution of setting the class and id arguments.

Full Changelog: v0.3.2...v0.4.0

v0.3.2

25 Jun 05:16

Choose a tag to compare

Added support for leptos-rs/leptos#2534 and some minor span improvements.

Full Changelog: v0.3.1...v0.3.2

v0.3.1

31 Mar 23:38

Choose a tag to compare

Minor fix to improve r-a support, see #13.

Full Changelog: v0.3.0...v0.3.1

v0.3.0

22 Feb 03:40
c43e25b

Choose a tag to compare

A whole ton of fixes and improvements!

BREAKING:

  • use: directives now call .into() on their values, which is what leptos::view! also does. See leptos-rs/leptos#2248
  • Events like on:click are now always delegated - they were previously always undelegated. This may break some event listeners' behaviour.

Enhancements:

  • Support for qualified paths in component names like leptos::Show.
  • Generics can be used with or without the turbofish.
  • Support for the :undelegated modifier on event listeners.
  • Significantly improved error recovery, spans, messages and syntax highlighting.

Full Changelog: v0.2.3...v0.3.0

v0.2.3

27 Jan 08:11

Choose a tag to compare

Compatible with leptos 0.6! (by just fixing some tests :))

One new feature: children blocks can be wrapped in either braces or parentheses. No functional differences, just a stylistic choice.

mview! {
    p("these are " em("my") " " strong("children"))
}

Full Changelog: v0.2.2...v0.2.3