✨ 0.8.0
Release post: https://sycamore-rs.netlify.app/news/announcing-v0.8.0
-
⚡️ Features
- Add
.map()
utility toSignal
. - Reactive Primitives v2 🎉! Read the blog post for more information.
- Suspense and async components.
- Async transitions.
- Type-checked HTML element tags.
- Builder API v2!
- SVG support.
- Implement
AddAssign
and friends forSignal
. - Add
Signal::modify
to mutate signal. - Add
NoHydrate
andNoSsr
utility components. - Add
from_web_sys
function. - Add
prop:
directive toview!
- Add
dangerously_set_inner_html
to the builder API. - Print hydration key for hydration mismatch.
- New view syntax for components. Unifies the syntax used for setting attributes/props in elements and components.
- Add
-
🛠 Fixes
- Make
SsrNode
attribute order stable. - Call cleanup callbacks in
map_keyed
andmap_indexed
- Create a nested reactive scope if
cx
is used inside dyn expression. - Fix and simplify
SsrNode
andHydrateNode
codegen inview!
. - Fix hydration for top-level dynamic views.
- Fix setting
class
on SVG elements. - Fix parsing of legacy components in child views.
- Fix destructuring in async component props.
- Add the
<body>
tag to the HTML elements list. - Fix
scope_depth
to return0
for root scope. - Fix removing old nodes from parent.
- Remove Unit
()
implementation ofProp
. - Add
Debug
implementations to all public items. - Fix boolean attribute list.
- Allow fragments and dynamic views in
Router
. - Fix hydration error for
Router
.
- Make
-
🎁 Examples and Documentation
-
🚅 Performance
-
Internal
- Update license to 2022.
- Make website responsive and mobile-friendly.
- Use in-tree
js-framework-benchmark
implementation for benchmarking. - Split the
sycamore
crate intosycamore-core
andsycamore-web
. - Simplify
reconcile_fragments
implementation. - Update MSRV to 1.63 and remove some
unsafe
s fromsycamore-reactive
.