Skip to content

🎥 Make videos programmatically with React

Skills: Standardize API deprecations (#9853)

Jonny Burgerd7b473b0b15e
diff --git a/.agents/skills/deprecate-api/SKILL.md b/.agents/skills/deprecate-api/SKILL.md
new file mode 100644
index 0000000000..c03931cb23
--- /dev/null
+++ b/.agents/skills/deprecate-api/SKILL.md
@@ -0,0 +1,57 @@
+---
+name: deprecate-api
+description: Reference for how deprecation of public Remotion APIs is represented in TypeScript source and documentation. Use when adding, reviewing, or discussing a deprecation of a function, component, hook, type, prop, option, or other public API that remains available.
+---
+
+# API deprecations in Remotion
+
+Deprecation of a public API that remains available is represented in three places:
+
+1. A JSDoc `@deprecated` annotation on the public TypeScript API.
+2. Strikethrough formatting on the API's documentation heading.
+3. An `info` admonition named `Deprecated` directly after that heading.
+
+These conventions apply to functions, components, hooks, types, props, options, and other public APIs.
+
+## TypeScript representation
+
+The public symbol carries a JSDoc `@deprecated` annotation. The annotation states the replacement when one exists and may link to its documentation.
+
+```ts
+/**
+ * @deprecated Use `newApi()` instead: https://www.remotion.dev/docs/new-api
+ */
+export const oldApi = () => {};
+```
+
+The annotation belongs where consumers receive it. For a re-export or compatibility alias, this is the exported symbol rather than the non-deprecated implementation.
+
+## Documentation representation
+
+The deprecated API name in its heading uses double-tilde strikethrough. `<AvailableFrom>` remains outside the strikethrough.
+
+```mdx
+# ~~oldApi()~~<AvailableFrom v="4.0.0" />
+```
+
+For a prop or option:
+
+```mdx
+### ~~`oldOption?`~~
+```
+
+The frontmatter `title` remains unchanged. A page that otherwise relies only on its frontmatter title has an explicit struck-through heading.
+
+An info admonition named `Deprecated` appears directly after the heading and points to the replacement when one exists.
+
+```mdx
+:::info Deprecated
+Use [`newApi()`](/docs/new-api) instead.
+:::
+```
+
+## Scope
+
+Runtime warnings, sidebar badges, release notes, removal versions, and removal behavior are not currently standardized as part of API deprecation.
+
+Removed APIs are outside this convention. They may remain documented for migration purposes, but they no longer have a public symbol to annotate.
diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdx
index 67b7ab07d8..0f98859526 100644
--- a/packages/docs/docs/config.mdx
+++ b/packages/docs/docs/config.mdx
@@ -229,7 +229,9 @@ The [command line flag](/docs/cli/studio#--disable-interactivity) `--disable-int
## ~~`setAllowHtmlInCanvasEnabled()`~~<AvailableFrom v="4.0.447" />
+:::info Deprecated
From Remotion v4.0.491, this method is a no-op and can be removed from your config file. [`@remotion/web-renderer`](/docs/web-renderer) automatically uses HTML-in-canvas when the browser supports nested captures.
+:::
## `setExperimentalRspackEnabled()`<AvailableFrom v="4.0.426" />
@@ -1130,8 +1132,9 @@ The [command line flag](/docs/cli/render#--ffprobe-executable-) `--ffprobe-execu
## ~~`setPort()`~~
-_deprecated in v4.0.61 - use [`setStudioPort()`](/docs/config#setstudioport)_
-and [`setRendererPort()`](/docs/config#setrendererport) instead.
+:::info Deprecated
+Use [`setStudioPort()`](/docs/config#setstudioport) and [`setRendererPort()`](/docs/config#setrendererport) instead.
+:::
Define on which port Remotion should start it's HTTP servers.
By default, Remotion will try to find a free port.
diff --git a/packages/docs/docs/get-audio-duration-in-seconds.mdx b/packages/docs/docs/get-audio-duration-in-seconds.mdx
index c7344a3e2e..d35fdc7ab6 100644
--- a/packages/docs/docs/get-audio-duration-in-seconds.mdx
+++ b/packages/docs/docs/get-audio-duration-in-seconds.mdx
@@ -5,7 +5,9 @@ id: get-audio-duration-in-seconds
crumb: '@remotion/media-utils'
---
-:::warning Deprecated
+# ~~getAudioDurationInSeconds()~~
+
+:::info Deprecated
This function has been deprecated. Use [`getMediaMetadata()`](/docs/mediabunny/metadata) instead, which is faster and supports more formats.
:::
diff --git a/packages/docs/docs/get-video-metadata.mdx b/packages/docs/docs/get-video-metadata.mdx
index 0e55b2f0e3..0e0402a43a 100644
--- a/packages/docs/docs/get-video-metadata.mdx
+++ b/packages/docs/docs/get-video-metadata.mdx
@@ -5,13 +5,15 @@ id: get-video-metadata
crumb: '@remotion/media-utils'
---
-_Part of the `@remotion/media-utils` package of helper functions._
+# ~~getVideoMetadata()~~
-:::note
-Deprecated: Does not support H.265 videos on Linux and also fails on some other formats.
+:::info Deprecated
+This function does not support H.265 videos on Linux and also fails on some other formats.
Better solution: [Get metadata using Mediabunny](/docs/mediabunny/metadata)
:::
+_Part of the `@remotion/media-utils` package of helper functions._
+
:::note
Only works in the browser.
:::
diff --git a/packages/docs/docs/html5-audio.mdx b/packages/docs/docs/html5-audio.mdx
index 7fa5c259a9..fe53c93c2d 100644
--- a/packages/docs/docs/html5-audio.mdx
+++ b/packages/docs/docs/html5-audio.mdx
@@ -97,7 +97,7 @@ export const MyVideo = () => {
### ~~`startFrom?` / `endAt?`~~
-:::note Deprecated
+:::info Deprecated
These props have been renamed to [`trimBefore`](#trimbefore--trimafter) and [`trimAfter`](#trimbefore--trimafter) in 4.0.319. They will continue to work but you cannot use them together with the new props.
:::
@@ -237,12 +237,15 @@ Handle an error playing the audio.
Corresponds to the [`crossOrigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-crossorigin) attribute of the `<audio>` element.
One of `"anonymous"`, `"use-credentials"` or `undefined`.
-### ~`allowAmplificationDuringRender?`<AvailableFrom v="3.3.17" />~
+### ~~`allowAmplificationDuringRender?`~~<AvailableFrom v="3.3.17" />
+:::info Deprecated
Deprecated since v4.0.279: This prop intended to opt into setting the volume to a value higher than one, even though it would only apply during render.
-The option does not make sense anymore, because it is now possible to set the volume higher than `1`.
To prevent synthetic amplification, set a volume not higher than 1.
+:::
+
+The option does not make sense anymore, because it is now possible to set the volume higher than `1`.
## Compatibility
diff --git a/packages/docs/docs/html5-video.mdx b/packages/docs/docs/html5-video.mdx
index 7323d84286..aa7fba3bf8 100644
--- a/packages/docs/docs/html5-video.mdx
+++ b/packages/docs/docs/html5-video.mdx
@@ -87,13 +87,13 @@ Removes a portion of the video at the end (right side). See [`trimBefore`](#trim
### ~~`startFrom?`~~
-:::note Deprecated
+:::info Deprecated
This prop has been renamed to [`trimBefore`](#trimbefore) in 4.0.319. It will continue to work but you cannot use it together with the new prop.
:::
### ~~`endAt?`~~
-:::note Deprecated
+:::info Deprecated
This prop has been renamed to [`trimAfter`](#trimafter) in 4.0.319. It will continue to work but you cannot use it together with the new prop.
:::
@@ -311,12 +311,15 @@ Default: `"anonymous"` if `onVideoFrame` is specified, `undefined`, otherwise.
Enables the Web Audio API for the video tag, allowing volume values above `1` and volume control on iOS Safari. Set `crossOrigin="anonymous"` and ensure the video source supports CORS. On Safari, this cannot be combined with [`playbackRate`](#playbackrate); otherwise, volume changes are ignored.
-### ~`allowAmplificationDuringRender?`<AvailableFrom v="3.3.17" />~
+### ~~`allowAmplificationDuringRender?`~~<AvailableFrom v="3.3.17" />
+:::info Deprecated
Deprecated since v4.0.279: This prop intended to opt into setting the volume to a value higher than one, even though it would only apply during render.
-The option does not make sense anymore, because it is now possible to set the volume higher than `1`.
To prevent synthetic amplification, set a volume not higher than 1.
+:::
+
+The option does not make sense anymore, because it is now possible to set the volume higher than `1`.
## Speed up renders for video with silent audio
diff --git a/packages/docs/docs/install-whisper-cpp/convert-to-captions.mdx b/packages/docs/docs/install-whisper-cpp/convert-to-captions.mdx
index 7b70c3527a..a4b70ff9d2 100644
--- a/packages/docs/docs/install-whisper-cpp/convert-to-captions.mdx
+++ b/packages/docs/docs/install-whisper-cpp/convert-to-captions.mdx
@@ -4,11 +4,13 @@ title: convertToCaptions()
crumb: '@remotion/install-whisper-cpp'
---
-# ~convertToCaptions()~<AvailableFrom v="4.0.131 "/>
+# ~~convertToCaptions()~~<AvailableFrom v="4.0.131 "/>
+:::info Deprecated
This API was deprecated as of Remotion 4.0.216.
It is recommended to use the [`toCaptions()`](/docs/install-whisper-cpp/to-captions) function from `@remotion/install-whisper-cpp` instead, and then process the captions using [`createTikTokStyleCaptions()`](/docs/captions/create-tiktok-style-captions) from [`@remotion/captions`](/docs/captions/api).
+:::
[Click here](https://github.com/remotion-dev/remotion/blob/v4.0.215/packages/docs/docs/install-whisper-cpp/convert-to-captions.mdx) to see documentation for this function that was previously on this page.
diff --git a/packages/docs/docs/lambda/deploysite.mdx b/packages/docs/docs/lambda/deploysite.mdx
index f88880fa13..0b835b0ab6 100644
--- a/packages/docs/docs/lambda/deploysite.mdx
+++ b/packages/docs/docs/lambda/deploysite.mdx
@@ -6,7 +6,9 @@ slug: /lambda/deploysite
crumb: 'Lambda API'
---
-:::warning Deprecated
+# ~~deploySite()~~
+
+:::info Deprecated
Prefer building with [`bundle()`](/docs/bundle) and uploading its output with [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle). Separating these steps avoids rebuilding an unchanged bundle during deployment.
:::
diff --git a/packages/docs/docs/lambda/getcompositionsonlambda.mdx b/packages/docs/docs/lambda/getcompositionsonlambda.mdx
index 43a5e70dc3..939a85e0ee 100644
--- a/packages/docs/docs/lambda/getcompositionsonlambda.mdx
+++ b/packages/docs/docs/lambda/getcompositionsonlambda.mdx
@@ -117,7 +117,9 @@ Logs can be read through the CloudWatch URL that this function returns.
### ~~`dumpBrowserLogs?`~~
-Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
+:::info Deprecated
+Use [`logLevel`](#loglevel) instead.
+:::
## Return value
diff --git a/packages/docs/docs/lambda/rendermediaonlambda.mdx b/packages/docs/docs/lambda/rendermediaonlambda.mdx
index f3a74d3713..e8d14f4be2 100644
--- a/packages/docs/docs/lambda/rendermediaonlambda.mdx
+++ b/packages/docs/docs/lambda/rendermediaonlambda.mdx
@@ -377,13 +377,17 @@ _default `true`_
### ~~`apiKey?`<AvailableFrom v="4.0.253"/>~~
-_deprecated in v4.0.409_
+:::info Deprecated
+Use [`licenseKey`](#licensekey) instead.
+:::
<Options id="api-key" />
### ~~`dumpBrowserLogs?`~~
-Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
+:::info Deprecated
+Use [`logLevel`](#loglevel) instead.
+:::
## Return value
diff --git a/packages/docs/docs/lambda/renderstillonlambda.mdx b/packages/docs/docs/lambda/renderstillonlambda.mdx
index 0437bdb25b..eebff45530 100644
--- a/packages/docs/docs/lambda/renderstillonlambda.mdx
+++ b/packages/docs/docs/lambda/renderstillonlambda.mdx
@@ -261,7 +261,9 @@ _default `true`_
### ~~`dumpBrowserLogs?`~~
-Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
+:::info Deprecated
+Use [`logLevel`](#loglevel) instead.
+:::
## Return value
diff --git a/packages/docs/docs/licensing/get-usage.mdx b/packages/docs/docs/licensing/get-usage.mdx
index 4cbafa0023..77673df47d 100644
--- a/packages/docs/docs/licensing/get-usage.mdx
+++ b/packages/docs/docs/licensing/get-usage.mdx
@@ -56,7 +56,9 @@ The lowest timestamp you can use is 90 days ago (`Date.now() - 90 * 24 * 60 * 60
### ~~`apiKey`~~
-_deprecated in v4.0.409_
+:::info Deprecated
+Use `licenseKey` instead.
+:::
Type: `string`
@@ -76,7 +78,9 @@ An object with the following properties:
### ~~`webcodecConversions`~~
-_deprecated - use `webRenders` instead_
+:::info Deprecated
+Use `webRenders` instead.
+:::
Same as `webRenders`.
diff --git a/packages/docs/docs/light-leaks/index.mdx b/packages/docs/docs/light-leaks/index.mdx
index ca49f324f1..1391006bf7 100644
--- a/packages/docs/docs/light-leaks/index.mdx
+++ b/packages/docs/docs/light-leaks/index.mdx
@@ -5,9 +5,9 @@ slug: /light-leaks/api
title: '@remotion/light-leaks'
---
-# @remotion/light-leaks<AvailableFrom v="4.0.415" />
+# ~~@remotion/light-leaks~~<AvailableFrom v="4.0.415" />
-:::warning Deprecated
+:::info Deprecated
`@remotion/light-leaks` is deprecated and will no longer be published starting with Remotion 5.0. Migrate to [`lightLeak()`](/docs/effects/light-leak) from `@remotion/effects/light-leak`. The `<LightLeak>` component will not be moved to `@remotion/effects`.
:::
diff --git a/packages/docs/docs/light-leaks/light-leak-effect.mdx b/packages/docs/docs/light-leaks/light-leak-effect.mdx
index 09b0470300..fbe7c90ee4 100644
--- a/packages/docs/docs/light-leaks/light-leak-effect.mdx
+++ b/packages/docs/docs/light-leaks/light-leak-effect.mdx
@@ -6,9 +6,9 @@ sidebar_label: lightLeak()
crumb: '@remotion/light-leaks'
---
-# lightLeak()<AvailableFrom v="4.0.468" />
+# ~~lightLeak()~~<AvailableFrom v="4.0.468" />
-:::warning Deprecated
+:::info Deprecated
`@remotion/light-leaks` is deprecated and will no longer be published starting with Remotion 5.0. Migrate to [`lightLeak()`](/docs/effects/light-leak) from `@remotion/effects/light-leak`.
:::
diff --git a/packages/docs/docs/light-leaks/light-leak.mdx b/packages/docs/docs/light-leaks/light-leak.mdx
index b818198a89..6282b8b56d 100644
--- a/packages/docs/docs/light-leaks/light-leak.mdx
+++ b/packages/docs/docs/light-leaks/light-leak.mdx
@@ -4,9 +4,9 @@ title: '<LightLeak>'
crumb: '@remotion/light-leaks'
---
-# &lt;LightLeak&gt;<AvailableFrom v="4.0.415" />
+# ~~&lt;LightLeak&gt;~~<AvailableFrom v="4.0.415" />
-:::warning Deprecated
+:::info Deprecated
`@remotion/light-leaks` is deprecated and will no longer be published starting with Remotion 5.0. Migrate to [`lightLeak()`](/docs/effects/light-leak) from `@remotion/effects/light-leak`. The `<LightLeak>` component will not be moved to `@remotion/effects`.
:::
diff --git a/packages/docs/docs/media-parser/parse-media.mdx b/packages/docs/docs/media-parser/parse-media.mdx
index 630ea061a4..702da04291 100644
--- a/packages/docs/docs/media-parser/parse-media.mdx
+++ b/packages/docs/docs/media-parser/parse-media.mdx
@@ -8,7 +8,7 @@ crumb: '@remotion/media-parser'
# ~~parseMedia()~~
-:::warning
+:::info Deprecated
Deprecated in favor of [getting metadata using Mediabunny](/docs/mediabunny/metadata).
:::
diff --git a/packages/docs/docs/media/audio.mdx b/packages/docs/docs/media/audio.mdx
index efcbf1085a..60873fc655 100644
--- a/packages/docs/docs/media/audio.mdx
+++ b/packages/docs/docs/media/audio.mdx
@@ -259,7 +259,7 @@ export const MyComposition = () => {
### ~~`credentials?`<AvailableFrom v="4.0.437" />~~
-:::note Deprecated
+:::info Deprecated
Use [`requestInit`](#requestinit) instead.
:::
diff --git a/packages/docs/docs/media/video.mdx b/packages/docs/docs/media/video.mdx
index 81534c8ae7..7fd9795f71 100644
--- a/packages/docs/docs/media/video.mdx
+++ b/packages/docs/docs/media/video.mdx
@@ -378,7 +378,7 @@ export const MyComposition = () => {
### ~~`credentials?`<AvailableFrom v="4.0.437" />~~
-:::note Deprecated
+:::info Deprecated
Use [`requestInit`](#requestinit) instead.
:::
diff --git a/packages/docs/docs/offthreadvideo.mdx b/packages/docs/docs/offthreadvideo.mdx
index 981c6fad77..9c0d5a1f5f 100644
--- a/packages/docs/docs/offthreadvideo.mdx
+++ b/packages/docs/docs/offthreadvideo.mdx
@@ -83,13 +83,13 @@ Removes a portion of the video at the end (right side). See [`trimBefore`](/docs
### ~~`startFrom?`~~
-:::note Deprecated
+:::info Deprecated
This prop has been renamed to [`trimBefore`](#trimbefore) in 4.0.319. It will continue to work but you cannot use it together with the new prop.
:::
### ~~`endAt?`~~
-:::note Deprecated
+:::info Deprecated
This prop has been renamed to [`trimAfter`](#trimafter) in 4.0.319. It will continue to work but you cannot use it together with the new prop.
:::
@@ -315,12 +315,15 @@ _removed in v4.0.0_
Either `jpeg` or `png`. Default `jpeg`.
With `png`, transparent videos (VP8, VP9, ProRes) can be displayed, however it is around 40% slower, with VP8 videos being [much slower](/docs/slow-method-to-extract-frame).
-### ~`allowAmplificationDuringRender?`<AvailableFrom v="3.3.17" />~
+### ~~`allowAmplificationDuringRender?`~~<AvailableFrom v="3.3.17" />
+:::info Deprecated
Deprecated since v4.0.279: This prop intended to opt into setting the volume to a value higher than one, even though it would only apply during render.
-The option does not make sense anymore, because it is now possible to set the volume higher than `1`.
To prevent synthetic amplification, set a volume not higher than 1.
+:::
+
+The option does not make sense anymore, because it is now possible to set the volume higher than `1`.
### Other props
diff --git a/packages/docs/docs/renderer/get-video-metadata.mdx b/packages/docs/docs/renderer/get-video-metadata.mdx
index a5d65fedbd..0b5a785633 100644
--- a/packages/docs/docs/renderer/get-video-metadata.mdx
+++ b/packages/docs/docs/renderer/get-video-metadata.mdx
@@ -7,7 +7,7 @@ crumb: '@remotion/renderer'
# ~~getVideoMetadata()~~<AvailableFrom v="4.0.6" />
-:::note
+:::info Deprecated
Deprecated in favor of [getting metadata using Mediabunny](/docs/mediabunny/metadata).
:::
diff --git a/packages/docs/docs/renderer/open-browser.mdx b/packages/docs/docs/renderer/open-browser.mdx
index cbb13590a6..6b09e845fd 100644
--- a/packages/docs/docs/renderer/open-browser.mdx
+++ b/packages/docs/docs/renderer/open-browser.mdx
@@ -30,12 +30,13 @@ Currently the only valid option is `"chrome"`. This field is reserved for future
An object containing one or more of the following options:
-#### ~`shouldDumpIo?`~
+#### ~~`shouldDumpIo?`~~
-Deprecated since v4.0.189, scheduled for removal in v5.0.
+:::info Deprecated
+Deprecated since v4.0.189, scheduled for removal in v5.0. Use `logLevel` instead.
+:::
-If set to `true`, logs and other browser diagnostics are being printed to standard output. This setting is useful for debugging.
-**Will be removed in 5.0:** Use `logLevel` instead.
+If set to `true`, logs and other browser diagnostics are being printed to standard output. This setting is useful for debugging.
#### `logLevel?`<AvailableFrom v="4.0.189"/>
diff --git a/packages/docs/docs/renderer/render-frames.mdx b/packages/docs/docs/renderer/render-frames.mdx
index 70b5dd8d9d..2b6e260909 100644
--- a/packages/docs/docs/renderer/render-frames.mdx
+++ b/packages/docs/docs/renderer/render-frames.mdx
@@ -300,7 +300,9 @@ Renamed to `jpegQuality` in `v4.0.0`.
### ~~`dumpBrowserLogs?`~~
-Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
+:::info Deprecated
+Use [`logLevel`](#loglevel) instead.
+:::
### ~~`parallelism?`~~
diff --git a/packages/docs/docs/renderer/render-media.mdx b/packages/docs/docs/renderer/render-media.mdx
index bf9dbeeac1..2a8b1431e5 100644
--- a/packages/docs/docs/renderer/render-media.mdx
+++ b/packages/docs/docs/renderer/render-media.mdx
@@ -505,7 +505,9 @@ _default `true`_
### ~~`apiKey?`<AvailableFrom v="4.0.375"/>~~
-_deprecated in v4.0.409_
+:::info Deprecated
+Use [`licenseKey`](#licensekey) instead.
+:::
<Options id="api-key" />
@@ -520,15 +522,17 @@ Renamed to `jpegQuality` in `v4.0.0`.
### ~~`dumpBrowserLogs?`~~
-_default `false`, deprecated in v4.0_
+:::info Deprecated
+Use [`logLevel`](#loglevel) instead.
+:::
-Deprecated in favor of [`logLevel`](#loglevel).
+_default `false`_
### ~~`verbose?`~~
-_deprecated in v4.0_
-
-Deprecated in favor of [`logLevel`](#loglevel).
+:::info Deprecated
+Use [`logLevel`](#loglevel) instead.
+:::
### ~~`onSlowestFrames?`~~
diff --git a/packages/docs/docs/renderer/render-still.mdx b/packages/docs/docs/renderer/render-still.mdx
index 5986b83170..c836097f72 100644
--- a/packages/docs/docs/renderer/render-still.mdx
+++ b/packages/docs/docs/renderer/render-still.mdx
@@ -230,13 +230,17 @@ _default `true`_
### ~~`apiKey?`<AvailableFrom v="4.0.375"/>~~
-_deprecated in v4.0.409_
+:::info Deprecated
+Use [`licenseKey`](#licensekey) instead.
+:::
<Options id="api-key" />
### ~~`dumpBrowserLogs?`~~
-Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
+:::info Deprecated
+Use [`logLevel`](#loglevel) instead.
+:::
### ~~`quality?`~~
diff --git a/packages/docs/docs/starburst/index.mdx b/packages/docs/docs/starburst/index.mdx
index 3fcb9ae83c..16a65753b3 100644
--- a/packages/docs/docs/starburst/index.mdx
+++ b/packages/docs/docs/starburst/index.mdx
@@ -6,9 +6,9 @@ title: '@remotion/starburst'
crumb: API
---
-# @remotion/starburst<AvailableFrom v="4.0.435" />
+# ~~@remotion/starburst~~<AvailableFrom v="4.0.435" />
-:::warning Deprecated
+:::info Deprecated
`@remotion/starburst` is deprecated and will no longer be published starting with Remotion 5.0. Migrate to [`starburst()`](/docs/effects/starburst) from `@remotion/effects/starburst`. The `<Starburst>` component will not be moved to `@remotion/effects`.
:::
diff --git a/packages/docs/docs/starburst/starburst-effect.mdx b/packages/docs/docs/starburst/starburst-effect.mdx
index eef9f18382..059f71d537 100644
--- a/packages/docs/docs/starburst/starburst-effect.mdx
+++ b/packages/docs/docs/starburst/starburst-effect.mdx
@@ -6,9 +6,9 @@ sidebar_label: starburst()
crumb: '@remotion/starburst'
---
-# starburst()<AvailableFrom v="4.0.468" />
+# ~~starburst()~~<AvailableFrom v="4.0.468" />
-:::warning Deprecated
+:::info Deprecated
`@remotion/starburst` is deprecated and will no longer be published starting with Remotion 5.0. Migrate to [`starburst()`](/docs/effects/starburst) from `@remotion/effects/starburst`.
:::
diff --git a/packages/docs/docs/starburst/starburst.mdx b/packages/docs/docs/starburst/starburst.mdx
index 43fa25c916..e88a186ae0 100644
--- a/packages/docs/docs/starburst/starburst.mdx
+++ b/packages/docs/docs/starburst/starburst.mdx
@@ -6,9 +6,9 @@ title: '<Starburst>'
crumb: '@remotion/starburst'
---
-# &lt;Starburst><AvailableFrom v="4.0.435" />
+# ~~&lt;Starburst&gt;~~<AvailableFrom v="4.0.435" />
-:::warning Deprecated
+:::info Deprecated
`@remotion/starburst` is deprecated and will no longer be published starting with Remotion 5.0. Migrate to [`starburst()`](/docs/effects/starburst) from `@remotion/effects/starburst`. The `<Starburst>` component will not be moved to `@remotion/effects`.
:::
diff --git a/packages/docs/docs/studio/update-default-props.mdx b/packages/docs/docs/studio/update-default-props.mdx
index e3ea4afe70..f9b497ec0c 100644
--- a/packages/docs/docs/studio/update-default-props.mdx
+++ b/packages/docs/docs/studio/update-default-props.mdx
@@ -4,10 +4,10 @@ title: updateDefaultProps()
crumb: "@remotion/studio"
---
-# ~updateDefaultProps()~<AvailableFrom v="4.0.154"/>
+# ~~updateDefaultProps()~~<AvailableFrom v="4.0.154"/>
-:::info
-**Deprecated**: This function is an alias for [`saveDefaultProps()`](/docs/studio/save-default-props). Use `saveDefaultProps()` instead.
+:::info Deprecated
+This function is an alias for [`saveDefaultProps()`](/docs/studio/save-default-props). Use `saveDefaultProps()` instead.
Before v4.0.437, this function only updated the props in the Props Editor without saving them to the root file.
Starting from v4.0.437, all prop changes are immediately saved, making this function identical to `saveDefaultProps()`.
diff --git a/packages/docs/docs/use-offthread-video-texture.mdx b/packages/docs/docs/use-offthread-video-texture.mdx
index 82ab1a09a8..acc280b8d5 100644
--- a/packages/docs/docs/use-offthread-video-texture.mdx
+++ b/packages/docs/docs/use-offthread-video-texture.mdx
@@ -5,10 +5,10 @@ crumb: '@remotion/three'
sidebar_label: useOffthreadVideoTexture()
---
-# ~useOffthreadVideoTexture()~<AvailableFrom v="4.0.83"/>
+# ~~useOffthreadVideoTexture()~~<AvailableFrom v="4.0.83"/>
-:::warning
-Deprecated - we recommend using [`@remotion/media`](/docs/videos/as-threejs-texture) instead.
+:::info Deprecated
+We recommend using [`@remotion/media`](/docs/videos/as-threejs-texture) instead.
:::
Allows you to use a video in React Three Fiber that is synchronized with Remotion's `useCurrentFrame()`, similar to [`useVideoTexture()`](/docs/use-video-texture), but uses [`<OffthreadVideo>`](/docs/offthreadvideo) instead.
diff --git a/packages/docs/docs/use-video-texture.mdx b/packages/docs/docs/use-video-texture.mdx
index 838714e2e6..7eea98f565 100644
--- a/packages/docs/docs/use-video-texture.mdx
+++ b/packages/docs/docs/use-video-texture.mdx
@@ -5,10 +5,10 @@ sidebar_label: useVideoTexture()
crumb: '@remotion/three'
---
-# ~useVideoTexture()~
+# ~~useVideoTexture()~~
-:::warning
-Deprecated - we recommend using [`@remotion/media`](/docs/videos/as-threejs-texture) instead.
+:::info Deprecated
+We recommend using [`@remotion/media`](/docs/videos/as-threejs-texture) instead.
:::
Allows you to use a video in React Three Fiber that is synchronized with Remotion's `useCurrentFrame()`.
diff --git a/packages/docs/docs/web-renderer/types.mdx b/packages/docs/docs/web-renderer/types.mdx
index 95d17cdda7..6b64d80d01 100644
--- a/packages/docs/docs/web-renderer/types.mdx
+++ b/packages/docs/docs/web-renderer/types.mdx
@@ -105,10 +105,13 @@ import type {RenderMediaOnWebProgress} from '@remotion/web-renderer';
// ^?
```
-### `renderedFrames`
+### ~~`renderedFrames`~~
-Deprecated and kept for backward compatibility. The number of frames that have been rendered.
-Prefer `progress` for overall status updates.
+:::info Deprecated
+Kept for backward compatibility. Prefer `progress` for overall status updates.
+:::
+
+The number of frames that have been rendered.
### `encodedFrames`
diff --git a/packages/light-leaks/src/LightLeak.tsx b/packages/light-leaks/src/LightLeak.tsx
index 08f54b0039..12a3fc1f8f 100644
--- a/packages/light-leaks/src/LightLeak.tsx
+++ b/packages/light-leaks/src/LightLeak.tsx
@@ -304,6 +304,9 @@ const LightLeakInner: React.FC<
);
};
+/**
+ * @deprecated Use `lightLeak()` from `@remotion/effects/light-leak` instead: https://www.remotion.dev/docs/effects/light-leak
+ */
export const LightLeak = Interactive.withSchema({
Component: LightLeakInner,
componentName: '<LightLeak>',
diff --git a/packages/light-leaks/src/light-leak-internals.ts b/packages/light-leaks/src/light-leak-internals.ts
index 6a3c34cd04..d49c565a41 100644
--- a/packages/light-leaks/src/light-leak-internals.ts
+++ b/packages/light-leaks/src/light-leak-internals.ts
@@ -1,3 +1,6 @@
+/**
+ * @deprecated Import `lightLeak()` from `@remotion/effects/light-leak` instead: https://www.remotion.dev/docs/effects/light-leak
+ */
export {
lightLeak,
lightLeakEffectSchema,
diff --git a/packages/renderer/src/open-browser.ts b/packages/renderer/src/open-browser.ts
index 76b308368a..b79ac7db36 100644
--- a/packages/renderer/src/open-browser.ts
+++ b/packages/renderer/src/open-browser.ts
@@ -116,7 +116,13 @@ type LogOptions =
? {
logLevel?: LogLevel;
}
- : {shouldDumpIo?: boolean; logLevel?: LogLevel};
+ : {
+ /**
+ * @deprecated Use `logLevel` instead.
+ */
+ shouldDumpIo?: boolean;
+ logLevel?: LogLevel;
+ };
export type OpenBrowserOptions = {
browserExecutable?: string | null;
diff --git a/packages/starburst/src/Starburst.tsx b/packages/starburst/src/Starburst.tsx
index c42c49c03a..ec4b83def4 100644
--- a/packages/starburst/src/Starburst.tsx
+++ b/packages/starburst/src/Starburst.tsx
@@ -438,6 +438,9 @@ const StarburstInner: React.FC<
);
};
+/**
+ * @deprecated Use `starburst()` from `@remotion/effects/starburst` instead: https://www.remotion.dev/docs/effects/starburst
+ */
export const Starburst = Interactive.withSchema({
Component: StarburstInner,
componentName: '<Starburst>',
diff --git a/packages/starburst/src/starburst-effect.ts b/packages/starburst/src/starburst-effect.ts
index 978e6f07a8..e5df0a920c 100644
--- a/packages/starburst/src/starburst-effect.ts
+++ b/packages/starburst/src/starburst-effect.ts
@@ -1,3 +1,6 @@
+/**
+ * @deprecated Import `starburst()` from `@remotion/effects/starburst` instead: https://www.remotion.dev/docs/effects/starburst
+ */
export {
starburst,
starburstEffectSchema,