remotion 4.0.230 → 4.0.232

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.
@@ -7,6 +7,12 @@ const checkMultipleRemotionVersions = () => {
7
7
  if (typeof globalThis === 'undefined') {
8
8
  return;
9
9
  }
10
+ const set = () => {
11
+ globalThis.remotion_imported = version_js_1.VERSION;
12
+ if (typeof window !== 'undefined') {
13
+ window.remotion_imported = version_js_1.VERSION;
14
+ }
15
+ };
10
16
  const alreadyImported = globalThis.remotion_imported ||
11
17
  (typeof window !== 'undefined' && window.remotion_imported);
12
18
  if (alreadyImported) {
@@ -15,6 +21,14 @@ const checkMultipleRemotionVersions = () => {
15
21
  // It's okay if this happens during SSR in developement
16
22
  return;
17
23
  }
24
+ // @remotion/webcodecs will also set this variable for the purpose of
25
+ // being picked up by Wappalyzer.
26
+ // If so, we can just override it because it is not the same as Remotion
27
+ if (typeof alreadyImported === 'string' &&
28
+ alreadyImported.includes('webcodecs')) {
29
+ set();
30
+ return;
31
+ }
18
32
  throw new TypeError(`🚨 Multiple versions of Remotion detected: ${[
19
33
  version_js_1.VERSION,
20
34
  typeof alreadyImported === 'string'
@@ -24,9 +38,6 @@ const checkMultipleRemotionVersions = () => {
24
38
  .filter(truthy_js_1.truthy)
25
39
  .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.`);
26
40
  }
27
- globalThis.remotion_imported = version_js_1.VERSION;
28
- if (typeof window !== 'undefined') {
29
- window.remotion_imported = version_js_1.VERSION;
30
- }
41
+ set();
31
42
  };
32
43
  exports.checkMultipleRemotionVersions = checkMultipleRemotionVersions;
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.230";
6
+ export declare const VERSION = "4.0.232";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.230';
10
+ exports.VERSION = '4.0.232';
@@ -101,27 +101,34 @@ function truthy(value) {
101
101
  }
102
102
 
103
103
  // src/version.ts
104
- var VERSION = "4.0.230";
104
+ var VERSION = "4.0.232";
105
105
 
106
106
  // src/multiple-versions-warning.ts
107
107
  var checkMultipleRemotionVersions = () => {
108
108
  if (typeof globalThis === "undefined") {
109
109
  return;
110
110
  }
111
+ const set = () => {
112
+ globalThis.remotion_imported = VERSION;
113
+ if (typeof window !== "undefined") {
114
+ window.remotion_imported = VERSION;
115
+ }
116
+ };
111
117
  const alreadyImported = globalThis.remotion_imported || typeof window !== "undefined" && window.remotion_imported;
112
118
  if (alreadyImported) {
113
119
  if (alreadyImported === VERSION) {
114
120
  return;
115
121
  }
122
+ if (typeof alreadyImported === "string" && alreadyImported.includes("webcodecs")) {
123
+ set();
124
+ return;
125
+ }
116
126
  throw new TypeError(`\uD83D\uDEA8 Multiple versions of Remotion detected: ${[
117
127
  VERSION,
118
128
  typeof alreadyImported === "string" ? alreadyImported : "an older version"
119
129
  ].filter(truthy).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.`);
120
130
  }
121
- globalThis.remotion_imported = VERSION;
122
- if (typeof window !== "undefined") {
123
- window.remotion_imported = VERSION;
124
- }
131
+ set();
125
132
  };
126
133
 
127
134
  // src/Null.tsx
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.230";
2
+ var VERSION = "4.0.232";
3
3
  export {
4
4
  VERSION
5
5
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
4
4
  },
5
5
  "name": "remotion",
6
- "version": "4.0.230",
6
+ "version": "4.0.232",
7
7
  "description": "Make videos programmatically",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "webpack": "5.96.1",
29
29
  "zod": "3.22.3",
30
30
  "eslint": "9.14.0",
31
- "@remotion/eslint-config-internal": "4.0.230"
31
+ "@remotion/eslint-config-internal": "4.0.232"
32
32
  },
33
33
  "keywords": [
34
34
  "remotion",