@remotion/lambda 4.0.451 → 4.0.453

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.
@@ -24,7 +24,6 @@ const layerInfo = {
24
24
  'eu-north-1': [],
25
25
  'eu-south-1': [],
26
26
  'eu-west-3': [],
27
- 'me-south-1': [],
28
27
  'sa-east-1': [],
29
28
  'us-west-1': [],
30
29
  'ap-southeast-4': [],
@@ -34,6 +33,34 @@ const layerInfo = {
34
33
  const getBucketName = (region) => {
35
34
  return `remotionlambda-binaries-${region}`;
36
35
  };
36
+ const parseRegionFlag = () => {
37
+ var _a;
38
+ const arg = process.argv
39
+ .slice(2)
40
+ .find((a) => a.startsWith('--region=') || a === '--region');
41
+ if (!arg)
42
+ return null;
43
+ if (arg === '--region') {
44
+ const idx = process.argv.indexOf('--region');
45
+ return ((_a = process.argv[idx + 1]) !== null && _a !== void 0 ? _a : null);
46
+ }
47
+ return arg.split('=')[1];
48
+ };
49
+ const parseSkipFlag = () => {
50
+ var _a;
51
+ const arg = process.argv
52
+ .slice(2)
53
+ .find((a) => a.startsWith('--skip=') || a === '--skip');
54
+ if (!arg)
55
+ return [];
56
+ const value = arg === '--skip'
57
+ ? ((_a = process.argv[process.argv.indexOf('--skip') + 1]) !== null && _a !== void 0 ? _a : '')
58
+ : arg.split('=')[1];
59
+ return value
60
+ .split(',')
61
+ .map((s) => s.trim())
62
+ .filter(Boolean);
63
+ };
37
64
  const makeLayerPublic = async () => {
38
65
  const runtimes = ['nodejs24.x'];
39
66
  const layers = [
@@ -43,17 +70,28 @@ const makeLayerPublic = async () => {
43
70
  'emoji-google',
44
71
  'cjk',
45
72
  ];
46
- for (const region of (0, get_regions_1.getRegions)()) {
73
+ const onlyRegion = parseRegionFlag();
74
+ const skipRegions = parseSkipFlag();
75
+ const regions = onlyRegion
76
+ ? [onlyRegion]
77
+ : (0, get_regions_1.getRegions)().filter((r) => !skipRegions.includes(r));
78
+ if (onlyRegion) {
79
+ console.log(`Filtering to region: ${onlyRegion}`);
80
+ }
81
+ if (skipRegions.length > 0) {
82
+ console.log(`Skipping regions: ${skipRegions.join(', ')}`);
83
+ }
84
+ for (const region of regions) {
47
85
  for (const layer of layers) {
48
86
  const layerName = `remotion-binaries-${layer}-arm64`;
49
87
  const { Version, LayerArn } = await lambda_client_1.LambdaClientInternals.getLambdaClient(region, undefined, null).send(new client_lambda_1.PublishLayerVersionCommand({
50
88
  Content: {
51
89
  S3Bucket: getBucketName(region),
52
- S3Key: `remotion-layer-${layer}-v16-arm64.zip`,
90
+ S3Key: `remotion-layer-${layer}-v18-arm64.zip`,
53
91
  },
54
92
  LayerName: layerName,
55
93
  LicenseInfo: layer === 'chromium'
56
- ? 'Chromium 144.0.7559.20, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
94
+ ? 'Chromium 149.0.7790.0, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
57
95
  : layer === 'emoji-apple'
58
96
  ? 'Apple Emojis (https://github.com/samuelngs/apple-emoji-linux). For educational purposes only - Apple is a trademark of Apple Inc., registered in the U.S. and other countries.'
59
97
  : layer === 'emoji-google'
@@ -1,5 +1,5 @@
1
1
  type Options = {
2
2
  enabledByDefaultOnly?: boolean;
3
3
  };
4
- export declare const getRegions: (options?: Options | undefined) => readonly ("af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2")[];
4
+ export declare const getRegions: (options?: Options | undefined) => readonly ("af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2")[];
5
5
  export {};
@@ -1 +1 @@
1
- export declare const getAwsRegion: () => "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
1
+ export declare const getAwsRegion: () => "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";