Skip to content

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 09:10
· 14 commits to main since this release

Added

  • SFC block locations (loc in parse_sfc/1 results) include tag_start and tag_end, the span of the block's tags. Their encoder is now generated from Vize's BlockLocation, which the handwritten one had fallen behind.

Changed

  • Breaking: vapor_split/1 no longer writes LiveView attributes. Events and v-models are returned in a new :bindings list instead of becoming phx-* attributes and a phx-change="<name>_changed" convention. Each binding carries the Vapor IR node and the {static_index, offset} where its element's start tag ends, so callers such as PhoenixVapor add their own attributes. Every nested split has its own :bindings.
  • NIFs take one typed options map instead of positional arguments; compile_sfc_nif had eight. RustQ derives the Rust struct and decoder for each map from a typespec, and the public functions keep their keyword options and defaults. CSS browser targets are optional versions instead of -1 sentinels.

Fixed

  • Document that CSS :targets take effect only with minify: true, because Vize applies them while minifying.