@remotion/cloudrun 4.0.136 → 4.0.138

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,15 +1,14 @@
1
1
 
2
- 
3
- > @remotion/cloudrun@4.0.135 build /Users/jonathanburger/remotion/packages/cloudrun
2
+ > @remotion/cloudrun@4.0.137 build /Users/jonathanburger/remotion/packages/cloudrun
4
3
  > tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json && pnpm run buildContainer && pnpm run tarInstaller
5
4
 
6
5
 
7
- > @remotion/cloudrun@4.0.135 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
6
+ > @remotion/cloudrun@4.0.137 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
8
7
  > ts-node src/admin/bundle-renderLogic.ts
9
8
 
10
9
  distribution bundled.
11
10
 
12
- > @remotion/cloudrun@4.0.135 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
11
+ > @remotion/cloudrun@4.0.137 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
13
12
  > ts-node src/admin/bundle-installer.ts
14
13
 
15
14
  Making reproducible build with gtar
@@ -75,6 +75,7 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
75
75
  binariesDirectory,
76
76
  forceIPv4: false,
77
77
  });
78
+ const indent = false;
78
79
  const { compositionId } = await cli_1.CliInternals.getCompositionWithDimensionOverride({
79
80
  args: args.slice(1),
80
81
  compositionIdFromUi: null,
@@ -82,7 +83,7 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
82
83
  chromiumOptions,
83
84
  envVariables,
84
85
  height,
85
- indent: false,
86
+ indent,
86
87
  port: config_1.ConfigInternals.getRendererPortFromConfigFileAndCliFlag(),
87
88
  puppeteerInstance: undefined,
88
89
  serveUrlOrWebpackUrl: serveUrl,
@@ -97,6 +98,11 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
97
98
  }).serializedString,
98
99
  offthreadVideoCacheSizeInBytes,
99
100
  binariesDirectory,
101
+ onBrowserDownload: cli_1.CliInternals.defaultBrowserDownloadProgress({
102
+ indent,
103
+ logLevel,
104
+ quiet: cli_1.CliInternals.quietFlagProvided(),
105
+ }),
100
106
  });
101
107
  composition = compositionId;
102
108
  }
@@ -54,7 +54,7 @@ ${[
54
54
  }
55
55
  try {
56
56
  const deployResult = await (0, deploy_service_1.internalDeployService)({
57
- performImageVersionValidation: false,
57
+ performImageVersionValidation: false, // this is already performed above
58
58
  memoryLimit: memoryLimit !== null && memoryLimit !== void 0 ? memoryLimit : '2Gi',
59
59
  cpuLimit: cpuLimit !== null && cpuLimit !== void 0 ? cpuLimit : '1.0',
60
60
  timeoutSeconds: timeoutSeconds !== null && timeoutSeconds !== void 0 ? timeoutSeconds : constants_1.DEFAULT_TIMEOUT,
@@ -63,10 +63,11 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
63
63
  binariesDirectory,
64
64
  forceIPv4: false,
65
65
  });
66
+ const indent = false;
66
67
  const { compositionId } = await cli_1.CliInternals.getCompositionWithDimensionOverride({
67
68
  args: args.slice(1),
68
69
  compositionIdFromUi: null,
69
- indent: false,
70
+ indent,
70
71
  serveUrlOrWebpackUrl: serveUrl,
71
72
  logLevel,
72
73
  browserExecutable,
@@ -85,6 +86,11 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
85
86
  server: await server,
86
87
  offthreadVideoCacheSizeInBytes,
87
88
  binariesDirectory,
89
+ onBrowserDownload: cli_1.CliInternals.defaultBrowserDownloadProgress({
90
+ indent,
91
+ logLevel,
92
+ quiet: cli_1.CliInternals.quietFlagProvided(),
93
+ }),
88
94
  });
89
95
  composition = compositionId;
90
96
  }
@@ -23,6 +23,9 @@ const getCompositionFromBody = async (body) => {
23
23
  timeoutInMilliseconds: (_c = body.delayRenderTimeoutInMilliseconds) !== null && _c !== void 0 ? _c : renderer_1.RenderInternals.DEFAULT_TIMEOUT,
24
24
  offthreadVideoCacheSizeInBytes: body.offthreadVideoCacheSizeInBytes,
25
25
  binariesDirectory: null,
26
+ onBrowserDownload: () => {
27
+ throw new Error('Should not download a browser in Cloud Run');
28
+ },
26
29
  });
27
30
  if (propsSize > 10000000) {
28
31
  renderer_1.RenderInternals.Log.warn({ indent: false, logLevel: body.logLevel }, `The props of your composition are large (${propsSize} bytes). This may cause slowdown.`);
@@ -98,6 +98,9 @@ const renderMediaSingleThread = async (body, res) => {
98
98
  separateAudioTo: null,
99
99
  forSeamlessAacConcatenation: false,
100
100
  compositionStart: 0,
101
+ onBrowserDownload: () => {
102
+ throw new Error('Should not download a browser in Cloud Run');
103
+ },
101
104
  });
102
105
  const storage = new storage_1.Storage();
103
106
  const publicUpload = body.privacy === 'public' || !body.privacy;
@@ -65,6 +65,9 @@ const renderStillSingleThread = async (body, res) => {
65
65
  server: undefined,
66
66
  offthreadVideoCacheSizeInBytes: body.offthreadVideoCacheSizeInBytes,
67
67
  binariesDirectory: null,
68
+ onBrowserDownload: () => {
69
+ throw new Error('Should not download a browser in Cloud Run');
70
+ },
68
71
  });
69
72
  log_1.Log.info({ indent: false, logLevel: body.logLevel }, 'Still rendered');
70
73
  const storage = new storage_1.Storage();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cloudrun",
3
- "version": "4.0.136",
3
+ "version": "4.0.138",
4
4
  "description": "GCP Cloud Run alternative to lambda rendering",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -12,21 +12,21 @@
12
12
  "@google-cloud/logging": "^10.5.0",
13
13
  "google-auth-library": "^8.7.0",
14
14
  "zod": "^3.22.3",
15
- "@remotion/bundler": "4.0.136",
16
- "@remotion/renderer": "4.0.136",
17
- "@remotion/cli": "4.0.136",
18
- "remotion": "4.0.136"
15
+ "@remotion/bundler": "4.0.138",
16
+ "@remotion/renderer": "4.0.138",
17
+ "@remotion/cli": "4.0.138",
18
+ "remotion": "4.0.138"
19
19
  },
20
20
  "devDependencies": {
21
- "@jonny/eslint-config": "3.0.276",
21
+ "@jonny/eslint-config": "3.0.281",
22
22
  "@types/node": "^18.11.2",
23
23
  "@types/minimist": "1.2.2",
24
- "eslint": "8.42.0",
25
- "prettier": "3.1.1",
24
+ "eslint": "8.56.0",
25
+ "prettier": "3.2.5",
26
26
  "prettier-plugin-organize-imports": "^3.2.4",
27
- "ts-node": "^10.8.0",
27
+ "ts-node": "10.9.2",
28
28
  "vitest": "0.31.1",
29
- "@remotion/compositor-linux-x64-gnu": "4.0.136"
29
+ "@remotion/compositor-linux-x64-gnu": "4.0.138"
30
30
  },
31
31
  "exports": {
32
32
  "./package.json": "./package.json",