vercel 50.41.0 → 50.42.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 (43) hide show
  1. package/dist/chunks/{chunk-V34CVZ57.js → chunk-2DSA4PXQ.js} +1 -1
  2. package/dist/chunks/{chunk-JLG2G4QX.js → chunk-6Z4VWCUS.js} +103 -2
  3. package/dist/chunks/{chunk-TEJWXSIW.js → chunk-7N2Y2JC6.js} +2 -2
  4. package/dist/chunks/{chunk-CZDMSM5L.js → chunk-BUPLDSPZ.js} +3 -3
  5. package/dist/chunks/{chunk-J7HJHD6D.js → chunk-DWS7HHYM.js} +1 -1
  6. package/dist/chunks/{chunk-5DS2KQFQ.js → chunk-EXYNQSR4.js} +2 -2
  7. package/dist/chunks/{chunk-K3GPD72H.js → chunk-FZTLIQNB.js} +1 -1
  8. package/dist/chunks/{chunk-S5GAFVRR.js → chunk-GPDLM3LO.js} +1 -1
  9. package/dist/chunks/{chunk-RXNZNJ37.js → chunk-GZWSWIV2.js} +5 -5
  10. package/dist/chunks/{chunk-YNTDMBOE.js → chunk-HODUFQIC.js} +12 -3
  11. package/dist/chunks/{chunk-HH4JLNPA.js → chunk-JAXJRRCF.js} +1 -1
  12. package/dist/chunks/{chunk-M3WH7C2Z.js → chunk-JBWWOPE2.js} +4 -4
  13. package/dist/chunks/{chunk-7UXVJVY7.js → chunk-K4DMJBS6.js} +183 -964
  14. package/dist/chunks/{chunk-UWKGNLZB.js → chunk-LFD4G5TR.js} +1 -1
  15. package/dist/chunks/{chunk-I2XIZ2I5.js → chunk-VXEPP3Q2.js} +1 -1
  16. package/dist/chunks/{chunk-URLOPZNH.js → chunk-WDMC6E6B.js} +1 -1
  17. package/dist/chunks/{chunk-E6MNDN35.js → chunk-WFPWPAOL.js} +3 -3
  18. package/dist/chunks/{chunk-JZW2NDIU.js → chunk-WHT2OU3Y.js} +1 -1
  19. package/dist/chunks/{chunk-6TZS66I4.js → chunk-YWKF5RLK.js} +14 -4
  20. package/dist/chunks/{compile-vercel-config-GNWLETKI.js → compile-vercel-config-Z4KZLLGU.js} +1 -1
  21. package/dist/chunks/{delete-4EE2EJ2L.js → delete-4KBIAO4H.js} +2 -2
  22. package/dist/chunks/{disable-XZXZTU2J.js → disable-YZIHOK45.js} +2 -2
  23. package/dist/chunks/{discard-MVYVGMNG.js → discard-YEZIKRW3.js} +2 -2
  24. package/dist/chunks/{edit-J67G7FQQ.js → edit-XN7K2LGT.js} +3 -3
  25. package/dist/chunks/{enable-NZLPSH32.js → enable-7RMOQCA7.js} +2 -2
  26. package/dist/chunks/{export-ONEPEKIE.js → export-STD26SRF.js} +2 -2
  27. package/dist/chunks/{list-LHL5Z2LJ.js → list-7FLSUFTH.js} +2 -2
  28. package/dist/chunks/{list-XTMDLJ6T.js → list-POMF3RFM.js} +2 -2
  29. package/dist/chunks/{publish-WDOMVWUC.js → publish-ACW7QRZO.js} +2 -2
  30. package/dist/chunks/{query-A2TQSSDJ.js → query-S3HEFFKI.js} +2 -2
  31. package/dist/chunks/{reorder-4XDBBJNP.js → reorder-OYSUU3C5.js} +2 -2
  32. package/dist/chunks/{restore-GDXNZJ3X.js → restore-HB2NM3FG.js} +2 -2
  33. package/dist/chunks/{schema-BSCWPTKY.js → schema-THMAHKGA.js} +2 -2
  34. package/dist/commands/build/index.js +9 -9
  35. package/dist/commands/deploy/index.js +11 -11
  36. package/dist/commands/dev/index.js +9 -9
  37. package/dist/commands/env/index.js +5 -5
  38. package/dist/commands/link/index.js +7 -7
  39. package/dist/commands/list/index.js +3 -3
  40. package/dist/commands-bulk.js +816 -409
  41. package/dist/index.js +31 -20
  42. package/dist/version.mjs +1 -1
  43. package/package.json +23 -21
@@ -12,7 +12,7 @@ import {
12
12
  buildCommandWithYes,
13
13
  getLinkedProject,
14
14
  outputAgentError
15
- } from "./chunk-7UXVJVY7.js";
15
+ } from "./chunk-K4DMJBS6.js";
16
16
  import {
17
17
  getCommandName,
18
18
  getCommandNamePlain,
@@ -25,10 +25,10 @@ import {
25
25
  import {
26
26
  buildCommand,
27
27
  pullCommand
28
- } from "./chunk-K3GPD72H.js";
28
+ } from "./chunk-FZTLIQNB.js";
29
29
  import {
30
30
  envCommand
31
- } from "./chunk-7UXVJVY7.js";
31
+ } from "./chunk-K4DMJBS6.js";
32
32
  import {
33
33
  confirmOption,
34
34
  forceOption,
@@ -3961,6 +3961,85 @@ var membersSubcommand = {
3961
3961
  }
3962
3962
  ]
3963
3963
  };
3964
+ var protectionSubcommand = {
3965
+ name: "protection",
3966
+ aliases: [],
3967
+ description: "Show or toggle deployment protection settings for a project",
3968
+ arguments: [
3969
+ { name: "action", required: false },
3970
+ { name: "name", required: false }
3971
+ ],
3972
+ options: [
3973
+ formatOption,
3974
+ {
3975
+ name: "sso",
3976
+ shorthand: null,
3977
+ type: Boolean,
3978
+ description: "Apply action to SSO protection.",
3979
+ deprecated: false
3980
+ },
3981
+ {
3982
+ name: "password",
3983
+ shorthand: null,
3984
+ type: Boolean,
3985
+ description: "Apply action to password protection (requires eligible plan/permissions).",
3986
+ deprecated: false
3987
+ },
3988
+ {
3989
+ name: "skew",
3990
+ shorthand: null,
3991
+ type: Boolean,
3992
+ description: "Apply action to skew protection.",
3993
+ deprecated: false
3994
+ },
3995
+ {
3996
+ name: "skew-max-age",
3997
+ shorthand: null,
3998
+ type: String,
3999
+ argument: "SECONDS",
4000
+ description: "When enabling with --skew, max age in seconds for skew protection (default 2592000, 30 days).",
4001
+ deprecated: false
4002
+ }
4003
+ ],
4004
+ examples: [
4005
+ {
4006
+ name: "Protection settings for the linked project",
4007
+ value: `${packageName} project protection`
4008
+ },
4009
+ {
4010
+ name: "Named project as JSON",
4011
+ value: `${packageName} project protection my-app --format json`
4012
+ },
4013
+ {
4014
+ name: "Disable password protection",
4015
+ value: `${packageName} project protection disable my-app --password`
4016
+ },
4017
+ {
4018
+ name: "Enable password protection",
4019
+ value: `${packageName} project protection enable my-app --password`
4020
+ },
4021
+ {
4022
+ name: "Enable skew protection",
4023
+ value: `${packageName} project protection enable my-app --skew`
4024
+ },
4025
+ {
4026
+ name: "Enable skew protection with custom max age (seconds)",
4027
+ value: `${packageName} project protection enable my-app --skew --skew-max-age 604800`
4028
+ },
4029
+ {
4030
+ name: "Disable skew protection",
4031
+ value: `${packageName} project protection disable my-app --skew`
4032
+ },
4033
+ {
4034
+ name: "Enable SSO deployment protection",
4035
+ value: `${packageName} project protection enable my-app --sso`
4036
+ },
4037
+ {
4038
+ name: "Disable SSO for a named project",
4039
+ value: `${packageName} project protection disable my-app --sso`
4040
+ }
4041
+ ]
4042
+ };
3964
4043
  var accessGroupsSubcommand = {
3965
4044
  name: "access-groups",
3966
4045
  aliases: ["accessgroups"],
@@ -4065,6 +4144,7 @@ var projectCommand = {
4065
4144
  listSubcommand10,
4066
4145
  membersSubcommand,
4067
4146
  accessGroupsSubcommand,
4147
+ protectionSubcommand,
4068
4148
  webAnalyticsSubcommand,
4069
4149
  speedInsightsSubcommand,
4070
4150
  removeSubcommand9,
@@ -4775,6 +4855,25 @@ var rollingReleaseCommand = {
4775
4855
  ]
4776
4856
  };
4777
4857
 
4858
+ // src/commands/sandbox/command.ts
4859
+ var sandboxCommand = {
4860
+ name: "sandbox",
4861
+ aliases: [],
4862
+ description: "Interact with Vercel Sandbox",
4863
+ arguments: [],
4864
+ options: [],
4865
+ examples: [
4866
+ {
4867
+ name: "List sandboxes for the current project",
4868
+ value: `${packageName} sandbox list`
4869
+ },
4870
+ {
4871
+ name: "Create a sandbox and connect to it",
4872
+ value: `${packageName} sandbox create --connect`
4873
+ }
4874
+ ]
4875
+ };
4876
+
4778
4877
  // src/commands/skills/command.ts
4779
4878
  var skillsCommand = {
4780
4879
  name: "skills",
@@ -5773,6 +5872,7 @@ var commandsStructs = [
5773
5872
  routesCommand,
5774
5873
  rollbackCommand,
5775
5874
  rollingReleaseCommand,
5875
+ sandboxCommand,
5776
5876
  skillsCommand,
5777
5877
  targetCommand,
5778
5878
  teamsCommand,
@@ -5933,6 +6033,7 @@ export {
5933
6033
  tokenSubcommand,
5934
6034
  accessSummarySubcommand,
5935
6035
  membersSubcommand,
6036
+ protectionSubcommand,
5936
6037
  accessGroupsSubcommand,
5937
6038
  webAnalyticsSubcommand,
5938
6039
  speedInsightsSubcommand,
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  setupAndLink
9
- } from "./chunk-5DS2KQFQ.js";
9
+ } from "./chunk-EXYNQSR4.js";
10
10
  import {
11
11
  buildCommandWithYes,
12
12
  getLinkedProject,
13
13
  outputActionRequired,
14
14
  param,
15
15
  resolveProjectCwd
16
- } from "./chunk-7UXVJVY7.js";
16
+ } from "./chunk-K4DMJBS6.js";
17
17
  import {
18
18
  getCommandName,
19
19
  getCommandNamePlain
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-IB5L4LKZ.js";
10
10
  import {
11
11
  require_execa
12
- } from "./chunk-URLOPZNH.js";
12
+ } from "./chunk-WDMC6E6B.js";
13
13
  import {
14
14
  VERCEL_DIR,
15
15
  readJSONFile,
@@ -18,7 +18,7 @@ import {
18
18
  require_lib,
19
19
  require_minimatch,
20
20
  require_pluralize
21
- } from "./chunk-7UXVJVY7.js";
21
+ } from "./chunk-K4DMJBS6.js";
22
22
  import {
23
23
  CantParseJSONFile,
24
24
  cmd,
@@ -10912,7 +10912,7 @@ var build = async ({ entrypoint, files, config }) => {
10912
10912
  const output = {};
10913
10913
  const outputDirectory = config.zeroConfig ? config.outputDirectory : "";
10914
10914
  for (let [filename, fileFsRef] of Object.entries(files)) {
10915
- if (filename.startsWith(".git/") || filename === "vercel.json" || filename === ".vercelignore" || filename === "now.json" || filename === ".nowignore" || filename.startsWith(".env")) {
10915
+ if (filename.startsWith(".git/") || filename === "vercel.json" || filename === "vercel.toml" || filename === ".vercelignore" || filename === "now.json" || filename === ".nowignore" || filename.startsWith(".env")) {
10916
10916
  continue;
10917
10917
  }
10918
10918
  if (entrypoint && !(entrypoint === filename || (0, import_minimatch.default)(filename, entrypoint, { dot: true }))) {
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-7UXVJVY7.js";
11
+ } from "./chunk-K4DMJBS6.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-ZQKJVHXY.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getLocalPathConfig
9
- } from "./chunk-6TZS66I4.js";
9
+ } from "./chunk-YWKF5RLK.js";
10
10
  import {
11
11
  table
12
12
  } from "./chunk-4YZKA4FN.js";
@@ -36,7 +36,7 @@ import {
36
36
  selectAndParseRemoteUrl,
37
37
  selectOrg,
38
38
  writeServicesConfig
39
- } from "./chunk-7UXVJVY7.js";
39
+ } from "./chunk-K4DMJBS6.js";
40
40
  import {
41
41
  CantParseJSONFile,
42
42
  ProjectNotFound,
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-7UXVJVY7.js";
9
+ } from "./chunk-K4DMJBS6.js";
10
10
  import {
11
11
  packageName,
12
12
  yesOption
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-7UXVJVY7.js";
9
+ } from "./chunk-K4DMJBS6.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib
@@ -9,7 +9,7 @@ import {
9
9
  printIndications,
10
10
  require_dist as require_dist2,
11
11
  sleep
12
- } from "./chunk-YNTDMBOE.js";
12
+ } from "./chunk-HODUFQIC.js";
13
13
  import {
14
14
  suggestNextCommands
15
15
  } from "./chunk-LOS7HHU3.js";
@@ -19,13 +19,13 @@ import {
19
19
  } from "./chunk-U5J73OA3.js";
20
20
  import {
21
21
  getScope
22
- } from "./chunk-I2XIZ2I5.js";
22
+ } from "./chunk-VXEPP3Q2.js";
23
23
  import {
24
24
  showPluginTipIfNeeded
25
- } from "./chunk-UWKGNLZB.js";
25
+ } from "./chunk-LFD4G5TR.js";
26
26
  import {
27
27
  CommandTimeout
28
- } from "./chunk-JLG2G4QX.js";
28
+ } from "./chunk-6Z4VWCUS.js";
29
29
  import {
30
30
  ua_default
31
31
  } from "./chunk-Q6BEDVOU.js";
@@ -35,7 +35,7 @@ import {
35
35
  require_dist as require_dist3,
36
36
  require_lib3 as require_lib,
37
37
  require_pluralize
38
- } from "./chunk-7UXVJVY7.js";
38
+ } from "./chunk-K4DMJBS6.js";
39
39
  import {
40
40
  require_ms,
41
41
  stamp_default
@@ -9,13 +9,13 @@ import {
9
9
  } from "./chunk-V5P25P7F.js";
10
10
  import {
11
11
  autoInstallAgentTooling
12
- } from "./chunk-UWKGNLZB.js";
12
+ } from "./chunk-LFD4G5TR.js";
13
13
  import {
14
14
  ua_default
15
15
  } from "./chunk-Q6BEDVOU.js";
16
16
  import {
17
17
  getLocalPathConfig
18
- } from "./chunk-6TZS66I4.js";
18
+ } from "./chunk-YWKF5RLK.js";
19
19
  import {
20
20
  DEFAULT_VERCEL_CONFIG_FILENAME,
21
21
  VERCEL_CONFIG_EXTENSIONS,
@@ -29,6 +29,7 @@ import {
29
29
  humanizePath,
30
30
  isBackspaceKey,
31
31
  isEnterKey,
32
+ isVercelTomlEnabled,
32
33
  makeTheme,
33
34
  onExit,
34
35
  require_cli_width,
@@ -41,7 +42,7 @@ import {
41
42
  useKeypress,
42
43
  usePrefix,
43
44
  useState
44
- } from "./chunk-7UXVJVY7.js";
45
+ } from "./chunk-K4DMJBS6.js";
45
46
  import {
46
47
  APIError,
47
48
  NowError,
@@ -2353,6 +2354,14 @@ function readLocalConfig(prefix = process.cwd()) {
2353
2354
  } catch {
2354
2355
  }
2355
2356
  }
2357
+ if (!sourceFile && isVercelTomlEnabled()) {
2358
+ const tomlPath = join(workPath, "vercel.toml");
2359
+ try {
2360
+ accessSync(tomlPath, constants.F_OK);
2361
+ sourceFile = "vercel.toml";
2362
+ } catch {
2363
+ }
2364
+ }
2356
2365
  config[import_client.fileNameSymbol] = sourceFile || DEFAULT_VERCEL_CONFIG_FILENAME;
2357
2366
  } else {
2358
2367
  config[import_client.fileNameSymbol] = basename(target);
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatCondition,
9
9
  formatTransform
10
- } from "./chunk-V34CVZ57.js";
10
+ } from "./chunk-2DSA4PXQ.js";
11
11
  import {
12
12
  output_manager_default
13
13
  } from "./chunk-ZQKJVHXY.js";
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  writeProjectSettings
9
- } from "./chunk-J7HJHD6D.js";
9
+ } from "./chunk-DWS7HHYM.js";
10
10
  import {
11
11
  ensureLink
12
- } from "./chunk-TEJWXSIW.js";
12
+ } from "./chunk-7N2Y2JC6.js";
13
13
  import {
14
14
  pullCommand
15
- } from "./chunk-K3GPD72H.js";
15
+ } from "./chunk-FZTLIQNB.js";
16
16
  import {
17
17
  help
18
18
  } from "./chunk-5Y7GSP7F.js";
@@ -22,7 +22,7 @@ import {
22
22
  envPullCommandLogic,
23
23
  humanizePath,
24
24
  parseTarget
25
- } from "./chunk-7UXVJVY7.js";
25
+ } from "./chunk-K4DMJBS6.js";
26
26
  import {
27
27
  TelemetryClient
28
28
  } from "./chunk-TUP5ROJJ.js";