anp / moxie

lightweight platform-agnostic tools for declarative UI
https://moxie.rs
Apache License 2.0
827 stars 27 forks source link

Update syn-rsx requirement from 0.8.0-beta.2 to 0.9.0 #297

Open dependabot[bot] opened 1 year ago

dependabot[bot] commented 1 year ago

Updates the requirements on syn-rsx to permit the latest version.

Release notes

Sourced from syn-rsx's releases.

v0.9.0

BREAKING

  • Node was converted to an enum similar to syn's Expr. This was primarily done because the old API required manual documentation lookups to decide whether it is safe to unwrap a node name or value based on the Node::node_type. This is not really type safe or rusty, and hence the decision was made to move to a type safe API. There's also no measurable impact on performance. If you have feedback or concerns regarding this change, feel free to voice them in stoically/syn-rsx#26.

    Basically,

    match node.node_type {
      NodeType::Element => node.name_as_string().unwrap(),
      NodeType::Attribute => node.name_as_string().unwrap(),
      NodeType::Text => node.value_as_string().unwrap(),
      ...
    }
    

    becomes

    match node {
      Node::Element(element) => element.name.to_string(),
      Node::Attribute(attribute) => attribute.key.to_string(),
      Node::Text(text) => String::try_from(&text.value).unwrap(),
      ...
    }
    
  • NodeName::span was dropped, since NodeName already implements syn::spanned::Spanned, which gives you the span method if you import the trait accordingly.

  • NodeName::Colon and NodeName::Dash were merged into NodeName::Punctuated. This was done to allow attribute names like on:some-event. Thanks @​gbj for working on it. (#34)

Everything else is in the CHANGELOG and the docs.

Changelog

Sourced from syn-rsx's changelog.

[0.9.0] - 2022-11-10

Documentation

  • Remove outdated node link (#36)
  • Hint regarding braced blocks (#38)
  • Fix typo (#39)

[0.9.0-beta.2] - 2022-11-06

Features

  • [breaking] Replace Colon and Dash with a merged variant (#34)

[0.9.0-beta.1] - 2022-11-03

Documentation

  • Update README
  • Update example
  • Update html macro docs
  • Add link to example
  • Fix node links
  • Improve parser docs
  • Remove TODO
  • Fix attribute value example (#28)
  • Fix blocks example (#29)
  • Fix typo (#30)

Features

  • [breaking] Make path_to_string private

Miscellaneous Tasks

  • Add rustfmt.toml

Refactor

  • [breaking] Drop NodeName::span method
  • Pass block_transform a forked stream
  • Move flat tree converter to node method
  • Replace extrude with let-else (#31)

Ci

  • Switch fmt to nightly toolchain

Revert

... (truncated)

Commits


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)