vercel 59.1.4 → 59.3.0

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 (96) hide show
  1. package/dist/chunks/{add-PP3PJPJV.js → add-4L46WVRT.js} +5 -5
  2. package/dist/chunks/{add-CUGPQYFW.js → add-BBWVXE2R.js} +5 -5
  3. package/dist/chunks/{add-PRG4KKYH.js → add-KOD24LEM.js} +8 -8
  4. package/dist/chunks/{build-T22GMLY6.js → build-2SX3XIRI.js} +5 -5
  5. package/dist/chunks/{chunk-XZLI27ES.js → chunk-6GWLC2IP.js} +3 -3
  6. package/dist/chunks/{chunk-SOKQBFF7.js → chunk-7GE2K2WR.js} +239 -41
  7. package/dist/chunks/{chunk-7NQLRE5V.js → chunk-7PEQVFHI.js} +1 -1
  8. package/dist/chunks/{chunk-QD5NX7RG.js → chunk-AAMJ4ZU4.js} +1 -1
  9. package/dist/chunks/{chunk-M34ZRNDQ.js → chunk-ANIKVXGZ.js} +2 -2
  10. package/dist/chunks/{chunk-DEB45ND4.js → chunk-CURHMEJX.js} +2 -2
  11. package/dist/chunks/{chunk-NM43FFV6.js → chunk-CV4S27SS.js} +0 -1
  12. package/dist/chunks/{chunk-ECCWJHC6.js → chunk-CYNB6LL4.js} +43 -36
  13. package/dist/chunks/{chunk-SQGMTRZD.js → chunk-D35JUCTC.js} +641 -461
  14. package/dist/chunks/{chunk-5DVMXOFT.js → chunk-DAA5RXUK.js} +32 -30
  15. package/dist/chunks/{chunk-CSJBZKC5.js → chunk-EG5BSAXD.js} +69 -57
  16. package/dist/chunks/{chunk-BCZFZETZ.js → chunk-G55RLNFE.js} +5 -5
  17. package/dist/chunks/{chunk-TJLBCLEX.js → chunk-J5ZEHLFM.js} +1 -0
  18. package/dist/chunks/{chunk-QCVKGY2A.js → chunk-KAYSW4CJ.js} +35 -12
  19. package/dist/chunks/{chunk-DOMLWKKZ.js → chunk-KBUCAAG6.js} +17 -20
  20. package/dist/chunks/{chunk-VE545BR3.js → chunk-KDL2L4KL.js} +42 -39
  21. package/dist/chunks/{chunk-P65EEFTR.js → chunk-KQRVZWJU.js} +1 -0
  22. package/dist/chunks/{chunk-JYEO6OJS.js → chunk-MWYQ24FO.js} +4 -3
  23. package/dist/chunks/{chunk-4JKZ7SRX.js → chunk-NN2W7WFC.js} +4 -4
  24. package/dist/chunks/{chunk-KTLFN5FV.js → chunk-OISTYQGR.js} +1 -1
  25. package/dist/chunks/{chunk-ZUVJISHS.js → chunk-P3BFTZXW.js} +2 -2
  26. package/dist/chunks/{chunk-3BU2UCGV.js → chunk-PIMIKY4X.js} +1 -1
  27. package/dist/chunks/{chunk-57G6HBJ4.js → chunk-Q6QCRFTC.js} +3 -3
  28. package/dist/chunks/{chunk-IKKUCZE7.js → chunk-QKO2DGWR.js} +3 -3
  29. package/dist/chunks/{chunk-QQ6PH4RY.js → chunk-STPH4Y62.js} +10 -0
  30. package/dist/chunks/{chunk-P2QZZ6MR.js → chunk-TVXCXIRO.js} +1 -1
  31. package/dist/chunks/{chunk-43DD2KNM.js → chunk-VTP6WIQA.js} +1114 -943
  32. package/dist/chunks/{chunk-DOAYLTBJ.js → chunk-WNS53IOA.js} +1 -1
  33. package/dist/chunks/{chunk-DAWJOQF6.js → chunk-WODLA275.js} +2 -2
  34. package/dist/chunks/{chunk-SJQEGGH7.js → chunk-XI6NJLI4.js} +1 -1
  35. package/dist/chunks/{chunk-LNVZ3T7X.js → chunk-YPPWGI3F.js} +5 -5
  36. package/dist/chunks/{chunk-TM3F7PLR.js → chunk-Z2G6SO5B.js} +3 -3
  37. package/dist/chunks/{chunk-4HI7G6KG.js → chunk-ZHRZMQGN.js} +1 -1
  38. package/dist/chunks/{clear-Z4IKUIN7.js → clear-2DMDKLWZ.js} +5 -5
  39. package/dist/chunks/{compile-vercel-config-PSVXFAZW.js → compile-vercel-config-7HZ4UN6R.js} +3 -3
  40. package/dist/chunks/{config-M5GMZ2X5.js → config-CVZ25C54.js} +5 -5
  41. package/dist/chunks/{delete-P4XIBY7T.js → delete-4LQKP5DG.js} +5 -5
  42. package/dist/chunks/{delete-5GRRDJSF.js → delete-QNAGJM6C.js} +4 -4
  43. package/dist/chunks/{disable-NT5NYVO7.js → disable-2RBFIZUB.js} +4 -4
  44. package/dist/chunks/{discard-TBNIEAJZ.js → discard-UCOSPSUU.js} +4 -4
  45. package/dist/chunks/{edit-DJ6MT6HA.js → edit-JX73BG3V.js} +6 -6
  46. package/dist/chunks/{edit-UF3D2CCH.js → edit-QSAO74S4.js} +6 -6
  47. package/dist/chunks/{enable-JTQBQMBO.js → enable-NDSB4T26.js} +4 -4
  48. package/dist/chunks/{export-OKMRGRVM.js → export-DB6BIYQJ.js} +4 -4
  49. package/dist/chunks/{image-ARUJH4H5.js → image-MKB6II6L.js} +4 -4
  50. package/dist/chunks/{import-builders-3NTMZM64.js → import-builders-FIQ7QTVG.js} +10 -9
  51. package/dist/chunks/{inspect-CHFKZKKP.js → inspect-IYRKEWTM.js} +5 -5
  52. package/dist/chunks/{inspect-PTXIBSYW.js → inspect-NY6QRX5W.js} +5 -5
  53. package/dist/chunks/{inspect-RI4K77NG.js → inspect-QWTWAYLS.js} +6 -6
  54. package/dist/chunks/{inspect-UXP2HDES.js → inspect-REJXLWLL.js} +5 -5
  55. package/dist/chunks/{inspect-5NETOGAI.js → inspect-XS2TC7TC.js} +5 -5
  56. package/dist/chunks/{list-DYCZA2VX.js → list-CDCITV4K.js} +4 -4
  57. package/dist/chunks/{list-G7LGVDAJ.js → list-PXKVKXHG.js} +6 -6
  58. package/dist/chunks/{list-ADI55WKW.js → list-VQHBVY3Q.js} +5 -5
  59. package/dist/chunks/{login-YCSIQG6B.js → login-PE4JK7A2.js} +5 -5
  60. package/dist/chunks/{ls-VIOMDUGW.js → ls-3GRHYFDM.js} +5 -5
  61. package/dist/chunks/{ls-PQFDGOJL.js → ls-DL2POAY2.js} +6 -6
  62. package/dist/chunks/{ls-EOMIQLRH.js → ls-S67TNMEG.js} +5 -5
  63. package/dist/chunks/{ls-2TKUIUK4.js → ls-SKOQOPK4.js} +5 -5
  64. package/dist/chunks/{ls-RZVTIP5U.js → ls-YHS5IEBJ.js} +5 -5
  65. package/dist/chunks/{open-JYPWOXQD.js → open-DUN3BTDH.js} +5 -5
  66. package/dist/chunks/{permissions-SGJWGEVD.js → permissions-VLIZYINB.js} +5 -5
  67. package/dist/chunks/{publish-ZUQHJAXL.js → publish-36BIJPLN.js} +4 -4
  68. package/dist/chunks/{push-XMVKG5A5.js → push-5NTQV3EC.js} +5 -5
  69. package/dist/chunks/{query-ZLJZEGZB.js → query-ONR2W7HS.js} +218 -81
  70. package/dist/chunks/{reorder-NVHDWMRU.js → reorder-YKAT4XG3.js} +4 -4
  71. package/dist/chunks/{reply-PUUPUQ3V.js → reply-DH4ZPEXT.js} +6 -6
  72. package/dist/chunks/{resolve-5U2LJVE6.js → resolve-446IVH6V.js} +5 -5
  73. package/dist/chunks/{restore-OXIUY2UI.js → restore-HA6TSOOE.js} +4 -4
  74. package/dist/chunks/{rm-BZNKJRXU.js → rm-BCPJUK2C.js} +5 -5
  75. package/dist/chunks/{rm-3IOCBNPE.js → rm-COV73VE4.js} +6 -6
  76. package/dist/chunks/{rm-Z2KYJ7XT.js → rm-EG35766L.js} +5 -5
  77. package/dist/chunks/{rm-OUI4ZB5R.js → rm-IKYJI7MP.js} +5 -5
  78. package/dist/chunks/{routes-JP2CNQ5J.js → routes-SZI2G4SE.js} +2 -2
  79. package/dist/chunks/{rule-inspect-ZBJJCDQV.js → rule-inspect-FQ2635LY.js} +6 -6
  80. package/dist/chunks/{rules-HEGAXXUN.js → rules-PBOQISWV.js} +8 -8
  81. package/dist/chunks/{schema-7GVL3BNP.js → schema-4CDJVH7T.js} +22 -12
  82. package/dist/chunks/{schema-ZYIJYA2E.js → schema-LUVFYPWN.js} +1 -1
  83. package/dist/chunks/{tags-3SCWCMNQ.js → tags-HNOL4JXL.js} +3 -3
  84. package/dist/chunks/{update-YR2GCCJN.js → update-ZIGVLUYG.js} +8 -8
  85. package/dist/commands/build/index.js +3095 -2519
  86. package/dist/commands/deploy/index.js +12 -12
  87. package/dist/commands/dev/index.js +22 -15
  88. package/dist/commands/env/index.js +8 -8
  89. package/dist/commands/link/index.js +7 -7
  90. package/dist/commands/list/index.js +5 -5
  91. package/dist/commands-bulk.js +2548 -1829
  92. package/dist/help.js +1 -1
  93. package/dist/index.js +27 -15
  94. package/dist/runtime-assets/node-preloads/next-dev-websocket.cjs +5 -1
  95. package/dist/version.mjs +1 -1
  96. package/package.json +42 -40
