vercel 59.9.1 → 59.10.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 (88) hide show
  1. package/dist/chunks/{add-QZ5FW7LT.js → add-IJZ2Q46B.js} +5 -5
  2. package/dist/chunks/{add-DGK2A56E.js → add-KYLIIWQV.js} +2 -2
  3. package/dist/chunks/{add-6YKY5LGR.js → add-SGSXZWCH.js} +2 -2
  4. package/dist/chunks/{build-YFUXHSMU.js → build-PKOCHFHL.js} +2 -2
  5. package/dist/chunks/{chunk-LDZFKXIR.js → chunk-4KVJ2M4J.js} +143 -5
  6. package/dist/chunks/{chunk-HK2IYHVR.js → chunk-53J6IECW.js} +32 -19
  7. package/dist/chunks/{chunk-62XYUSRS.js → chunk-5BZWQDNJ.js} +1 -1
  8. package/dist/chunks/{chunk-3E62ATUY.js → chunk-5JNGHAUT.js} +1 -1
  9. package/dist/chunks/{chunk-I7ZVTKXM.js → chunk-7TYA36S5.js} +1 -1
  10. package/dist/chunks/{chunk-QWOCOZMS.js → chunk-AXNMBJKD.js} +1 -1
  11. package/dist/chunks/{chunk-PGTGT7AU.js → chunk-FNYNYZAZ.js} +2 -2
  12. package/dist/chunks/{chunk-O26N2UPI.js → chunk-GGPE5377.js} +1 -1
  13. package/dist/chunks/{chunk-FEQJSISH.js → chunk-GRINZMFI.js} +1 -1
  14. package/dist/chunks/{chunk-XN75ARAD.js → chunk-KTCVGTRQ.js} +1 -1
  15. package/dist/chunks/{chunk-H43VTKRO.js → chunk-LCDVMLKI.js} +4 -4
  16. package/dist/chunks/{chunk-FME4CIZL.js → chunk-MHO3EJAF.js} +2 -2
  17. package/dist/chunks/{chunk-2TXLG52H.js → chunk-O6VHU65V.js} +1 -1
  18. package/dist/chunks/{chunk-LD3Q3MUI.js → chunk-OBPBFJFP.js} +5 -6
  19. package/dist/chunks/{chunk-52P3DIMH.js → chunk-QQ77K4QW.js} +1 -1
  20. package/dist/chunks/{chunk-7PMXNOZH.js → chunk-SRVP2UST.js} +1 -1
  21. package/dist/chunks/{chunk-T3MRP74K.js → chunk-UTWU4DZF.js} +1 -1
  22. package/dist/chunks/{chunk-IWNFDR3C.js → chunk-VV5XULGR.js} +107 -8
  23. package/dist/chunks/{chunk-PIFTX5CY.js → chunk-WC3XNI4B.js} +2 -2
  24. package/dist/chunks/{chunk-ZCAFRSCD.js → chunk-X6TBTUZZ.js} +1 -1
  25. package/dist/chunks/{chunk-22GK226I.js → chunk-YLNIMGMQ.js} +2 -2
  26. package/dist/chunks/{chunk-DSBOE2OV.js → chunk-Z2RKD7LL.js} +1 -1
  27. package/dist/chunks/{chunk-OHQJEOP7.js → chunk-Z44PATWW.js} +4 -4
  28. package/dist/chunks/{clear-LHNLYPZB.js → clear-J6TY2J3M.js} +2 -2
  29. package/dist/chunks/{compile-vercel-config-6KPIBWNU.js → compile-vercel-config-WVGNTJXO.js} +1 -1
  30. package/dist/chunks/{config-CNP7P3VD.js → config-3JDOCLH7.js} +4 -4
  31. package/dist/chunks/{config-UETLVP5G.js → config-5T7XV4JE.js} +2 -2
  32. package/dist/chunks/config-validator.mjs +1 -1
  33. package/dist/chunks/{constants-WEQVJSYS.js → constants-YMCRE6IG.js} +1 -1
  34. package/dist/chunks/{delete-MB7H2LWR.js → delete-EPPNTNEW.js} +2 -2
  35. package/dist/chunks/{delete-BYCZJBHH.js → delete-XQOAWEZV.js} +2 -2
  36. package/dist/chunks/{disable-OCDW6U2Q.js → disable-U5YAPWPA.js} +2 -2
  37. package/dist/chunks/{discard-DWPG5UX5.js → discard-OCUCCXKO.js} +2 -2
  38. package/dist/chunks/{edit-ATX4K4OL.js → edit-CD7EXAO3.js} +2 -2
  39. package/dist/chunks/{edit-NOZXPAV3.js → edit-PNRGHNGQ.js} +3 -3
  40. package/dist/chunks/{enable-BO5DALIP.js → enable-25RH2LVW.js} +2 -2
  41. package/dist/chunks/{export-RS6X5DZW.js → export-YSGEUXJW.js} +2 -2
  42. package/dist/chunks/{image-QCNVSQFC.js → image-4ZKCR4HL.js} +3 -3
  43. package/dist/chunks/{import-builders-H4VASUQQ.js → import-builders-FQ2LOIWC.js} +2 -2
  44. package/dist/chunks/{inspect-BOLFZZBM.js → inspect-3K2EDYL6.js} +3 -3
  45. package/dist/chunks/{inspect-LZUSSUNE.js → inspect-F5DJM5DL.js} +2 -2
  46. package/dist/chunks/{inspect-HHXFMDN2.js → inspect-K2NJD2AI.js} +2 -2
  47. package/dist/chunks/{inspect-XXHIV73A.js → inspect-WRBFJUSY.js} +2 -2
  48. package/dist/chunks/{inspect-GPLZZEW2.js → inspect-ZC4GRGTE.js} +2 -2
  49. package/dist/chunks/{list-H7ED7LCU.js → list-B7C56Z7B.js} +1 -1
  50. package/dist/chunks/{list-XDRILJOZ.js → list-PUFYWIOF.js} +3 -3
  51. package/dist/chunks/{list-THFMP23I.js → list-Z6VHQQBW.js} +2 -2
  52. package/dist/chunks/{login-6KR5DCYM.js → login-ZYUF7JZQ.js} +2 -2
  53. package/dist/chunks/{ls-5QFIXKF3.js → ls-2OUQUKPT.js} +2 -2
  54. package/dist/chunks/{ls-LXVF34KZ.js → ls-ALX26ARH.js} +2 -2
  55. package/dist/chunks/{ls-GRY6G2OR.js → ls-FNOL7XTY.js} +2 -2
  56. package/dist/chunks/{ls-5RGCKNYB.js → ls-PRY6OV4B.js} +3 -3
  57. package/dist/chunks/{ls-PKN53PLB.js → ls-SQRTT5RH.js} +2 -2
  58. package/dist/chunks/{ls-CBFHIORN.js → ls-TBBLZ766.js} +2 -2
  59. package/dist/chunks/{open-Q7GEQR5J.js → open-673AJXYY.js} +2 -2
  60. package/dist/chunks/{permissions-6SA56V2A.js → permissions-B6SFNLN4.js} +4 -4
  61. package/dist/chunks/{publish-TYGP2WTZ.js → publish-TPJHZ2PJ.js} +2 -2
  62. package/dist/chunks/{push-5KTXEM2H.js → push-3WD5IPXP.js} +2 -2
  63. package/dist/chunks/{query-DSYDUL7N.js → query-ZXOJQZ7G.js} +1 -1
  64. package/dist/chunks/{reorder-BEQAMXC3.js → reorder-SUFOQGPC.js} +2 -2
  65. package/dist/chunks/{reply-GSQ5PVE4.js → reply-YOVUA6ZF.js} +2 -2
  66. package/dist/chunks/{resolve-AG4SS62T.js → resolve-OQ7P74JY.js} +2 -2
  67. package/dist/chunks/{restore-LARYR55K.js → restore-BD5XJOE7.js} +2 -2
  68. package/dist/chunks/{rm-F5SIKHU2.js → rm-4KAI42EX.js} +2 -2
  69. package/dist/chunks/{rm-FPAFEN2E.js → rm-4UIILZLP.js} +2 -2
  70. package/dist/chunks/{rm-FG63ON57.js → rm-5TY3QJUZ.js} +2 -2
  71. package/dist/chunks/{rm-GPHZ3GID.js → rm-EKVIZG2N.js} +3 -3
  72. package/dist/chunks/{rm-ZKG56ZEW.js → rm-XAMQUW3J.js} +2 -2
  73. package/dist/chunks/{rule-inspect-JS4BK6GZ.js → rule-inspect-XZZE54SW.js} +3 -3
  74. package/dist/chunks/{rules-SMIGLNUR.js → rules-SF5FBWFF.js} +6 -6
  75. package/dist/chunks/{schema-FRSEAOYM.js → schema-3HRYA6AT.js} +1 -1
  76. package/dist/chunks/{set-E46SNNNI.js → set-T4IYLXET.js} +2 -2
  77. package/dist/chunks/{tags-CMBXR3FL.js → tags-EZKT46VN.js} +2 -2
  78. package/dist/chunks/{update-M5WXFGQ4.js → update-OE7Y2J5I.js} +5 -5
  79. package/dist/commands/build/index.js +505 -63
  80. package/dist/commands/deploy/index.js +7 -7
  81. package/dist/commands/dev/index.js +6 -6
  82. package/dist/commands/env/index.js +3 -3
  83. package/dist/commands/link/index.js +2 -2
  84. package/dist/commands/list/index.js +2 -2
  85. package/dist/commands-bulk.js +2669 -1841
  86. package/dist/index.js +9 -9
  87. package/dist/version.mjs +1 -1
  88. package/package.json +50 -50
@@ -9,7 +9,7 @@ import {
9
9
  require_dist2 as require_dist3,
10
10
  require_dist4,
11
11
  require_lib
12
- } from "./chunk-OHQJEOP7.js";
12
+ } from "./chunk-Z44PATWW.js";
13
13
  import {
14
14
  output_manager_default,
15
15
  require_dist
@@ -8058,13 +8058,22 @@ var require_merge = __commonJS({
8058
8058
  merge: () => merge
8059
8059
  });
8060
8060
  module.exports = __toCommonJS(merge_exports);
8061
- var import_path = __require("path");
8061
+ var import_node_path = __require("path");
8062
+ var import_promises = __require("fs/promises");
8062
8063
  var import_error_utils = require_dist();
8063
8064
  var import_fs_extra = require_lib();
8064
- async function merge(source, destination, ignoreFilter, sourceRoot) {
8065
+ var mergeQueue = Promise.resolve();
8066
+ function merge(source, destination, ignoreFilter, sourceRoot) {
8067
+ const run = () => mergeImpl(source, destination, ignoreFilter, sourceRoot);
8068
+ const result = mergeQueue.then(run, run);
8069
+ mergeQueue = result.catch(() => {
8070
+ });
8071
+ return result;
8072
+ }
8073
+ async function mergeImpl(source, destination, ignoreFilter, sourceRoot) {
8065
8074
  const root = sourceRoot || source;
8066
8075
  if (ignoreFilter) {
8067
- const relPath = (0, import_path.relative)(root, source);
8076
+ const relPath = (0, import_node_path.relative)(root, source);
8068
8077
  if (relPath && !ignoreFilter(relPath)) {
8069
8078
  await (0, import_fs_extra.remove)(source);
8070
8079
  return;
@@ -8075,7 +8084,7 @@ var require_merge = __commonJS({
8075
8084
  );
8076
8085
  if ((0, import_error_utils.isErrnoException)(destStat)) {
8077
8086
  if (destStat.code === "ENOENT") {
8078
- await (0, import_fs_extra.move)(source, destination);
8087
+ await publishNew(source, destination, ignoreFilter, root);
8079
8088
  return;
8080
8089
  }
8081
8090
  throw destStat;
@@ -8090,15 +8099,105 @@ var require_merge = __commonJS({
8090
8099
  } else {
8091
8100
  await Promise.all(
8092
8101
  contents.map(
8093
- (name) => merge((0, import_path.join)(source, name), (0, import_path.join)(destination, name), ignoreFilter, root)
8102
+ (name) => mergeImpl(
8103
+ (0, import_node_path.join)(source, name),
8104
+ (0, import_node_path.join)(destination, name),
8105
+ ignoreFilter,
8106
+ root
8107
+ )
8094
8108
  )
8095
8109
  );
8096
8110
  await (0, import_fs_extra.rmdir)(source);
8097
8111
  return;
8098
8112
  }
8099
8113
  }
8100
- await (0, import_fs_extra.remove)(destination);
8101
- await (0, import_fs_extra.move)(source, destination);
8114
+ await overwrite(source, destination, ignoreFilter, root);
8115
+ }
8116
+ async function publishNew(source, destination, ignoreFilter, root) {
8117
+ let renameError;
8118
+ try {
8119
+ try {
8120
+ await (0, import_promises.rename)(source, destination);
8121
+ return;
8122
+ } catch (err) {
8123
+ if ((0, import_error_utils.isErrnoException)(err) && err.code === "ENOENT") {
8124
+ await (0, import_fs_extra.mkdirp)((0, import_node_path.dirname)(destination));
8125
+ await (0, import_promises.rename)(source, destination);
8126
+ return;
8127
+ }
8128
+ throw err;
8129
+ }
8130
+ } catch (err) {
8131
+ renameError = err;
8132
+ }
8133
+ if ((0, import_error_utils.isErrnoException)(renameError) && renameError.code === "EXDEV") {
8134
+ const tmp = tmpName(destination);
8135
+ try {
8136
+ await (0, import_fs_extra.move)(source, tmp);
8137
+ } catch (err) {
8138
+ await (0, import_fs_extra.remove)(tmp).catch(() => void 0);
8139
+ throw err;
8140
+ }
8141
+ try {
8142
+ await (0, import_promises.rename)(tmp, destination);
8143
+ } catch {
8144
+ const relPrefix = (0, import_node_path.relative)(root, source);
8145
+ try {
8146
+ await mergeImpl(
8147
+ tmp,
8148
+ destination,
8149
+ ignoreFilter && ((path) => ignoreFilter((0, import_node_path.join)(relPrefix, path))),
8150
+ tmp
8151
+ );
8152
+ } catch (err) {
8153
+ await (0, import_fs_extra.remove)(tmp).catch(() => void 0);
8154
+ throw err;
8155
+ }
8156
+ }
8157
+ return;
8158
+ }
8159
+ const destinationAppeared = await (0, import_fs_extra.stat)(destination).then(
8160
+ () => true,
8161
+ () => false
8162
+ );
8163
+ if (!destinationAppeared) {
8164
+ throw renameError;
8165
+ }
8166
+ await mergeImpl(source, destination, ignoreFilter, root);
8167
+ }
8168
+ async function overwrite(source, destination, ignoreFilter, root) {
8169
+ const tmp = tmpName(destination);
8170
+ try {
8171
+ await (0, import_fs_extra.move)(source, tmp);
8172
+ } catch (err) {
8173
+ await (0, import_fs_extra.remove)(tmp).catch(() => void 0);
8174
+ throw err;
8175
+ }
8176
+ try {
8177
+ await (0, import_promises.rename)(tmp, destination);
8178
+ return;
8179
+ } catch {
8180
+ }
8181
+ try {
8182
+ await (0, import_fs_extra.remove)(destination);
8183
+ await (0, import_promises.rename)(tmp, destination);
8184
+ } catch {
8185
+ const relPrefix = (0, import_node_path.relative)(root, source);
8186
+ try {
8187
+ await mergeImpl(
8188
+ tmp,
8189
+ destination,
8190
+ ignoreFilter && ((path) => ignoreFilter((0, import_node_path.join)(relPrefix, path))),
8191
+ tmp
8192
+ );
8193
+ } catch (err) {
8194
+ await (0, import_fs_extra.remove)(tmp).catch(() => void 0);
8195
+ throw err;
8196
+ }
8197
+ }
8198
+ }
8199
+ function tmpName(destination) {
8200
+ return `${destination}.tmp-${process.pid}-${Math.random().toString(36).slice(2)}`;
8102
8201
  }
8103
8202
  }
8104
8203
  });
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  isJSONObject
9
- } from "./chunk-52P3DIMH.js";
9
+ } from "./chunk-QQ77K4QW.js";
10
10
  import {
11
11
  getProjectByNameOrId
12
- } from "./chunk-OHQJEOP7.js";
12
+ } from "./chunk-Z44PATWW.js";
13
13
  import {
14
14
  AGENT_REASON,
15
15
  outputAgentError
@@ -11,7 +11,7 @@ import {
11
11
  getLinkedProject,
12
12
  getProjectByNameOrId,
13
13
  getScope
14
- } from "./chunk-OHQJEOP7.js";
14
+ } from "./chunk-Z44PATWW.js";
15
15
  import {
16
16
  AGENT_REASON,
17
17
  buildCommandWithGlobalFlags,
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  loginCommand
9
- } from "./chunk-LDZFKXIR.js";
9
+ } from "./chunk-4KVJ2M4J.js";
10
10
  import {
11
11
  help
12
12
  } from "./chunk-I526H4AS.js";
13
13
  import {
14
14
  login
15
- } from "./chunk-OHQJEOP7.js";
15
+ } from "./chunk-Z44PATWW.js";
16
16
  import {
17
17
  TelemetryClient
18
18
  } from "./chunk-XNFHNTS2.js";
@@ -8,7 +8,7 @@ import {
8
8
  formatCondition,
9
9
  formatTransform,
10
10
  isTargetTransform
11
- } from "./chunk-XN75ARAD.js";
11
+ } from "./chunk-KTCVGTRQ.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-QFAS4OVW.js";
@@ -38095,7 +38095,7 @@ var require_package = __commonJS({
38095
38095
  "../client/package.json"(exports, module) {
38096
38096
  module.exports = {
38097
38097
  name: "@vercel/client",
38098
- version: "18.2.21",
38098
+ version: "18.2.22",
38099
38099
  main: "dist/index.js",
38100
38100
  typings: "dist/index.d.ts",
38101
38101
  homepage: "https://vercel.com",
@@ -45743,9 +45743,9 @@ var require_out4 = __commonJS({
45743
45743
  }
45744
45744
  });
45745
45745
 
45746
- // ../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@opentelemetry+api@1.9.1_react-dom@18.3.1_reac_29d9de4a2668e6f26ed52d105d4b310d/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs
45746
+ // ../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@babel+core@7.24.4_@opentelemetry+api@1.9.1_re_da2296f8f7c7a913c72d0bad33394113/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs
45747
45747
  var require_utils8 = __commonJS({
45748
- "../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@opentelemetry+api@1.9.1_react-dom@18.3.1_reac_29d9de4a2668e6f26ed52d105d4b310d/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs"(exports, module) {
45748
+ "../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@babel+core@7.24.4_@opentelemetry+api@1.9.1_re_da2296f8f7c7a913c72d0bad33394113/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs"(exports, module) {
45749
45749
  "use strict";
45750
45750
  var __create = Object.create;
45751
45751
  var __defProp = Object.defineProperty;
@@ -59177,7 +59177,7 @@ function createDetectEntrypoint(projectRoot) {
59177
59177
  };
59178
59178
  }
59179
59179
  async function loadBuilderDetectEntrypoint(name, projectRoot) {
59180
- const { importBuilders } = await import("./import-builders-H4VASUQQ.js");
59180
+ const { importBuilders } = await import("./import-builders-FQ2LOIWC.js");
59181
59181
  const builders = await importBuilders(/* @__PURE__ */ new Set([name]), projectRoot);
59182
59182
  const loaded = builders.get(name);
59183
59183
  if (!loaded) {
@@ -13,7 +13,7 @@ import {
13
13
  requireVcrRepository,
14
14
  resolveVcrScope,
15
15
  validateVcrJsonOutput
16
- } from "./chunk-T3MRP74K.js";
16
+ } from "./chunk-UTWU4DZF.js";
17
17
  import "./chunk-WNAKOXGK.js";
18
18
  import "./chunk-3T7WSWZH.js";
19
19
  import "./chunk-KXDWXXJH.js";
@@ -21,7 +21,7 @@ import {
21
21
  permissionsClearSubcommand
22
22
  } from "./chunk-EZKW5YJ2.js";
23
23
  import "./chunk-5XECIWME.js";
24
- import "./chunk-OHQJEOP7.js";
24
+ import "./chunk-Z44PATWW.js";
25
25
  import "./chunk-FXD67VN5.js";
26
26
  import "./chunk-XNFHNTS2.js";
27
27
  import {
@@ -11,7 +11,7 @@ import {
11
11
  findSourceVercelConfigFile,
12
12
  getVercelConfigPath,
13
13
  normalizeConfig
14
- } from "./chunk-OHQJEOP7.js";
14
+ } from "./chunk-Z44PATWW.js";
15
15
  import "./chunk-FXD67VN5.js";
16
16
  import "./chunk-XNFHNTS2.js";
17
17
  import "./chunk-NGGLYKNU.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YPQSDAEW.js";
10
10
  import {
11
11
  getCommandAliases
12
- } from "./chunk-LDZFKXIR.js";
12
+ } from "./chunk-4KVJ2M4J.js";
13
13
  import {
14
14
  tracesCommand
15
15
  } from "./chunk-7Q45OKWR.js";
@@ -106,13 +106,13 @@ async function config(client, { args, needHelp, subcommandOriginal, telemetry })
106
106
  switch (action) {
107
107
  case "ls":
108
108
  configTelemetry.trackCliSubcommandLs(actionOriginal);
109
- return (await import("./ls-GRY6G2OR.js")).default(client);
109
+ return (await import("./ls-FNOL7XTY.js")).default(client);
110
110
  case "set":
111
111
  configTelemetry.trackCliSubcommandSet(actionOriginal);
112
- return (await import("./set-E46SNNNI.js")).default(client);
112
+ return (await import("./set-T4IYLXET.js")).default(client);
113
113
  case "rm":
114
114
  configTelemetry.trackCliSubcommandRm(actionOriginal);
115
- return (await import("./rm-ZKG56ZEW.js")).default(client);
115
+ return (await import("./rm-XAMQUW3J.js")).default(client);
116
116
  default:
117
117
  return printHelp(tracesConfigCommand, false);
118
118
  }
@@ -14,7 +14,7 @@ import {
14
14
  resolveVcrScope,
15
15
  validateVcrChoice,
16
16
  validateVcrJsonOutput
17
- } from "./chunk-T3MRP74K.js";
17
+ } from "./chunk-UTWU4DZF.js";
18
18
  import "./chunk-WNAKOXGK.js";
19
19
  import {
20
20
  outputError
@@ -27,7 +27,7 @@ import "./chunk-EZKW5YJ2.js";
27
27
  import "./chunk-NFU4XJIR.js";
28
28
  import "./chunk-3HZLXCVL.js";
29
29
  import "./chunk-5XECIWME.js";
30
- import "./chunk-OHQJEOP7.js";
30
+ import "./chunk-Z44PATWW.js";
31
31
  import "./chunk-FXD67VN5.js";
32
32
  import "./chunk-XNFHNTS2.js";
33
33
  import {