Skip to content

fix(clerk-js): Remove ANSI colors from ConsoleTransport#7763

Merged
dstaley merged 1 commit intomainfrom
ds.fix/plain-debugger
Feb 4, 2026
Merged

fix(clerk-js): Remove ANSI colors from ConsoleTransport#7763
dstaley merged 1 commit intomainfrom
ds.fix/plain-debugger

Conversation

@dstaley
Copy link
Copy Markdown
Member

@dstaley dstaley commented Feb 4, 2026

Description

The debugger in clerk-js used ANSI escapes to color console text. This functionality was only compatible with Chrome. This PR removes the colors to make the debug logs more readable in other browsers.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • Chores
    • Debug console output now displays as plain text without color formatting.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Feb 4, 2026 5:23pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 4, 2026

🦋 Changeset detected

Latest commit: 0e2ba33

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Member

@jacekradko jacekradko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 4, 2026

📝 Walkthrough

Walkthrough

This pull request updates the @clerk/clerk-js package with a patch version bump. The primary change removes ANSI color formatting from the ConsoleTransport debug module. ANSI color constants and color mappings were eliminated, and message construction was simplified to a plain text format: "[Clerk Debug] {timestamp} {LEVEL}{source}: {message}{context}". The control flow and method signatures remain unchanged, with no public API modifications.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately summarizes the main change: removal of ANSI colors from ConsoleTransport in clerk-js, matching the file modifications and changeset documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 4, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7763

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7763

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7763

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7763

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7763

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7763

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@7763

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7763

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7763

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7763

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7763

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7763

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7763

@clerk/react

npm i https://pkg.pr.new/@clerk/react@7763

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7763

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7763

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7763

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7763

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@7763

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7763

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7763

commit: 0e2ba33

@dstaley dstaley merged commit 6c94da0 into main Feb 4, 2026
41 checks passed
@dstaley dstaley deleted the ds.fix/plain-debugger branch February 4, 2026 17:41
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.

2 participants