@@ -8,7 +8,7 @@ import {
8
8
  TelemetryClient,
9
9
  require_dist as require_dist2,
10
10
  require_graceful_fs
11
- } from "./chunk-ECCWJHC6.js";
11
+ } from "./chunk-CYNB6LL4.js";
12
12
  import {
13
13
  AGENT_REASON,
14
14
  AGENT_STATUS,
@@ -19,7 +19,7 @@ import {
19
19
  outputActionRequired,
20
20
  outputAgentError,
21
21
  shouldEmitNonInteractiveCommandError
22
- } from "./chunk-TJLBCLEX.js";
22
+ } from "./chunk-J5ZEHLFM.js";
23
23
  import {
24
24
  require_ms
25
25
  } from "./chunk-GGP5R3FU.js";
@@ -17853,16 +17853,10 @@ var require_frameworks = __commonJS({
17853
17853
  value: "N/A"
17854
17854
  }
17855
17855
  },
17856
- getOutputDirName: async () => "public",
17857
- defaultRoutes: [
17858
- {
17859
- handle: "filesystem"
17860
- },
17861
- {
17862
- src: "/(.*)",
17863
- dest: "/src/main"
17864
- }
17865
- ]
17856
+ getOutputDirName: async () => "public"
17857
+ // No `defaultRoutes`: `@vercel/rust` emits mode-specific routes. Plain
17858
+ // servers must preserve rewritten request paths, while `vercel_runtime`
17859
+ // servers retain the legacy `/src/main` fallback.
17866
17860
  },
17867
17861
  {
17868
17862
  name: "Axum",
@@ -17902,16 +17896,8 @@ var require_frameworks = __commonJS({
17902
17896
  value: "N/A"
17903
17897
  }
17904
17898
  },
17905
- getOutputDirName: async () => "public",
17906
- defaultRoutes: [
17907
- {
17908
- handle: "filesystem"
17909
- },
17910
- {
17911
- src: "/(.*)",
17912
- dest: "/src/main"
17913
- }
17914
- ]
17899
+ getOutputDirName: async () => "public"
17900
+ // Routes are emitted by `@vercel/rust` based on the selected mode.
17915
17901
  },
17916
17902
  {
17917
17903
  name: "Actix Web",
@@ -17952,16 +17938,8 @@ var require_frameworks = __commonJS({
17952
17938
  value: "N/A"
17953
17939
  }
17954
17940
  },
17955
- getOutputDirName: async () => "public",
17956
- defaultRoutes: [
17957
- {
17958
- handle: "filesystem"
17959
- },
17960
- {
17961
- src: "/(.*)",
17962
- dest: "/src/main"
17963
- }
17964
- ]
17941
+ getOutputDirName: async () => "public"
17942
+ // Routes are emitted by `@vercel/rust` based on the selected mode.
17965
17943
  },
