🎥 Make videos programmatically with React
Some preparations for Remotion 5.0
Jonny Burgerc646575e13f7
diff --git a/packages/docs/docs/5-0-migration.mdx b/packages/docs/docs/5-0-migration.mdxindex a3e75f7917..f5e1cd589f 100644--- a/packages/docs/docs/5-0-migration.mdx+++ b/packages/docs/docs/5-0-migration.mdx@@ -56,6 +56,18 @@ It never made sense to have this prop as transitioned elements need to be positi**Required action**: Remove the `layout` prop.+## Zod should be upgraded to 3.23.8++Remotion previously used the types of Zod 3.22.3. With Remotion 5.0, the types of 3.23.8 are used.++**Required action**: If you use Zod, Upgrade Zod to 3.23.8.++## `measureSpring()` does not accept `from` and `to` options anymore++The values passed in there did not influence the calculation at all. Therefore we removed those options.++**Required action**: Remove the `from` and `to` options from your code.+## License changesRemotion 5.0 has an updated license. View the [license](https://github.com/remotion-dev/remotion/blob/5-0-license/LICENSE.md) here or compare the [changes](https://github.com/remotion-dev/remotion/pull/3750).diff --git a/packages/it-tests/src/rendering/rendering.test.ts b/packages/it-tests/src/rendering/rendering.test.tsindex d02578a125..a2fd5828a3 100644--- a/packages/it-tests/src/rendering/rendering.test.ts+++ b/packages/it-tests/src/rendering/rendering.test.ts@@ -3,6 +3,7 @@ import {beforeAll, beforeEach, expect, test} from 'bun:test';import execa from 'execa';import fs from 'fs';import path from 'path';+import {NoReactInternals} from 'remotion/no-react';const outputPath = path.join(process.cwd(), 'packages/example/out.mp4');@@ -376,7 +377,11 @@ test(});const data = info.stderr;expect(data).toContain('Video: h264');- expect(data).not.toContain('bt709');+ if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES) {+ expect(data).toContain('bt709');+ } else {+ expect(data).not.toContain('bt709');+ }expect(data).toContain('Duration: 00:00:01.64');fs.unlinkSync(outputPath);@@ -506,9 +511,15 @@ test('Dynamic duration should work and audio separation', async () => {expect(data).toContain('Video: h264');const expectedDuration = (randomDuration / 30).toFixed(2);expect(data).toContain(`Duration: 00:00:0${expectedDuration}`);- expect(data).toContain(- `Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown, progressive)`,- );+ if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES) {+ expect(data).toContain(+ `Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive)`,+ );+ } else {+ expect(data).toContain(+ `Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown, progressive)`,+ );+ }fs.unlinkSync(outputPath);