From 703d0b37710652c85d50b34ed8b7cd4f0d0be8e4 Mon Sep 17 00:00:00 2001 From: dazzatronus Date: Thu, 19 Nov 2026 00:00:10 +1100 Subject: [PATCH] chore: bump @shotstack/schemas to 1.25.0 and canvas to 2.15.0 --- package.json | 4 ++-- tests/duck-load.test.ts | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 tests/duck-load.test.ts diff --git a/package.json b/package.json index bd4ad3f4..bd1d5226 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "vite-plugin-dts": "^4.5.4" }, "dependencies": { - "@shotstack/schemas": "1.24.0", - "@shotstack/shotstack-canvas": "2.14.2", + "@shotstack/schemas": "1.25.0", + "@shotstack/shotstack-canvas": "2.15.0", "howler": "^2.2.4", "mediabunny": "1.65.2", "opentype.js": "^1.3.4", diff --git a/tests/duck-load.test.ts b/tests/duck-load.test.ts new file mode 100644 index 00000000..23631be9 --- /dev/null +++ b/tests/duck-load.test.ts @@ -0,0 +1,31 @@ +import { buildDuckedVolume } from "@shotstack/shotstack-canvas/duck"; + +import { EditSchema } from "../src/core/schemas"; + +describe("duck dependencies", () => { + it("accepts an audio clip with a duck property", () => { + const edit = { + timeline: { + tracks: [ + { clips: [{ alias: "voice", asset: { type: "audio", src: "https://example.com/voice.mp3" }, start: 0, length: 5 }] }, + { + clips: [ + { + asset: { type: "audio", src: "https://example.com/music.mp3", duck: { under: "alias://voice" } }, + start: 0, + length: 5 + } + ] + } + ] + }, + output: { format: "mp4", size: { width: 1280, height: 720 } } + }; + + expect(() => EditSchema.parse(edit)).not.toThrow(); + }); + + it("resolves the canvas duck subpath", () => { + expect(typeof buildDuckedVolume).toBe("function"); + }); +});