@remotion/cloudrun 4.0.407 → 4.0.409
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.
|
@@ -13,6 +13,9 @@ type Options = {
|
|
|
13
13
|
rootDir?: string;
|
|
14
14
|
bypassBucketNameValidation?: boolean;
|
|
15
15
|
gitSource?: GitSource | null;
|
|
16
|
+
keyboardShortcutsEnabled?: boolean;
|
|
17
|
+
askAIEnabled?: boolean;
|
|
18
|
+
experimentalClientSideRenderingEnabled?: boolean;
|
|
16
19
|
};
|
|
17
20
|
type OptionalParameters = {
|
|
18
21
|
siteName: string;
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -13,7 +13,7 @@ const validate_site_name_1 = require("../shared/validate-site-name");
|
|
|
13
13
|
const get_cloud_storage_client_1 = require("./helpers/get-cloud-storage-client");
|
|
14
14
|
const upload_dir_1 = require("./upload-dir");
|
|
15
15
|
const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options, privacy, }) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
17
17
|
(0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: true });
|
|
18
18
|
(0, validate_site_name_1.validateSiteName)(siteName);
|
|
19
19
|
const cloudStorageClient = (0, get_cloud_storage_client_1.getCloudStorageClient)();
|
|
@@ -43,8 +43,10 @@ const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options
|
|
|
43
43
|
onSymlinkDetected: () => undefined,
|
|
44
44
|
outDir: null,
|
|
45
45
|
audioLatencyHint: null,
|
|
46
|
-
experimentalClientSideRenderingEnabled: false,
|
|
46
|
+
experimentalClientSideRenderingEnabled: (_h = options === null || options === void 0 ? void 0 : options.experimentalClientSideRenderingEnabled) !== null && _h !== void 0 ? _h : false,
|
|
47
47
|
renderDefaults: null,
|
|
48
|
+
askAIEnabled: (_j = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _j !== void 0 ? _j : true,
|
|
49
|
+
keyboardShortcutsEnabled: (_k = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _k !== void 0 ? _k : true,
|
|
48
50
|
}),
|
|
49
51
|
]);
|
|
50
52
|
const { toDelete, toUpload, existingCount } = await (0, get_storage_operations_1.getStorageDiffOperations)({
|
|
@@ -56,7 +58,7 @@ const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options
|
|
|
56
58
|
(0, upload_dir_1.uploadDir)({
|
|
57
59
|
bucket: bucketName,
|
|
58
60
|
localDir: bundled,
|
|
59
|
-
onProgress: (
|
|
61
|
+
onProgress: (_l = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _l !== void 0 ? _l : (() => undefined),
|
|
60
62
|
keyPrefix: subFolder,
|
|
61
63
|
toUpload,
|
|
62
64
|
privacy: privacy !== null && privacy !== void 0 ? privacy : 'public',
|
|
@@ -16,6 +16,7 @@ const get_gcp_region_1 = require("../../get-gcp-region");
|
|
|
16
16
|
const progress_bar_1 = require("../../helpers/progress-bar");
|
|
17
17
|
const quit_1 = require("../../helpers/quit");
|
|
18
18
|
const log_1 = require("../../log");
|
|
19
|
+
const { disableGitSourceOption, askAIOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, } = client_1.BrowserSafeApis.options;
|
|
19
20
|
exports.SITES_CREATE_SUBCOMMAND = 'create';
|
|
20
21
|
const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
21
22
|
var _a, _b, _c;
|
|
@@ -88,7 +89,7 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
88
89
|
updateProgress(false);
|
|
89
90
|
const bundleStart = Date.now();
|
|
90
91
|
let uploadStart = Date.now();
|
|
91
|
-
const disableGitSource =
|
|
92
|
+
const disableGitSource = disableGitSourceOption.getValue({
|
|
92
93
|
commandLine: cli_1.CliInternals.parsedCli,
|
|
93
94
|
}).value;
|
|
94
95
|
const gitSource = cli_1.CliInternals.getGitSource({
|
|
@@ -96,6 +97,15 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
96
97
|
disableGitSource,
|
|
97
98
|
logLevel,
|
|
98
99
|
});
|
|
100
|
+
const askAIEnabled = askAIOption.getValue({
|
|
101
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
102
|
+
}).value;
|
|
103
|
+
const experimentalClientSideRenderingEnabled = experimentalClientSideRenderingOption.getValue({
|
|
104
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
105
|
+
}).value;
|
|
106
|
+
const keyboardShortcutsEnabled = keyboardShortcutsOption.getValue({
|
|
107
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
108
|
+
}).value;
|
|
99
109
|
const { serveUrl, siteName, stats } = await (0, deploy_site_1.internalDeploySiteRaw)({
|
|
100
110
|
entryPoint: file,
|
|
101
111
|
siteName: desiredSiteName,
|
|
@@ -126,6 +136,9 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
126
136
|
ignoreRegisterRootWarning: true,
|
|
127
137
|
publicDir: null,
|
|
128
138
|
rootDir: remotionRoot,
|
|
139
|
+
askAIEnabled,
|
|
140
|
+
experimentalClientSideRenderingEnabled,
|
|
141
|
+
keyboardShortcutsEnabled,
|
|
129
142
|
},
|
|
130
143
|
indent: false,
|
|
131
144
|
privacy: (_c = args_1.parsedCloudrunCli.privacy) !== null && _c !== void 0 ? _c : 'public',
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cloudrun",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.409",
|
|
7
7
|
"description": "Render Remotion videos on Google Cloud Run",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"@google-cloud/storage": "7.15.2",
|
|
22
22
|
"@google-cloud/resource-manager": "5.3.1",
|
|
23
23
|
"@google-cloud/logging": "11.2.0",
|
|
24
|
-
"@remotion/bundler": "4.0.
|
|
25
|
-
"@remotion/cli": "4.0.
|
|
26
|
-
"@remotion/renderer": "4.0.
|
|
24
|
+
"@remotion/bundler": "4.0.409",
|
|
25
|
+
"@remotion/cli": "4.0.409",
|
|
26
|
+
"@remotion/renderer": "4.0.409",
|
|
27
27
|
"google-auth-library": "8.7.0",
|
|
28
|
-
"remotion": "4.0.
|
|
28
|
+
"remotion": "4.0.409",
|
|
29
29
|
"zod": "3.22.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
32
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.409",
|
|
33
33
|
"@types/minimist": "1.2.2",
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.409",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
36
|
"@types/node": "20.12.14"
|
|
37
37
|
},
|