🎥 Make videos programmatically with React
Upgrde Mediabunny to 1.27.2
JonnyBurger039eb1f6c21f
diff --git a/.claude/skills/upgrade-mediabunny/SKILL.md b/.claude/skills/upgrade-mediabunny/SKILL.mdnew file mode 100644index 0000000000..d60bf2e293--- /dev/null+++ b/.claude/skills/upgrade-mediabunny/SKILL.md@@ -0,0 +1,12 @@+---+name: upgrade-mediabunny+description: Upgrade the Mediabunny dependency across the whole monorepo+---++To upgrade Mediabunny to a specific version:++1. Look in the root package.json and update the version of Mediabunny to the desired version.+2. Also upgrade @mediabunny/mp3-encoder to the same version.+3. Look in packages/template-\*/package.json and update the version of Mediabunny to the desired version.+4. Update `packages/docs/docs/mediabunny/version.mdx` compatiblity table. To find the next version this upgrade is going to be applied, look in the root package.json for the version and increment the patch version by one+5. Run `bun i` in the end.diff --git a/bun.lock b/bun.lockindex 5bff906a18..ac0b2d60db 100644--- a/bun.lock+++ b/bun.lock@@ -1498,7 +1498,7 @@"@remotion/media": "workspace:*","@remotion/media-utils": "workspace:*","@remotion/zod-types": "workspace:*",- "mediabunny": "catalog:",+ "mediabunny": "1.27.2","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",@@ -1818,7 +1818,7 @@"connect": "3.7.0","eslint": "9.19.0","lucide-react": "0.516.0",- "mediabunny": "1.27.0",+ "mediabunny": "1.27.2","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",@@ -1835,7 +1835,7 @@"@types/react-dom": "19.2.3","@types/web": "0.0.187","@types/webrtc": "0.0.44",- "@vitejs/plugin-react": "catalog:",+ "@vitejs/plugin-react": "4.1.0","@vitejs/plugin-react-swc": "3.0.0","autoprefixer": "10.4.16","postcss": "8.4.31",@@ -1954,7 +1954,7 @@"@remotion/media": "workspace:*","@remotion/three": "workspace:*","@remotion/zod-types": "workspace:*",- "mediabunny": "1.27.0",+ "mediabunny": "1.27.2","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",@@ -2201,7 +2201,7 @@"@aws-sdk/lib-storage": "3.936.0","@aws-sdk/middleware-flexible-checksums": "3.936.0","@aws-sdk/s3-request-presigner": "3.936.0",- "@mediabunny/mp3-encoder": "1.24.5",+ "@mediabunny/mp3-encoder": "1.27.2","@react-three/fiber": "9.2.0","@types/bun": "1.3.3","@types/dom-webcodecs": "0.1.11",@@ -2213,7 +2213,7 @@"@vitejs/plugin-react": "4.1.0","@vitest/browser-playwright": "4.0.9","eslint": "9.19.0",- "mediabunny": "1.27.0",+ "mediabunny": "1.27.2","next": "16.0.10","openai": "4.67.1","playwright": "1.55.1",@@ -3106,7 +3106,7 @@"@mdx-js/react": ["@mdx-js/[email protected]", "", { "dependencies": { "@types/mdx": "2.0.5", "@types/react": "19.0.0" }, "peerDependencies": { "react": "19.0.0" } }, "sha512-zQH//gdOmuu7nt2oJR29vFhDv88oGPmVw6BggmrHeMI+xgEkp1B2dX9/bMBSYtK0dyLX/aOmesKS09g222K1/g=="],- "@mediabunny/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-9I1Q+2cmRybAXodxZ1iUIvVxcrjVSTVSyvz7vZS223dN3lrzWpTjiWCf5z6fExIhcJ7cES3RCcNk6aHYO5MrqA=="],+ "@mediabunny/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-Dq7cG3wZeZdKNIqZFVq8GXCBpRw7DGRcJou5PTtU96V2irltWi6FUQhj9ScVkOeZBudb9yPRF2EUW9Hf+1QGmQ=="],"@mediafox/core": ["@mediafox/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.23.0", "typescript": ">=5.0.0" } }, "sha512-1j8PKp835RUVzZt1vcymrgZqhaMobfP7SswbTisusvTgIZL8y5n2QFhSCnn7dze+a53VgnWyzkHOYdtVR1Gdew=="],@@ -5652,7 +5652,7 @@"media-typer": ["[email protected]", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="],- "mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-u1Xm/HRs4g+cJM8IWcraaWlDmPnAr0FvEbFNbTm46bFA1GPoNRpmBeCq3aPlj9sjyqb0c7TMbW/i/pPupjwJog=="],+ "mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-0g/vmb6X0xmnzqW0U44weF9CmzcUFFQRHrjzoVpSL2KXuhWIWcW3u9wIcohHiTY78jfr0SauYKLxjOQReaMxXQ=="],"memfs": ["[email protected]", "", { "dependencies": { "fs-monkey": "1.0.3" } }, "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg=="],diff --git a/package.json b/package.jsonindex dcd9e4c4d0..bd619b419a 100644--- a/package.json+++ b/package.json@@ -98,8 +98,8 @@"@types/node": "20.12.14","@types/web": "0.0.166","@types/bun": "1.3.3",- "mediabunny": "1.27.0",- "@mediabunny/mp3-encoder": "1.24.5",+ "mediabunny": "1.27.2",+ "@mediabunny/mp3-encoder": "1.27.2","next": "16.0.10","three": "0.178.0","sharp": "0.34.5",diff --git a/packages/docs/docs/mediabunny/version.mdx b/packages/docs/docs/mediabunny/version.mdxindex de56a2936d..07aa58d408 100644--- a/packages/docs/docs/mediabunny/version.mdx+++ b/packages/docs/docs/mediabunny/version.mdx@@ -10,7 +10,7 @@ The following package of Remotion is using [Mediabunny](https://mediabunny.dev):- [`@remotion/media`](/docs/media)- [`@remotion/media-utils`](/docs/media-utils)-The current version of Remotion uses version [`1.27.0`](https://github.com/Vanilagy/mediabunny/releases/tag/v1.27.0) of Mediabunny.+The current version of Remotion uses version [`1.27.2`](https://github.com/Vanilagy/mediabunny/releases/tag/v1.27.2) of Mediabunny.If you use Mediabunny as a direct dependency in your project, you can use this version number to not have two versions of Mediabunny installed.@@ -21,6 +21,7 @@ Note that only from 4.0.355, Mediabunny is not bundled in with Remotion but load| Remotion Version | Mediabunny Version || ---------------- | ------------------ |+| 4.0.394 | 1.27.2 || 4.0.393 | 1.27.0 || 4.0.384 | 1.25.8 || 4.0.381 | 1.25.3 |diff --git a/packages/it-tests/src/templates/validate-templates.test.ts b/packages/it-tests/src/templates/validate-templates.test.tsindex 64564b2d79..947b658f45 100644--- a/packages/it-tests/src/templates/validate-templates.test.ts+++ b/packages/it-tests/src/templates/validate-templates.test.ts@@ -52,6 +52,34 @@ describe('Templates should be valid', () => {expect(body.private).toBe(true);expect(body.name).toStartWith('template-');+ // Check that no dependencies use "catalog:" as version+ if (body.dependencies) {+ for (const [dep, version] of Object.entries(body.dependencies)) {+ expect(version).not.toBe(+ 'catalog:',+ `Dependency "${dep}" should not use "catalog:" as version`,+ );+ }+ }++ if (body.devDependencies) {+ for (const [dep, version] of Object.entries(body.devDependencies)) {+ expect(version).not.toBe(+ 'catalog:',+ `devDependency "${dep}" should not use "catalog:" as version`,+ );+ }+ }++ if (body.peerDependencies) {+ for (const [dep, version] of Object.entries(body.peerDependencies)) {+ expect(version).not.toBe(+ 'catalog:',+ `peerDependency "${dep}" should not use "catalog:" as version`,+ );+ }+ }+if (!template.shortName.includes('JavaScript')) {expect(body.devDependencies['typescript']).toInclude('5.9.3');diff --git a/packages/template-music-visualization/package.json b/packages/template-music-visualization/package.jsonindex c19669f636..7dc43f361e 100644--- a/packages/template-music-visualization/package.json+++ b/packages/template-music-visualization/package.json@@ -17,7 +17,7 @@"@remotion/media-utils": "workspace:*","@remotion/google-fonts": "workspace:*","@remotion/zod-types": "workspace:*",- "mediabunny": "catalog:",+ "mediabunny": "1.27.2","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",diff --git a/packages/template-recorder/package.json b/packages/template-recorder/package.jsonindex 6de4348655..1c4ea356ac 100644--- a/packages/template-recorder/package.json+++ b/packages/template-recorder/package.json@@ -39,7 +39,7 @@"connect": "3.7.0","eslint": "9.19.0","lucide-react": "0.516.0",- "mediabunny": "1.27.0",+ "mediabunny": "1.27.2","react": "19.2.3","react-dom": "19.2.3","tailwind-merge": "1.14.0",@@ -61,7 +61,7 @@"@types/connect": "3.4.38","@types/web": "0.0.187","@types/webrtc": "0.0.44",- "@vitejs/plugin-react": "catalog:",+ "@vitejs/plugin-react": "4.1.0","prettier": "3.6.0","prettier-plugin-organize-imports": "3.2.3"}diff --git a/packages/template-three/package.json b/packages/template-three/package.jsonindex 7ce4f77c6c..83006da6d7 100644--- a/packages/template-three/package.json+++ b/packages/template-three/package.json@@ -21,7 +21,7 @@"remotion": "workspace:*","three": "0.178.0","zod": "3.22.3",- "mediabunny": "1.27.0"+ "mediabunny": "1.27.2"},"devDependencies": {"@remotion/eslint-config-flat": "workspace:*",