17966
17944
  {
17967
17945
  name: "Bun",
@@ -38213,7 +38191,7 @@ var require_package = __commonJS({
38213
38191
  "../client/package.json"(exports, module) {
38214
38192
  module.exports = {
38215
38193
  name: "@vercel/client",
38216
- version: "18.2.12",
38194
+ version: "18.2.14",
38217
38195
  main: "dist/index.js",
38218
38196
  typings: "dist/index.d.ts",
38219
38197
  homepage: "https://vercel.com",
@@ -46207,6 +46185,22 @@ var require_utils9 = __commonJS({
46207
46185
  }
46208
46186
  return (0, import_ignore.default)().add(clearRelative(ignoreFile));
46209
46187
  }
46188
+ var FILEPATHMAP_VERCELIGNORE_EXCEPTIONS = [
46189
+ "node_modules",
46190
+ ".next",
46191
+ ".yarn/cache",
46192
+ ".pnp*",
46193
+ ".venv",
46194
+ "venv",
46195
+ "__pycache__",
46196
+ "/target"
46197
+ ];
46198
+ var filePathMapVercelignoreExceptions = (0, import_ignore.default)().add(
46199
+ FILEPATHMAP_VERCELIGNORE_EXCEPTIONS.join("\n")
46200
+ );
46201
+ function isFilePathMapIgnoreException(posixRel) {
46202
+ return filePathMapVercelignoreExceptions.ignores(posixRel);
46203
+ }
46210
46204
  async function buildFileTree2(path3, {
46211
46205
  isDirectory: isDirectory2,
46212
46206
  prebuilt,
@@ -46245,17 +46239,24 @@ var require_utils9 = __commonJS({
46245
46239
  for (const v of Object.values(config.filePathMap)) {
46246
46240
  const absPath = (0, import_path19.join)(path3, v);
46247
46241
  const rel = (0, import_path19.relative)(path3, absPath);
46242
+ const posixRel = rel.split(import_path19.sep).join("/");
46248
46243
  if (rel.startsWith("..") || (0, import_path19.isAbsolute)(rel)) {
46249
46244
  debug(
46250
46245
  `Ignoring "filePathMap" entry "${v}": resolves outside the deployment root`
46251
46246
  );
46252
46247
  continue;
46253
46248
  }
46254
- if (userIg && userIg.ignores(rel)) {
46255
- debug(
46256
- `Ignoring "filePathMap" entry "${v}": matched by a rule in .vercelignore/.nowignore`
46257
- );
46258
- continue;
46249
+ if (userIg && userIg.ignores(posixRel)) {
46250
+ if (isFilePathMapIgnoreException(posixRel)) {
46251
+ debug(
46252
+ `Keeping "filePathMap" entry "${v}": matches a default-ignored dependency/output path`
46253
+ );
46254
+ } else {
46255
+ debug(
46256
+ `Ignoring "filePathMap" entry "${v}": matched by a rule in .vercelignore/.nowignore`
46257
+ );
46258
+ continue;
46259
+ }
46259
46260
  }
46260
46261
  refs.add(absPath);
46261
46262
  }
@@ -58604,6 +58605,8 @@ function createDetectEntrypoint(projectRoot) {
58604
58605
  builderName = "@vercel/backends";
58605
58606
  } else if (framework === "go") {
58606
58607
  builderName = "@vercel/go";
58608
+ } else if (framework === "rust") {
58609
+ builderName = "@vercel/rust";
58607
58610
  } else {
58608
58611
  return null;
58609
58612
  }
@@ -58624,7 +58627,7 @@ function createDetectEntrypoint(projectRoot) {
58624
58627
  };
58625
58628
  }
58626
58629
  async function loadBuilderDetectEntrypoint(name, projectRoot) {
58627
- const { importBuilders } = await import("./import-builders-3NTMZM64.js");
58630
+ const { importBuilders } = await import("./import-builders-FIQ7QTVG.js");
58628
58631
  const builders = await importBuilders(/* @__PURE__ */ new Set([name]), projectRoot);
58629
58632
  const loaded = builders.get(name);
58630
58633
  if (!loaded) {
@@ -145,6 +145,7 @@ export {
145
145
  normalizeRepeatableStringFilters,
146
146
  validateIntegerRangeWithDefault,
147
147
  validateOptionalIntegerRange,
148
+ writeJsonError,
148
149
  outputError,
149
150
  handleValidationError
150
151
  };
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getResolvedOrderMetadata,
9
9
  getRollupColumnName
10
- } from "./chunk-NM43FFV6.js";
10
+ } from "./chunk-CV4S27SS.js";
11
11
  import {
12
12
  formatGranularity
13
13
  } from "./chunk-5AJPMLDV.js";
@@ -136,7 +136,8 @@ var CANONICAL_AGGREGATIONS = [
136
136
  "p75",
137
137
  "p90",
138
138
  "p95",
139
- "p99"
139
+ "p99",
140
+ "stddev"
140
141
  ];
141
142
  function isCanonicalAggregation(aggregation) {
142
143
  return CANONICAL_AGGREGATIONS.includes(aggregation);
@@ -173,7 +174,7 @@ function getDefaultCustomMetricAggregation(unit, aggregations) {
173
174
  if (aggregations?.includes("sum")) {
174
175
  return "sum";
175
176
  }
176
- return aggregations?.find(isCanonicalAggregation) ?? "sum";
177
+ return aggregations?.find(isCanonicalAggregation);
177
178
  }
178
179
 
179
180
  // src/commands/metrics/text-output.ts
@@ -6,16 +6,16 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  loginCommand
9
- } from "./chunk-SOKQBFF7.js";
9
+ } from "./chunk-7GE2K2WR.js";
10
10
  import {
11
11
  help
12
- } from "./chunk-SJQEGGH7.js";
12
+ } from "./chunk-XI6NJLI4.js";
13
13
  import {
14
14
  login
15
- } from "./chunk-VE545BR3.js";
15
+ } from "./chunk-KDL2L4KL.js";
16
16
  import {
17
17
  TelemetryClient
18
- } from "./chunk-ECCWJHC6.js";
18
+ } from "./chunk-CYNB6LL4.js";
19
19
  import {
20
20
  printError
21
21
  } from "./chunk-VAFU7DXZ.js";
@@ -8,7 +8,7 @@ import {
8
8
  formatCondition,
9
9
  formatTransform,
10
10
  isTargetTransform
11
- } from "./chunk-ZUVJISHS.js";
11
+ } from "./chunk-P3BFTZXW.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveProjectContext
9
- } from "./chunk-VE545BR3.js";
9
+ } from "./chunk-KDL2L4KL.js";
10
10
  import {
11
11
  AGENT_REASON,
12
12
  AGENT_STATUS,
13
13
  buildCommandWithYes,
14
14
  outputAgentError,
15
15
  withGlobalFlags
16
- } from "./chunk-TJLBCLEX.js";
16
+ } from "./chunk-J5ZEHLFM.js";
17
17
  import {
18
18
  printError
19
19
  } from "./chunk-VAFU7DXZ.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-2473DUBR.js";
10
10
  import {
11
11
  outputError
12
- } from "./chunk-P65EEFTR.js";
12
+ } from "./chunk-KQRVZWJU.js";
13
13
 
