vercel 48.10.5 → 48.10.7

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 +18 -6
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -49731,7 +49731,7 @@ var require_package = __commonJS2({
49731
49731
  "../client/package.json"(exports2, module2) {
49732
49732
  module2.exports = {
49733
49733
  name: "@vercel/client",
49734
- version: "17.2.7",
49734
+ version: "17.2.8",
49735
49735
  main: "dist/index.js",
49736
49736
  typings: "dist/index.d.ts",
49737
49737
  homepage: "https://vercel.com",
@@ -49773,7 +49773,7 @@ var require_package = __commonJS2({
49773
49773
  "@vercel/build-utils": "13.1.0",
49774
49774
  "@vercel/error-utils": "2.0.3",
49775
49775
  "@vercel/microfrontends": "1.2.2",
49776
- "@vercel/routing-utils": "5.2.2",
49776
+ "@vercel/routing-utils": "5.3.0",
49777
49777
  "async-retry": "1.2.3",
49778
49778
  "async-sema": "3.0.0",
49779
49779
  "fs-extra": "8.0.1",
@@ -134301,6 +134301,16 @@ var require_schemas = __commonJS2({
134301
134301
  }
134302
134302
  }
134303
134303
  ]
134304
+ },
134305
+ env: {
134306
+ description: "An array of environment variable names that should be replaced at runtime in the args value",
134307
+ type: "array",
134308
+ minItems: 1,
134309
+ maxItems: 64,
134310
+ items: {
134311
+ type: "string",
134312
+ maxLength: 256
134313
+ }
134304
134314
  }
134305
134315
  },
134306
134316
  allOf: [
@@ -146541,7 +146551,7 @@ async function writeBuildResultV3(args2) {
146541
146551
  } = args2;
146542
146552
  const { output: output2 } = buildResult;
146543
146553
  const routesJsonPath = (0, import_path21.join)(workPath, ".vercel", "routes.json");
146544
- if ((0, import_build_utils11.isBackendBuilder)(build2) && (0, import_fs_extra12.existsSync)(routesJsonPath)) {
146554
+ if (((0, import_build_utils11.isBackendBuilder)(build2) || build2.use === "@vercel/python") && (0, import_fs_extra12.existsSync)(routesJsonPath)) {
146545
146555
  try {
146546
146556
  const newOutput = {
146547
146557
  index: output2
@@ -148879,7 +148889,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
148879
148889
  });
148880
148890
  }
148881
148891
  }
148882
- if ("output" in buildResult && buildResult.output && (0, import_build_utils13.isBackendBuilder)(build2)) {
148892
+ if ("output" in buildResult && buildResult.output && ((0, import_build_utils13.isBackendBuilder)(build2) || build2.use === "@vercel/python")) {
148883
148893
  const routesJsonPath = (0, import_path27.join)(workPath, ".vercel", "routes.json");
148884
148894
  if ((0, import_fs_extra18.existsSync)(routesJsonPath)) {
148885
148895
  try {
@@ -151035,7 +151045,9 @@ async function getDeploymentUrlAndToken(client2, commandName, path11, options) {
151035
151045
  output_manager_default.error("Failed to get project information");
151036
151046
  return 1;
151037
151047
  }
151038
- const target = linkedProject.project.latestDeployments?.[0]?.url;
151048
+ const preferredAlias = linkedProject.project.targets?.production?.alias?.[0];
151049
+ const backupAlias = linkedProject.project.latestDeployments?.[0]?.url;
151050
+ const target = preferredAlias || backupAlias;
151039
151051
  let baseUrl;
151040
151052
  if (deploymentFlag) {
151041
151053
  const accountId = scope.team?.id || scope.user.id;
@@ -151941,7 +151953,7 @@ async function processDeployment({
151941
151953
  }
151942
151954
  if (event.type === "ready" && rollingRelease2) {
151943
151955
  output_manager_default.spinner("Releasing...", 0);
151944
- output_manager_default.stopSpinner();
151956
+ stopSpinner();
151945
151957
  return event.payload;
151946
151958
  }
151947
151959
  if (event.type === "ready" && (event.payload.checksState ? event.payload.checksState === "completed" : true) && !withFullLogs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "48.10.5",
3
+ "version": "48.10.7",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -40,8 +40,8 @@
40
40
  "@vercel/static-build": "2.8.8",
41
41
  "chokidar": "4.0.0",
42
42
  "jose": "5.9.6",
43
- "@vercel/detect-agent": "1.0.0",
44
- "@vercel/backends": "0.0.9"
43
+ "@vercel/backends": "0.0.9",
44
+ "@vercel/detect-agent": "1.0.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -85,11 +85,11 @@
85
85
  "@types/which": "3.0.0",
86
86
  "@types/write-json-file": "2.2.1",
87
87
  "@types/yauzl-promise": "2.1.0",
88
- "@vercel/client": "17.2.7",
88
+ "@vercel/client": "17.2.8",
89
89
  "@vercel/error-utils": "2.0.3",
90
90
  "@vercel/frameworks": "3.15.3",
91
- "@vercel/fs-detectors": "5.7.6",
92
- "@vercel/routing-utils": "5.2.2",
91
+ "@vercel/fs-detectors": "5.7.7",
92
+ "@vercel/routing-utils": "5.3.0",
93
93
  "@vitest/expect": "2.1.3",
94
94
  "ajv": "6.12.3",
95
95
  "alpha-sort": "2.0.1",