Skip to content

πŸŽ₯ Make videos programmatically with React

Docs: Document Zod v4 support and @remotion/zod-types-v3

Jonny Burger86d74c384f5e
diff --git a/packages/docs/docs/zod-types-v3/index.mdx b/packages/docs/docs/zod-types-v3/index.mdx
new file mode 100644
index 0000000000..a6d9390d5c
--- /dev/null
+++ b/packages/docs/docs/zod-types-v3/index.mdx
@@ -0,0 +1,26 @@
+---
+sidebar_label: Overview
+title: '@remotion/zod-types-v3'
+crumb: Schema
+---
+
+import {ZodTypesTableOfContents} from '../zod-types/TableOfContents';
+
+This package provides the same utility types as [`@remotion/zod-types`](/docs/zod-types), but based on Zod 3.22.3 instead of Zod v4.
+
+Use this package if you are composing Remotion's Zod types with your own schemas that use Zod 3.22.3.
+If you are using Zod v4, use [`@remotion/zod-types`](/docs/zod-types) instead.
+
+<AvailableFrom v="4.0.425" />
+
+## Installation
+
+<Installation pkg="@remotion/zod-types-v3" />
+
+## API
+
+<ZodTypesTableOfContents />
+
+## License
+
+[Remotion License](https://remotion.dev/license)
diff --git a/packages/docs/docs/zod-types/index.mdx b/packages/docs/docs/zod-types/index.mdx
index aa5c8a9dfa..8989e1abc3 100644
--- a/packages/docs/docs/zod-types/index.mdx
+++ b/packages/docs/docs/zod-types/index.mdx
@@ -9,8 +9,13 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import {ZodTypesTableOfContents} from './TableOfContents';
-Includes utility types and Remotion-specific types for [Zod](https://github.com/colinhacks/zod).
-In the next major version of Remotion, the Zod version will be updated.
+Since Remotion v4.0.425, `@remotion/zod-types` is based on Zod v4.
+If you want to compose these types with your own Zod schemas, use Zod v4.
+
+If you are using Zod 3.22.3, use [`@remotion/zod-types-v3`](/docs/zod-types-v3) instead.
+Other versions of Zod v3 might not compose well – we recommend staying on Zod 3.22.3 or upgrading to Zod v4.
+
+Includes utility types and Remotion-specific types for [Zod](https://github.com/colinhacks/zod).
## Installation
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index 3b924af0a1..af734d8068 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -769,6 +769,15 @@ const sidebars: SidebarsConfig = {
'zod-types/v3',
],
},
+ {
+ type: 'category',
+ label: '@remotion/zod-types-v3',
+ link: {
+ type: 'doc',
+ id: 'zod-types-v3/index',
+ },
+ items: [],
+ },
{
type: 'html',
value: