chore(deps): update rust crate leptos to 0.8.0 #46
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.7.0
->0.8.0
Release Notes
leptos-rs/leptos (leptos)
v0.8.0
Compare Source
*Changelog relative to
0.7.8
. *0.8 has been planned for a while, primarily to accommodate small changes that arose during the course of testing and adopting 0.7, most of which are technically semver-breaking but should not meaningfully affect user code. I think it's a significant QOL and user DX upgrade and I'm excited to properly release it.
Noteworthy features:
--cfg=erase_components
, which is useful as a dev-mode optimization (thanks to @zakstucke) This is the default setting forcargo-leptos
with its latest release, and can be set up manually for use with Trunk. (See docs here.)islands-router
features that allow a client-side routing experience while using islands (see theislands_router
example) (this one was me)FromServerFnError
rather than being constrained to useServerFnError
(see #3274). (Note: This will require changes if you're using a custom error type, but should be a better experience.) (thanks to @ryo33)LocalResource
no longer exposes aSendWrapper
in the API for the types it returns. (Breaking change: this will require removing some.as_deref()
and so on when usingLocalResource
, but ends up with a much better API.)As you can see this was a real team effort and, as always, I'm grateful for the contributions of everyone named above, and all those who made commits below.
WebSocket Example
The WebSocket support is particularly exciting, as it allows you to call server functions using the default Rust
Stream
trait from thefutures
crate, and have those streams send messages over websockets without you needing to know anything about that process. The API landed in a place that feels like a great extension of the "server function" abstraction in which you can make HTTP requests as if they were ordinary async calls. The websocket stuff doesn't integrate directly with Resources/SSR (which make more sense for one-shot things) but is really easy to use:What's Changed
PossibleRouteMatch
dyn-safe by @gbj in https://github.com/leptos-rs/leptos/pull/3421axum
tov0.8
by @sabify in https://github.com/leptos-rs/leptos/pull/3439IntoFuture
forSuspend::new()
(closes #3509) by @gbj in https://github.com/leptos-rs/leptos/pull/3532Default
impl forLeptosOptions
andConfFile
by @chrisp60 in https://github.com/leptos-rs/leptos/pull/3522AddAnyAttr
logic contained by @gbj in https://github.com/leptos-rs/leptos/pull/3562Option<_>
instyle:
(closes #3568) by @gbj in https://github.com/leptos-rs/leptos/pull/3618Result
alias by @gbj in https://github.com/leptos-rs/leptos/pull/3543IntoSplitSignal
for(Signal<T>, SignalSetter<T>)
(closes #3634) by @gbj in https://github.com/leptos-rs/leptos/pull/3643HashedStylesheet
(closes #3633) by @gbj in https://github.com/leptos-rs/leptos/pull/3654IntoClass
for store fields by @mahdi739 in https://github.com/leptos-rs/leptos/pull/3670TextProp
are kept reactive (closes: #3689) by @mahdi739 in https://github.com/leptos-rs/leptos/pull/3690Action::new_unsync
(closes #3328) by @gbj in https://github.com/leptos-rs/leptos/pull/3705AsRef
bound ofStoreFieldIterator
blanket impl withLen
bound by @DanikVitek in https://github.com/leptos-rs/leptos/pull/3701shell
parameter infile_and_error_handler*
generic by @tversteeg in https://github.com/leptos-rs/leptos/pull/3711Action::new_local()
(closes #3746) by @gbj in https://github.com/leptos-rs/leptos/pull/3749extract()
helper to useServerFnErrorErr
(closes #3745) by @ilyvion in https://github.com/leptos-rs/leptos/pull/3750Effect::watch
): refer todependency_fn
andhandler
args by @jmevel in https://github.com/leptos-rs/leptos/pull/3731rust-toolchain.toml
(closes #3717) by @gbj in https://github.com/leptos-rs/leptos/pull/3752SignalSetter
to prelude (closes #3547) by @gbj in https://github.com/leptos-rs/leptos/pull/3753IntoFragment
for single element (closes #3757) by @gbj in https://github.com/leptos-rs/leptos/pull/3759Action::new_local
and similar primitives by @gbj in https://github.com/leptos-rs/leptos/pull/3762MaybeSendWrapperOption<_>
by @gbj in https://github.com/leptos-rs/leptos/pull/3781ParentRoute
by @gbj in https://github.com/leptos-rs/leptos/pull/3784class=
for all tuples, not only static ones (closes #3794) by @gbj in https://github.com/leptos-rs/leptos/pull/3801<Title/>
by @gbj in https://github.com/leptos-rs/leptos/pull/3793SendOption
from public API of actions by @gbj in https://github.com/leptos-rs/leptos/pull/3812Result
return types forserver_fn
by @ifiokjr in https://github.com/leptos-rs/leptos/pull/3755Selector::selected
by @flisky in https://github.com/leptos-rs/leptos/pull/3694cargo all-features clippy|nextest
part of build process by @sabify in https://github.com/leptos-rs/leptos/pull/3767additional_context
after providing other server context in all cases by @gbj in https://github.com/leptos-rs/leptos/pull/3841ByteStream
error handling by @sabify in https://github.com/leptos-rs/leptos/pull/3869TextProp
in the prelude (closes #3877) by @huuff in https://github.com/leptos-rs/leptos/pull/3879Stylesheet
docs by @gbj in https://github.com/leptos-rs/leptos/pull/3898children
(closes #3904) by @gbj in https://github.com/leptos-rs/leptos/pull/3905impl From<MappedSignal<T>> for Signal<T>
(closes #3889) by @gbj in https://github.com/leptos-rs/leptos/pull/3897New Contributors
Full Changelog: leptos-rs/leptos@v0.7.8...v0.8.0
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.