vercel 39.4.2 → 40.1.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 +93 -41
  2. package/package.json +12 -12
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.1",
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.2.0",
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
  });
@@ -98222,6 +98209,56 @@ var require_frameworks = __commonJS2({
98222
98209
  dependency: "remix",
98223
98210
  getOutputDirName: async () => "public"
98224
98211
  },
98212
+ {
98213
+ name: "React Router",
98214
+ slug: "react-router",
98215
+ // TODO: uncomment this after "react-router" template is added
98216
+ //demo: 'https://react-router-v7-template.vercel.app',
98217
+ logo: "https://api-frameworks.vercel.sh/framework-logos/react-router.svg",
98218
+ darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/react-router-dark.svg",
98219
+ tagline: "Declarative routing for React",
98220
+ description: "A user\u2011obsessed, standards\u2011focused, multi\u2011strategy router you can deploy anywhere.",
98221
+ website: "https://reactrouter.com",
98222
+ sort: 7,
98223
+ supersedes: ["hydrogen", "vite"],
98224
+ useRuntime: { src: "package.json", use: "@vercel/remix-builder" },
98225
+ detectors: {
98226
+ some: [
98227
+ {
98228
+ path: "vite.config.js",
98229
+ matchContent: "@react-router/dev/vite"
98230
+ },
98231
+ {
98232
+ path: "vite.config.ts",
98233
+ matchContent: "@react-router/dev/vite"
98234
+ },
98235
+ {
98236
+ path: "react-router.config.js"
98237
+ },
98238
+ {
98239
+ path: "react-router.config.ts"
98240
+ }
98241
+ ]
98242
+ },
98243
+ settings: {
98244
+ installCommand: {
98245
+ placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
98246
+ },
98247
+ buildCommand: {
98248
+ value: "react-router build",
98249
+ placeholder: "`npm run build` or `react-router build`"
98250
+ },
98251
+ devCommand: {
98252
+ value: "react-router dev",
98253
+ placeholder: "react-router dev"
98254
+ },
98255
+ outputDirectory: {
98256
+ value: "build"
98257
+ }
98258
+ },
98259
+ dependency: "react-router",
98260
+ getOutputDirName: async () => "build"
98261
+ },
98225
98262
  {
98226
98263
  name: "Astro",
98227
98264
  slug: "astro",
@@ -111011,7 +111048,7 @@ var require_schemas = __commonJS2({
111011
111048
  };
111012
111049
  var routesSchema2 = {
111013
111050
  type: "array",
111014
- maxItems: 1024,
111051
+ maxItems: 2048,
111015
111052
  deprecated: true,
111016
111053
  description: "A list of routes objects used to rewrite paths to point towards other internal or external paths",
111017
111054
  example: [{ dest: "https://docs.example.com", src: "/docs" }],
@@ -111140,7 +111177,7 @@ var require_schemas = __commonJS2({
111140
111177
  };
111141
111178
  var rewritesSchema2 = {
111142
111179
  type: "array",
111143
- maxItems: 1024,
111180
+ maxItems: 2048,
111144
111181
  description: "A list of rewrite definitions.",
111145
111182
  items: {
111146
111183
  type: "object",
@@ -111171,7 +111208,7 @@ var require_schemas = __commonJS2({
111171
111208
  var redirectsSchema2 = {
111172
111209
  title: "Redirects",
111173
111210
  type: "array",
111174
- maxItems: 1024,
111211
+ maxItems: 2048,
111175
111212
  description: "A list of redirect definitions.",
111176
111213
  items: {
111177
111214
  type: "object",
@@ -111206,7 +111243,7 @@ var require_schemas = __commonJS2({
111206
111243
  };
111207
111244
  var headersSchema2 = {
111208
111245
  type: "array",
111209
- maxItems: 1024,
111246
+ maxItems: 2048,
111210
111247
  description: "A list of header definitions.",
111211
111248
  items: {
111212
111249
  type: "object",
@@ -138957,6 +138994,7 @@ var init_deploy = __esm({
138957
138994
  "src/util/telemetry/commands/deploy/index.ts"() {
138958
138995
  "use strict";
138959
138996
  init_telemetry();
138997
+ init_command5();
138960
138998
  import_client10 = __toESM3(require_dist7());
138961
138999
  DeployTelemetryClient = class extends TelemetryClient {
138962
139000
  trackCliArgumentProjectPath(projectPaths) {
@@ -138969,7 +139007,10 @@ var init_deploy = __esm({
138969
139007
  }
138970
139008
  trackCliOptionArchive(format4) {
138971
139009
  if (format4) {
138972
- const allowedFormat = import_client10.VALID_ARCHIVE_FORMATS.includes(format4) ? format4 : this.redactedValue;
139010
+ const allowedFormat = [
139011
+ ...import_client10.VALID_ARCHIVE_FORMATS,
139012
+ deprecatedArchiveSplitTgz
139013
+ ].includes(format4) ? format4 : this.redactedValue;
138973
139014
  this.trackCliOption({
138974
139015
  option: "archive",
138975
139016
  value: allowedFormat
@@ -139308,11 +139349,22 @@ var init_deploy2 = __esm({
139308
139349
  flagName: "target",
139309
139350
  flags: parsedArguments.flags
139310
139351
  });
139311
- const archive = parsedArguments.flags["--archive"];
139312
- if (typeof archive === "string" && !isValidArchive(archive)) {
139352
+ const parsedArchive = parsedArguments.flags["--archive"];
139353
+ if (typeof parsedArchive === "string" && !(isValidArchive(parsedArchive) || parsedArchive === deprecatedArchiveSplitTgz)) {
139313
139354
  output_manager_default.error(`Format must be one of: ${import_client11.VALID_ARCHIVE_FORMATS.join(", ")}`);
139314
139355
  return 1;
139315
139356
  }
139357
+ if (parsedArchive === deprecatedArchiveSplitTgz) {
139358
+ output_manager_default.print(
139359
+ `${prependEmoji(
139360
+ `${param("--archive=tgz")} now has the same behavior as ${param(
139361
+ "--archive=split-tgz"
139362
+ )}. Please use ${param("--archive=tgz")} instead.`,
139363
+ emoji("warning")
139364
+ )}
139365
+ `
139366
+ );
139367
+ }
139316
139368
  const link4 = await ensureLink("deploy", client2, cwd, {
139317
139369
  autoConfirm,
139318
139370
  setupMsg: "Set up and deploy",
@@ -139547,7 +139599,7 @@ var init_deploy2 = __esm({
139547
139599
  createArgs,
139548
139600
  org,
139549
139601
  !project,
139550
- archive
139602
+ parsedArchive ? "tgz" : void 0
139551
139603
  );
139552
139604
  if (deployment instanceof NotDomainOwner) {
139553
139605
  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.1.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.2.0",
25
25
  "@vercel/fun": "1.1.2",
26
26
  "@vercel/go": "3.2.1",
27
- "@vercel/hydrogen": "1.0.11",
28
- "@vercel/next": "4.4.4",
29
- "@vercel/node": "5.0.4",
27
+ "@vercel/hydrogen": "1.1.0",
28
+ "@vercel/next": "4.5.0",
29
+ "@vercel/node": "5.1.0",
30
30
  "@vercel/python": "4.7.1",
31
- "@vercel/redwood": "2.1.13",
32
- "@vercel/remix-builder": "5.1.1",
31
+ "@vercel/redwood": "2.2.0",
32
+ "@vercel/remix-builder": "5.2.0",
33
33
  "@vercel/ruby": "2.2.0",
34
- "@vercel/static-build": "2.5.43",
34
+ "@vercel/static-build": "2.6.0",
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.1",
84
84
  "@vercel/error-utils": "2.0.3",
85
- "@vercel/frameworks": "3.5.0",
86
- "@vercel/fs-detectors": "5.3.4",
87
- "@vercel/routing-utils": "5.0.1",
85
+ "@vercel/frameworks": "3.6.0",
86
+ "@vercel/fs-detectors": "5.3.6",
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",