v0.6.11

leptos-rs/leptosv0.6.11Apr 11, 2024by gbj

AI Summary

This release primarily addresses a memory leak in leptos_router on the server. It introduces the ability to spread attributes and event handlers onto elements, implements IntoView for Rc<str>, and significantly improves error reporting spans in the view macro. Additionally, all examples have been migrated to use stable syntax.

Key Highlights

  • Fix for memory leak when using leptos_router on the server
  • Ability to spread both attributes and event handlers onto an element
  • Implementation of IntoView directly for Rc<str>
  • Massive improvements to spans for error reporting in the view macro
  • Migration of all examples to use stable features/syntax by default

New Features

  • Spread attributes and event handlers
  • IntoView for Rc<str>
  • Improved error reporting spans

Full Release Notes

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
- the ability to spread both attributes and event handlers onto an element (see the new [`spread` example](https://github.com/leptos-rs/leptos/blob/main/examples/spread/src/lib.rs) for the full set of possibilities)
- implementing `IntoView` directly for `Rc<str>`
- massive improvements to the spans for error reporting in the `view` macro
- migrating all our examples to use the stable features/syntax by default, to reduce confusion for new users

It'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
* stable todomvc example by @mahmoud-eltahawy in https://github.com/leptos-rs/leptos/pull/2489
* fix(ci): false leptos changes detected by @agilarity in https://github.com/leptos-rs/leptos/pull/2491
* ci(examples/error-boundary): use stable syntax by @agilarity in https://github.com/leptos-rs/leptos/pull/2496
* ex: counter_url_query; to stable by @solweo in https://github.com/leptos-rs/leptos/pull/2499
* stable examples change by @sjud in https://github.com/leptos-rs/leptos/pull/2497
* stable todo_app_sqlite_axum example by @mahmoud-eltahawy in https://github.com/leptos-rs/leptos/pull/2493
* Implement IntoView for Rc<str> by @ydirson in https://github.com/leptos-rs/leptos/pull/2462
* Allow spreading of both attributes and event handlers by @lpotthast in https://github.com/leptos-rs/leptos/pull/2432
* chore(ci): move example CI over to stable by @gbj in https://github.com/leptos-rs/leptos/pull/2502
* move channels to stable by @mahmoud-eltahawy in https://github.com/leptos-rs/leptos/pull/2501
* chore(ci): run all examples under stable and fix remaining linting issue by @gbj in https://github.com/leptos-rs/leptos/pull/2503
* Fix error reporting in view macro by @Ar4ys in https://github.com/leptos-rs/leptos/pull/2289
* fix: invalid `Location` header when using `leptos_actix::redirect()` without JS/WASM (closes #2506) by @gbj in https://github.com/leptos-rs/leptos/pull/2507
* chore(ci): remove nightly feature on `counter_isomorphic` by @gbj in https://github.com/leptos-rs/leptos/pull/2510
* Simplify stable syntax in examples by @gbj in https://github.com/leptos-rs/leptos/pull/2511
* fix: stable Router IDs (closes #2514) by @gbj in https://github.com/leptos-rs/leptos/pull/2515

## New Contributors
* @mahmoud-eltahawy made their first contribution in https://github.com/leptos-rs/leptos/pull/2489
* @solweo made their first contribution in https://github.com/leptos-rs/leptos/pull/2499
* @ydirson made their first contribution in https://github.com/leptos-rs/leptos/pull/2462
* @Ar4ys made their first contribution in https://github.com/leptos-rs/leptos/pull/2289

**Full Changelog**: https://github.com/leptos-rs/leptos/compare/v0.6.10...v0.6.11