Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@blorbb blorbb released this 01 Dec 09:10
d2d6308

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