0.6.0-rc1 #2226
gbj
announced in
Announcements
0.6.0-rc1
#2226
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is prerelease for our new server functions rewrite and Axum 0.7 support.
This should be a relatively feature-rich release, with limited breaking changes.
I'm interested in gathering feedback in the discussion associated with this release.
Migration
Actix
.handle_server_fns()
call in yourmain.rs
, as server functions are now handled in.leptos_routes()
extract
function has been removed, and replaced with a newextract
that has the same API as the currentextractor
. I think this API is strictly better, but please share feedback if you disagree.Axum
.handle_server_fns()
call in yourmain.rs
, as server functions are now handled in.leptos_routes()
extract
function has been removed, and replaced with a newextract
that has the same API as the currentextractor
. I think this API is strictly better, but please share feedback if you disagree.RequestParts
has been removed, ashttp::request::Parts
now implementsClone
: anyuse_context::<RequestParts>()
should be updated to useParts
directly instead.Features
A rewritten server function system that is backwards-compatible, but reduces binary size and increases flexibility, specifically by allowing
.leptos_routes()
from the integrationsrkyv
feature onleptos
crate #1989)IntoReq
,FromReq
,IntoRes
, and/orFromRes
traits#[middleware]
macro to add per-server-function middleware from the Tower or Actix ecosystems (Add #[middleware] tag to allow the selective targeting of Tower services on Server Fns #1461)Note: The additional included encodings (
serde_lite
,rkyv
, multipart form data) are all enabled by additive features on theserver_fn
crate. If you want to use them you can just add that crate as a dependency and enable the required features.Example: You can find a comprehensive example of these new features in the new
server_fns_axum
example.What's Changed since 0.6.0-beta
trailing_slash
support by @gbj in fix: routing regressions caused bytrailing_slash
support #2203axum-session
because old version was yanked by @gbj in examples: updateaxum-session
because old version was yanked #2205View::render_to_string
panic by @chrisp60 in docs:View::render_to_string
panic #2200leptos_meta
should not enabletracing
feature onleptos
by default (closes Leptos v0.6 (NOT the rewrite) #2158) by @gbj in fix:leptos_meta
should not enabletracing
feature onleptos
by default (closes #2158) #2211Default
forLeptosOptions
,ConfFile
by @chrisp60 in feat:Default
forLeptosOptions
,ConfFile
#2208leptos_axum
's default feature (fix: minimize features activated withleptos_axum
's default feature #1846) by @gbj in chore: minimize features activated withleptos_axum
's default feature (#1846) #2213#[server]
macro by @gbj in feat: add support for custom encoding to#[server]
macro #2216.refetch()
should not include any tracked reads by @gbj in fix:.refetch()
should not include any tracked reads #2222Full Changelog: v0.6.0-beta...0.6.0-rc1
This discussion was created from the release 0.6.0-rc1.
Beta Was this translation helpful? Give feedback.
All reactions