Skip to content

Commit 096807a

Browse files
committed
add changeset
1 parent d55948a commit 096807a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.changeset/pluggable-printer.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"zmod": patch
3+
---
4+
5+
Add pluggable printer support via `Parser.print`
6+
7+
- `Parser` interface now accepts an optional `print?(node: any): string` method
8+
- `z.withParser(codec)` threads the printer through to all `Collection` instances
9+
- `replaceWith(astNode)` now serializes builder-created nodes via the active printer
10+
- `z.print(node)` exposes the active printer for manual serialization
11+
- Falls back to the internal printer when `print` is not provided (no breaking change)

0 commit comments

Comments
 (0)