@vercel/build-utils 9.3.1 → 10.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 10.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Detect v9 pnpm lockfiles as pnpm 10 generated ([#12852](https://github.com/vercel/vercel/pull/12852))
8
+
3
9
  ## 9.3.1
4
10
 
5
11
  ### Patch Changes
@@ -595,8 +595,10 @@ function detectPnpmVersion(lockfileVersion) {
595
595
  return "pnpm 7";
596
596
  case (lockfileVersion === 6 || lockfileVersion === 6.1):
597
597
  return "pnpm 8";
598
- case (lockfileVersion === 7 || lockfileVersion === 9):
598
+ case lockfileVersion === 7:
599
599
  return "pnpm 9";
600
+ case lockfileVersion === 9:
601
+ return "pnpm 10";
600
602
  default:
601
603
  return "not found";
602
604
  }
@@ -610,6 +612,8 @@ function validLockfileForPackageManager(cliType, lockfileVersion, packageManager
610
612
  return true;
611
613
  case "pnpm":
612
614
  switch (packageManagerMajorVersion) {
615
+ case 10:
616
+ return lockfileVersion === 9;
613
617
  case 9:
614
618
  if ("9.0.0" === packageManagerVersion.version && lockfileVersion === 6) {
615
619
  return false;
@@ -751,6 +755,13 @@ function detectPackageManager(cliType, lockfileVersion) {
751
755
  detectedPackageManager: "pnpm@9.x",
752
756
  pnpmVersionRange: "9.x"
753
757
  };
758
+ case "pnpm 10":
759
+ return {
760
+ path: "/pnpm10/node_modules/.bin",
761
+ detectedLockfile: "pnpm-lock.yaml",
762
+ detectedPackageManager: "pnpm@10.x",
763
+ pnpmVersionRange: "10.x"
764
+ };
754
765
  case "pnpm 6":
755
766
  return {
756
767
  // undefined because pnpm@6 is the current default in the build container
package/dist/index.js CHANGED
@@ -23608,8 +23608,10 @@ function detectPnpmVersion(lockfileVersion) {
23608
23608
  return "pnpm 7";
23609
23609
  case (lockfileVersion === 6 || lockfileVersion === 6.1):
23610
23610
  return "pnpm 8";
23611
- case (lockfileVersion === 7 || lockfileVersion === 9):
23611
+ case lockfileVersion === 7:
23612
23612
  return "pnpm 9";
23613
+ case lockfileVersion === 9:
23614
+ return "pnpm 10";
23613
23615
  default:
23614
23616
  return "not found";
23615
23617
  }
@@ -23623,6 +23625,8 @@ function validLockfileForPackageManager(cliType, lockfileVersion, packageManager
23623
23625
  return true;
23624
23626
  case "pnpm":
23625
23627
  switch (packageManagerMajorVersion) {
23628
+ case 10:
23629
+ return lockfileVersion === 9;
23626
23630
  case 9:
23627
23631
  if ("9.0.0" === packageManagerVersion.version && lockfileVersion === 6) {
23628
23632
  return false;
@@ -23764,6 +23768,13 @@ function detectPackageManager(cliType, lockfileVersion) {
23764
23768
  detectedPackageManager: "pnpm@9.x",
23765
23769
  pnpmVersionRange: "9.x"
23766
23770
  };
23771
+ case "pnpm 10":
23772
+ return {
23773
+ path: "/pnpm10/node_modules/.bin",
23774
+ detectedLockfile: "pnpm-lock.yaml",
23775
+ detectedPackageManager: "pnpm@10.x",
23776
+ pnpmVersionRange: "10.x"
23777
+ };
23767
23778
  case "pnpm 6":
23768
23779
  return {
23769
23780
  // undefined because pnpm@6 is the current default in the build container
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "9.3.1",
3
+ "version": "10.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",