djust 0.2.0 was stabilized through 2 pre-releases, and most of its changes are recorded under them: 0.2.0a1, 0.2.0a2.
Added
Template
and/or/inOperators -{% if %}conditions now supportand,or, andinboolean/membership operators with correct precedence and chaining. (#103)See
docs/website/getting-started/installation.md.
Fixed
Pre-rendered DOM Whitespace Preservation - WebSocket mount no longer replaces
innerHTMLwhen content was pre-rendered via HTTP GET. Instead,data-dj-idattributes are stamped onto existing DOM elements, preserving whitespace in code blocks and syntax-highlighted content. (#99)VDOM Keyed Diffing - Unkeyed children in keyed diffing contexts are now matched by relative position among unkeyed siblings, eliminating spurious insert+remove patch pairs when keyed children reorder. (#95, #97)
Event Handler Attributes Preserved -
dj-*event handler attributes are no longer removed during VDOM patching. (#100)Model List Serialization - Lists of Django Model instances are now properly serialized on GET requests. (#103)
Mount URL Path - WebSocket mount requests now use the actual page URL instead of a hardcoded path. (#95)
Changed
Developer Experience
- VDOM Debug Tracing -
debug_vdomDjango config is now bridged to Rust VDOM tracing. Mixed keyed/unkeyed children emit developer warnings. (#97)