v0.6.10

leptos-rs/leptosv0.6.10Apr 2, 2024by gbj

AI Summary

A patch release focusing on bugfixes and quality-of-life improvements. Key additions include support for `on:` event listeners on dynamic children of components and the ability to use `#[prop(attrs)]` on slots.

Key Highlights

  • Allowing `#[prop(attrs)]` on slots
  • Add support for `on:` to dynamic children of components
  • Fix for invalid `Location` header when using leptos_actix::redirect() without JS/WASM
  • Fix for correctly handling empty `view! {}` in hot-reloading code
  • Persist parent span context within resource fetchers

New Features

  • Event listeners on dynamic children
  • Attributes on slots

Full Release Notes

Mostly a patch release with a number of bugfixes, as well as some nice quality-of-life improvements:
- allowing `#[prop(attrs)]` on slots
- add support for `on:` to dynamic children of components (i.e., when you do `<MyComponent on:.../>`, the event listener is now applied correctly to more of the children of `<MyComponent/>`)

## What's Changed
* remove printlns that run many times by @ChristopherBiscardi in https://github.com/leptos-rs/leptos/pull/2402
* feat: allow #[prop(attrs)] on slots by @Upbolt in https://github.com/leptos-rs/leptos/pull/2396
* fix: re-throw errors in delegated event listeners by @Giovanni-Tably in https://github.com/leptos-rs/leptos/pull/2382
* fix: prevent setting the same event listener twice by @Giovanni-Tably in https://github.com/leptos-rs/leptos/pull/2383
* chore: Disallow prints to stdout by @mondeja in https://github.com/leptos-rs/leptos/pull/2404
* chore: update to gloo-net 0.5 (closes #2411) by @gbj in https://github.com/leptos-rs/leptos/pull/2416
* fix some comments by @battmdpkq in https://github.com/leptos-rs/leptos/pull/2413
* fix(ci): leptos examples fail with bindgen schema error by @agilarity in https://github.com/leptos-rs/leptos/pull/2428
* chore: update attribute-derive by @ModProg in https://github.com/leptos-rs/leptos/pull/2438
* build(examples): clean more output by @agilarity in https://github.com/leptos-rs/leptos/pull/2420
* For the session_auth_axum example, move the passhash into a separate non-serializable struct. by @rcythr in https://github.com/leptos-rs/leptos/pull/2446
* chore(ci): upgrade actions to node 20 by @agilarity in https://github.com/leptos-rs/leptos/pull/2444
* register server_fn first to allow for wildcard Route path by @sify21 in https://github.com/leptos-rs/leptos/pull/2435
* chore: examples/tailwind_axum bumped tailwindcss to 3.4.2. by @martinfrances107 in https://github.com/leptos-rs/leptos/pull/2443
* Added missing link for #[server] macro by @ratulb in https://github.com/leptos-rs/leptos/pull/2437
* fix(ci): trunk command not found by @agilarity in https://github.com/leptos-rs/leptos/pull/2453
* Chore(ci) bumping tj-actions/changed-files to version 43. by @martinfrances107 in https://github.com/leptos-rs/leptos/pull/2454
* Bumped base64 to 0.22. by @martinfrances107 in https://github.com/leptos-rs/leptos/pull/2457
* test(ci): check semver by @agilarity in https://github.com/leptos-rs/leptos/pull/2450
* Persist parent span context within resource fetchers by @boyswan in https://github.com/leptos-rs/leptos/pull/2456
* Minor: Ran cargo clippy --fix by @martinfrances107 in https://github.com/leptos-rs/leptos/pull/2461
* Fix: Small fix for location hash/fragment by @BToersche in https://github.com/leptos-rs/leptos/pull/2464
* Allow CDN_PKG_PATH at runtime. by @zakstucke in https://github.com/leptos-rs/leptos/pull/2466
* Remove panic for axum ResponseOptions by @jollygreenlaser in https://github.com/leptos-rs/leptos/pull/2468
* Fix: Environment variables do not overwrite Config.toml options by @GrumiumXD in https://github.com/leptos-rs/leptos/pull/2433
* ci: disable semver checks by @agilarity in https://github.com/leptos-rs/leptos/pull/2471
* Add repository field to server_fn_macro by @paolobarbolini in https://github.com/leptos-rs/leptos/pull/2474
* chore: bump nightly version in examples by @gbj in https://github.com/leptos-rs/leptos/pull/2479
* fix: correctly handle empty `view! {}` in hot-reloading code (closes #2421) by @gbj in https://github.com/leptos-rs/leptos/pull/2478
* View::on support for CoreComponent::{DynChild, Each} by @zakstucke in https://github.com/leptos-rs/leptos/pull/2422
* fix: handle directives properly in SSR mode (closes #2448) by @gbj in https://github.com/leptos-rs/leptos/pull/2477
* chore(ci): run semver checks on push by @agilarity in https://github.com/leptos-rs/leptos/pull/2483

## New Contributors
* @ChristopherBiscardi made their first contribution in https://github.com/leptos-rs/leptos/pull/2402
* @Upbolt made their first contribution in https://github.com/leptos-rs/leptos/pull/2396
* @Giovanni-Tably made their first contribution in https://github.com/leptos-rs/leptos/pull/2382
* @battmdpkq made their first contribution in https://github.com/leptos-rs/leptos/pull/2413
* @rcythr made their first contribution in https://github.com/leptos-rs/leptos/pull/2446
* @sify21 made their first contribution in https://github.com/leptos-rs/leptos/pull/2435
* @ratulb made their first contribution in https://github.com/leptos-rs/leptos/pull/2437
* @boyswan made their first contribution in https://github.com/leptos-rs/leptos/pull/2456
* @BToersche made their first contribution in https://github.com/leptos-rs/leptos/pull/2464
* @zakstucke made their first contribution in https://github.com/leptos-rs/leptos/pull/2466
* @GrumiumXD made their first contribution in https://github.com/leptos-rs/leptos/pull/2433
* @paolobarbolini made their first contribution in https://github.com/leptos-rs/leptos/pull/2474

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