-
Notifications
You must be signed in to change notification settings - Fork 129
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
Upgrade yansi: 0.5.1 -> 1.0.1 #389
Conversation
- Adapt to `thing.paint(style)` API; was `style.paint(thing)` - Remove `yansi::Paint::enable_windows_ascii()` in style usage decision; removed in yansi commit b186eb5bfb, which introduced "automatic" support for Windows: "If support is not available, styling is disabled and no styling sequences are emitted", fitting the `Auto` option
#[cfg(target_os = "windows")] | ||
let ansi_support = yansi::Paint::enable_windows_ascii(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose by https://docs.rs/yansi/1.0.1/yansi/index.html#windows we can omit this. Fair enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah the commit message explained ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't see that, I'll make sure to include it in the merged commit
Cool! Do you know of any other dependencies updates we can do that would declutter the package index only requiring a patch-version bump? |
Not really, as least in Debian. Thanks for asking ;) |
let enable_styles = match args.color.unwrap_or_default() { | ||
// Attempt to use styling if instructed | ||
ColorOptions::Always => true, | ||
ColorOptions::Always => { | ||
yansi::enable(); // disable yansi's automatic detection for ANSI support on Windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nc7s Sorry to bother you again, but how do you feel about this change I added? It should now be exactly the previous behavior right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really know enough to judge this, from a glance LGTM?
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [dbrgn/tealdeer](https://github.com/dbrgn/tealdeer) | patch | `v1.7.0` -> `v1.7.1` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>dbrgn/tealdeer (dbrgn/tealdeer)</summary> ### [`v1.7.1`](https://github.com/dbrgn/tealdeer/blob/HEAD/CHANGELOG.md#v171-v171-2024-11-14) [Compare Source](tealdeer-rs/tealdeer@v1.7.0...v1.7.1) This patch release updates the `yansi` dependency to version 1, so that the previous versions of `yansi` can be removed from the package sets of Linux distributions. This change should not impact the behavior of tealdeer. Changes: - \[chore] Upgrade yansi: 0.5.1 -> 1.0.1 (\[[#​389](tealdeer-rs/tealdeer#389)]) Contributors to this version: - \[Blair Noctis]\[[@​nc7s](https://github.com/nc7s)] Thanks! </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Release note: https://github.com/SergioBenitez/yansi/releases/tag/v1.0.0
It'd be nice to have a version bump for this (patch level suffices), so I can straight update it in Debian rather than having to carry a patch ;)