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

Upgrade yansi: 0.5.1 -> 1.0.1 #389

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Conversation

nc7s
Copy link
Contributor

@nc7s nc7s commented Nov 5, 2024

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

- 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
Comment on lines -252 to -253
#[cfg(target_os = "windows")]
let ansi_support = yansi::Paint::enable_windows_ascii();
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

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

@niklasmohrin
Copy link
Collaborator

Cool! Do you know of any other dependencies updates we can do that would declutter the package index only requiring a patch-version bump?

@nc7s
Copy link
Contributor Author

nc7s commented Nov 10, 2024

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

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?

Copy link
Contributor Author

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?

@niklasmohrin niklasmohrin merged commit fb7492b into tealdeer-rs:main Nov 14, 2024
9 checks passed
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Nov 19, 2024
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 (\[[#&#8203;389](tealdeer-rs/tealdeer#389)])

Contributors to this version:

-   \[Blair Noctis]\[[@&#8203;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=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants