fix(deps): update rust crate leptos to 0.8.0 #19
Closed
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.15->0.8.0Release Notes
leptos-rs/leptos (leptos)
v0.8.6Compare Source
Just a patch release, mostly to support
#[server] #[lazy]for lazy server functions.Going forward, patch releases for various crates will have version numbers that are not coupled to one another, and will only be bumped when they've actually changed; so this release is 0.8.6 for
leptos,leptos_macro, andserver_fn_macro, but does not arbitrarily bump other packages that haven't changed.See 0.8.5 for notes on WASM splitting.
What's Changed
Full Changelog: leptos-rs/leptos@v0.8.5...v0.8.6
v0.8.5: : WASM code splitting released!Compare Source
This release includes WASM code-splitting/lazy-loading support, in tandem with the latest
cargo-leptosrelease.You can use the
lazy_routesexample to understand what this means!Essentially, though, there are two patterns:
#[lazy]macro to make any given function lazy#[lazy_route]to designate a route with a lazy-loaded view, which is loaded concurrently with the route's data#[lazy]converts a (sync or async) function into a lazy-loaded async function#[lazy_route]lets you split routes into a "data" half and a "view" half, which will be concurrently loaded by the router. This works with nested routing: so if you have ViewD and ViewE, then the router will concurrently load D's data, D's (lazy) view, E's data, and E's (lazy) view, before navigating to the page.Our whole July stream was dedicated to the topic, if you want more in depth discussion.
What's Changed
Full Changelog: leptos-rs/leptos@v0.8.4...v0.8.5
v0.8.4Compare Source
There are some small bugfixes in here, as well as improvements to the hot-reloading code. This is mostly intended to be a sort of "last patch" before merging the code-splitting changes in #3988, so that there is a patch people can pin to in case those inadvertently introduce any regressions.
What's Changed
debug_log!,debug_error!,console_debug_logandconsole_debug_errorby @mahdi739 in https://github.com/leptos-rs/leptos/pull/4160New Contributors
Full Changelog: leptos-rs/leptos@v0.8.3...v0.8.4
v0.8.3Compare Source
This is a minor patch release. It does include a significant re-write of how ownership/context work with nested routes (#4091). This should close a number of bugs. However, it's always possible that changes like this introduce regressions. Please test to see whether you have any issues with context and nested routing, and let me know. (We have a new
regressionexample set up to add e2e regression tests for issues going forward.)What's Changed
SsrMode::PartiallyBlocked(closes #3963) by @marcuswhybrow in https://github.com/leptos-rs/leptos/pull/3964Vec<_>before it is mounted (closes #3962) by @gbj in https://github.com/leptos-rs/leptos/pull/3966Resource::write()and similar functions (see #3959) by @gbj in https://github.com/leptos-rs/leptos/pull/3984#[component]macro by @mondeja in https://github.com/leptos-rs/leptos/pull/3989Arc::ptr_eqfor string comparison (closes #3983) by @gbj in https://github.com/leptos-rs/leptos/pull/3994#[prop(default = ...)]and#[prop(name = ...)]by @mondeja in https://github.com/leptos-rs/leptos/pull/4003<select>value by ensuring HTML children are mounted before setting attributes (closes #4005) by @gbj in https://github.com/leptos-rs/leptos/pull/4008session_auth_axumexample by @gbj in https://github.com/leptos-rs/leptos/pull/4033#[middleware]macros (closes #4029) by @gbj in https://github.com/leptos-rs/leptos/pull/4048<For/>that is not currently mounted (closes #3385) by @gbj in https://github.com/leptos-rs/leptos/pull/4050asyncblock of aResource(closes #4060) by @gbj in https://github.com/leptos-rs/leptos/pull/4061viewmacro. by @metatoaster in https://github.com/leptos-rs/leptos/pull/4071reactive_storesby @elias098 in https://github.com/leptos-rs/leptos/pull/4056LocalResourceto anAsyncDerived(closes #4063) by @gbj in https://github.com/leptos-rs/leptos/pull/4077()attributes intemplate(closes #4079) by @gbj in https://github.com/leptos-rs/leptos/pull/4080IntoFragmentforAnyViewby @gbj in https://github.com/leptos-rs/leptos/pull/4087classand other attributes to<A/>component by @gbj in https://github.com/leptos-rs/leptos/pull/4086svg::InertElementfordomcache. by @bicarlsen in https://github.com/leptos-rs/leptos/pull/4100svg::InertElementtemplates in SVG namespace. by @bicarlsen in https://github.com/leptos-rs/leptos/pull/4104takefor BrowserFormData by @veigaribo in https://github.com/leptos-rs/leptos/pull/4102join_contextsAPI by @gbj in https://github.com/leptos-rs/leptos/pull/4113New Contributors
Full Changelog: leptos-rs/leptos@v0.8.2...v0.8.3
v0.8.2Compare Source
For 0.8 release notes in general, see
0.8.0. This patch release mostly addresses a bad issue with hydrating<Stylesheet/>and other meta components. (See #3945 #3946)What's Changed
Full Changelog: leptos-rs/leptos@v0.8.1...v0.8.2
v0.8.1Compare Source
For 0.8 release notes in general, see
0.8.0. This patch release is mostly just a bunch of bugfixes for issues raised or fixed since then.What's Changed
StaticVec::rebuild()by aligning implementation withVec::rebuild()(closes #3906) by @gbj in https://github.com/leptos-rs/leptos/pull/3920counter_isomorphicrelease build with the leptos_debuginfo by @sabify in https://github.com/leptos-rs/leptos/pull/3918RenderEffectare dropped while dropped aRenderEffect(closes #3922) by @gbj in https://github.com/leptos-rs/leptos/pull/3926Eitherto determine how to render islands (see #3896; closes #3929) by @gbj in https://github.com/leptos-rs/leptos/pull/3938.map()and.and_then()onLocalResourceby @gbj in https://github.com/leptos-rs/leptos/pull/3941islands_routerimprovements by @gbj in https://github.com/leptos-rs/leptos/pull/3942New Contributors
Full Changelog: leptos-rs/leptos@v0.8.0...v0.8.1
v0.8.0Compare 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-leptoswith its latest release, and can be set up manually for use with Trunk. (See docs here.)islands-routerfeatures that allow a client-side routing experience while using islands (see theislands_routerexample) (this one was me)FromServerFnErrorrather 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)LocalResourceno longer exposes aSendWrapperin 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
Streamtrait from thefuturescrate, 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
PossibleRouteMatchdyn-safe by @gbj in https://github.com/leptos-rs/leptos/pull/3421axumtov0.8by @sabify in https://github.com/leptos-rs/leptos/pull/3439IntoFutureforSuspend::new()(closes #3509) by @gbj in https://github.com/leptos-rs/leptos/pull/3532Defaultimpl forLeptosOptionsandConfFileby @chrisp60 in https://github.com/leptos-rs/leptos/pull/3522AddAnyAttrlogic 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/3618Resultalias by @gbj in https://github.com/leptos-rs/leptos/pull/3543IntoSplitSignalfor(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/3654IntoClassfor store fields by @mahdi739 in https://github.com/leptos-rs/leptos/pull/3670TextPropare 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/3705AsRefbound ofStoreFieldIteratorblanket impl withLenbound by @DanikVitek in https://github.com/leptos-rs/leptos/pull/3701shellparameter 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_fnandhandlerargs 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/3752SignalSetterto prelude (closes #3547) by @gbj in https://github.com/leptos-rs/leptos/pull/3753IntoFragmentfor single element (closes #3757) by @gbj in https://github.com/leptos-rs/leptos/pull/3759Action::new_localand similar primitives by @gbj in https://github.com/leptos-rs/leptos/pull/3762MaybeSendWrapperOption<_>by @gbj in https://github.com/leptos-rs/leptos/pull/3781ParentRouteby @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/3793SendOptionfrom public API of actions by @gbj in https://github.com/leptos-rs/leptos/pull/3812Resultreturn types forserver_fnby @ifiokjr in [https://github.com/feat: support aliasedResultreturn types forserver_fnleptos-rs/leptos#3755](https://redirect.github.com/lepConfiguration
📅 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.