Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.6.20
->0.7.5
0.2.9
->0.2.12
0.5.1
->0.6.11
0.5.1
->0.6.11
0.5.1
->0.6.11
0.5.1
->0.6.11
0.4.20
->0.4.21
4.2.0
->4.3.3
1.0.50
->1.0.59
1.33.0
->1.37.0
0.4.4
->0.5.2
=0.2.87
->=0.2.92
Release Notes
tokio-rs/axum (axum)
v0.7.5
: axum - v0.7.5Compare Source
axum::serve
directly witha
Router
orMethodRouter
(#2586)h2
is no longer pulled as a dependency unless thehttp2
featureis enabled (#2605)
v0.7.4
: axum - v0.7.4Compare Source
debug_handler
on tuple response types (#2201)must_use
attribute toServe
andWithGracefulShutdown
(#2484)axum_core::body::BodyDataStream
from axumv0.7.3
: axum - v0.7.3Compare Source
Body
implementsFrom<()>
now (#2411)tracing
feature by default (#2460)serve
(#2398)RouterIntoService
implementsClone
(#2456)v0.7.2
: axum - v0.7.2Compare Source
axum::body::to_bytes
(#2373)serve
(#2400)v0.7.1
: axum - v0.7.1Compare Source
v0.7.0
: axum - v0.7.0Compare Source
WebSocketUpgrade::max_send_queue
(i.e. the
B
type param has been removed) (#1751 and #1789):FromRequestParts
FromRequest
HandlerService
HandlerWithoutStateExt
Handler
LayeredFuture
Layered
MethodRouter
Next
RequestExt
RouteFuture
Route
Router
hyper::Body
as that type is removedin hyper 1.0. Instead axum has its own body type at
axum::body::Body
(#1751)extract::BodyStream
has been removed asbody::Body
implements
Stream
andFromRequest
directly (#1751)sse::Event::json_data
to useaxum_core::Error
as its error type (#1762)DefaultOnFailedUpdgrade
toDefaultOnFailedUpgrade
(#1664)OnFailedUpdgrade
toOnFailedUpgrade
(#1664)TypedHeader
has been move toaxum-extra
(#1850)Empty
andFull
. Useaxum::body::Body::empty
andaxum::body::Body::from
respectively (#1789)IntoResponse::into_response
must useaxum::body::Body
as the body type.axum::response::Response
does this(#1789)
BoxBody
type alias and itsbox_body
constructor. Use
axum::body::Body::new
instead (#1789)RawBody
extractor.axum::body::Body
implementsFromRequest
directly (#1789)http-body
no longer implementIntoResponse
:Full
, useBody::from
insteadEmpty
, useBody::empty
insteadBoxBody
, useBody::new
insteadUnsyncBoxBody
, useBody::new
insteadMapData
, useBody::new
insteadMapErr
, useBody::new
insteadaxum::extract::Request
type alias where the body isaxum::body::Body
(#1789)Router::as_service
andRouter::into_service
to workaroundtype inference issues when calling
ServiceExt
methods on aRouter
(#1835)axum::Server
as it was removed in hyper 1.0. Insteaduse
axum::serve(listener, service)
or hyper/hyper-util for more configuration options (#1868)Router::nest
.Routers nested with
Router::nest_service
will no longer inherit fallbacks (#1956)Sec-WebSocket-Key
header inWebSocketUpgrade
(#1972)axum::extract::Query::try_from_uri
(#2058)IntoResponse
forBox<str>
andBox<[u8]>
([#2035])MethodFilter
. It no longer uses bitflags (#2073).source()
of composite rejections (#2030)#[debug_handler]
(#2014)IntoResponse
for(R,) where R: IntoResponse
(#2143)NestedPath
extractor (#1924)handle_error
function to existingServiceExt
trait (#2235)impl<T> IntoResponse(Parts) for Extension<T>
now requiresT: Clone
, as that is required by the http crate (#1882)axum::Json::from_bytes
(#2244)FromRequestParts
forhttp::request::Parts
(#2328)FromRequestParts
forhttp::Extensions
(#2328)DefaultBodyLimit
to individual routes (#2157)hyperium/http (http)
v0.2.12
Compare Source
What's Changed
HeaderMap
, returning an error if oversize instead of panicking.HeaderName::from_lowercase
that could allow NUL bytes in some cases.v0.2.11
Compare Source
What's Changed
HeaderMap::iter()
.v0.2.10
Compare Source
Authority
to handle square brackets in incorrect order.HeaderMap::with_capacity()
to handle arithmetic overflow.leptos-rs/leptos (leptos)
v0.6.11
Compare Source
The primary purpose of this release is that it includes a fix for an unfortunate memory leak when using
leptos_router
on the server.Also included are
spread
example for the full set of possibilities)IntoView
directly forRc<str>
view
macroIt's important to me to say that all three of the new features above were implemented by community members. This release brings us to over 250 total contributors over time, not to mention everyone who's done work on docs, templates, or libraries that exist outside this repo. Thank you to everyone who's been involved in this project so far.
What's Changed
Location
header when usingleptos_actix::redirect()
without JS/WASM (closes #2506) by @gbj in https://github.com/leptos-rs/leptos/pull/2507counter_isomorphic
by @gbj in https://github.com/leptos-rs/leptos/pull/2510New Contributors
Full Changelog: leptos-rs/leptos@v0.6.10...v0.6.11
v0.6.10
Compare Source
Mostly a patch release with a number of bugfixes, as well as some nice quality-of-life improvements:
#[prop(attrs)]
on slotson:
to dynamic children of components (i.e., when you do<MyComponent on:.../>
, the event listener is now applied correctly to more of the children of<MyComponent/>
)What's Changed
view! {}
in hot-reloading code (closes #2421) by @gbj in https://github.com/leptos-rs/leptos/pull/2478New Contributors
Full Changelog: leptos-rs/leptos@v0.6.9...v0.6.10
v0.6.9
Compare Source
Mostly this release exists to fix imports in Cargo, as well as a few minor bug fixes
What's Changed
New Contributors
Full Changelog: leptos-rs/leptos@v0.6.8...v0.6.9
v0.6.8
Compare Source
Mostly this release is to disable file hashing by default, and streamline it's use. It can now be enabled by setting
hash-files=true
in your Cargo.toml or setting theLEPTOS_HASH_FILES=true
env var when running cargo-leptos. If you're using Docker or moving the bin to a new folder, you need to copy the (by default)hash.txt
file fromtarget/{release_profile_name}
to the same folder as your binary, and make sure the env var or cargo.toml option is enabled. Also some minor bug fixesWhat's Changed
PartialEq
removed fromcreate_owning_memo
by @zroug in https://github.com/leptos-rs/leptos/pull/2394New Contributors
Full Changelog: leptos-rs/leptos@v0.6.7...v0.6.8
v0.6.7
: 0.6.7Compare Source
Hello everyone! Some lovely changes in here. My favorite is the addition of version hashes to css,js, and wasm files to automatically invalidate browser caching issues. Be sure to update to the latest version of cargo leptos(v0.2.8) to test out this feature. As always, big thanks to our returning contributors and welcome to the new folks!
What's Changed
impl_from
argument to#[server]
proc_macro by @videobitva in https://github.com/leptos-rs/leptos/pull/2335FromUtf8Error
inoco.rs
by @zoomiti in https://github.com/leptos-rs/leptos/pull/2318New Contributors
Full Changelog: leptos-rs/leptos@v0.6.6...v0.6.7
v0.6.6
Compare Source
Fixed some issues with examples, integrated a server macro for Spin, and improved a number of typos. Thanks to all that participated!
For general 0.6 release notes, see here.
What's Changed
cargo fmt
by @martinfrances107 in https://github.com/leptos-rs/leptos/pull/2254.into()
calls consistent by @blorbb in https://github.com/leptos-rs/leptos/pull/2249.dispatch()
an action immediately (closes #2225) by @gbj in https://github.com/leptos-rs/leptos/pull/2286server_fn
by @gbj in https://github.com/leptos-rs/leptos/pull/2320tailwind_axum
by @gbj in https://github.com/leptos-rs/leptos/pull/2324New Contributors
Full Changelog: leptos-rs/leptos@v0.6.5...v0.6.6
v0.6.5
: 0.6.5Compare Source
This fixes a few bugs that have popped up since 0.6. For general 0.6 release notes, see here.
What's Changed
Full Changelog: leptos-rs/leptos@v0.6.4...v0.6.5
v0.6.4
: 0.6.4Compare Source
This fixes a few bugs that have popped up since 0.6.3. For general 0.6 migration notes, see here.
What's Changed
edtion = "2021"
inrustfmt.toml
by @chrisp60 in https://github.com/leptos-rs/leptos/pull/2235create_local_resource
(closes #2237) by @gbj in https://github.com/leptos-rs/leptos/pull/2238Full Changelog: leptos-rs/leptos@v0.6.3...v0.6.4
v0.6.3
: 0.6.3Compare Source
This is release for our new server functions rewrite and Axum 0.7 support.
This should be a relatively feature-rich release, with limited breaking changes.
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
http
1.0 andtower_http
0.5.).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.ServerFnError::new()
The addition of custom error types means that constructing
ServerFnError
inside server functions can cause type inference errors:As a result, we've added a helper
ServerFnError::new
which simply constructs aServerFnError::<NoCustomError>::ServerError
:This has the benefit of being more concise than the earlier pattern in any case.
Features
A rewritten server function system that is backwards-compatible, but reduces binary size and increases flexibility, specifically by allowing
.leptos_routes()
from the integrationsIntoReq
,FromReq
,IntoRes
, and/orFromRes
traits#[middleware]
macro to add per-server-function middleware from the Tower or Actix ecosystems (#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.Full Changelog: leptos-rs/leptos@v0.5.7...0.6.3
v0.6.2
Compare Source
This is release for our new server functions rewrite and Axum 0.7 support.
This should be a relatively feature-rich release, with limited breaking changes.
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
http
1.0 andtower_http
0.5.).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.ServerFnError::new()
The addition of custom error types means that constructing
ServerFnError
inside server functions can cause type inference errors:As a result, we've added a helper
ServerFnError::new
which simply constructs aServerFnError::<NoCustomError>::ServerError
:This has the benefit of being more concise than the earlier pattern in any case.
Features
A rewritten server function system that is backwards-compatible, but reduces binary size and increases flexibility, specifically by allowing
.leptos_routes()
from the integrationsIntoReq
,FromReq
,IntoRes
, and/orFromRes
traits#[middleware]
macro to add per-server-function middleware from the Tower or Actix ecosystems (#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.Full Changelog: leptos-rs/leptos@v0.5.7...0.6.2
v0.6.1
: 0.6.1Compare Source
This is release for our new server functions rewrite and Axum 0.7 support.
This should be a relatively feature-rich release, with limited breaking changes.
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.ServerFnError::new()
The addition of custom error types means that constructing
ServerFnError
inside server functions can cause type inference errors:As a result, we've added a helper
ServerFnError::new
which simply constructs aServerFnError::<NoCustomError>::ServerError
:This has the benefit of being more concise than the earlier pattern in any case.
Features
A rewritten server function system that is backwards-compatible, but reduces binary size and increases flexibility, specifically by allowing
.leptos_routes()
from the integrationsIntoReq
,FromReq
,IntoRes
, and/orFromRes
traitsConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.