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

fix(deps): bump ansis from 3.10.0 to 3.14.0 #1319

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 15, 2025

Bumps ansis from 3.10.0 to 3.14.0.

Release notes

Sourced from ansis's releases.

v3.14.0

Cumulative Release v3.6.0 - v3.14.0

Features

  • Added support for chromium-based browsers.
    Now you can use truecolor in the consoles of Chrome, Edge, Opera, Brave, Vivaldi and other Chromium-based browsers. Browsers that do not support ANSI codes will display black and white text.

  • Added support for \n as a newline in template literals, e.g.: green`Hello\nWorld` renders:

    Hello
    World
    
  • Function ansis.reset() returns the reset escape code \e[0m.

  • Enforce a specific color support by a FORCE_COLOR value:

    • false - Disables colors
    • 0 - Disables colors
    • true (or unset) - Auto detects the supported colors (if no color detected, enforce truecolor)
    • 1 - Enables 16 colors
    • 2 - Enables 256 colors
    • 3 - Enables truecolor
  • Removed undocumented pointless dummy function ansis(any).

[!WARNING] This is not a BREAKING CHANGE because it was never officially documented!

import ansis from 'ansis';
ansis('text'); // <= now will occur the ERROR TS2349: This expression is not callable.

This warning applies only to projects where Chalk was replaced with Ansis and something like chalk('text') was used.

Just replace ansis('text') with 'text'.

The ansis('text') function was a dummy and did nothing except return the same input string.

  • Added support for legacy Node.js v14 (in package.json for npm was changed the engines to "node": ">=14").
  • Micro optimisations for slight performance improvements.

Bug Fixes

  • If the function argument is an empty string should be returned an empty string w/o escape codes:
    ansis.red('') => '', // returns empty string w/o escape codes
  • Cast falsy values false and NaN to a string. In previous versions, the empty string '' was returned for falsy values.
  • Functions with argument 0 , e.g. ansis.red(0), returning empty string '', now return colored value '0'
Changelog

Sourced from ansis's changelog.

3.14.0 (2025-02-13)

  • feat: add support for chromium-based browsers.
    Now you can use truecolor in the consoles of Chrome, Edge, Brave, and other Chromium-based browsers. Browsers that do not support ANSI codes will display black and white text.
  • refactor: slight reduce the package size by ~40 bytes

3.13.0 (2025-02-13)

Skip this version number.

3.12.0 (2025-02-11)

  • feat: add support for \n as a newline in template literals, e.g.: green`Hello\nWorld` renders:
    Hello
    World
    

3.11.0 (2025-02-09)

  • feat: add support for legacy Node.js v14 (in package.json for npm was changed the engines to "node": ">=14")
  • test: add test in GitHub workflow for legacy Node.js versions: 14, 16
  • chore: update dev dependencies
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ansis](https://github.com/webdiscus/ansis) from 3.10.0 to 3.14.0.
- [Release notes](https://github.com/webdiscus/ansis/releases)
- [Changelog](https://github.com/webdiscus/ansis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdiscus/ansis/commits/v3.14.0)

---
updated-dependencies:
- dependency-name: ansis
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-ansis-3.14.0 branch from 93a9cbe to ce2c92e Compare February 15, 2025 11:23
@mdonnalley mdonnalley merged commit 1de1085 into main Feb 17, 2025
83 of 85 checks passed
@mdonnalley mdonnalley deleted the dependabot-npm_and_yarn-ansis-3.14.0 branch February 17, 2025 15:17
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.

1 participant