Skip to content

Releases: stoically/syn-rsx

v0.7.1

30 Oct 15:22
e3d56e9
Compare
Choose a tag to compare

Fixes

  • Correctly count number_of_top_level_nodes

v0.7.0

09 Sep 19:15
c956152
Compare
Choose a tag to compare

Breaking changes

  • parse and parse2 no longer take a config as second argument. Instead parse_with_config and parse2_with_config exist for this purpose
  • ParserConfig is configured by calling methods instead of having to construct it fully
  • Braced blocks are allowed in attribute position (<div {attribute} />) and as such node attributes can also be of type NodeType::Block

Features

  • Node method name_span: Returns Span if the name is Some
  • NodeName method span: Returns the Span
  • ParserConfig options
    • number_of_top_level_nodes: Exact number of required top level nodes
    • type_of_top_level_nodes: Enforce the NodeType of top level nodes
  • Better error reporting on empty input

v0.6.0

06 Jun 06:38
51e1bd0
Compare
Choose a tag to compare

Breaking change

  • Renamed NodeName::Dashed to NodeName::Dash

Features

  • Parser support for NodeName::Colon, e.g. <div on:click={foo} />