Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Update syntect requirement from 3.2.1 to 4.1.0 #24

Merged
merged 1 commit into from
Apr 4, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Mar 31, 2020

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:

  • 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)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Mar 31, 2020
@gilescope
Copy link

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

@mre
Copy link
Owner

mre commented Apr 4, 2020

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

@mre
Copy link
Owner

mre commented Apr 4, 2020

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

@mre
Copy link
Owner

mre commented Apr 4, 2020

See #25

@mre
Copy link
Owner

mre commented Apr 4, 2020

@dependabot rebase

Updates the requirements on [syntect](https://github.com/trishume/syntect) to permit the latest version.
- [Release notes](https://github.com/trishume/syntect/releases)
- [Changelog](https://github.com/trishume/syntect/blob/master/CHANGELOG.md)
- [Commits](trishume/syntect@v3.2.1...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/cargo/syntect-4.1.0 branch from 831b981 to 64cfa8c Compare April 4, 2020 13:20
@dependabot-preview dependabot-preview bot merged commit 4d80f01 into master Apr 4, 2020
@dependabot-preview dependabot-preview bot deleted the dependabot/cargo/syntect-4.1.0 branch April 4, 2020 13:25
@mre
Copy link
Owner

mre commented Apr 4, 2020

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

@sharkdp
Copy link

sharkdp commented Apr 4, 2020

Note that you might need something like what we did in sharkdp/bat#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
Copy link
Owner

mre commented Apr 4, 2020

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
Copy link

Sure I can do that :-)

Sent with GitHawk

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants