Skip to content

v2.1.7-alpha — markup raw-text fidelity + parse hardening

Pre-release
Pre-release

Choose a tag to compare

@bpacholek bpacholek released this 13 Jun 19:25
· 55 commits to main since this release

Fixes from the pre-launch production-readiness review. The exported /v2 surface is unchanged; stays -alpha.

Fixed

  • HTML <script>/<style> bodies and XML <![CDATA[…]]> are preserved byte-for-byte on Reformat instead of being whitespace-collapsed and entity-escaped. Escaping a script body's < to &lt; produced invalid JavaScript (and a // line comment could collapse onto the next statement); these raw-text spans now round-trip verbatim. Ordinary element text is still escaped as before (#85).
  • A panic in the raw fallback or the model finish step can no longer escape Parse. The recover boundary now covers the whole function — not just the structured parsers — degrading to the raw fallback (or an empty document) rather than crashing the embedding host (#86).

Documentation

  • README documents the raw-text fidelity and the ordinary-text whitespace canonicalization (#85); fixed a misattached TypedKey/KeyDown doc comment and a stale "JSONC is not rewritten" note (#89).

Remaining production-review items (#87 #88 #90 #91 #92) are tracked in the v2.2.0 — production hardening milestone.

Full Changelog: v2.1.6-alpha...v2.1.7-alpha