Skip to content

feat(ansi): rename writeAnsi/createAnsiWriter to printAnsi/createAnsiPrinter - #382

Open
atinux wants to merge 4 commits into
mainfrom
feat/ansi-print-rename
Open

feat(ansi): rename writeAnsi/createAnsiWriter to printAnsi/createAnsiPrinter#382
atinux wants to merge 4 commits into
mainfrom
feat/ansi-print-rename

Conversation

@atinux

@atinux atinux commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

What

Renames writeAnsi() to printAnsi() and createAnsiWriter() to createAnsiPrinter() in @comark/ansi. The old names (plus the AnsiWriterOptions type) remain as @deprecated TypeScript aliases so existing code keeps working. Docs, README, AGENTS.md, examples, benchmarks, and tests are updated to the new names.

Why

"Print" describes the behavior (parse and print to stdout) better than "write". Keeping deprecated aliases makes this a non-breaking change now, with removal planned for the next major version.

…Printer

Deprecate writeAnsi, createAnsiWriter, and AnsiWriterOptions as aliases,
to be removed in the next major version.
@atinux
atinux requested a review from farnabaz as a code owner August 21, 2026 19:10
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
comark Ready Ready Preview Aug 21, 2026 7:38pm
comark-json-render Ready Ready Preview Aug 21, 2026 7:38pm
comark-nextjs Ready Ready Preview Aug 21, 2026 7:38pm
comark-nuxt Ready Ready Preview Aug 21, 2026 7:38pm
comark-svelte Ready Ready Preview Aug 21, 2026 7:38pm
comark-sveltekit Ready Ready Preview Aug 21, 2026 7:38pm
comark-twoslash Ready Ready Preview Aug 21, 2026 7:38pm
comark-vue Ready Ready Preview Aug 21, 2026 7:38pm

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Documentation previews

📚 Preview all documentation changes

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