vercel 32.6.1 → 32.7.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 +44 -12
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -62513,7 +62513,7 @@ var require_package = __commonJS2({
62513
62513
  "../client/package.json"(exports2, module2) {
62514
62514
  module2.exports = {
62515
62515
  name: "@vercel/client",
62516
- version: "13.0.9",
62516
+ version: "13.0.10",
62517
62517
  main: "dist/index.js",
62518
62518
  typings: "dist/index.d.ts",
62519
62519
  homepage: "https://vercel.com",
@@ -62550,7 +62550,7 @@ var require_package = __commonJS2({
62550
62550
  typescript: "4.9.5"
62551
62551
  },
62552
62552
  dependencies: {
62553
- "@vercel/build-utils": "7.2.5",
62553
+ "@vercel/build-utils": "7.3.0",
62554
62554
  "@vercel/routing-utils": "3.1.0",
62555
62555
  "@zeit/fetch": "5.2.0",
62556
62556
  "async-retry": "1.2.3",
@@ -63514,7 +63514,7 @@ var require_utils8 = __commonJS2({
63514
63514
  var import_url25 = require("url");
63515
63515
  var import_ignore = __toESM4(require_ignore());
63516
63516
  var import_pkg5 = require_pkg();
63517
- var import_build_utils18 = require("@vercel/build-utils");
63517
+ var import_build_utils19 = require("@vercel/build-utils");
63518
63518
  var import_async_sema = require_lib11();
63519
63519
  var import_fs_extra24 = require_lib10();
63520
63520
  var import_readdir_recursive = __toESM4(require_readdir_recursive());
@@ -63648,7 +63648,7 @@ var require_utils8 = __commonJS2({
63648
63648
  maybeRead((0, import_path44.join)(cwd2, ".nowignore"), "")
63649
63649
  ]);
63650
63650
  if (vercelignore && nowignore) {
63651
- throw new import_build_utils18.NowBuildError({
63651
+ throw new import_build_utils19.NowBuildError({
63652
63652
  code: "CONFLICTING_IGNORE_FILES",
63653
63653
  message: "Cannot use both a `.vercelignore` and `.nowignore` file. Please delete the `.nowignore` file.",
63654
63654
  link: "https://vercel.link/combining-old-and-new-config"
@@ -68585,7 +68585,7 @@ var require_create_deployment = __commonJS2({
68585
68585
  var import_upload = require_upload();
68586
68586
  var import_utils = require_utils8();
68587
68587
  var import_errors4 = require_errors3();
68588
- var import_build_utils18 = require("@vercel/build-utils");
68588
+ var import_build_utils19 = require("@vercel/build-utils");
68589
68589
  var import_tar_fs2 = __toESM4(require_tar_fs());
68590
68590
  var import_zlib = require("zlib");
68591
68591
  function buildCreateDeployment() {
@@ -68649,7 +68649,7 @@ var require_create_deployment = __commonJS2({
68649
68649
  const tarStream = import_tar_fs2.default.pack(workPath, {
68650
68650
  entries: fileList.map((file) => (0, import_path44.relative)(workPath, file))
68651
68651
  }).pipe((0, import_zlib.createGzip)());
68652
- const tarBuffer = await (0, import_build_utils18.streamToBuffer)(tarStream);
68652
+ const tarBuffer = await (0, import_build_utils19.streamToBuffer)(tarStream);
68653
68653
  debug3("Packed tarball");
68654
68654
  files = /* @__PURE__ */ new Map([
68655
68655
  [
@@ -143897,7 +143897,7 @@ var require_frameworks = __commonJS2({
143897
143897
  demo: "https://nextjs-template.vercel.app",
143898
143898
  logo: "https://api-frameworks.vercel.sh/framework-logos/next.svg",
143899
143899
  darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/next-dark.svg",
143900
- screenshot: "https://assets.vercel.com/image/upload/v1673027027/front/import/nextjs.png",
143900
+ screenshot: "https://assets.vercel.com/image/upload/v1701461207/front/import/nextjs.png",
143901
143901
  tagline: "Next.js makes you productive with React instantly \u2014 whether you want to build static or dynamic sites.",
143902
143902
  description: "A Next.js app and a Serverless Function API.",
143903
143903
  website: "https://nextjs.org",
@@ -194847,7 +194847,8 @@ async function list3(client2, argv2, args2, contextName) {
194847
194847
  if (next) {
194848
194848
  projectsUrl += `&until=${next}`;
194849
194849
  }
194850
- const {
194850
+ const deprecated = argv2["--deprecated"] || false;
194851
+ let {
194851
194852
  projects: projectList,
194852
194853
  pagination
194853
194854
  } = await client2.fetch(projectsUrl, {
@@ -194855,8 +194856,27 @@ async function list3(client2, argv2, args2, contextName) {
194855
194856
  });
194856
194857
  output2.stopSpinner();
194857
194858
  const elapsed2 = (0, import_ms19.default)(Date.now() - start);
194859
+ if (deprecated) {
194860
+ const upcomingDeprecationVersions = import_build_utils18.NODE_VERSIONS.filter(
194861
+ (nodeVersion) => nodeVersion.discontinueDate && nodeVersion.discontinueDate.valueOf() > Date.now()
194862
+ );
194863
+ const upcomingDeprecationVersionsList = upcomingDeprecationVersions.map(
194864
+ (nodeVersion) => nodeVersion.range
194865
+ );
194866
+ projectList = projectList.filter(
194867
+ (project) => project.nodeVersion && upcomingDeprecationVersionsList.includes(project.nodeVersion)
194868
+ );
194869
+ output2.warn(
194870
+ `The following Node.js versions will be deprecated soon: ${upcomingDeprecationVersionsList.join(
194871
+ ", "
194872
+ )}. Upgrade your projects immediately.`
194873
+ );
194874
+ output2.log(
194875
+ `For more information visit: https://vercel.com/docs/functions/serverless-functions/runtimes/node-js#node.js-version`
194876
+ );
194877
+ }
194858
194878
  output2.log(
194859
- `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk91.default.bold(contextName)} ${import_chalk91.default.gray(`[${elapsed2}]`)}`
194879
+ `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk91.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk91.default.gray(`[${elapsed2}]`)}`
194860
194880
  );
194861
194881
  if (projectList.length > 0) {
194862
194882
  const tablePrint = (0, import_text_table10.default)(
@@ -194896,7 +194916,7 @@ function getLatestProdUrl(project) {
194896
194916
  return "https://" + alias2;
194897
194917
  return "--";
194898
194918
  }
194899
- var import_chalk91, import_ms19, import_text_table10;
194919
+ var import_chalk91, import_ms19, import_text_table10, import_build_utils18;
194900
194920
  var init_list3 = __esm({
194901
194921
  "src/commands/project/list.ts"() {
194902
194922
  "use strict";
@@ -194906,6 +194926,7 @@ var init_list3 = __esm({
194906
194926
  init_get_command_flags();
194907
194927
  init_pkg_name();
194908
194928
  init_strlen();
194929
+ import_build_utils18 = require("@vercel/build-utils");
194909
194930
  }
194910
194931
  });
194911
194932
 
@@ -194993,7 +195014,17 @@ var init_command19 = __esm({
194993
195014
  name: "ls",
194994
195015
  description: "Show all projects in the selected scope",
194995
195016
  arguments: [],
194996
- options: [],
195017
+ options: [
195018
+ {
195019
+ name: "deprecated",
195020
+ description: "A list of projects affected by a deprecation",
195021
+ argument: "deprecated",
195022
+ shorthand: null,
195023
+ type: "boolean",
195024
+ deprecated: false,
195025
+ multi: false
195026
+ }
195027
+ ],
194997
195028
  examples: []
194998
195029
  },
194999
195030
  {
@@ -195057,7 +195088,8 @@ async function main10(client2) {
195057
195088
  try {
195058
195089
  argv2 = getArgs(client2.argv.slice(2), {
195059
195090
  "--next": Number,
195060
- "-N": "--next"
195091
+ "-N": "--next",
195092
+ "--deprecated": Boolean
195061
195093
  });
195062
195094
  } catch (error4) {
195063
195095
  handleError(error4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "32.6.1",
3
+ "version": "32.7.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": "7.2.5",
24
+ "@vercel/build-utils": "7.3.0",
25
25
  "@vercel/fun": "1.1.0",
26
26
  "@vercel/go": "3.0.4",
27
27
  "@vercel/hydrogen": "1.0.1",
28
28
  "@vercel/next": "4.0.15",
29
- "@vercel/node": "3.0.11",
29
+ "@vercel/node": "3.0.12",
30
30
  "@vercel/python": "4.1.0",
31
31
  "@vercel/redwood": "2.0.5",
32
- "@vercel/remix-builder": "2.0.12",
33
- "@vercel/ruby": "2.0.3",
34
- "@vercel/static-build": "2.0.13",
32
+ "@vercel/remix-builder": "2.0.13",
33
+ "@vercel/ruby": "2.0.4",
34
+ "@vercel/static-build": "2.0.14",
35
35
  "chokidar": "3.3.1"
36
36
  },
37
37
  "devDependencies": {
@@ -78,11 +78,11 @@
78
78
  "@types/yauzl-promise": "2.1.0",
79
79
  "@vercel-internals/constants": "1.0.4",
80
80
  "@vercel-internals/get-package-json": "1.0.0",
81
- "@vercel-internals/types": "1.0.16",
82
- "@vercel/client": "13.0.9",
81
+ "@vercel-internals/types": "1.0.17",
82
+ "@vercel/client": "13.0.10",
83
83
  "@vercel/error-utils": "2.0.2",
84
- "@vercel/frameworks": "2.0.4",
85
- "@vercel/fs-detectors": "5.1.4",
84
+ "@vercel/frameworks": "2.0.5",
85
+ "@vercel/fs-detectors": "5.1.5",
86
86
  "@vercel/routing-utils": "3.1.0",
87
87
  "ajv": "6.12.2",
88
88
  "alpha-sort": "2.0.1",