nodejs / nodejs/userland-migrations

feat(`chalk-to-util-styletext`): allow hex value

Open
#456 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
85
Forks
55
Avg merge
3d 11h
Merged PRs (30d)
9

Description

on v26 & v24 we styleText allow hex value. So the codemod should support that. user of codemod may not use latest LTS on prod so we have to allow/disallow the hex migration. to do that you have parameters on codemod:
https://docs.codemod.com/workflows/reference#accessing-parameters

so the question is should we enable by default or not ?

also with that we can support RGB methods by converting it to hex

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the chalk-to-util-styletext codemod and the linked Codemod parameters documentation. Decide whether hex migration is enabled by default for v24/v26 users, then assess the linked RGB-to-hex conversion before defining the supported parameter behavior and validating both migration paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.