@remotion/cloudrun 4.0.135 → 4.0.137

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,15 @@
1
1
 
2
2
  
3
- > @remotion/cloudrun@4.0.134 build /Users/jonathanburger/remotion/packages/cloudrun
3
+ > @remotion/cloudrun@4.0.136 build /Users/jonathanburger/remotion/packages/cloudrun
4
4
  > tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json && pnpm run buildContainer && pnpm run tarInstaller
5
5
 
6
6
 
7
- > @remotion/cloudrun@4.0.134 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
7
+ > @remotion/cloudrun@4.0.136 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
8
8
  > ts-node src/admin/bundle-renderLogic.ts
9
9
 
10
10
  distribution bundled.
11
11
 
12
- > @remotion/cloudrun@4.0.134 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
12
+ > @remotion/cloudrun@4.0.136 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
13
13
  > ts-node src/admin/bundle-installer.ts
14
14
 
15
15
  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
  }
@@ -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.135",
3
+ "version": "4.0.137",
4
4
  "description": "GCP Cloud Run alternative to lambda rendering",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -12,10 +12,10 @@
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.135",
16
- "@remotion/cli": "4.0.135",
17
- "@remotion/renderer": "4.0.135",
18
- "remotion": "4.0.135"
15
+ "@remotion/bundler": "4.0.137",
16
+ "remotion": "4.0.137",
17
+ "@remotion/renderer": "4.0.137",
18
+ "@remotion/cli": "4.0.137"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@jonny/eslint-config": "3.0.276",
@@ -26,7 +26,7 @@
26
26
  "prettier-plugin-organize-imports": "^3.2.4",
27
27
  "ts-node": "^10.8.0",
28
28
  "vitest": "0.31.1",
29
- "@remotion/compositor-linux-x64-gnu": "4.0.135"
29
+ "@remotion/compositor-linux-x64-gnu": "4.0.137"
30
30
  },
31
31
  "exports": {
32
32
  "./package.json": "./package.json",