We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55948a commit 096807aCopy full SHA for 096807a
1 file changed
.changeset/pluggable-printer.md
@@ -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