Skip to content

fix: write textTransform to schema-valid asset field - #184

Merged
dazzatronus merged 2 commits into
mainfrom
fix/text-transform-asset-shape
Sep 15, 2026
Merged

dazzatronus merged 2 commits into
mainfrom
fix/text-transform-asset-shape

Conversation

@dazzatronus

Copy link
Copy Markdown
Contributor

Why

Text transform wrote asset.style, which Zod rejects on non-rich assets (unrecognized_keys: style). textTransform is valid only on rich-text / rich-caption asset.style.

Verify

  • npx jest tests/rich-text-transform.test.ts
  • Vite: open a text/rich-text clip, click Text transform — no crash; transform applies on rich-text or no-ops cleanly on plain text.

Risk

Low. Style writes are gated to schema-supported asset types; plain text transform becomes a no-op rather than throwing.

Derk added 2 commits September 15, 2026 03:04
Text transform wrote `asset.style`, which Zod rejects on TextAsset
(unrecognized_keys). textTransform belongs on asset.style only for
rich-text / rich-caption; skip the update for other asset types.
@dazzatronus
dazzatronus merged commit 93a110e into main Sep 15, 2026
1 check passed
@dazzatronus
dazzatronus deleted the fix/text-transform-asset-shape branch September 15, 2026 12:48
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.19.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant