@remotion/bundler 4.0.147 → 4.0.149

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.
package/dist/bundle.js CHANGED
@@ -67,7 +67,9 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
67
67
  outDir,
68
68
  environment: 'production',
69
69
  webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : ((f) => f),
70
- onProgress,
70
+ onProgress: (p) => {
71
+ onProgress === null || onProgress === void 0 ? void 0 : onProgress(p);
72
+ },
71
73
  enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
72
74
  maxTimelineTracks,
73
75
  remotionRoot: resolvedRemotionRoot,
@@ -188,7 +190,10 @@ const internalBundle = async (actualArgs) => {
188
190
  src: from,
189
191
  dest: to,
190
192
  onSymlinkDetected: showSymlinkWarning,
191
- onProgress: (prog) => { var _a; return (_a = options.onPublicDirCopyProgress) === null || _a === void 0 ? void 0 : _a.call(options, prog); },
193
+ onProgress: (prog) => {
194
+ var _a;
195
+ return (_a = options.onPublicDirCopyProgress) === null || _a === void 0 ? void 0 : _a.call(options, prog);
196
+ },
192
197
  copiedBytes: 0,
193
198
  lastReportedProgress: 0,
194
199
  });
@@ -107,7 +107,7 @@ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment,
107
107
  : [
108
108
  new webpack_1.ProgressPlugin((p) => {
109
109
  if (onProgress) {
110
- if (p === 1 || p - lastProgress > 0.05) {
110
+ if ((p === 1 && p > lastProgress) || p - lastProgress > 0.05) {
111
111
  lastProgress = p;
112
112
  onProgress(Number((p * 100).toFixed(2)));
113
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.0.147",
3
+ "version": "4.0.149",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -25,9 +25,9 @@
25
25
  "style-loader": "2.0.0",
26
26
  "source-map": "0.7.3",
27
27
  "webpack": "5.83.1",
28
- "@remotion/studio": "4.0.147",
29
- "remotion": "4.0.147",
30
- "@remotion/studio-shared": "4.0.147"
28
+ "@remotion/studio": "4.0.149",
29
+ "remotion": "4.0.149",
30
+ "@remotion/studio-shared": "4.0.149"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
@@ -37,16 +37,16 @@
37
37
  "@jonny/eslint-config": "3.0.281",
38
38
  "@types/node": "18.14.6",
39
39
  "bun-types": "0.8.0",
40
- "@types/react": "18.2.48",
41
- "@types/react-dom": "18.2.18",
40
+ "@types/react": "18.3.1",
41
+ "@types/react-dom": "18.3.0",
42
42
  "eslint": "8.56.0",
43
43
  "eslint-plugin-10x": "1.5.2",
44
44
  "eslint-plugin-react": "7.32.2",
45
45
  "eslint-plugin-react-hooks": "4.4.0",
46
46
  "prettier": "3.2.5",
47
47
  "prettier-plugin-organize-imports": "3.2.4",
48
- "react": "18.2.0",
49
- "react-dom": "18.2.0",
48
+ "react": "18.3.1",
49
+ "react-dom": "18.3.1",
50
50
  "vitest": "0.31.1"
51
51
  },
52
52
  "keywords": [
@@ -63,8 +63,6 @@
63
63
  "scripts": {
64
64
  "formatting": "prettier src --check",
65
65
  "lint": "eslint src --ext ts,tsx",
66
- "build": "tsc -d",
67
- "watch": "tsc -w",
68
66
  "test": "vitest --run"
69
67
  }
70
68
  }