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