remotion 3.3.6 → 3.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
 
2
- > remotion@3.3.5 build /Users/jonathanburger/remotion/packages/core
2
+ > remotion@3.3.7 build /Users/jonathanburger/remotion/packages/core
3
3
  > tsc -d
4
4
 
@@ -10,6 +10,11 @@ const checkMultipleRemotionVersions = () => {
10
10
  const alreadyImported = globalThis.remotion_imported ||
11
11
  (typeof window !== 'undefined' && window.remotion_imported);
12
12
  if (alreadyImported) {
13
+ if (typeof window === 'undefined' && alreadyImported === version_1.VERSION) {
14
+ // Next.JS will reload the package and cause a server-side warning.
15
+ // It's okay if this happens during SSR in developement
16
+ return;
17
+ }
13
18
  throw new TypeError(`🚨 Multiple versions of Remotion detected: ${[
14
19
  version_1.VERSION,
15
20
  typeof alreadyImported === 'string'
@@ -19,7 +24,7 @@ const checkMultipleRemotionVersions = () => {
19
24
  .filter(truthy_1.truthy)
20
25
  .join(' and ')}. This will cause things to break in an unexpected way.\nCheck that all your Remotion packages are on the same version. If your dependencies depend on Remotion, make them peer dependencies. You can also run \`npx remotion versions\` from your terminal to see which versions are mismatching.`);
21
26
  }
22
- globalThis.remotion_imported = true;
27
+ globalThis.remotion_imported = version_1.VERSION;
23
28
  if (typeof window !== 'undefined') {
24
29
  window.remotion_imported = version_1.VERSION;
25
30
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.6";
1
+ export declare const VERSION = "3.3.8";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '3.3.6';
5
+ exports.VERSION = '3.3.8';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "40198e5226bfa91a4df72159aec44d56e17fe8a1"
58
+ "gitHead": "4d4c78cf83b5fd085f24d5fd19f4507815e200a7"
59
59
  }