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

[new release] ansifmt (0.2.0) #27357

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Conversation

qexat
Copy link
Contributor

@qexat qexat commented Feb 3, 2025

A simple, lightweight library for ANSI formatting

CHANGES:

Features

Breaking Changes

Removed

  • Util.parenthesize_if which is deemed unuseful and is kind of a duplicate of Tree.parenthesize_if in Formatting.

CHANGES:

## Features

- Add color functions `luminance` and `best_for_contrast`. (by @chshersh in qexat/ansifmt#5)
- Add styling functions `fg`, `bg`, `bold`, `dim`, `italic`, `underlined`. (by @chshersh in qexat/ansifmt#6)
- Add styling composition with `&`. (by @chshersh in qexat/ansifmt#6)
- Add function `make_rgb_hex` to parse hexadecimal codes into RGB colors. (by @chshersh in qexat/ansifmt#7)

## Breaking Changes

- `Color.t` and `Color.Ground.t` are now polymorphic variants. (by @chshersh in qexat/ansifmt#5)

## Removed

- `Util.parenthesize_if` which is deemed unuseful and is kind of a duplicate of `Tree.parenthesize_if` in `Formatting`.
@qexat
Copy link
Contributor Author

qexat commented Feb 3, 2025

CI is failing because I once again forgot to put the lower-bound to 4.08, I'll fix that soon

@qexat
Copy link
Contributor Author

qexat commented Feb 5, 2025

CI is failing because I once again forgot to put the lower-bound to 4.08, I'll fix that soon

Hopefully this should stop happening: qexat/ansifmt#12

@mseri mseri merged commit a02b389 into ocaml:master Feb 5, 2025
3 checks passed
@mseri
Copy link
Member

mseri commented Feb 5, 2025

Thanks

@qexat qexat deleted the release-ansifmt-0.2.0 branch February 5, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants