github leptos-rs/leptos v0.2.5
`v0.2.5`

latest releases: v0.7.0-rc1, v0.7.0-rc0, v0.7.0-gamma3...
19 months ago

v0.2.5

This update includes many bug fixes and documentation improvements, along with a few new features:

  • A <ProtectedRoute/> component that allows you to create route guards to either render or redirect away from a route depending on some condition.
  • The ability to add arbitrary attributes to the <Html/> and <Body/> components in leptos_meta.
  • Additional head data injected using leptos_meta is now injected at the beginning of the <head> rather than the end, which allows you to inject an import map if necessary for JavaScript module imports.

I'm beginning to merge a few server-rendering changes that should be invisible to most users but will technically be breaking API changes, and will be building toward v0.3.0 which will probably include reconfiguring the Cargo setup for nightly/stable support (see #591), so this is may be the last 0.2.x release.

What's Changed

  • chore: fix clippy warnings by @gbj in #721
  • chore: make wasm-bindgen dependency optional in leptos_reactive by @gbj in #723
  • chore: Upgrade console_log dependency to stable by @mondeja in #724
  • fix: relative routing should update when navigating between <Outlet/>s (closes issue #725) by @gbj in #729
  • fix: include query params in navigation when <ActionForm> response redirects. by @andrew-chang-dewitt in #728
  • docs: fix typo in router docs by @gbj in #730
  • avoid panic in counter_isomorphic Multi-User counter by @mwcz in #732
  • leptos-reactive: Bumped serde-lite from 0.3 to 0.4. by @martinfrances107 in #737
  • fix: always run individual classes after the class attribute (closes #735) by @gbj in #738
  • Fix typo in docs. by @grandafrato in #739
  • docs: fix typo in server_fn docs by @Isti115 in #740
  • Document cargo workspace feature resolver footgun by @jmintb in #745
  • docs: warn when reading resource outside <Suspense/> (closes issue #742) by @gbj in #743
  • fix: correct typecast on Memo::get_untracked (closes issue #754) by @gbj in #755
  • examples: improve counter_without_macros by @gbj in #751
  • Add is_mounted and dyn_classes by @jquesada2016 in #714
  • Fix a few typos by @bnzone in #756
  • Add property field to Meta tag by @benwis in #759
  • Allow component decl without use leptos::* in scope by @lpotthast in #748
  • fix: escape </script> and other HTML tags in serialized resources by @gbj in #763
  • added the id attribute to the Leptos router A tag by @Houski in #770
  • fix: <Redirect/> between nested routes at same level by @gbj in #767
  • fix: prevent forms from entering infinite loops (closes issue #760) by @gbj in #762
  • fix: stop memoizing properties in a way that breaks prop:value (closes #768) by @gbj in #772
  • example: proxy settings to work on all OS by @Kaszanas in #771
  • feat: Added ProtectedRoute component to route file by @Kaszanas in #741
  • change: insert <head> metadata tags at the beginning of the <head> by @gbj in #731
  • docs: fixed parentheses and formatting issues by @luoxiaozero in #775
  • Add arbitrary attributes to Html meta tag by @step4 in #726
  • chore: clippy and docs warnings by @gbj in #779
  • docs: warn if you put something invalid inside <Routes/> by @gbj in #780

New Contributors

Full Changelog: v0.2.4...v0.2.5

Don't miss a new leptos release

NewReleases is sending notifications on new releases.