mre / prettyprint

Beautifully formatted output for your terminal 🌈
Apache License 2.0
200 stars 10 forks source link

Update syntect requirement from 3.2.1 to 4.1.0 #24

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Updates the requirements on syntect to permit the latest version.

Release notes

Sourced from syntect's releases.

Fixes to errors

  • Make sure errors implement Send #285
  • Fix errors to not use the deprecated description() #286

Thanks @sharkdp for the bug fixes! Bumping second part of semver since Send is adding functionality (back).

Changelog

Sourced from syntect's changelog.

Version 4.1.0 (2020-03-30)

  • Make sure errors implement Send #285
  • Fix errors to not use the deprecated description() #286

Thanks @sharkdp for the bug fixes! Bumping second part of semver since Send is adding functionality (back).

Version 4.0.0 (2020-03-29)

Headline feature: pure-Rust fancy-regex engine option

Users can now opt in to a pure-Rust regex engine using Cargo features, making compilation easier in general. People experiencing difficulty compiling for Windows and Wasm should try switching to fancy-regex. Note this currently approximately halves highlighting speed.

See the Readme and #270 for details. Thanks to @robinst for implementing this!

Other changes

  • Ability to generate CSS for a theme for use with classed HTML generation (won't always be correct) #274
  • Don't generate empty spans in classed HTML #276
  • Miscellaneous dependency bumps and cleanup

Breaking changes and upgrading

Upgrading should cause no errors for nearly all users. Users using more unusual APIs may have a small amount of tweaking to do.

  • If you use default-features = false you may need to update your features to choose a regex engine
  • A bunch of technically public APIs that I don't know if anyone uses changed due to the regex engine refactor, common uses shouldn't break

Version 3.3.0 (2019-09-22)

Bug fixes and new utilities

  • Fixes multiple bugs
  • Add RangedHighlightIterator
  • Add as_latex_escaped util

Version 3.2.1 (2019-08-10)

  • Bump onig dependency
  • inconsequential patches

Version 3.2.0 (2019-03-09)

  • Actually make tokens_to_classed_spans public like intended

Version 3.1.0 (2019-02-24)

... (truncated)
Commits
  • d52e9f1 Bump to v4.1.0
  • 10ac757 Merge pull request #286 from sharkdp/use-display-fmt-instead-of-description
  • 9cf19cd Merge pull request #285 from sharkdp/make-parsesyntaxerror-send
  • 8dd3555 Remove unnecessary parentheses
  • 37ad5e2 Use Display::fmt instead of Error::description
  • 4c9c159 Make sure 'ParseSyntaxError' implements 'Send'
  • 0b41be2 Fix bits of v4.0.0 changelog
  • 36c9116 Bump to v4.0.0
  • c0efc8c Merge pull request #270 from trishume/move-regex-use-to-module
  • 9cbe524 Add section to Readme about new fancy-regex mode.
  • Additional commits viewable in compare view


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.

If all status checks pass Dependabot will automatically merge this pull request.


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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
gilescope commented 4 years ago

Fan of this - this makes onig optional and allows people to use a pure rust alternative.

mre commented 4 years ago

That's nice! I wonder why the CI didn't run... 🤔

mre commented 4 years ago

Maybe because I don't have a CI yet. 😅 Will add that now.

mre commented 4 years ago

See #25

mre commented 4 years ago

@dependabot rebase

mre commented 4 years ago

Just released prettyprint 0.8 with this PR merged in. 🎉 @gilescope fyi

sharkdp commented 4 years ago

Note that you might need something like what we did in https://github.com/sharkdp/bat/pull/900 in order to allow users to choose between onig and fancy-regex.

Also, note that the binary syntax assets are not compatible with the fancy-regex version (as described in the linked PR as well).

mre commented 4 years ago

Thanks for the heads up @sharkdp. I don't think I'll add this myself due to focusing on other projects at the moment and trying to redirect future users to bat. That said, maybe you could add the flags @gilescope? PR would be very much appreciated.

gilescope commented 4 years ago

Sure I can do that :-)

Sent with GitHawk