Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 11, 2022

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)

Updates the requirements on [syn-rsx](https://github.com/stoically/syn-rsx) to permit the latest version.
- [Release notes](https://github.com/stoically/syn-rsx/releases)
- [Changelog](https://github.com/stoically/syn-rsx/blob/main/CHANGELOG.md)
- [Commits](stoically/syn-rsx@v0.8.0-beta.2...v0.9.0)

---
updated-dependencies:
- dependency-name: syn-rsx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants