pnpm 8.12.0 → 8.12.1

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.
@@ -202,7 +202,7 @@ included:
202
202
  injectedDeps: {}
203
203
  layoutVersion: 5
204
204
  nodeLinker: hoisted
205
- packageManager: pnpm@8.11.0
205
+ packageManager: pnpm@8.12.0
206
206
  pendingBuilds:
207
207
  - /node-gyp/9.4.1
208
208
  - /env-paths/2.2.1
@@ -300,7 +300,7 @@ pendingBuilds:
300
300
  - /imurmurhash/0.1.4
301
301
  - /safer-buffer/2.1.2
302
302
  - /safe-buffer/5.2.1
303
- prunedAt: Fri, 08 Dec 2023 22:31:56 GMT
303
+ prunedAt: Wed, 13 Dec 2023 10:41:10 GMT
304
304
  publicHoistPattern:
305
305
  - '*eslint*'
306
306
  - '*prettier*'
package/dist/pnpm.cjs CHANGED
@@ -3323,7 +3323,7 @@ var require_lib4 = __commonJS({
3323
3323
  var load_json_file_1 = __importDefault3(require_load_json_file());
3324
3324
  var defaultManifest = {
3325
3325
  name: true ? "pnpm" : "pnpm",
3326
- version: true ? "8.12.0" : "0.0.0"
3326
+ version: true ? "8.12.1" : "0.0.0"
3327
3327
  };
3328
3328
  var pkgJson;
3329
3329
  if (require.main == null) {
@@ -81999,9 +81999,9 @@ var require_importIndexedDir = __commonJS({
81999
81999
  }
82000
82000
  });
82001
82001
 
82002
- // ../node_modules/.pnpm/@reflink+reflink@0.1.12/node_modules/@reflink/reflink/index.js
82002
+ // ../node_modules/.pnpm/@reflink+reflink@0.1.15/node_modules/@reflink/reflink/index.js
82003
82003
  var require_reflink = __commonJS({
82004
- "../node_modules/.pnpm/@reflink+reflink@0.1.12/node_modules/@reflink/reflink/index.js"(exports2, module2) {
82004
+ "../node_modules/.pnpm/@reflink+reflink@0.1.15/node_modules/@reflink/reflink/index.js"(exports2, module2) {
82005
82005
  var { existsSync, readFileSync } = require("fs");
82006
82006
  var { join } = require("path");
82007
82007
  var { platform, arch } = process;
@@ -82062,7 +82062,7 @@ var require_reflink = __commonJS({
82062
82062
  if (localFileExisted) {
82063
82063
  nativeBinding = require("./reflink.win32-x64-msvc.node");
82064
82064
  } else {
82065
- nativeBinding = require("./reflink.win32-x64-msvc-R5EFGPHQ.node");
82065
+ nativeBinding = require("./reflink.win32-x64-msvc-Z3VVFXEG.node");
82066
82066
  }
82067
82067
  } catch (e) {
82068
82068
  loadError = e;
@@ -82090,7 +82090,7 @@ var require_reflink = __commonJS({
82090
82090
  if (localFileExisted) {
82091
82091
  nativeBinding = require("./reflink.win32-arm64-msvc.node");
82092
82092
  } else {
82093
- nativeBinding = require("./reflink.win32-arm64-msvc-Y6LSPWJC.node");
82093
+ nativeBinding = require("./reflink.win32-arm64-msvc-QIFFKWKJ.node");
82094
82094
  }
82095
82095
  } catch (e) {
82096
82096
  loadError = e;
@@ -82118,7 +82118,7 @@ var require_reflink = __commonJS({
82118
82118
  if (localFileExisted) {
82119
82119
  nativeBinding = require("./reflink.darwin-x64.node");
82120
82120
  } else {
82121
- nativeBinding = require("./reflink.darwin-x64-Z425N3TX.node");
82121
+ nativeBinding = require("./reflink.darwin-x64-5M7MFGOE.node");
82122
82122
  }
82123
82123
  } catch (e) {
82124
82124
  loadError = e;
@@ -82132,7 +82132,7 @@ var require_reflink = __commonJS({
82132
82132
  if (localFileExisted) {
82133
82133
  nativeBinding = require("./reflink.darwin-arm64.node");
82134
82134
  } else {
82135
- nativeBinding = require("./reflink.darwin-arm64-GG6FQZPL.node");
82135
+ nativeBinding = require("./reflink.darwin-arm64-UVWNQWTH.node");
82136
82136
  }
82137
82137
  } catch (e) {
82138
82138
  loadError = e;
@@ -82350,7 +82350,7 @@ var require_lib51 = __commonJS({
82350
82350
  return void 0;
82351
82351
  }
82352
82352
  function createCloneFunction() {
82353
- if (process.platform === "darwin") {
82353
+ if (process.platform === "darwin" || process.platform === "win32") {
82354
82354
  const { reflinkFileSync } = require_reflink();
82355
82355
  return (fr, to) => {
82356
82356
  try {
@@ -111872,7 +111872,15 @@ var require_pkgSnapshotToResolution = __commonJS({
111872
111872
  return pkgSnapshot.resolution;
111873
111873
  }
111874
111874
  const { name } = (0, nameVerFromPkgSnapshot_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
111875
- const registry = name[0] === "@" && registries[name.split("/")[0]] || registries.default;
111875
+ let registry = "";
111876
+ if (name != null) {
111877
+ if (name.startsWith("@")) {
111878
+ registry = registries[name.split("/")[0]];
111879
+ }
111880
+ }
111881
+ if (!registry) {
111882
+ registry = registries.default;
111883
+ }
111876
111884
  let tarball;
111877
111885
  if (!pkgSnapshot.resolution.tarball) {
111878
111886
  tarball = getTarball(registry);
@@ -132462,7 +132470,10 @@ var require_prune2 = __commonJS({
132462
132470
  });
132463
132471
  }));
132464
132472
  await Promise.all(Array.from(removedFromScopes).map((scope) => (0, removeDirectDependency_1.removeIfEmpty)(path_1.default.join(modulesDir, scope))));
132465
- await (0, removeDirectDependency_1.removeIfEmpty)(modulesDir);
132473
+ try {
132474
+ await (0, removeDirectDependency_1.removeIfEmpty)(modulesDir);
132475
+ } catch {
132476
+ }
132466
132477
  }));
132467
132478
  const selectedImporterIds = importers.map((importer) => importer.id).sort();
132468
132479
  const currentPkgIdsByDepPaths = (0, equals_1.default)(selectedImporterIds, Object.keys(opts.wantedLockfile.importers)) ? getPkgsDepPaths(opts.registries, opts.currentLockfile.packages ?? {}, opts.skipped) : getPkgsDepPathsOwnedOnlyByImporters(selectedImporterIds, opts.registries, opts.currentLockfile, opts.include, opts.skipped);
@@ -182193,7 +182204,7 @@ var require_lib136 = __commonJS({
182193
182204
  });
182194
182205
  }
182195
182206
  const depNodes = Object.values(graph);
182196
- const added = depNodes.length;
182207
+ const added = depNodes.filter(({ fetching }) => fetching).length;
182197
182208
  core_loggers_1.statsLogger.debug({
182198
182209
  added,
182199
182210
  prefix: lockfileDir
@@ -184096,7 +184107,7 @@ var require_resolveDependencies = __commonJS({
184096
184107
  const depIsLinked = Boolean(
184097
184108
  // if package is not in `node_modules/.pnpm-lock.yaml`
184098
184109
  // we can safely assume that it doesn't exist in `node_modules`
184099
- currentLockfileContainsTheDep && currentPkg.depPath && currentPkg.dependencyLockfile && await (0, path_exists_1.default)(path_1.default.join(ctx.virtualStoreDir, dp.depPathToFilename(currentPkg.depPath), "node_modules", currentPkg.name, "package.json"))
184110
+ currentLockfileContainsTheDep && currentPkg.depPath && currentPkg.dependencyLockfile && currentPkg.name && await (0, path_exists_1.default)(path_1.default.join(ctx.virtualStoreDir, dp.depPathToFilename(currentPkg.depPath), "node_modules", currentPkg.name, "package.json"))
184100
184111
  );
184101
184112
  if (!options.update && !options.proceed && currentPkg.resolution != null && depIsLinked) {
184102
184113
  return null;
@@ -209671,7 +209682,6 @@ var require_patchCommit = __commonJS({
209671
209682
  const lockfileDir = opts.lockfileDir ?? opts.dir ?? process.cwd();
209672
209683
  const patchesDirName = (0, normalize_path_1.default)(path_1.default.normalize(opts.patchesDir ?? "patches"));
209673
209684
  const patchesDir = path_1.default.join(lockfileDir, patchesDirName);
209674
- await fs_1.default.promises.mkdir(patchesDir, { recursive: true });
209675
209685
  const patchedPkgManifest = await (0, read_package_json_1.readPackageJsonFromDir)(userDir);
209676
209686
  const pkgNameAndVersion = `${patchedPkgManifest.name}@${patchedPkgManifest.version}`;
209677
209687
  const gitTarballUrl = await getGitTarballUrlFromLockfile({
@@ -209689,6 +209699,7 @@ var require_patchCommit = __commonJS({
209689
209699
  if (!patchContent.length) {
209690
209700
  return `No changes were found to the following directory: ${userDir}`;
209691
209701
  }
209702
+ await fs_1.default.promises.mkdir(patchesDir, { recursive: true });
209692
209703
  const patchFileName = pkgNameAndVersion.replace("/", "__");
209693
209704
  await fs_1.default.promises.writeFile(path_1.default.join(patchesDir, `${patchFileName}.patch`), patchContent, "utf8");
209694
209705
  const { writeProjectManifest, manifest } = await (0, read_project_manifest_1.tryReadProjectManifest)(lockfileDir);
package/dist/worker.js CHANGED
@@ -12290,9 +12290,9 @@ var require_importIndexedDir = __commonJS({
12290
12290
  }
12291
12291
  });
12292
12292
 
12293
- // ../node_modules/.pnpm/@reflink+reflink@0.1.12/node_modules/@reflink/reflink/index.js
12293
+ // ../node_modules/.pnpm/@reflink+reflink@0.1.15/node_modules/@reflink/reflink/index.js
12294
12294
  var require_reflink = __commonJS({
12295
- "../node_modules/.pnpm/@reflink+reflink@0.1.12/node_modules/@reflink/reflink/index.js"(exports2, module2) {
12295
+ "../node_modules/.pnpm/@reflink+reflink@0.1.15/node_modules/@reflink/reflink/index.js"(exports2, module2) {
12296
12296
  var { existsSync, readFileSync } = require("fs");
12297
12297
  var { join } = require("path");
12298
12298
  var { platform, arch } = process;
@@ -12353,7 +12353,7 @@ var require_reflink = __commonJS({
12353
12353
  if (localFileExisted) {
12354
12354
  nativeBinding = require("./reflink.win32-x64-msvc.node");
12355
12355
  } else {
12356
- nativeBinding = require("./reflink.win32-x64-msvc-R5EFGPHQ.node");
12356
+ nativeBinding = require("./reflink.win32-x64-msvc-Z3VVFXEG.node");
12357
12357
  }
12358
12358
  } catch (e) {
12359
12359
  loadError = e;
@@ -12381,7 +12381,7 @@ var require_reflink = __commonJS({
12381
12381
  if (localFileExisted) {
12382
12382
  nativeBinding = require("./reflink.win32-arm64-msvc.node");
12383
12383
  } else {
12384
- nativeBinding = require("./reflink.win32-arm64-msvc-Y6LSPWJC.node");
12384
+ nativeBinding = require("./reflink.win32-arm64-msvc-QIFFKWKJ.node");
12385
12385
  }
12386
12386
  } catch (e) {
12387
12387
  loadError = e;
@@ -12409,7 +12409,7 @@ var require_reflink = __commonJS({
12409
12409
  if (localFileExisted) {
12410
12410
  nativeBinding = require("./reflink.darwin-x64.node");
12411
12411
  } else {
12412
- nativeBinding = require("./reflink.darwin-x64-Z425N3TX.node");
12412
+ nativeBinding = require("./reflink.darwin-x64-5M7MFGOE.node");
12413
12413
  }
12414
12414
  } catch (e) {
12415
12415
  loadError = e;
@@ -12423,7 +12423,7 @@ var require_reflink = __commonJS({
12423
12423
  if (localFileExisted) {
12424
12424
  nativeBinding = require("./reflink.darwin-arm64.node");
12425
12425
  } else {
12426
- nativeBinding = require("./reflink.darwin-arm64-GG6FQZPL.node");
12426
+ nativeBinding = require("./reflink.darwin-arm64-UVWNQWTH.node");
12427
12427
  }
12428
12428
  } catch (e) {
12429
12429
  loadError = e;
@@ -12641,7 +12641,7 @@ var require_lib8 = __commonJS({
12641
12641
  return void 0;
12642
12642
  }
12643
12643
  function createCloneFunction() {
12644
- if (process.platform === "darwin") {
12644
+ if (process.platform === "darwin" || process.platform === "win32") {
12645
12645
  const { reflinkFileSync } = require_reflink();
12646
12646
  return (fr, to) => {
12647
12647
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pnpm",
3
3
  "description": "Fast, disk space efficient package manager",
4
- "version": "8.12.0",
4
+ "version": "8.12.1",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"