@vercel/python 6.45.0 → 6.45.1

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -23
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -4614,14 +4614,7 @@ var OTEL_LAYER_RESERVATION_BYTES = 5 * 1024 * 1024;
4614
4614
  var LAMBDA_SIZE_THRESHOLD_BYTES = process.env.VERCEL_DEPLOYMENT_HAS_OTEL_LAYER === "1" ? LAMBDA_BASE_SIZE_THRESHOLD_BYTES - OTEL_LAYER_RESERVATION_BYTES : LAMBDA_BASE_SIZE_THRESHOLD_BYTES;
4615
4615
  var LAMBDA_EPHEMERAL_STORAGE_BYTES = 500 * 1024 * 1024;
4616
4616
  var HIVE_LAMBDA_SIZE_BYTES = 1 * 1024 * 1024 * 1024;
4617
- var FUNCTIONS_BETA_CTA = "Run `vercel deploy --functions-beta` to use extended function limits (up to 1 GB), or reduce your dependency footprint.";
4618
4617
  var BUNDLING_DOCS_LINK = "https://vercel.com/docs/functions/runtimes/python#controlling-what-gets-bundled";
4619
- var FUNCTIONS_BETA_DOCS_LINK = "https://vercel.com/docs/functions/runtimes/python#extended-size-limits-with-functions-beta";
4620
- var FUNCTIONS_BETA_EXCEEDED_CTA = "Your deployment is already using extended function limits (`--functions-beta`).\nReduce your dependency footprint to under 1 GB or split your application\ninto smaller functions.";
4621
- function shouldShowFunctionsBetaHint() {
4622
- const v = process.env.VERCEL_FUNCTIONS_BETA_HINT;
4623
- return v === "1" || v === "true";
4624
- }
4625
4618
  var PythonDependencyExternalizer = class {
4626
4619
  constructor(options) {
4627
4620
  // Populated by analyze()
@@ -4687,9 +4680,7 @@ var PythonDependencyExternalizer = class {
4687
4680
  const limitMB = (LAMBDA_SIZE_THRESHOLD_BYTES / (1024 * 1024)).toFixed(0);
4688
4681
  throw new import_build_utils7.NowBuildError({
4689
4682
  code: "LAMBDA_SIZE_EXCEEDED",
4690
- message: shouldShowFunctionsBetaHint() ? `Total bundle size (${totalBundleSizeMB} MB) exceeds the size limit (${limitMB} MB).
4691
-
4692
- ` + FUNCTIONS_BETA_CTA : `Total bundle size (${totalBundleSizeMB} MB) exceeds the size limit (${limitMB} MB).
4683
+ message: `Total bundle size (${totalBundleSizeMB} MB) exceeds the size limit (${limitMB} MB).
4693
4684
 
4694
4685
  When using a custom install command, Vercel cannot automatically
4695
4686
  optimize dependency bundling. To reduce the size of your
@@ -4697,7 +4688,7 @@ dependencies, you can:
4697
4688
  1. Remove unused dependencies from your project.
4698
4689
  2. Remove the custom install command to allow Vercel to manage
4699
4690
  and optimize dependencies automatically.`,
4700
- link: shouldShowFunctionsBetaHint() ? FUNCTIONS_BETA_DOCS_LINK : BUNDLING_DOCS_LINK,
4691
+ link: BUNDLING_DOCS_LINK,
4701
4692
  action: "Learn More"
4702
4693
  });
4703
4694
  }
@@ -4705,13 +4696,11 @@ dependencies, you can:
4705
4696
  const limitMB = (HIVE_LAMBDA_SIZE_BYTES / (1024 * 1024)).toFixed(0);
4706
4697
  throw new import_build_utils7.NowBuildError({
4707
4698
  code: "LAMBDA_SIZE_EXCEEDED",
4708
- message: shouldShowFunctionsBetaHint() ? `Total bundle size (${totalBundleSizeMB} MB) exceeds the extended function size limit (${limitMB} MB).
4709
-
4710
- ` + FUNCTIONS_BETA_EXCEEDED_CTA : `Total bundle size (${totalBundleSizeMB} MB) exceeds the extended function size limit (${limitMB} MB).
4699
+ message: `Total bundle size (${totalBundleSizeMB} MB) exceeds the extended function size limit (${limitMB} MB).
4711
4700
 
4712
4701
  Consider removing unused dependencies or splitting your
4713
4702
  application into smaller functions.`,
4714
- link: "https://vercel.com/docs/functions/runtimes/python#controlling-what-gets-bundled",
4703
+ link: BUNDLING_DOCS_LINK,
4715
4704
  action: "Learn More"
4716
4705
  });
4717
4706
  }
@@ -4747,15 +4736,13 @@ application into smaller functions.`,
4747
4736
  const ephemeralLimitMB = (LAMBDA_EPHEMERAL_STORAGE_BYTES / (1024 * 1024)).toFixed(0);
4748
4737
  throw new import_build_utils7.NowBuildError({
4749
4738
  code: "LAMBDA_SIZE_EXCEEDED",
4750
- message: shouldShowFunctionsBetaHint() ? `Total bundle size (${totalBundleSizeMB} MB) exceeds the ephemeral storage limit (${ephemeralLimitMB} MB).
4751
-
4752
- ` + FUNCTIONS_BETA_CTA : `Total bundle size (${totalBundleSizeMB} MB) exceeds Lambda ephemeral storage limit (${ephemeralLimitMB} MB).
4739
+ message: `Total bundle size (${totalBundleSizeMB} MB) exceeds Lambda ephemeral storage limit (${ephemeralLimitMB} MB).
4753
4740
 
4754
4741
  Even with runtime dependency installation, all packages must fit
4755
4742
  within the ${ephemeralLimitMB} MB ephemeral storage available to Lambda
4756
4743
  functions. Consider removing unused dependencies or splitting
4757
4744
  your application into smaller functions.`,
4758
- link: shouldShowFunctionsBetaHint() ? FUNCTIONS_BETA_DOCS_LINK : BUNDLING_DOCS_LINK,
4745
+ link: BUNDLING_DOCS_LINK,
4759
4746
  action: "Learn More"
4760
4747
  });
4761
4748
  }
@@ -4946,15 +4933,13 @@ To fix this, either:
4946
4933
  const limitMB = (LAMBDA_SIZE_THRESHOLD_BYTES / (1024 * 1024)).toFixed(0);
4947
4934
  throw new import_build_utils7.NowBuildError({
4948
4935
  code: "LAMBDA_SIZE_EXCEEDED",
4949
- message: shouldShowFunctionsBetaHint() ? `Total bundle size (${finalSizeMB} MB) exceeds the size limit (${limitMB} MB).
4950
-
4951
- ` + FUNCTIONS_BETA_CTA : `Total bundle size (${finalSizeMB} MB) exceeds Lambda limit (${limitMB} MB) even after
4936
+ message: `Total bundle size (${finalSizeMB} MB) exceeds Lambda limit (${limitMB} MB) even after
4952
4937
  deferring public packages to runtime installation.
4953
4938
 
4954
4939
  This usually means your private packages or source code are too
4955
4940
  large. Consider reducing the size of private dependencies or
4956
4941
  splitting your application.`,
4957
- link: shouldShowFunctionsBetaHint() ? FUNCTIONS_BETA_DOCS_LINK : BUNDLING_DOCS_LINK,
4942
+ link: BUNDLING_DOCS_LINK,
4958
4943
  action: "Learn More"
4959
4944
  });
4960
4945
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "6.45.0",
3
+ "version": "6.45.1",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -35,8 +35,8 @@
35
35
  "vitest": "2.1.4",
36
36
  "which": "3.0.0",
37
37
  "@vercel/build-utils": "13.30.0",
38
- "@vercel/error-utils": "2.2.0",
39
- "@vercel/python-runtime": "0.14.2"
38
+ "@vercel/python-runtime": "0.14.2",
39
+ "@vercel/error-utils": "2.2.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "node ../../utils/build-builder.mjs",