cargo leptos 0.9.0-rc2
v0.9.0-rc2

one hour ago

This release candidate for 0.9.0. 0.9 should be mostly compatible with most user application code. i.e., the migration path should be to upgrade from 0.8 to 0.9 and, in most cases, not need to make any changes. However, note the following changes

  • All server functions now honor the server's request body-size limit, including multipart form data used for uploading files. If you have a server function that uses multipart data to upload files, you should ensure that you have this set to a reasonable limit for your use case (i.e., Axum defaults to 2 megabytes; if you need to support larger file uploads you will need to configure that). In Axum, for example, that can de done globally with a default body limit layer or with middleware on a server function.
  • 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. There are some awkward tradeoffs with inference and #[prop(into)] and in some cases we've had to make the choice we think will be best for the most use cases. Let me know if there are things that seem obviously wrong or unhelpful.
  • A wide variety of semver-breaking changes that probably won't affect user code.

What's Changed Since v0.9.0-rc1

  • change/fix: ensure that lazy route data() function only runs once per route match (closes #4985) by @gbj in #4986
  • feat: remove flake utils, follow nixpkgs by @TERRORW0LF in #4983
  • Improvements to islands routing by @gbj in #4989
  • fix(router): do not percent-decode query_signal setter values (closes #4992) by @DefectingCat in #4995
  • fix(reactive_graph): restore the previous owner and arena after Owner::with and owner cleanup by @sabify in #4996
  • fix(router): do not percent-decode the path of clicked links (closes #5000) by @DefectingCat in #5001
  • Fix typo by @HigherOrderLogic in #5006
  • docs(router_macro): fix dead link to the lazy attribute macro by @farisbasha in #5011
  • Fix issues with LocalResource fallbacks by @gbj in #5002
  • fix: scope SuppressResourceLoad to the current thread (closes #4773) by @sattisvar in #5007
  • chore(ci): cargo-binstall wasm-pack by @gbj in #5015
  • fix(reactive_graph): fix reload bugs in AsyncDerived by @sabify in #4997
  • use SignalOrFn as trait bound on inputs to resources, selectors, etc. by @gbj in #5021
  • chore(ci): update nightly by @gbj in #5026
  • chore(ci): fix flaky lazy_routes tests by ensuring we wait for hydration before blocking WASM files by @gbj in #5029
  • fix: don't dispose reactive function owner until after rebuild (see #5010) by @gbj in #5020
  • fix: don't mark a memo as Clean if it is marked Check or Dirty from another thread while recomputing (closes #5022) by @gbj in #5025
  • feat: allow island hydration to fail gracefully (closes #5024) by @gbj in #5027
  • fix: don't percent-decode route params twice (closes #4991) by @gbj in #5028
  • feat: serve site root and pkg at independent URLs from independent dirs by @sabify in #4954
  • revert #5020 and adopt a different fix for the issues in #5010 by @gbj in #5037
  • fix: seal traits correctly by @metatoaster in #5032
  • fix(router): case-insensitive form method, refuse javascript: URLs by @sabify in #5031

New Contributors

Full Changelog: v0.9.0-rc1...v0.9.0-rc2

Don't miss a new leptos release

NewReleases is sending notifications on new releases.