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
andid
directives on components now just use the attribute spreading that already comes with Leptos instead of the custom solution of setting theclass
andid
arguments.
Full Changelog: v0.3.2...v0.4.0