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

Bump typstyle from 0.12.1 to 0.12.4 #37

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 25, 2024

Bumps typstyle from 0.12.1 to 0.12.4.

Release notes

Sourced from typstyle's releases.

v0.12.4

Changelog

v0.12.4 - [2024-11-26]

  • Performance improvement(#158, #159 by @​QuadnucYard): Typstyle now becomes 10-100x faster than before. Previously formatting tablex source code takes ~500ms, but now it only takes less than 5ms.

v0.12.3 - [2024-11-24]

  • Fix doc test failure that prevents nixpkgs from building typstyle.

v0.12.2 - [2024-11-23]

Introducing new contributor: @​QuadnucYard. Welcome! 🎉

  • For single item code block, typstyle will try to keep it inline if it fits in a single line and it's inline in original code.

For example, you will get following code:

#{
  let x = if true { 1 } else { 2 }
}

Instead of:

#{
  let x = if true {
    1
  } else {
    2
  }
}
  • Typstyle now strip excessive newlines in code blocks. Previously, typstyle will keep all newlines in code blocks. Now it will strip newlines at beginning and end of code blocks. It will also strip newlines in the middle of code blocks if there are more than 2 consecutive newlines.

For example, the following code:

#{
let x = 1
let y = 2
}

After formatting, it will become:

... (truncated)

Changelog

Sourced from typstyle's changelog.

v0.12.4 - [2024-11-26]

  • Performance improvement(#158, #159 by @​QuadnucYard): Typstyle now becomes 10-100x faster than before. Previously formatting tablex source code takes ~500ms, but now it only takes less than 5ms.

v0.12.3 - [2024-11-24]

  • Fix doc test failure that prevents nixpkgs from building typstyle.

v0.12.2 - [2024-11-23]

Introducing new contributor: @​QuadnucYard. Welcome! 🎉

  • For single item code block, typstyle will try to keep it inline if it fits in a single line and it's inline in original code.

For example, you will get following code:

#{
  let x = if true { 1 } else { 2 }
}

Instead of:

#{
  let x = if true {
    1
  } else {
    2
  }
}
  • Typstyle now strip excessive newlines in code blocks. Previously, typstyle will keep all newlines in code blocks. Now it will strip newlines at beginning and end of code blocks. It will also strip newlines in the middle of code blocks if there are more than 2 consecutive newlines.

For example, the following code:

#{
let x = 1
let y = 2
}

After formatting, it will become:

#{
  let x = 1
</tr></table> 

... (truncated)

Commits
  • 8428f3a chore: bump to v0.12.4
  • bf3df17 chore: rename MyDoc -> ArenaDoc
  • 8eaccab refactor: use more Cow to avoid unnecessary string clone
  • c45afb9 refactor: use arena to allocate docs
  • 5231058 test: add touying test assets
  • 488cace test: add benchmarks
  • 04b28fd perf: hash Span instead of SyntaxNode for attrs
  • 8f3b537 fix: remove doc test and bump to v0.12.3
  • 72b9306 chore: bump to v0.12.2
  • 6fa7404 feat: format block comments in markup and code
  • Additional commits viewable in compare view

Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

@dependabot dependabot bot added dependencies rust Pull requests that update Rust code labels Nov 25, 2024
@kachick kachick self-requested a review November 25, 2024 19:07
@kachick
Copy link
Owner

kachick commented Nov 26, 2024

Compiling typstyle v0.12.4
error[E0658]: use of unstable library feature 'iter_repeat_n'
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typstyle-0.12.4/src/pretty/mod.rs:252:21
    |
252 |             .concat(std::iter::repeat_n(self.arena.hardline(), newline_count))
    |                     ^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #104434 <https://github.com/rust-lang/rust/issues/104434> for more information

error[E0658]: use of unstable library feature 'iter_repeat_n'
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typstyle-0.12.4/src/pretty/mod.rs:[47](https://github.com/kachick/dprint-plugin-typstyle/actions/runs/12016928368/job/33498171960?pr=37#step:10:48)6:38
    |
476 |                         codes.extend(std::iter::repeat_n(
    |                                      ^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #104434 <https://github.com/rust-lang/rust/issues/104434> for more information

error[E0658]: use of unstable library feature 'iter_repeat_n'
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba1[50](https://github.com/kachick/dprint-plugin-typstyle/actions/runs/12016928368/job/33498171960?pr=37#step:10:51)01f/typstyle-0.12.4/src/pretty/func_call.rs:72:78
   |
72 |             ParenthesizedFuncCallArg::Newline(count) => printer.arena.concat(std::iter::repeat_n(
   |                                                                              ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #104434 <https://github.com/rust-lang/rust/issues/104434> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `typstyle` (lib) due to 3 previous errors
exit status 101
Error: Process completed with exit code 1.

Require newer rust?

@kachick
Copy link
Owner

kachick commented Nov 26, 2024

#39

@dependabot recreate

Bumps [typstyle](https://github.com/Enter-tainer/typstyle) from 0.12.1 to 0.12.4.
- [Release notes](https://github.com/Enter-tainer/typstyle/releases)
- [Changelog](https://github.com/Enter-tainer/typstyle/blob/master/CHANGELOG.md)
- [Commits](Enter-tainer/typstyle@v0.12.1...v0.12.4)

---
updated-dependencies:
- dependency-name: typstyle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/typstyle-0.12.4 branch from b0cdd7a to f198cd6 Compare November 26, 2024 02:03
@github-actions github-actions bot merged commit 9945b4e into main Nov 26, 2024
11 checks passed
@github-actions github-actions bot deleted the dependabot/cargo/typstyle-0.12.4 branch November 26, 2024 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies rust Pull requests that update Rust code
Projects
Status: 🎉
Development

Successfully merging this pull request may close these issues.

1 participant