Skip to content

🎥 Make videos programmatically with React

updated to v4 createOverwriteableCliOutput. Fixed bug in services rmall all-regions

Matt McGillivray9e849a075bcf
diff --git a/packages/cloudrun/gcpInstaller/gcpInstaller.tar b/packages/cloudrun/gcpInstaller/gcpInstaller.tar
index be876e355c..03f77e66b5 100644
Binary files a/packages/cloudrun/gcpInstaller/gcpInstaller.tar and b/packages/cloudrun/gcpInstaller/gcpInstaller.tar differ
diff --git a/packages/cloudrun/package.json b/packages/cloudrun/package.json
index c140fcf89b..84a5e780dc 100644
--- a/packages/cloudrun/package.json
+++ b/packages/cloudrun/package.json
@@ -1,6 +1,6 @@
{
"name": "@remotion/cloudrun",
- "version": "3.3.92",
+ "version": "3.3.94",
"description": "GCP Cloud Run alternative to lambda rendering",
"main": "dist/index.js",
"scripts": {
diff --git a/packages/cloudrun/src/cli/commands/render/renderMedia.ts b/packages/cloudrun/src/cli/commands/render/renderMedia.ts
index 6467536d5c..54f173f0f4 100644
--- a/packages/cloudrun/src/cli/commands/render/renderMedia.ts
+++ b/packages/cloudrun/src/cli/commands/render/renderMedia.ts
@@ -85,6 +85,8 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
const progressBar = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
const renderProgress: {
@@ -103,7 +105,8 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
renderProgress.doneIn === null
? `${Math.round(renderProgress.progress * 100)}%`
: CliInternals.chalk.gray(`${renderProgress.doneIn}ms`),
- ].join(' ')
+ ].join(' '),
+ false
);
};
diff --git a/packages/cloudrun/src/cli/commands/render/renderStill.ts b/packages/cloudrun/src/cli/commands/render/renderStill.ts
index 12b93269af..2094e0189d 100644
--- a/packages/cloudrun/src/cli/commands/render/renderStill.ts
+++ b/packages/cloudrun/src/cli/commands/render/renderStill.ts
@@ -71,6 +71,8 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
const progressBar = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
type DoneIn = number | null;
@@ -82,7 +84,8 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
[
`Rendering on Cloud Run: `,
`${doneIn === null ? '...' : `Rendered in ${doneIn}ms`}`,
- ].join(' ')
+ ].join(' '),
+ false
);
};
diff --git a/packages/cloudrun/src/cli/commands/services/ls.ts b/packages/cloudrun/src/cli/commands/services/ls.ts
index d11cc6afee..5f86bb5da7 100644
--- a/packages/cloudrun/src/cli/commands/services/ls.ts
+++ b/packages/cloudrun/src/cli/commands/services/ls.ts
@@ -14,8 +14,10 @@ export const servicesLsCommand = async () => {
const fetchingOutput = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
- fetchingOutput.update(`Getting services in ${region}...`);
+ fetchingOutput.update(`Getting services in ${region}...`, false);
const services = await getServices({
region,
@@ -32,10 +34,10 @@ export const servicesLsCommand = async () => {
return;
}
- fetchingOutput.update('Getting service info...');
+ fetchingOutput.update('Getting service info...', false);
const pluralized = services.length === 1 ? 'service' : 'services';
- fetchingOutput.update(`${services.length} ${pluralized} in ${region}`);
+ fetchingOutput.update(`${services.length} ${pluralized} in ${region}`, false);
Log.info();
for (const service of services) {
diff --git a/packages/cloudrun/src/cli/commands/services/rm.ts b/packages/cloudrun/src/cli/commands/services/rm.ts
index b1224adc32..3a8b173792 100644
--- a/packages/cloudrun/src/cli/commands/services/rm.ts
+++ b/packages/cloudrun/src/cli/commands/services/rm.ts
@@ -34,14 +34,16 @@ export const servicesRmCommand = async (args: string[]) => {
const infoOutput = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
- infoOutput.update('Getting service info...');
+ infoOutput.update('Getting service info...', false);
const info = await getServiceInfo({
region,
serviceName,
});
- infoOutput.update(displayServiceInfo(info));
+ infoOutput.update(displayServiceInfo(info), false);
Log.info();
const confirmDelete = await confirmCli({
@@ -57,12 +59,14 @@ export const servicesRmCommand = async (args: string[]) => {
const output = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
- output.update('Deleting...');
+ output.update('Deleting...', false);
await deleteService({
serviceName,
region,
});
- output.update('Deleted!\n');
+ output.update('Deleted!\n', false);
}
};
diff --git a/packages/cloudrun/src/cli/commands/services/rmall.ts b/packages/cloudrun/src/cli/commands/services/rmall.ts
index 8578f05d0a..6c26c9b386 100644
--- a/packages/cloudrun/src/cli/commands/services/rmall.ts
+++ b/packages/cloudrun/src/cli/commands/services/rmall.ts
@@ -17,8 +17,10 @@ export const servicesRmallCommand = async () => {
const fetchingOutput = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
- fetchingOutput.update(`Getting services in ${region}...`);
+ fetchingOutput.update(`Getting services in ${region}...`, false);
const services = await getServices({
region,
@@ -26,7 +28,7 @@ export const servicesRmallCommand = async () => {
});
const pluralized = services.length === 1 ? 'service' : 'services';
- fetchingOutput.update(`${services.length} ${pluralized} in ${region}`);
+ fetchingOutput.update(`${services.length} ${pluralized} in ${region}`, false);
Log.info();
Log.info();
@@ -48,9 +50,11 @@ export const servicesRmallCommand = async () => {
const output = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
- output.update('Deleting...');
- await deleteService({region, serviceName: serv.serviceName});
- output.update('Deleted!\n');
+ output.update('Deleting...', false);
+ await deleteService({region: serv.region, serviceName: serv.serviceName});
+ output.update('Deleted!\n', false);
}
};
diff --git a/packages/cloudrun/src/cli/commands/sites/create.ts b/packages/cloudrun/src/cli/commands/sites/create.ts
index ae08cd57fc..55b4bc1c22 100644
--- a/packages/cloudrun/src/cli/commands/sites/create.ts
+++ b/packages/cloudrun/src/cli/commands/sites/create.ts
@@ -63,6 +63,8 @@ export const sitesCreateSubcommand = async (
const progressBar = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
const multiProgress: {
@@ -92,7 +94,8 @@ export const sitesCreateSubcommand = async (
makeBundleProgress(multiProgress.bundleProgress),
makeBucketProgress(multiProgress.bucketProgress),
makeDeployProgressBar(multiProgress.deployProgress),
- ].join('\n')
+ ].join('\n'),
+ false
);
};
diff --git a/packages/cloudrun/src/cli/commands/sites/rm.ts b/packages/cloudrun/src/cli/commands/sites/rm.ts
index 7a557f0582..7771eef424 100644
--- a/packages/cloudrun/src/cli/commands/sites/rm.ts
+++ b/packages/cloudrun/src/cli/commands/sites/rm.ts
@@ -31,21 +31,23 @@ export const sitesRmSubcommand = async (args: string[]) => {
const infoOutput = CliInternals.createOverwriteableCliOutput({
quiet: CliInternals.quietFlagProvided(),
cancelSignal: null,
+ updatesDontOverwrite: false,
+ indent: false,
});
- infoOutput.update(`Checking ${region} for sites...`);
+ infoOutput.update(`Checking ${region} for sites...`, false);
const deployedSites = await getSites(region);
for (const siteName of args) {
- infoOutput.update('Getting site info...');
+ infoOutput.update('Getting site info...', false);
const site = deployedSites.sites.find((s) => s.id === siteName.trim());
if (!site) {
- infoOutput.update('');
+ infoOutput.update('', false);
throw new Error(`${siteName.trim()} was not found in ${region}.`);
}
- infoOutput.update(displaySiteInfo(site));
+ infoOutput.update(displaySiteInfo(site), false);
Log.info();
Log.info();
diff --git a/packages/docs/docs/cloudrun/getservices.md b/packages/docs/docs/cloudrun/getservices.md
index e07ddbe2e5..bb00f803a9 100644
--- a/packages/docs/docs/cloudrun/getservices.md
+++ b/packages/docs/docs/cloudrun/getservices.md
@@ -6,7 +6,7 @@ slug: /cloudrun/getservices
crumb: "Cloudrun API"
---
-Retrieves a list of Remotion services deployed to GCP Cloud Run in a certain region, or for all regions.
+Retrieves a list of Remotion services deployed to GCP Cloud Run.
The parameter `compatibleOnly` determines whether only services that are compatible with the installed version of Remotion Cloud Run should be returned.
@@ -48,6 +48,10 @@ An object containing the following properties:
The [GCP region](/docs/cloudrun/region-selection) that you would like to query. It is also possible to pass 'all regions' here, to ignore the region constraint.
+### `compatibleOnly`
+
+If `true`, only services that match the version of the current Remotion Lambda package are returned. If `false`, all services are returned.
+
## Example
```ts twoslash
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 27b96a4f16..77d8e44191 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -13215,7 +13215,7 @@ packages:
dev: false
/es6-iterator/2.0.3:
- resolution: {integrity: sha1-p96IkUGgWpSwhUQDstCg+/qY87c=}
+ resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==}
dependencies:
d: 1.0.1
es5-ext: 0.10.53
@@ -14293,7 +14293,7 @@ packages:
/ext/1.6.0:
resolution: {integrity: sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==}
dependencies:
- type: 2.5.0
+ type: 2.7.2
dev: false
/extend-shallow/2.0.1:
@@ -18066,7 +18066,7 @@ packages:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
/next-tick/1.0.0:
- resolution: {integrity: sha1-yobR/ogoFpsBICCOPchCS524NCw=}
+ resolution: {integrity: sha512-mc/caHeUcdjnC/boPWJefDr4KUIWQNv+tlnFnJd38QMou86QtxQzBJfxgGRzvx8jazYRqrVlaHarfO72uNxPOg==}
dev: false
/next/13.1.3_biqbaboplfbrettd7655fr4n2y:
@@ -22511,8 +22511,8 @@ packages:
resolution: {integrity: sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==}
dev: false
- /type/2.5.0:
- resolution: {integrity: sha512-180WMDQaIMm3+7hGXWf12GtdniDEy7nYcyFMKJn/eZz/6tSLXrUN9V0wKSbMjej0I1WHWbpREDEKHtqPQa9NNw==}
+ /type/2.7.2:
+ resolution: {integrity: sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==}
dev: false
/typed-array-length/1.0.4: