Skip to content

fix(deps): update rust crate colored to v3 #438

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

Merged
merged 1 commit into from
May 9, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 1, 2025

This PR contains the following updates:

Package Type Update Change
colored dependencies major 2.1.0 -> 3.0.0

Release Notes

mackwic/colored (colored)

v3.0.0

Compare Source

  • [BREAKING CHANGE]: Upgrade MSRV to 1.80 and remove the then unnecessary lazy_static dependency.

v2.2.0

Compare Source

  • Updated top-level docs to include a note about ColoredString's role in the Colorize pipeline as well as link to it to suggest learning more about how to manipulate existing ColoredString's.
  • Changes to ColoredString:
    • Expose fields.
    • [DEPRECATION]: Deprecated methods fgcolor, bgcolor, and style due to their obsolescence in the face of the exposing of their represented fields.
    • Add methods for clearing specific elements of fgcolor, bgcolor, and style.
    • Change Default implementation to be via derive as Style now implements Default (see changes to Style below).
    • Add implementation of DerefMut.
    • Updated docs to reflect the above changes as well as generally greatly expand them.
  • Changes to Style:
    • Implemented Default for Style (returns CLEAR). This exposes a method by which users can create plain Style's from scratch.
    • Implemented From<Styles> for Style. This lets users easily create Style's from specific styles.
    • Exposed previously private method add.
    • Created method remove which essentially does the opposite.
    • Added builder-style methods in the vein of Colorize to add stylings (e.g. bold, underline, italic, strikethrough).
    • Implemented bitwise operators BitAnd, BitOr, BitXor, and Not as well as their representative assignment operators. You can also use a Styles as an operand for these.
    • Implemented FromIterator<Styles> for Style.
  • Changes to Styles:
    • Implemented bitwise operators BitAnd, BitOr, BitXor, and Not which all combine Styles's and output Style's. These can also take a Style as an operand.
  • Added additional testing for all of the above changes.
  • Added methods with_style and with_color_and_style to Colorize.

Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from kyu08 March 1, 2025 02:48
@renovate renovate bot force-pushed the renovate/colored-3.x branch 12 times, most recently from 73ce4fd to b71beac Compare May 4, 2025 07:27
@renovate renovate bot force-pushed the renovate/colored-3.x branch 8 times, most recently from 3d9ac77 to 784b3d3 Compare May 7, 2025 15:12
@renovate renovate bot force-pushed the renovate/colored-3.x branch 5 times, most recently from 96ae5e6 to 8e0e711 Compare May 8, 2025 14:38
@kyu08
Copy link
Owner

kyu08 commented May 8, 2025

Ready to merge.

@renovate renovate bot force-pushed the renovate/colored-3.x branch from 8e0e711 to c70546b Compare May 9, 2025 00:44
@renovate renovate bot force-pushed the renovate/colored-3.x branch 2 times, most recently from 520724f to 4d50ce1 Compare May 9, 2025 00:47
@renovate renovate bot force-pushed the renovate/colored-3.x branch from 4d50ce1 to 6a10789 Compare May 9, 2025 00:48
@kyu08 kyu08 merged commit b8473d5 into main May 9, 2025
4 checks passed
@kyu08 kyu08 deleted the renovate/colored-3.x branch May 9, 2025 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant