vercel 59.7.0 → 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 (89) hide show
  1. package/dist/chunks/{add-7O4TM33A.js → add-IJZ2Q46B.js} +5 -5
  2. package/dist/chunks/{add-UVMFKSSY.js → add-KYLIIWQV.js} +2 -2
  3. package/dist/chunks/{add-UT6ZPA4F.js → add-SGSXZWCH.js} +2 -2
  4. package/dist/chunks/{build-SKKT3DIB.js → build-PKOCHFHL.js} +2 -2
  5. package/dist/chunks/{chunk-7HE63HCR.js → chunk-4KVJ2M4J.js} +148 -6
  6. package/dist/chunks/{chunk-2EH6SZRG.js → chunk-53J6IECW.js} +32 -19
  7. package/dist/chunks/{chunk-7IDPPWDN.js → chunk-5BZWQDNJ.js} +1 -1
  8. package/dist/chunks/{chunk-7KSICC3A.js → chunk-5JNGHAUT.js} +1 -1
  9. package/dist/chunks/{chunk-3PA7LXYM.js → chunk-7TYA36S5.js} +1 -1
  10. package/dist/chunks/{chunk-67IIZBBY.js → chunk-AXNMBJKD.js} +1 -1
  11. package/dist/chunks/{chunk-CBHLLOGZ.js → chunk-FNYNYZAZ.js} +3 -3
  12. package/dist/chunks/{chunk-63OX2DER.js → chunk-GRINZMFI.js} +1 -1
  13. package/dist/chunks/{chunk-2YRAWYGE.js → chunk-I526H4AS.js} +17 -0
  14. package/dist/chunks/{chunk-YJUO3EKH.js → chunk-KJBZ5ZST.js} +0 -1
  15. package/dist/chunks/{chunk-2T3IZZTJ.js → chunk-KTCVGTRQ.js} +1 -1
  16. package/dist/chunks/{chunk-WVPMR7XV.js → chunk-LCDVMLKI.js} +4 -4
  17. package/dist/chunks/{chunk-GK3RE3AC.js → chunk-MHO3EJAF.js} +2 -2
  18. package/dist/chunks/{chunk-MHCGKUI7.js → chunk-O6VHU65V.js} +19 -3
  19. package/dist/chunks/{chunk-IFNCPWH5.js → chunk-OBPBFJFP.js} +6 -7
  20. package/dist/chunks/{chunk-SSBYESJ5.js → chunk-QQ77K4QW.js} +1 -1
  21. package/dist/chunks/{chunk-NJCM5JJN.js → chunk-SRVP2UST.js} +1 -1
  22. package/dist/chunks/{chunk-XSYZDMUP.js → chunk-UTWU4DZF.js} +1 -1
  23. package/dist/chunks/{chunk-AFKB6VMO.js → chunk-VV5XULGR.js} +111 -8
  24. package/dist/chunks/{chunk-CMRZ4KI4.js → chunk-WC3XNI4B.js} +2 -2
  25. package/dist/chunks/{chunk-KD2N44NG.js → chunk-X6TBTUZZ.js} +1 -1
  26. package/dist/chunks/{chunk-DG6IMLCF.js → chunk-YLNIMGMQ.js} +3 -3
  27. package/dist/chunks/{chunk-MUMITVZP.js → chunk-Z2RKD7LL.js} +1 -1
  28. package/dist/chunks/{chunk-BQG777JE.js → chunk-Z44PATWW.js} +314 -195
  29. package/dist/chunks/{clear-X7M4WGBC.js → clear-J6TY2J3M.js} +2 -2
  30. package/dist/chunks/{compile-vercel-config-FBOZBWJC.js → compile-vercel-config-WVGNTJXO.js} +1 -1
  31. package/dist/chunks/{config-KGW667XC.js → config-3JDOCLH7.js} +5 -5
  32. package/dist/chunks/{config-RYPSCAR7.js → config-5T7XV4JE.js} +2 -2
  33. package/dist/chunks/config-validator.mjs +1 -1
  34. package/dist/chunks/{delete-VK6FTDBI.js → delete-EPPNTNEW.js} +2 -2
  35. package/dist/chunks/{delete-OXYXXPHR.js → delete-XQOAWEZV.js} +2 -2
  36. package/dist/chunks/{disable-XRJTKNX4.js → disable-U5YAPWPA.js} +2 -2
  37. package/dist/chunks/{discard-NAPSPR6Y.js → discard-OCUCCXKO.js} +2 -2
  38. package/dist/chunks/{edit-WLG4GLU3.js → edit-CD7EXAO3.js} +2 -2
  39. package/dist/chunks/{edit-34GDLPQG.js → edit-PNRGHNGQ.js} +3 -3
  40. package/dist/chunks/{enable-IDKKVXKB.js → enable-25RH2LVW.js} +2 -2
  41. package/dist/chunks/{export-MPMU3FYY.js → export-YSGEUXJW.js} +2 -2
  42. package/dist/chunks/{image-RZ2A4FWP.js → image-4ZKCR4HL.js} +3 -3
  43. package/dist/chunks/{import-builders-GZPE5N44.js → import-builders-FQ2LOIWC.js} +2 -2
  44. package/dist/chunks/{inspect-X2Y5FDKR.js → inspect-3K2EDYL6.js} +3 -3
  45. package/dist/chunks/{inspect-56S2DKPO.js → inspect-F5DJM5DL.js} +2 -2
  46. package/dist/chunks/{inspect-OOV2ORKD.js → inspect-K2NJD2AI.js} +2 -2
  47. package/dist/chunks/{inspect-KGEMHV2T.js → inspect-WRBFJUSY.js} +2 -2
  48. package/dist/chunks/{inspect-EVDBNPP4.js → inspect-ZC4GRGTE.js} +2 -2
  49. package/dist/chunks/{list-TWSOAQRB.js → list-B7C56Z7B.js} +1 -1
  50. package/dist/chunks/{list-H357CF7M.js → list-PUFYWIOF.js} +3 -3
  51. package/dist/chunks/{list-FWLSZYMO.js → list-Z6VHQQBW.js} +2 -2
  52. package/dist/chunks/{login-54OPNB5E.js → login-ZYUF7JZQ.js} +2 -2
  53. package/dist/chunks/{ls-WGIRTAVM.js → ls-2OUQUKPT.js} +2 -2
  54. package/dist/chunks/{ls-WFMTVJOO.js → ls-ALX26ARH.js} +2 -2
  55. package/dist/chunks/{ls-ZMR5RMU4.js → ls-FNOL7XTY.js} +2 -2
  56. package/dist/chunks/{ls-VDFNIR5H.js → ls-PRY6OV4B.js} +3 -3
  57. package/dist/chunks/{ls-DU3S2GBJ.js → ls-SQRTT5RH.js} +2 -2
  58. package/dist/chunks/{ls-6JHFSJBJ.js → ls-TBBLZ766.js} +2 -2
  59. package/dist/chunks/{open-RCSCNKHF.js → open-673AJXYY.js} +2 -2
  60. package/dist/chunks/{permissions-XNN37R4N.js → permissions-B6SFNLN4.js} +4 -4
  61. package/dist/chunks/{publish-PLXEACYY.js → publish-TPJHZ2PJ.js} +2 -2
  62. package/dist/chunks/{push-EFYSB52Q.js → push-3WD5IPXP.js} +2 -2
  63. package/dist/chunks/{query-EKTXDOL7.js → query-ZXOJQZ7G.js} +1 -1
  64. package/dist/chunks/{reorder-OSA7D2RG.js → reorder-SUFOQGPC.js} +2 -2
  65. package/dist/chunks/{reply-6M2IYKLK.js → reply-YOVUA6ZF.js} +2 -2
  66. package/dist/chunks/{resolve-MCX5STKN.js → resolve-OQ7P74JY.js} +2 -2
  67. package/dist/chunks/{restore-52OEP3NL.js → restore-BD5XJOE7.js} +2 -2
  68. package/dist/chunks/{rm-2VAJFK25.js → rm-4KAI42EX.js} +2 -2
  69. package/dist/chunks/{rm-IYEDZOMN.js → rm-4UIILZLP.js} +2 -2
  70. package/dist/chunks/{rm-QW35WHSK.js → rm-5TY3QJUZ.js} +2 -2
  71. package/dist/chunks/{rm-TXV4GB4L.js → rm-EKVIZG2N.js} +3 -3
  72. package/dist/chunks/{rm-4BJN2LJX.js → rm-XAMQUW3J.js} +3 -3
  73. package/dist/chunks/{rule-inspect-WOBAN3Y2.js → rule-inspect-XZZE54SW.js} +3 -3
  74. package/dist/chunks/{rules-CUJRAZYO.js → rules-SF5FBWFF.js} +6 -6
  75. package/dist/chunks/{schema-VCGEJAOG.js → schema-3HRYA6AT.js} +1 -1
  76. package/dist/chunks/{set-2QSXMDVF.js → set-T4IYLXET.js} +3 -3
  77. package/dist/chunks/{tags-NHX2VQ7E.js → tags-EZKT46VN.js} +2 -2
  78. package/dist/chunks/{update-EOHXTT4N.js → update-OE7Y2J5I.js} +5 -5
  79. package/dist/commands/build/index.js +509 -66
  80. package/dist/commands/deploy/index.js +8 -8
  81. package/dist/commands/dev/index.js +20 -9
  82. package/dist/commands/env/index.js +4 -4
  83. package/dist/commands/link/index.js +3 -3
  84. package/dist/commands/list/index.js +3 -3
  85. package/dist/commands-bulk.js +2690 -1850
  86. package/dist/help.js +1 -1
  87. package/dist/index.js +9 -9
  88. package/dist/version.mjs +1 -1
  89. package/package.json +49 -49
@@ -7,14 +7,14 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getUpdateCommandInfo,
9
9
  isGlobal
10
- } from "./chunk-2EH6SZRG.js";
10
+ } from "./chunk-53J6IECW.js";
11
11
  import {
12
12
  progress,
13
13
  require_ci_info
14
- } from "./chunk-DG6IMLCF.js";
14
+ } from "./chunk-YLNIMGMQ.js";
15
15
  import {
16
16
  writeToConfigFile
17
- } from "./chunk-SSBYESJ5.js";
17
+ } from "./chunk-QQ77K4QW.js";
18
18
  import {
19
19
  getGlobalPathConfig
20
20
  } from "./chunk-AINIBIP4.js";
@@ -24,19 +24,19 @@ import {
24
24
  import {
25
25
  apiCommand,
26
26
  listSubcommand4 as listSubcommand
27
- } from "./chunk-7HE63HCR.js";
27
+ } from "./chunk-4KVJ2M4J.js";
28
28
  import {
29
29
  require_semver
30
30
  } from "./chunk-IB5L4LKZ.js";
31
31
  import {
32
32
  help
33
- } from "./chunk-2YRAWYGE.js";
33
+ } from "./chunk-I526H4AS.js";
34
34
  import {
35
35
  require_chownr,
36
36
  require_mkdirp,
37
37
  require_pump,
38
38
  require_tar_stream
39
- } from "./chunk-BQG777JE.js";
39
+ } from "./chunk-Z44PATWW.js";
40
40
  import {
41
41
  TelemetryClient,
42
42
  getInstallRoot,
@@ -3475,7 +3475,6 @@ export {
3475
3475
  installAndLinkPrBinary,
3476
3476
  listInstalledVersions,
3477
3477
  getLinkedVersion,
3478
- isLinkedToPrBuild,
3479
3478
  setPinnedVersion,
3480
3479
  getPinnedVersion,
3481
3480
  getPrBuildSha,
@@ -37,7 +37,7 @@ import {
37
37
  useKeypress,
38
38
  usePrefix,
39
39
  useState
40
- } from "./chunk-BQG777JE.js";
40
+ } from "./chunk-Z44PATWW.js";
41
41
  import {
42
42
  require_load_json_file
43
43
  } from "./chunk-XNFHNTS2.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  detectExplicitScope,
15
15
  resolveProjectContext
16
- } from "./chunk-BQG777JE.js";
16
+ } from "./chunk-Z44PATWW.js";
17
17
  import {
18
18
  AGENT_REASON,
19
19
  AGENT_STATUS,
@@ -20,7 +20,7 @@ import {
20
20
  getLinkedProject,
21
21
  getProjectByNameOrId,
22
22
  getScope
23
- } from "./chunk-BQG777JE.js";
23
+ } from "./chunk-Z44PATWW.js";
24
24
  import {
25
25
  AGENT_REASON,
26
26
  buildCommandWithGlobalFlags,
@@ -9,7 +9,7 @@ import {
9
9
  require_dist2 as require_dist3,
10
10
  require_dist4,
11
11
  require_lib
12
- } from "./chunk-BQG777JE.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
  });
@@ -10613,6 +10712,7 @@ var require_write_build_result = __commonJS({
10613
10712
  const architecture = functionConfiguration?.architecture ?? containerImage.architecture;
10614
10713
  const memory = functionConfiguration?.memory ?? containerImage.memory;
10615
10714
  const maxDuration = functionConfiguration?.maxDuration ?? containerImage.maxDuration;
10715
+ const affinity = functionConfiguration?.affinity ?? containerImage.affinity;
10616
10716
  const maxConcurrency = functionConfiguration?.maxConcurrency ?? containerImage.maxConcurrency;
10617
10717
  const regions = functionConfiguration?.regions ?? containerImage.regions;
10618
10718
  const functionFailoverRegions = functionConfiguration?.functionFailoverRegions ?? containerImage.functionFailoverRegions;
@@ -10629,6 +10729,7 @@ var require_write_build_result = __commonJS({
10629
10729
  ...architecture !== void 0 ? { architecture } : {},
10630
10730
  ...memory !== void 0 ? { memory } : {},
10631
10731
  ...maxDuration !== void 0 ? { maxDuration } : {},
10732
+ ...affinity !== void 0 ? { affinity } : {},
10632
10733
  ...maxConcurrency !== void 0 ? { maxConcurrency } : {},
10633
10734
  ...regions !== void 0 ? { regions } : {},
10634
10735
  ...functionFailoverRegions !== void 0 ? { functionFailoverRegions } : {},
@@ -10698,6 +10799,7 @@ var require_write_build_result = __commonJS({
10698
10799
  const architecture = functionConfiguration?.architecture ?? lambda.architecture;
10699
10800
  const memory = functionConfiguration?.memory ?? lambda.memory;
10700
10801
  const maxDuration = functionConfiguration?.maxDuration ?? lambda.maxDuration;
10802
+ const affinity = functionConfiguration?.affinity ?? lambda.affinity;
10701
10803
  const maxConcurrency = functionConfiguration?.maxConcurrency ?? lambda.maxConcurrency;
10702
10804
  const regions = functionConfiguration?.regions ?? lambda.regions;
10703
10805
  const functionFailoverRegions = functionConfiguration?.functionFailoverRegions ?? lambda.functionFailoverRegions;
@@ -10709,6 +10811,7 @@ var require_write_build_result = __commonJS({
10709
10811
  architecture,
10710
10812
  memory,
10711
10813
  maxDuration,
10814
+ affinity,
10712
10815
  maxConcurrency,
10713
10816
  regions,
10714
10817
  functionFailoverRegions,
@@ -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-SSBYESJ5.js";
9
+ } from "./chunk-QQ77K4QW.js";
10
10
  import {
11
11
  getProjectByNameOrId
12
- } from "./chunk-BQG777JE.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-BQG777JE.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-7HE63HCR.js";
9
+ } from "./chunk-4KVJ2M4J.js";
10
10
  import {
11
11
  help
12
- } from "./chunk-2YRAWYGE.js";
12
+ } from "./chunk-I526H4AS.js";
13
13
  import {
14
14
  login
15
- } from "./chunk-BQG777JE.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-2T3IZZTJ.js";
11
+ } from "./chunk-KTCVGTRQ.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-QFAS4OVW.js";