Skip to content

🎥 Make videos programmatically with React

document

Jonny Burgera4165d66490b
diff --git a/packages/docs/docs/5-0-migration.mdx b/packages/docs/docs/5-0-migration.mdx
index 35bff79de8..5f4c0b1aad 100644
--- a/packages/docs/docs/5-0-migration.mdx
+++ b/packages/docs/docs/5-0-migration.mdx
@@ -2,7 +2,7 @@
image: /generated/articles-docs-5-0-migration.png
id: 5-0-migration
title: v5.0 Migration
-crumb: "Version Upgrade"
+crumb: 'Version Upgrade'
---
:::note
@@ -48,7 +48,6 @@ A common footgun was the render was not working as intended because the input pr
**Required action**: Review the visualization of your audio. If unsatisfactory, revert to the old behavior by setting `optimizeFor: "accuracy"`.
-
## TransitionSeries does not support `layout="none"` anymore
Having a [TransitionSeries](/docs/transitions/transitionseries) with `layout="none"` is not supported anymore.
@@ -58,13 +57,13 @@ It never made sense to have this prop as transitioned elements need to be positi
## 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.
+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.
+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.
@@ -77,17 +76,23 @@ The default value of `overwrite` has been changed to `true` in `renderMediaOnLam
## `openBrowser()` now takes a `logLevel` instead of `shouldDumpIo`
The `shouldDumpIo` option has been be removed in 5.0.
-Use `logLevel` instead.
+Use `logLevel: "verbose"` instead.
## `diskSizeInMb` is now 10240 by default
For Remotion Lambda, the default disk size is now 10240 MB.
-This will add a miniscule cost to your renders technically, but will lead to more reliable and faster renders, since Chrome is less likely to run out of disk cache.
+This will add a miniscule cost to your renders technically, but will lead to more reliable and faster renders, since Chrome is less likely to run out of disk cache.
**Required actions**:
+
- If you want to keep the old behavior, set `diskSizeInMb: 2048`, explicitly.
- If your Lambda function name is hardcoded to include `disk2048mb`, unhardcode it and use `speculateFunctionName()` to get the correct name.
+## Some APIs should be imported from `@remotion/lambda/client`
+
+`renderMediaOnLambda()`, `getRenderProgress()`, `renderStillOnLambda()`, `presignUrl()`, `getSites()` have been removed from `@remotion/lambda`.
+They are now available in `@remotion/lambda/client`.
+
## License changes
Remotion 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).
@@ -97,4 +102,3 @@ Besides wording changes, there are two effective changes in this license:
- Contractors also count towards team size. Previously, a company could only work with contractors and never have to get a company license.
- The company license is bound to our [terms and conditions](https://www.remotion.pro/terms) that will be introduced with Remotion 5.0.
Previously, our terms were generated by a Terms and conditions generator and did not make sense. We wrote the terms and conditions to properly define how we currently handle our licensing business and policies.
-