This is a (mostly) bug fix and documentation improvements release. If you're interested in the full list, check out the full What's Changed list below.
What's New
Trailing Slash Changes
@NfNitLoop discovered that by default the leptos_router strips trailing slashes from routes, which might not be what users expect. By default, leptos_router drops the trailing slash on /foo/
. He's added a new optional setting on Router that could allow you to keep the slashes and have routes for both /foo
and /foo/
or redirect from /foo/
to /foo
. Check out the docs for details: https://docs.rs/leptos_router/0.5.5/leptos_router/enum.TrailingSlash.html
Thanks @NfNitLoop!
Thanks to all our new and existing contributors, the 0.6 alpha will be coming out soon with fancy new server functions, so don't go away!
What's Changed
- Fix book chapter 3.9 #3 by @jollygreenlaser in #2053
- docs: minor fixes for some code examples in the book by @rockie in #2077
- docs: correct titile level for 04b_iteration.md by @sdutwsl in #2080
- Chore: Bump http from 0.2.8 to 0.2.11. by @martinfrances107 in #2068
- Use new with macro in book pages, update formatting for create effect page by @jollygreenlaser in #2054
- Improve macro hygiene by @blorbb in #2084
- Book updates by @diversable in #2052
- docs: point the book toward its new location with redirects by @gbj in #2095
- Fix WASI builds trying to use JS for
spawn_local
by @itowlson in #2066 - fix: add support for placing attributes on server functions by @tlowerison in #2093
- fix: support complete URLs in
<A/>
and<Form/>
(closes #2076) by @gbj in #2096 - Minor documentation corrections by @niclas-ahden in #2098
- example session-auth-axum: Minor changes for ergonomics by @j0lol in #2057
- Make tailwind examples more clear by @jsimonrichard in #2102
- add nix-darwin support, update flake by @Gentle in #2106
- fix: let
mount_to_body
acceptFnOnce
closures (closes #2115) by @NKID00 in #2116 - chore: don't warn when stabilized features are used by @gbj in #2118
- Support additional context for route generation by @NiklasEi in #2113
- Added documentation for server fns by @rakshith-ravi in #2099
- chore: clean up warnings causing CI issues by @gbj in #2119
- Bumping itertool version number, fixes downstream "Clippy" warning issue. by @martinfrances107 in #2124
- 'a lifetime are not linking input params to the output. Should be replaced by static by @martinfrances107 in #2125
- fix:
<Transition/>
fallback should show on if client-rendered (closes #2123) by @gbj in #2128 - docs: specify form for component generics by @gbj in #2129
- fix: emit original token stream when there are syntax errors in
#[component]
or#[island]
function signature (closes #2133) by @gbj in #2134 - Fixes broken tailwind example repo link by @JackSpagnoli in #2138
- chore: clarify
cargo-make
and examples (see #2141) by @gbj in #2150 - Make IntoAttribute more flexible for Options by @SleeplessOne1917 in #2130
- chore: remove newly-detected unused tuple fields by @gbj in #2169
- Namespace caches and branches with new router IDs by @sbihel in #2135
- Cleanup some dead code in actix tailwind example by @paul-hansen in #2160
- fix: add rust-toolchain.toml to examples (fixes #2151) by @webmstk in #2161
- router: Fix router forgetting about state (fixes #2164) by @luxalpa in #2165
- chore(deps): bump tj-actions/changed-files from 39 to 41 in /.github/workflows by @dependabot in #2180
- Better handling for trailing slashes. (#2154) by @NfNitLoop in #2172
- change: change all tracing levels to
trace
to reduce verbosity by @gbj in #2176 - draft for sso_auth_session example by @sjud in #2117
New Contributors
- @jollygreenlaser made their first contribution in #2053
- @rockie made their first contribution in #2077
- @sdutwsl made their first contribution in #2080
- @itowlson made their first contribution in #2066
- @tlowerison made their first contribution in #2093
- @niclas-ahden made their first contribution in #2098
- @jsimonrichard made their first contribution in #2102
- @NKID00 made their first contribution in #2116
- @NiklasEi made their first contribution in #2113
- @JackSpagnoli made their first contribution in #2138
- @sbihel made their first contribution in #2135
- @paul-hansen made their first contribution in #2160
- @luxalpa made their first contribution in #2165
- @dependabot made their first contribution in #2180
- @NfNitLoop made their first contribution in #2172
Full Changelog: v0.5.4...v0.5.5