Releases: blorbb/leptos-mview
v0.5.0
v0.4.4
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
Add a special case for bind:group to match leptos-rs/leptos#3680
Full Changelog: v0.4.2...v0.4.3
v0.4.2
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
Bug fix in #18. Thanks @Portrucci for the fixes!
Full Changelog: v0.4.0...v0.4.1
v0.4.0
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
classandiddirectives on components now just use the attribute spreading that already comes with Leptos instead of the custom solution of setting theclassandidarguments.
Full Changelog: v0.3.2...v0.4.0
v0.3.2
Added support for leptos-rs/leptos#2534 and some minor span improvements.
Full Changelog: v0.3.1...v0.3.2
v0.3.1
v0.3.0
A whole ton of fixes and improvements!
BREAKING:
use:directives now call.into()on their values, which is whatleptos::view!also does. See leptos-rs/leptos#2248- Events like
on:clickare 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
:undelegatedmodifier on event listeners. - Significantly improved error recovery, spans, messages and syntax highlighting.
Full Changelog: v0.2.3...v0.3.0
v0.2.3
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