vercel 33.5.3 → 33.5.5

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 +32 -35
  2. package/package.json +9 -9
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.1.3",
62516
+ version: "13.1.5",
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.7.0",
62553
+ "@vercel/build-utils": "7.8.0",
62554
62554
  "@vercel/error-utils": "2.0.2",
62555
62555
  "@vercel/routing-utils": "3.1.0",
62556
62556
  "@zeit/fetch": "5.2.0",
@@ -147435,10 +147435,10 @@ var require_detect_builders = __commonJS2({
147435
147435
  message: "Functions must have a duration between 1 and 900."
147436
147436
  };
147437
147437
  }
147438
- if (func.memory !== void 0 && (func.memory < 128 || func.memory > 3008)) {
147438
+ if (func.memory !== void 0 && (func.memory < 128 || func.memory > 3009)) {
147439
147439
  return {
147440
147440
  code: "invalid_function_memory",
147441
- message: "Functions must have a memory value between 128 and 3008"
147441
+ message: "Functions must have a memory value between 128 and 3009"
147442
147442
  };
147443
147443
  }
147444
147444
  if (path11.startsWith("/")) {
@@ -166041,7 +166041,8 @@ async function setupAndLink(client2, path11, {
166041
166041
  skipAutoDetectionConfirmation: false,
166042
166042
  projectSettings: {
166043
166043
  ...localConfigurationOverrides,
166044
- sourceFilesOutsideRootDirectory
166044
+ sourceFilesOutsideRootDirectory,
166045
+ rootDirectory
166045
166046
  },
166046
166047
  autoAssignCustomDomains: true
166047
166048
  };
@@ -170827,7 +170828,6 @@ async function doBuild(client2, project, buildsJson, cwd2, outputDir) {
170827
170828
  const mergedCrons = mergeCrons(localConfig.crons, buildResults.values());
170828
170829
  const mergedWildcard = mergeWildcard(buildResults.values());
170829
170830
  const mergedOverrides = overrides.length > 0 ? Object.assign({}, ...overrides) : void 0;
170830
- const mergedFlags = mergeFlags(buildResults.values());
170831
170831
  const framework = await getFramework(cwd2, buildResults);
170832
170832
  const config3 = {
170833
170833
  version: 3,
@@ -170836,12 +170836,10 @@ async function doBuild(client2, project, buildsJson, cwd2, outputDir) {
170836
170836
  wildcard: mergedWildcard,
170837
170837
  overrides: mergedOverrides,
170838
170838
  framework,
170839
- crons: mergedCrons,
170840
- /** @deprecated Replaced by Variants. Remove once fully replaced. */
170841
- flags: mergedFlags
170839
+ crons: mergedCrons
170842
170840
  };
170843
170841
  await import_fs_extra18.default.writeJSON((0, import_path28.join)(outputDir, "config.json"), config3, { spaces: 2 });
170844
- await writeVariantsJson(client2, buildResults.values(), outputDir);
170842
+ await writeFlagsJSON(client2, buildResults.values(), outputDir);
170845
170843
  const relOutputDir = (0, import_path28.relative)(cwd2, outputDir);
170846
170844
  output2.print(
170847
170845
  `${prependEmoji(
@@ -170940,40 +170938,32 @@ function mergeWildcard(buildResults) {
170940
170938
  }
170941
170939
  return wildcard;
170942
170940
  }
170943
- function mergeFlags(buildResults) {
170944
- return Array.from(buildResults).flatMap((result) => {
170945
- if ("flags" in result) {
170946
- return result.flags ?? [];
170947
- }
170948
- return [];
170949
- });
170950
- }
170951
- async function writeVariantsJson({ output: output2 }, buildResults, outputDir) {
170952
- const variantsFilePath = (0, import_path28.join)(outputDir, "variants.json");
170953
- let hasVariants = true;
170954
- const variants = await import_fs_extra18.default.readJSON(variantsFilePath).catch((error4) => {
170941
+ async function writeFlagsJSON({ output: output2 }, buildResults, outputDir) {
170942
+ const flagsFilePath = (0, import_path28.join)(outputDir, "flags.json");
170943
+ let hasFlags = true;
170944
+ const flags = await import_fs_extra18.default.readJSON(flagsFilePath).catch((error4) => {
170955
170945
  if (error4.code === "ENOENT") {
170956
- hasVariants = false;
170946
+ hasFlags = false;
170957
170947
  return { definitions: {} };
170958
170948
  }
170959
170949
  throw error4;
170960
170950
  });
170961
170951
  for (const result of buildResults) {
170962
- if (!("variants" in result) || !result.variants)
170952
+ if (!("flags" in result) || !result.flags || !result.flags.definitions)
170963
170953
  continue;
170964
- for (const [key, defintion] of Object.entries(result.variants)) {
170965
- if (result.variants[key]) {
170954
+ for (const [key, definition] of Object.entries(result.flags.definitions)) {
170955
+ if (result.flags.definitions[key]) {
170966
170956
  output2.warn(
170967
- `The variant "${key}" was found multiple times. Only its first occurrence will be considered.`
170957
+ `The flag "${key}" was found multiple times. Only its first occurrence will be considered.`
170968
170958
  );
170969
170959
  continue;
170970
170960
  }
170971
- hasVariants = true;
170972
- variants.definitions[key] = defintion;
170961
+ hasFlags = true;
170962
+ flags.definitions[key] = definition;
170973
170963
  }
170974
170964
  }
170975
- if (hasVariants) {
170976
- await import_fs_extra18.default.writeJSON(variantsFilePath, variants, { spaces: 2 });
170965
+ if (hasFlags) {
170966
+ await import_fs_extra18.default.writeJSON(flagsFilePath, flags, { spaces: 2 });
170977
170967
  }
170978
170968
  }
170979
170969
  async function writeBuildJson(buildsJson, outputDir) {
@@ -172716,9 +172706,16 @@ var init_deploy = __esm({
172716
172706
  autoAssignCustomDomains
172717
172707
  };
172718
172708
  if (!localConfig.builds || localConfig.builds.length === 0) {
172719
- createArgs.projectSettings = status === "not_linked" ? {
172720
- sourceFilesOutsideRootDirectory
172721
- } : { ...localConfigurationOverrides, sourceFilesOutsideRootDirectory };
172709
+ createArgs.projectSettings = {
172710
+ sourceFilesOutsideRootDirectory,
172711
+ rootDirectory
172712
+ };
172713
+ if (status !== "not_linked") {
172714
+ createArgs.projectSettings = {
172715
+ ...createArgs.projectSettings,
172716
+ ...localConfigurationOverrides
172717
+ };
172718
+ }
172722
172719
  }
172723
172720
  deployment = await createDeploy(
172724
172721
  client2,
@@ -185865,7 +185862,7 @@ Please run \`${await getUpdateCommand()}\` to update to the latest CLI.`
185865
185862
  Code: { ZipFile: ZipFile2 },
185866
185863
  Handler: asset.handler,
185867
185864
  Runtime: asset.runtime,
185868
- MemorySize: asset.memory || 3008,
185865
+ MemorySize: asset.memory || 3009,
185869
185866
  Environment: {
185870
185867
  Variables: {
185871
185868
  ...vercelConfig.env,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "33.5.3",
3
+ "version": "33.5.5",
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.7.0",
24
+ "@vercel/build-utils": "7.8.0",
25
25
  "@vercel/fun": "1.1.0",
26
26
  "@vercel/go": "3.0.5",
27
27
  "@vercel/hydrogen": "1.0.2",
28
- "@vercel/next": "4.1.3",
29
- "@vercel/node": "3.0.20",
28
+ "@vercel/next": "4.1.5",
29
+ "@vercel/node": "3.0.22",
30
30
  "@vercel/python": "4.1.1",
31
31
  "@vercel/redwood": "2.0.8",
32
- "@vercel/remix-builder": "2.1.0",
32
+ "@vercel/remix-builder": "2.1.2",
33
33
  "@vercel/ruby": "2.0.5",
34
- "@vercel/static-build": "2.4.0",
34
+ "@vercel/static-build": "2.4.2",
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.23",
82
- "@vercel/client": "13.1.3",
81
+ "@vercel-internals/types": "1.0.25",
82
+ "@vercel/client": "13.1.5",
83
83
  "@vercel/error-utils": "2.0.2",
84
84
  "@vercel/frameworks": "3.0.0",
85
- "@vercel/fs-detectors": "5.2.0",
85
+ "@vercel/fs-detectors": "5.2.1",
86
86
  "@vercel/routing-utils": "3.1.0",
87
87
  "ajv": "6.12.2",
88
88
  "alpha-sort": "2.0.1",