Skip to content

v0.5.0 — .pen parser real-schema hardening

Choose a tag to compare

@celstnblacc celstnblacc released this 18 Jun 20:09
· 13 commits to main since this release
3c215bf

Fixed

  • Complex fill values (gradients, images, arrays) no longer collapse to [object Object] — distinct values diff correctly, identical objects with different key order produce zero diffs
  • Per-side cornerRadius arrays ([t,r,b,l]) now diff correctly against each other and against scalar values
  • Gradient/image/array fills route to Claude instead of the hex fast-path (no more spurious "could not convert hex" errors)

Added

  • Document-level design tokens (variables/themes) are now tracked in the snapshot and surface as diffs when changed
  • ref/reusable component instances are resolved during tree flattening — instance visual props are tracked and diff correctly
  • stableStringify() utility in utils.ts for sorted-key canonical JSON serialization
  • src/__tests__/fixtures/realistic.pen.ts — realistic Document fixture for all future real-schema tests

Notes

  • 560 tests passing (+26 new)
  • Migration-safe: complex values stored as canonical JSON strings (still string type), so existing persisted snapshots remain valid