Skip to content

fix: Proxy-safe clone for custom attributes (schema editor) - #2

Merged
eumicro merged 3 commits into
mainfrom
fix/proxy-safe-attribute-clone
Oct 10, 2026
Merged

eumicro merged 3 commits into
mainfrom
fix/proxy-safe-attribute-clone

Conversation

@eumicro

@eumicro eumicro commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • cloneJsonCompatible falls back when structuredClone rejects Proxies
  • Used in JSON Schema / UI Schema attribute clone paths
  • Geometry attribute control detaches reactive config on commit

Test plan

  • Unit: clone-value.test.ts (Proxy clone)
  • domain-service vendor 0.1.18: schema attribute edit + entity geometry map

structuredClone throws DOMException on Vue Proxies during deepClone,
breaking schema attribute edits and geometry form fields. Fall back to
JSON round-trip via cloneJsonCompatible; detach geometry config on commit.
@eumicro

eumicro commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

Hinweis: domain-service (#46) liefert 0.1.18 aktuell als Patch auf der 0.1.17-Vendor-Baseline (inkl. Relation-APIs), weil main die Relation-Module nicht enthält. Dieser PR bleibt die Upstream-Quelle für cloneJsonCompatible; vor Merge/Pack für domain-service Relation-Quellen wieder in den Tree bringen oder weiter von 0.1.17+Patch packen.

Add cloneJsonCompatible for Vue Proxy-safe attribute clones, restore
relation reference/snapshot APIs and Vue relation form controls, and
bump packages to 0.1.18.
@eumicro
eumicro merged commit def8c2e into main Oct 10, 2026
@eumicro
eumicro deleted the fix/proxy-safe-attribute-clone branch October 10, 2026 15:37
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.

1 participant