Upgrade Ansis to 4.3.1#276
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
9fbcb73 to
584fed7
Compare
584fed7 to
811b2ca
Compare
811b2ca to
44920e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.2.0→4.3.1Release Notes
webdiscus/ansis (ansis)
v4.3.1Compare Source
fix: remove closing
resetANSI sequenceresetis now treated as a single SGR command, not as a paired style.This means
ansis.reset(value)prepends\x1b[0mand does not append a closing reset sequence.Before:
Now:
If a trailing reset is needed, add it explicitly:
The fix removes extra reset sequences in chained, nested, template literal, and multiline style compositions
where treating
resetas a paired style gave wrong output.fix:
strip()now removes OSC 8 hyperlink sequences generated bylink()ansis.strip(ansis.link(url, text))now returns plain textfix: prevent silent style leakage between Ansis instances created with different color levels
fix:
.extend()on one Ansis instance no longer overrides styles created on other instances with different color levelsrefactor: micro-optimisations to reduce code size
v4.3.0Compare Source
link(url, text)globalThisobject for controlled color auto-detectionFORCE_COLOR=1,NO_COLOR=1FORCE_COLORtakes precedence overNO_COLOR)NO_COLOR=1,--colorNO_COLOR)FORCE_COLOR=1,--no-colorFORCE_COLORhas the highest priority)--no-color --color--colorwith no detected colorsConfiguration
📅 Schedule: (in timezone Europe/Copenhagen)
* 0-6,17-23 * * mon-fri)* * * * sat,sun)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.