Skip to content

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

Merged
farnabaz merged 6 commits into
mainfrom
feat/ansi-print-rename
Aug 24, 2026
Merged

feat(ansi): rename writeAnsi/createAnsiWriter to printAnsi/createAnsiPrinter#382
farnabaz merged 6 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 24, 2026 10:27am
comark-json-render Ready Ready Preview Aug 24, 2026 10:27am
comark-nextjs Ready Ready Preview Aug 24, 2026 10:27am
comark-nuxt Ready Ready Preview Aug 24, 2026 10:27am
comark-svelte Ready Ready Preview Aug 24, 2026 10:27am
comark-sveltekit Ready Ready Preview Aug 24, 2026 10:27am
comark-twoslash Ready Ready Preview Aug 24, 2026 10:27am
comark-vue Ready Ready Preview Aug 24, 2026 10:27am

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Documentation previews

📚 Preview all documentation changes

@pkg-pr-new

pkg-pr-new Bot commented Aug 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark

npm i https://pkg.pr.new/comark@382

@comark/angular

npm i https://pkg.pr.new/@comark/angular@382

@comark/ansi

npm i https://pkg.pr.new/@comark/ansi@382

@comark/html

npm i https://pkg.pr.new/@comark/html@382

@comark/nuxt

npm i https://pkg.pr.new/@comark/nuxt@382

@comark/react

npm i https://pkg.pr.new/@comark/react@382

@comark/svelte

npm i https://pkg.pr.new/@comark/svelte@382

@comark/vue

npm i https://pkg.pr.new/@comark/vue@382

commit: 96e94ad

@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

✅ Bundle snapshot updated

Committed the new snapshot as 96e94ad, verified by re-running the bundle check against it.

GitHub suppresses the events a workflow commit would normally raise, so the ci check above may
still show the earlier failure. Re-run it to refresh the status — the snapshot itself is confirmed green.

Produced by this run.

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.

2 participants