Skip to content

Replace ANSI handling library - #562

Merged
davidjgoss merged 2 commits into
mainfrom
ansi-to-html-workaround
Sep 2, 2026
Merged

Replace ANSI handling library#562
davidjgoss merged 2 commits into
mainfrom
ansi-to-html-workaround

Conversation

@davidjgoss

@davidjgoss davidjgoss commented Sep 2, 2026

Copy link
Copy Markdown
Member

🤔 What's changed?

Replace ansi-to-html with ansi_up.

⚡️ What's your motivation?

ansi-to-html was unmaintained, and bundler changes are starting to cause issues with it e.g. cucumber/html-formatter#540 where webpack's changed wrapping of CommonJS-exported functions broke our usage.

ansi_up doesn't have this issue. It also automatically sanitises the input text for XSS, which our old code implied it did, but didn't.

🏷️ What kind of change is this?

  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, etc. without changing behaviour)
  • 🐛 Bug fix (non-breaking change which fixes a defect)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploying react-components with  Cloudflare Pages  Cloudflare Pages

Latest commit: 08e4901
Status: ✅  Deploy successful!
Preview URL: https://a000f7b9.react-components-9pg.pages.dev
Branch Preview URL: https://ansi-to-html-workaround.react-components-9pg.pages.dev

View logs

@davidjgoss
davidjgoss marked this pull request as ready for review September 2, 2026 15:54
@davidjgoss
davidjgoss merged commit f39e861 into main Sep 2, 2026
4 checks passed
@davidjgoss
davidjgoss deleted the ansi-to-html-workaround branch September 2, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant