vercel 39.4.2 → 40.0.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 (2) hide show
  1. package/dist/index.js +43 -41
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -31789,11 +31789,12 @@ var init_command4 = __esm({
31789
31789
  });
31790
31790
 
31791
31791
  // src/commands/deploy/command.ts
31792
- var deployCommand;
31792
+ var deprecatedArchiveSplitTgz, deployCommand;
31793
31793
  var init_command5 = __esm({
31794
31794
  "src/commands/deploy/command.ts"() {
31795
31795
  "use strict";
31796
31796
  init_arg_common();
31797
+ deprecatedArchiveSplitTgz = "split-tgz";
31797
31798
  deployCommand = {
31798
31799
  name: "deploy",
31799
31800
  aliases: [],
@@ -46156,7 +46157,7 @@ var require_package = __commonJS2({
46156
46157
  "../client/package.json"(exports2, module2) {
46157
46158
  module2.exports = {
46158
46159
  name: "@vercel/client",
46159
- version: "13.5.6",
46160
+ version: "14.0.0",
46160
46161
  main: "dist/index.js",
46161
46162
  typings: "dist/index.d.ts",
46162
46163
  homepage: "https://vercel.com",
@@ -46195,9 +46196,9 @@ var require_package = __commonJS2({
46195
46196
  typescript: "4.9.5"
46196
46197
  },
46197
46198
  dependencies: {
46198
- "@vercel/build-utils": "9.1.0",
46199
+ "@vercel/build-utils": "9.1.1",
46199
46200
  "@vercel/error-utils": "2.0.3",
46200
- "@vercel/routing-utils": "5.0.1",
46201
+ "@vercel/routing-utils": "5.0.2",
46201
46202
  "async-retry": "1.2.3",
46202
46203
  "async-sema": "3.0.0",
46203
46204
  "fs-extra": "8.0.1",
@@ -47304,6 +47305,7 @@ var require_utils8 = __commonJS2({
47304
47305
  ".env.local",
47305
47306
  ".env.*.local",
47306
47307
  ".venv",
47308
+ ".yarn/cache",
47307
47309
  "npm-debug.log",
47308
47310
  "config.gypi",
47309
47311
  "node_modules",
@@ -52397,38 +52399,23 @@ var require_create_deployment = __commonJS2({
52397
52399
  const workPath = typeof path11 === "string" ? path11 : path11[0];
52398
52400
  let files;
52399
52401
  try {
52400
- if (clientOptions.archive === "tgz" || clientOptions.archive === "split-tgz") {
52402
+ if (clientOptions.archive === "tgz") {
52401
52403
  debug2("Packing tarball");
52402
52404
  const tarStream = import_tar_fs2.default.pack(workPath, {
52403
52405
  entries: fileList.map((file) => (0, import_path41.relative)(workPath, file))
52404
52406
  }).pipe((0, import_zlib.createGzip)());
52405
- if (clientOptions.archive === "split-tgz") {
52406
- const chunkedTarBuffers = await (0, import_build_utils19.streamToBufferChunks)(tarStream);
52407
- debug2(`Packed tarball into ${chunkedTarBuffers.length} chunks`);
52408
- files = new Map(
52409
- chunkedTarBuffers.map((chunk, index) => [
52410
- (0, import_hashes.hash)(chunk),
52411
- {
52412
- names: [(0, import_path41.join)(workPath, `.vercel/source.tgz.part${index + 1}`)],
52413
- data: chunk,
52414
- mode: 438
52415
- }
52416
- ])
52417
- );
52418
- } else {
52419
- const tarBuffer = await (0, import_build_utils19.streamToBuffer)(tarStream);
52420
- debug2("Packed tarball");
52421
- files = /* @__PURE__ */ new Map([
52422
- [
52423
- (0, import_hashes.hash)(tarBuffer),
52424
- {
52425
- names: [(0, import_path41.join)(workPath, ".vercel/source.tgz")],
52426
- data: tarBuffer,
52427
- mode: 438
52428
- }
52429
- ]
52430
- ]);
52431
- }
52407
+ const chunkedTarBuffers = await (0, import_build_utils19.streamToBufferChunks)(tarStream);
52408
+ debug2(`Packed tarball into ${chunkedTarBuffers.length} chunks`);
52409
+ files = new Map(
52410
+ chunkedTarBuffers.map((chunk, index) => [
52411
+ (0, import_hashes.hash)(chunk),
52412
+ {
52413
+ names: [(0, import_path41.join)(workPath, `.vercel/source.tgz.part${index + 1}`)],
52414
+ data: chunk,
52415
+ mode: 438
52416
+ }
52417
+ ])
52418
+ );
52432
52419
  } else {
52433
52420
  files = await (0, import_hashes.hashes)(fileList);
52434
52421
  }
@@ -52492,7 +52479,7 @@ var require_types2 = __commonJS2({
52492
52479
  });
52493
52480
  module2.exports = __toCommonJS4(types_exports);
52494
52481
  var import_utils4 = require_utils8();
52495
- var VALID_ARCHIVE_FORMATS4 = ["tgz", "split-tgz"];
52482
+ var VALID_ARCHIVE_FORMATS4 = ["tgz"];
52496
52483
  var fileNameSymbol8 = Symbol("fileName");
52497
52484
  }
52498
52485
  });
@@ -111011,7 +110998,7 @@ var require_schemas = __commonJS2({
111011
110998
  };
111012
110999
  var routesSchema2 = {
111013
111000
  type: "array",
111014
- maxItems: 1024,
111001
+ maxItems: 2048,
111015
111002
  deprecated: true,
111016
111003
  description: "A list of routes objects used to rewrite paths to point towards other internal or external paths",
111017
111004
  example: [{ dest: "https://docs.example.com", src: "/docs" }],
@@ -111140,7 +111127,7 @@ var require_schemas = __commonJS2({
111140
111127
  };
111141
111128
  var rewritesSchema2 = {
111142
111129
  type: "array",
111143
- maxItems: 1024,
111130
+ maxItems: 2048,
111144
111131
  description: "A list of rewrite definitions.",
111145
111132
  items: {
111146
111133
  type: "object",
@@ -111171,7 +111158,7 @@ var require_schemas = __commonJS2({
111171
111158
  var redirectsSchema2 = {
111172
111159
  title: "Redirects",
111173
111160
  type: "array",
111174
- maxItems: 1024,
111161
+ maxItems: 2048,
111175
111162
  description: "A list of redirect definitions.",
111176
111163
  items: {
111177
111164
  type: "object",
@@ -111206,7 +111193,7 @@ var require_schemas = __commonJS2({
111206
111193
  };
111207
111194
  var headersSchema2 = {
111208
111195
  type: "array",
111209
- maxItems: 1024,
111196
+ maxItems: 2048,
111210
111197
  description: "A list of header definitions.",
111211
111198
  items: {
111212
111199
  type: "object",
@@ -138957,6 +138944,7 @@ var init_deploy = __esm({
138957
138944
  "src/util/telemetry/commands/deploy/index.ts"() {
138958
138945
  "use strict";
138959
138946
  init_telemetry();
138947
+ init_command5();
138960
138948
  import_client10 = __toESM3(require_dist7());
138961
138949
  DeployTelemetryClient = class extends TelemetryClient {
138962
138950
  trackCliArgumentProjectPath(projectPaths) {
@@ -138969,7 +138957,10 @@ var init_deploy = __esm({
138969
138957
  }
138970
138958
  trackCliOptionArchive(format4) {
138971
138959
  if (format4) {
138972
- const allowedFormat = import_client10.VALID_ARCHIVE_FORMATS.includes(format4) ? format4 : this.redactedValue;
138960
+ const allowedFormat = [
138961
+ ...import_client10.VALID_ARCHIVE_FORMATS,
138962
+ deprecatedArchiveSplitTgz
138963
+ ].includes(format4) ? format4 : this.redactedValue;
138973
138964
  this.trackCliOption({
138974
138965
  option: "archive",
138975
138966
  value: allowedFormat
@@ -139308,11 +139299,22 @@ var init_deploy2 = __esm({
139308
139299
  flagName: "target",
139309
139300
  flags: parsedArguments.flags
139310
139301
  });
139311
- const archive = parsedArguments.flags["--archive"];
139312
- if (typeof archive === "string" && !isValidArchive(archive)) {
139302
+ const parsedArchive = parsedArguments.flags["--archive"];
139303
+ if (typeof parsedArchive === "string" && !(isValidArchive(parsedArchive) || parsedArchive === deprecatedArchiveSplitTgz)) {
139313
139304
  output_manager_default.error(`Format must be one of: ${import_client11.VALID_ARCHIVE_FORMATS.join(", ")}`);
139314
139305
  return 1;
139315
139306
  }
139307
+ if (parsedArchive === deprecatedArchiveSplitTgz) {
139308
+ output_manager_default.print(
139309
+ `${prependEmoji(
139310
+ `${param("--archive=tgz")} now has the same behavior as ${param(
139311
+ "--archive=split-tgz"
139312
+ )}. Please use ${param("--archive=tgz")} instead.`,
139313
+ emoji("warning")
139314
+ )}
139315
+ `
139316
+ );
139317
+ }
139316
139318
  const link4 = await ensureLink("deploy", client2, cwd, {
139317
139319
  autoConfirm,
139318
139320
  setupMsg: "Set up and deploy",
@@ -139547,7 +139549,7 @@ var init_deploy2 = __esm({
139547
139549
  createArgs,
139548
139550
  org,
139549
139551
  !project,
139550
- archive
139552
+ parsedArchive ? "tgz" : void 0
139551
139553
  );
139552
139554
  if (deployment instanceof NotDomainOwner) {
139553
139555
  output_manager_default.error(deployment.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "39.4.2",
3
+ "version": "40.0.0",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -21,17 +21,17 @@
21
21
  "node": ">= 16"
22
22
  },
23
23
  "dependencies": {
24
- "@vercel/build-utils": "9.1.0",
24
+ "@vercel/build-utils": "9.1.1",
25
25
  "@vercel/fun": "1.1.2",
26
26
  "@vercel/go": "3.2.1",
27
27
  "@vercel/hydrogen": "1.0.11",
28
- "@vercel/next": "4.4.4",
29
- "@vercel/node": "5.0.4",
28
+ "@vercel/next": "4.4.5",
29
+ "@vercel/node": "5.0.5",
30
30
  "@vercel/python": "4.7.1",
31
- "@vercel/redwood": "2.1.13",
32
- "@vercel/remix-builder": "5.1.1",
31
+ "@vercel/redwood": "2.1.14",
32
+ "@vercel/remix-builder": "5.1.2",
33
33
  "@vercel/ruby": "2.2.0",
34
- "@vercel/static-build": "2.5.43",
34
+ "@vercel/static-build": "2.5.44",
35
35
  "chokidar": "4.0.0"
36
36
  },
37
37
  "devDependencies": {
@@ -80,11 +80,11 @@
80
80
  "@vercel-internals/constants": "1.0.4",
81
81
  "@vercel-internals/get-package-json": "1.0.0",
82
82
  "@vercel-internals/types": "3.0.6",
83
- "@vercel/client": "13.5.6",
83
+ "@vercel/client": "14.0.0",
84
84
  "@vercel/error-utils": "2.0.3",
85
85
  "@vercel/frameworks": "3.5.0",
86
- "@vercel/fs-detectors": "5.3.4",
87
- "@vercel/routing-utils": "5.0.1",
86
+ "@vercel/fs-detectors": "5.3.5",
87
+ "@vercel/routing-utils": "5.0.2",
88
88
  "@vitest/expect": "2.1.3",
89
89
  "ajv": "6.12.3",
90
90
  "alpha-sort": "2.0.1",