Skip to content

fix: update @shotstack/schemas to 1.14.0 and handle srcless generated assets#138

Merged
dazzatronus merged 1 commit into
mainfrom
derk/bump-schemas-1-14
Jul 13, 2026
Merged

fix: update @shotstack/schemas to 1.14.0 and handle srcless generated assets#138
dazzatronus merged 1 commit into
mainfrom
derk/bump-schemas-1-14

Conversation

@dazzatronus

Copy link
Copy Markdown
Contributor

What changed

The schemas dependency was pinned to 1.11.0, so the editor validated edits against a contract several versions behind the render API. Templates using newer API features — the newscaster voice option on audio assets, prompt-driven audio (prompt/voice/model) — failed strict validation at load and could not be opened in the editor, even though they render fine via the API.

  • Bump @shotstack/schemas 1.11.0 → 1.14.0 so load-time validation matches the current API contract.
  • The newer contract makes src optional on audio, image, and video assets (generation-driven assets have no source until generated). Players and the thumbnail renderer now throw a clear per-clip error for a srcless asset instead of failing on undefined — clip load failures are already caught per clip, so the edit still opens with the affected clip flagged.

How to verify

New tests in tests/schema.test.ts ("API-accepted templates parse at load"): text-to-speech and prompt-driven audio assets with newscaster parse successfully (the audio case fails on 1.11.0), and a destination without an options object is accepted. Full suite passes (1847 tests), tsc and lint clean, build succeeds.

@dazzatronus
dazzatronus merged commit e717837 into main Jul 13, 2026
1 check passed
@dazzatronus
dazzatronus deleted the derk/bump-schemas-1-14 branch July 13, 2026 03:47
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.13.3 🎉

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