@remotion/lambda 4.0.288 → 4.0.290
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/admin/make-layer-public.js +1 -1
- package/dist/cli/commands/render/progress.js +11 -2
- package/dist/esm/index.mjs +128 -123
- package/dist/shared/hosted-layers.js +120 -120
- 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
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.290",
|
|
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/
|
|
26
|
-
"@remotion/
|
|
27
|
-
"remotion": "4.0.
|
|
28
|
-
"
|
|
29
|
-
"@remotion/
|
|
30
|
-
"@remotion/streaming": "4.0.
|
|
24
|
+
"@remotion/lambda-client": "4.0.290",
|
|
25
|
+
"@remotion/renderer": "4.0.290",
|
|
26
|
+
"@remotion/cli": "4.0.290",
|
|
27
|
+
"@remotion/serverless": "4.0.290",
|
|
28
|
+
"remotion": "4.0.290",
|
|
29
|
+
"@remotion/bundler": "4.0.290",
|
|
30
|
+
"@remotion/streaming": "4.0.290"
|
|
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/bundler": "4.0.
|
|
44
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
43
|
+
"@remotion/bundler": "4.0.290",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.290",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.290"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@remotion/bundler": "4.0.
|
|
48
|
+
"@remotion/bundler": "4.0.290"
|
|
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
|
-
];
|