Skip to content

refactor: use ansis instead of chalk - #11263

Merged
michaelbromley merged 2 commits into
typeorm:masterfrom
alumni:chore/ansis
Feb 27, 2025
Merged

michaelbromley merged 2 commits into
typeorm:masterfrom
alumni:chore/ansis

Conversation

@alumni

@alumni alumni commented Jan 27, 2025

Copy link
Copy Markdown
Collaborator

Description of change

Replaces chalk with ansis. This is smaller, faster and has no dependencies. It's also recently updated and allows us to use ANSI codes directly (for the syntax highlighter).

The syntax highlighter now uses colors similar to the ones we had before PR #11221 was merged.

Also updated uuid. The only breaking change is the minimum supported node version, which is within TypeORM's range as well.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

@alumni

alumni commented Jan 27, 2025

Copy link
Copy Markdown
Collaborator Author

Syntax highlighting example (see #11221 (comment) for comparison):

image

@coveralls

coveralls commented Jan 27, 2025 •

Copy link
Copy Markdown

Coverage Status

coverage: 72.365% (-0.004%) from 72.369%
when pulling 043eccf on alumni:chore/ansis
into 17a3c52 on typeorm:master.

Comment thread src/commands/EntityCreateCommand.ts Resolved
@michaelbromley
michaelbromley merged commit 988673c into typeorm:master Feb 27, 2025
aberonni pushed a commit to global-121/typeorm that referenced this pull request Mar 5, 2025
@alumni
alumni deleted the chore/ansis branch May 2, 2025 10:07
ThbltLmr pushed a commit to ThbltLmr/typeorm that referenced this pull request Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants