@remotion/lambda 4.0.289 → 4.0.291
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/cli/commands/render/progress.js +11 -2
- package/dist/esm/index.mjs +8 -3
- package/package.json +12 -12
- package/remotionlambda-arm64.zip +0 -0
- package/build.ts +0 -61
- package/bundle.ts +0 -23
- package/eslint.config.mjs +0 -36
|
@@ -146,18 +146,20 @@ const makeTopRow = (overall) => {
|
|
|
146
146
|
.join(' • ');
|
|
147
147
|
return cli_1.CliInternals.chalk.gray(str);
|
|
148
148
|
};
|
|
149
|
+
const ARTIFACTS_SHOWN = 5;
|
|
149
150
|
const makeArtifactProgress = (artifactProgress) => {
|
|
150
151
|
if (artifactProgress.length === 0) {
|
|
151
152
|
return null;
|
|
152
153
|
}
|
|
153
|
-
|
|
154
|
+
const artifacts = artifactProgress
|
|
155
|
+
.slice(0, ARTIFACTS_SHOWN)
|
|
154
156
|
.map((artifact) => {
|
|
155
157
|
return [
|
|
156
158
|
// TODO: Whitelabel S3
|
|
157
159
|
cli_1.CliInternals.chalk.blue(`+ S3`.padEnd(cli_1.CliInternals.LABEL_WIDTH)),
|
|
158
160
|
cli_1.CliInternals.chalk.blue(cli_1.CliInternals.makeHyperlink({
|
|
159
161
|
url: artifact.s3Url,
|
|
160
|
-
fallback: artifact.
|
|
162
|
+
fallback: artifact.s3Key,
|
|
161
163
|
text: artifact.s3Key,
|
|
162
164
|
})),
|
|
163
165
|
cli_1.CliInternals.chalk.gray(`${cli_1.CliInternals.formatBytes(artifact.sizeInBytes)}`),
|
|
@@ -165,6 +167,13 @@ const makeArtifactProgress = (artifactProgress) => {
|
|
|
165
167
|
})
|
|
166
168
|
.filter(serverless_1.truthy)
|
|
167
169
|
.join('\n');
|
|
170
|
+
const moreSizeCombined = artifactProgress
|
|
171
|
+
.slice(ARTIFACTS_SHOWN)
|
|
172
|
+
.reduce((acc, artifact) => acc + artifact.sizeInBytes, 0);
|
|
173
|
+
const more = artifactProgress.length > ARTIFACTS_SHOWN
|
|
174
|
+
? cli_1.CliInternals.chalk.gray(`${' '.repeat(cli_1.CliInternals.LABEL_WIDTH)} ${artifactProgress.length - ARTIFACTS_SHOWN} more artifact${artifactProgress.length - ARTIFACTS_SHOWN === 1 ? '' : 's'} ${cli_1.CliInternals.formatBytes(moreSizeCombined)}`)
|
|
175
|
+
: null;
|
|
176
|
+
return [artifacts, more].filter(serverless_1.truthy).join('\n');
|
|
168
177
|
};
|
|
169
178
|
exports.makeArtifactProgress = makeArtifactProgress;
|
|
170
179
|
const makeProgressString = ({ downloadInfo, overall, }) => {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -8604,7 +8604,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
8604
8604
|
url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
|
|
8605
8605
|
},
|
|
8606
8606
|
name: "@remotion/lambda",
|
|
8607
|
-
version: "4.0.
|
|
8607
|
+
version: "4.0.291",
|
|
8608
8608
|
description: "Render Remotion videos on AWS Lambda",
|
|
8609
8609
|
main: "dist/index.js",
|
|
8610
8610
|
sideEffects: false,
|
|
@@ -11509,21 +11509,26 @@ var makeTopRow = (overall) => {
|
|
|
11509
11509
|
].filter(NoReactInternals.truthy).join(" • ");
|
|
11510
11510
|
return CliInternals13.chalk.gray(str);
|
|
11511
11511
|
};
|
|
11512
|
+
var ARTIFACTS_SHOWN = 5;
|
|
11512
11513
|
var makeArtifactProgress = (artifactProgress) => {
|
|
11513
11514
|
if (artifactProgress.length === 0) {
|
|
11514
11515
|
return null;
|
|
11515
11516
|
}
|
|
11516
|
-
|
|
11517
|
+
const artifacts = artifactProgress.slice(0, ARTIFACTS_SHOWN).map((artifact) => {
|
|
11517
11518
|
return [
|
|
11518
11519
|
CliInternals13.chalk.blue(`+ S3`.padEnd(CliInternals13.LABEL_WIDTH)),
|
|
11519
11520
|
CliInternals13.chalk.blue(CliInternals13.makeHyperlink({
|
|
11520
11521
|
url: artifact.s3Url,
|
|
11521
|
-
fallback: artifact.
|
|
11522
|
+
fallback: artifact.s3Key,
|
|
11522
11523
|
text: artifact.s3Key
|
|
11523
11524
|
})),
|
|
11524
11525
|
CliInternals13.chalk.gray(`${CliInternals13.formatBytes(artifact.sizeInBytes)}`)
|
|
11525
11526
|
].join(" ");
|
|
11526
11527
|
}).filter(truthy).join(`
|
|
11528
|
+
`);
|
|
11529
|
+
const moreSizeCombined = artifactProgress.slice(ARTIFACTS_SHOWN).reduce((acc, artifact) => acc + artifact.sizeInBytes, 0);
|
|
11530
|
+
const more = artifactProgress.length > ARTIFACTS_SHOWN ? CliInternals13.chalk.gray(`${" ".repeat(CliInternals13.LABEL_WIDTH)} ${artifactProgress.length - ARTIFACTS_SHOWN} more artifact${artifactProgress.length - ARTIFACTS_SHOWN === 1 ? "" : "s"} ${CliInternals13.formatBytes(moreSizeCombined)}`) : null;
|
|
11531
|
+
return [artifacts, more].filter(truthy).join(`
|
|
11527
11532
|
`);
|
|
11528
11533
|
};
|
|
11529
11534
|
var makeProgressString = ({
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/lambda",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.291",
|
|
7
7
|
"description": "Render Remotion videos on AWS Lambda",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"@aws-sdk/lib-storage": "3.787.0",
|
|
22
22
|
"@smithy/abort-controller": "4.0.1",
|
|
23
23
|
"zod": "3.22.3",
|
|
24
|
-
"@remotion/
|
|
25
|
-
"@remotion/cli": "4.0.
|
|
26
|
-
"@remotion/
|
|
27
|
-
"@remotion/
|
|
28
|
-
"@remotion/
|
|
29
|
-
"remotion": "4.0.
|
|
30
|
-
"@remotion/
|
|
24
|
+
"@remotion/bundler": "4.0.291",
|
|
25
|
+
"@remotion/cli": "4.0.291",
|
|
26
|
+
"@remotion/lambda-client": "4.0.291",
|
|
27
|
+
"@remotion/renderer": "4.0.291",
|
|
28
|
+
"@remotion/serverless": "4.0.291",
|
|
29
|
+
"remotion": "4.0.291",
|
|
30
|
+
"@remotion/streaming": "4.0.291"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/express": "^5.0.0",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"next": "15.2.4",
|
|
41
41
|
"pureimage": "0.4.13",
|
|
42
42
|
"zip-lib": "^0.7.2",
|
|
43
|
-
"@remotion/
|
|
44
|
-
"@remotion/
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
43
|
+
"@remotion/bundler": "4.0.291",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.291",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.291"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@remotion/bundler": "4.0.
|
|
48
|
+
"@remotion/bundler": "4.0.291"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|
package/build.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import {BundlerInternals} from '@remotion/bundler';
|
|
2
|
-
import {dir} from '@remotion/compositor-linux-arm64-gnu';
|
|
3
|
-
import fs, {cpSync, readdirSync} from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import {FUNCTION_ZIP_ARM64} from './src/shared/function-zip-path';
|
|
6
|
-
|
|
7
|
-
import zl from 'zip-lib';
|
|
8
|
-
|
|
9
|
-
const outdir = path.join(__dirname, `build-render`);
|
|
10
|
-
fs.mkdirSync(outdir, {
|
|
11
|
-
recursive: true,
|
|
12
|
-
});
|
|
13
|
-
const outfile = path.join(outdir, 'index.js');
|
|
14
|
-
|
|
15
|
-
fs.rmSync(outdir, {recursive: true});
|
|
16
|
-
fs.mkdirSync(outdir, {recursive: true});
|
|
17
|
-
const template = require.resolve(
|
|
18
|
-
path.join(__dirname, 'dist', 'functions', 'index'),
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
await BundlerInternals.esbuild.build({
|
|
22
|
-
platform: 'node',
|
|
23
|
-
target: 'node16',
|
|
24
|
-
bundle: true,
|
|
25
|
-
outfile,
|
|
26
|
-
entryPoints: [template],
|
|
27
|
-
treeShaking: true,
|
|
28
|
-
external: [],
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const filesInCwd = readdirSync(dir);
|
|
32
|
-
const filesToCopy = filesInCwd.filter(
|
|
33
|
-
(f) =>
|
|
34
|
-
f.startsWith('remotion') ||
|
|
35
|
-
f.endsWith('.so') ||
|
|
36
|
-
f.endsWith('.dll') ||
|
|
37
|
-
f.endsWith('.dylib') ||
|
|
38
|
-
f.startsWith('ffmpeg') ||
|
|
39
|
-
f.startsWith('ffprobe'),
|
|
40
|
-
);
|
|
41
|
-
for (const file of filesToCopy) {
|
|
42
|
-
cpSync(path.join(dir, file), path.join(outdir, file));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
fs.cpSync(
|
|
46
|
-
path.join(
|
|
47
|
-
__dirname,
|
|
48
|
-
'..',
|
|
49
|
-
'renderer',
|
|
50
|
-
'node_modules',
|
|
51
|
-
'source-map',
|
|
52
|
-
'lib',
|
|
53
|
-
'mappings.wasm',
|
|
54
|
-
),
|
|
55
|
-
`${outdir}/mappings.wasm`,
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);
|
|
59
|
-
|
|
60
|
-
fs.rmSync(outdir, {recursive: true});
|
|
61
|
-
console.log('Bundled Lambda');
|
package/bundle.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {buildPackage} from '../.monorepo/builder';
|
|
2
|
-
|
|
3
|
-
await buildPackage({
|
|
4
|
-
formats: {
|
|
5
|
-
cjs: 'use-tsc',
|
|
6
|
-
esm: 'build',
|
|
7
|
-
},
|
|
8
|
-
external: 'dependencies',
|
|
9
|
-
entrypoints: [
|
|
10
|
-
{
|
|
11
|
-
path: 'src/index.ts',
|
|
12
|
-
target: 'node',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
path: 'src/client.ts',
|
|
16
|
-
target: 'node',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
path: 'src/policies.ts',
|
|
20
|
-
target: 'node',
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
});
|
package/eslint.config.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {remotionFlatConfig} from '@remotion/eslint-config-internal';
|
|
2
|
-
|
|
3
|
-
const config = remotionFlatConfig({react: false});
|
|
4
|
-
|
|
5
|
-
export default [
|
|
6
|
-
{
|
|
7
|
-
...config,
|
|
8
|
-
ignores: ['src/cli/**'],
|
|
9
|
-
rules: {
|
|
10
|
-
...config.rules,
|
|
11
|
-
'no-console': 'off',
|
|
12
|
-
'arrow-body-style': 'off',
|
|
13
|
-
'no-restricted-imports': [
|
|
14
|
-
'error',
|
|
15
|
-
{
|
|
16
|
-
patterns: ['@remotion/cli', '@remotion/*/src/*', 'remotion/src/*'],
|
|
17
|
-
paths: ['remotion', 'react', 'react-dom'],
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
...config,
|
|
24
|
-
files: ['src/cli/**.ts'],
|
|
25
|
-
rules: {
|
|
26
|
-
'no-console': 'error',
|
|
27
|
-
'no-restricted-imports': [
|
|
28
|
-
'error',
|
|
29
|
-
{
|
|
30
|
-
patterns: ['@remotion/*/src/*', 'remotion/src/*'],
|
|
31
|
-
paths: ['remotion', 'react', 'react-dom'],
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
];
|