replace picocolors with node:util styleText · Issue #1949 · changesets/changesets · GitHub
Skip to content

replace picocolors with node:util styleText #1949

Closed

Description

@ghostdevv

It looks like minimum node version for v3 will be 20.19 which means we could remove a dependency and instead use the built in node:util#styleText fn - there is only one bug that isn't patched until v22 which is that nested styleText calls won't colour correctly, but that's only issue for the codebase and shouldn't effect consumers of changesets, so could still be worth it.

Happy to submit a PR if this is wanted!

Follow on from #1414

Activity

  1. Andarist commented on May 3, 2026

    @Andarist
    Member
  2. added this to the v3 milestone on May 4, 2026
  3. added theissue type on May 4, 2026
  4. beeequeue commented on May 4, 2026

    @beeequeue
    Member

    imo we can bump the minimum node version to 22 since 20 became EoL this weekend.

    my opinion on styleText is mixed, and i think it should wait until after #1879, but my opinions are not strong enough to stop anyone from implementing it :)

    it is built-in 👍
    i strongly dislike the api 👎 (can be fixed with a small wrapper)
    it's quite a bit slower 👎 (but not noticably iirc)

  5. ghostdevv commented on May 4, 2026

    @ghostdevv
    ContributorAuthor

    Happy to wait, and we can definitely add a small wrapper to make it more like picocolors. I didn't realise it was slower, that's a shame, but yea I don't think it's noticeable and so it's still likely worth it IMO.

  6. bluwy commented on May 13, 2026

    @bluwy
    Member

    Closed by #2004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions