@remotion/bundler 3.2.42 → 3.2.44

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.
@@ -0,0 +1 @@
1
+ export declare const jsonStringifyWithCircularReferences: (circ: unknown) => string;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.jsonStringifyWithCircularReferences = void 0;
4
+ const jsonStringifyWithCircularReferences = (circ) => {
5
+ let seen = [];
6
+ const val = JSON.stringify(circ, (_, value) => {
7
+ if (typeof value === 'object' && value !== null && seen) {
8
+ if (seen.includes(value)) {
9
+ return '[Circular]';
10
+ }
11
+ seen.push(value);
12
+ }
13
+ return value;
14
+ });
15
+ seen = null;
16
+ return val;
17
+ };
18
+ exports.jsonStringifyWithCircularReferences = jsonStringifyWithCircularReferences;
@@ -32,6 +32,7 @@ const react_dom_1 = __importDefault(require("react-dom"));
32
32
  const remotion_1 = require("remotion");
33
33
  const webpack_1 = __importStar(require("webpack"));
34
34
  const fast_refresh_1 = require("./fast-refresh");
35
+ const stringify_with_circular_references_1 = require("./stringify-with-circular-references");
35
36
  const webpack_cache_1 = require("./webpack-cache");
36
37
  const esbuild = require("esbuild");
37
38
  if (!react_dom_1.default || !react_dom_1.default.version) {
@@ -168,7 +169,9 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
168
169
  ],
169
170
  },
170
171
  });
171
- const hash = (0, crypto_1.createHash)('md5').update(JSON.stringify(conf)).digest('hex');
172
+ const hash = (0, crypto_1.createHash)('md5')
173
+ .update((0, stringify_with_circular_references_1.jsonStringifyWithCircularReferences)(conf))
174
+ .digest('hex');
172
175
  return [
173
176
  hash,
174
177
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.2.42",
3
+ "version": "3.2.44",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -24,9 +24,9 @@
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "dependencies": {
26
26
  "css-loader": "5.2.7",
27
- "esbuild": "0.14.19",
27
+ "esbuild": "0.15.13",
28
28
  "react-refresh": "0.9.0",
29
- "remotion": "3.2.42",
29
+ "remotion": "3.2.44",
30
30
  "style-loader": "2.0.0",
31
31
  "webpack": "5.74.0"
32
32
  },
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "d297af4ecea4d09948bbf05eeb66dfa701be3787"
67
+ "gitHead": "443b4b387b78905e747ebe69b3b91ee85966796d"
68
68
  }