github leptos-rs/leptos v0.9.0-alpha

pre-release3 hours ago

This is an alpha release from the leptos_0.9 branch, to give people an opportunity to start playing around.

I have not yet written up a full changelog but you can find the PR at #4522

Notable changes:

  • lazy feature: Lazy-loading/code-splitting is now gated behind a lazy flag on the leptos crate. This saves binary size for anyone who's not using lazy-loading; if you are, just enable the feature.
  • serde_qs 1.0: we've migrated to the 1.0 series of releases for our default server-function input encoding (form URL data). This should reduce the requirement for #[server(default)] and similar workarounds for empty collections.
  • on:toggle is now typed as a ToggleEvent rather than plain Event
  • Function-call syntax for signal reads is now supported on stable (i.e., let (foo, set_foo) = signal(42); set_foo(13); foo() should work on both stable and nightly)
  • Some of the trait implementations around signals have changed: in the worst case, if you have a component or function that takes impl Fn() -> T and you pass it a Signal<T> you may need to dereference it (foo=*signal rather than foo=signal). Let us know if there are any more noticeable breakages here.
  • A wide variety of semver-breaking changes that probably won't affect user code.

Again, this is a bit of a "canary": many of the changes in this release are intended to smooth out various APIs and don't seem to cause significant breakage, but please let me know if they do. This is not intended to require meaningful migration; if you find that it's causing you to need to make significant changes to your code, please share some examples and we'll see if we can minimize the breakage.

Don't miss a new leptos release

NewReleases is sending notifications on new releases.