14
14
  // src/commands/comments/content.ts
15
15
  import { readFileSync } from "fs";
@@ -6,17 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveAlertsScope
9
- } from "./chunk-XZLI27ES.js";
9
+ } from "./chunk-6GWLC2IP.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  outputError,
13
13
  validateAllProjectMutualExclusivity
14
- } from "./chunk-P65EEFTR.js";
14
+ } from "./chunk-KQRVZWJU.js";
15
15
  import {
16
16
  AGENT_REASON,
17
17
  buildCommandWithGlobalFlags,
18
18
  outputAgentError
19
- } from "./chunk-TJLBCLEX.js";
19
+ } from "./chunk-J5ZEHLFM.js";
20
20
 
21
21
  // src/commands/alerts/rules/parse-scope.ts
22
22
  async function parseRulesFlagsAndScope(client, flags, jsonOutput, command = "alerts rules ls") {
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  isJSONObject
9
- } from "./chunk-DAWJOQF6.js";
9
+ } from "./chunk-WODLA275.js";
10
10
  import {
11
11
  getProjectByNameOrId
12
- } from "./chunk-VE545BR3.js";
12
+ } from "./chunk-KDL2L4KL.js";
13
13
  import {
14
14
  AGENT_REASON,
15
15
  outputAgentError
16
- } from "./chunk-TJLBCLEX.js";
16
+ } from "./chunk-J5ZEHLFM.js";
17
17
  import {
18
18
  ProjectNotFound,
19
19
  isAPIError
@@ -62,6 +62,7 @@ var help = () => `
62
62
  blob [cmd] Manages your Blob stores and files
63
63
  buy [cmd] Purchase Vercel products for your team
64
64
  certs [cmd] Manages your SSL certificates
65
+ changelog [cmd] Show the latest Vercel product updates
65
66
  connect [cmd] Manage connectors [beta]
66
67
  contract Show contract information for billing periods
67
68
  cron | crons [cmd] Manage cron jobs for a project [beta]
@@ -101,6 +102,7 @@ var help = () => `
101
102
 
102
103
  -h, --help Output usage information
103
104
  -v, --version Output the version number
105
+ --changelog Show the 5 latest Vercel product updates
104
106
  --cwd Current working directory
105
107
  -A ${import_chalk.default.bold.underline("FILE")}, --local-config=${import_chalk.default.bold.underline(
106
108
  "FILE"
@@ -135,6 +137,14 @@ var help = () => `
135
137
  )}
136
138
 
137
139
  ${import_chalk.default.cyan(`$ ${packageName} help list`)}
140
+
141
+ ${import_chalk.default.gray("\u2013")} Show the 5 latest Vercel product updates
142
+
143
+ ${import_chalk.default.cyan(`$ ${packageName} --changelog`)}
144
+
145
+ ${import_chalk.default.gray("\u2013")} Search Vercel product updates
146
+
147
+ ${import_chalk.default.cyan(`$ ${packageName} changelog search "AI SDK"`)}
138
148
  `;
139
149
 
140
150
  export {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  TelemetryClient
9
- } from "./chunk-ECCWJHC6.js";
9
+ } from "./chunk-CYNB6LL4.js";
10
10
 
11
11
  // src/util/telemetry/commands/routes/index.ts
12
12
  var RoutesTelemetryClient = class extends TelemetryClient {