pnpm 8.3.0-0 → 8.3.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.
package/README.md CHANGED
@@ -105,6 +105,17 @@ To quote the [Rush](https://rushjs.io/) team:
105
105
  </a>
106
106
  </td>
107
107
  </tr>
108
+ <tr>
109
+ <td align="center" valign="middle">
110
+ <a href="https://www.thinkmill.com.au/?utm_source=pnpm&utm_medium=readme" target="_blank">
111
+ <picture>
112
+ <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/thinkmill.svg" />
113
+ <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/thinkmill_light.svg" />
114
+ <img src="https://pnpm.io/img/users/thinkmill.svg" width="200" />
115
+ </picture>
116
+ </a>
117
+ </td>
118
+ </tr>
108
119
  </tbody>
109
120
  </table>
110
121
 
@@ -204,7 +204,7 @@ packageManager: pnpm@8.0.0-beta.0
204
204
  pendingBuilds:
205
205
  - /node-gyp/9.3.1
206
206
  - /encoding/0.1.13
207
- prunedAt: Sun, 16 Apr 2023 21:22:34 GMT
207
+ prunedAt: Wed, 19 Apr 2023 12:22:54 GMT
208
208
  publicHoistPattern:
209
209
  - '*eslint*'
210
210
  - '*prettier*'
package/dist/pnpm.cjs CHANGED
@@ -3249,7 +3249,7 @@ var require_lib4 = __commonJS({
3249
3249
  var load_json_file_1 = __importDefault3(require_load_json_file());
3250
3250
  var defaultManifest = {
3251
3251
  name: true ? "pnpm" : "pnpm",
3252
- version: true ? "8.3.0-0" : "0.0.0"
3252
+ version: true ? "8.3.1" : "0.0.0"
3253
3253
  };
3254
3254
  var pkgJson;
3255
3255
  if (require.main == null) {
@@ -45178,11 +45178,14 @@ var require_reportSummary = __commonJS({
45178
45178
  function reportSummary(log$, opts) {
45179
45179
  const pkgsDiff$ = (0, pkgsDiff_1.getPkgsDiff)(log$, { prefix: opts.cwd });
45180
45180
  const summaryLog$ = log$.summary.pipe((0, operators_1.take)(1));
45181
- const _printDiffs = printDiffs.bind(null, { prefix: opts.cwd, filterPkgsDiff: opts.filterPkgsDiff });
45181
+ const _printDiffs = printDiffs.bind(null, { prefix: opts.cwd });
45182
45182
  return Rx.combineLatest(pkgsDiff$, summaryLog$).pipe((0, operators_1.take)(1), (0, operators_1.map)(([pkgsDiff]) => {
45183
45183
  let msg = "";
45184
45184
  for (const depType of ["prod", "optional", "peer", "dev", "nodeModulesOnly"]) {
45185
- const diffs = Object.values(pkgsDiff[depType]);
45185
+ let diffs = Object.values(pkgsDiff[depType]);
45186
+ if (opts.filterPkgsDiff) {
45187
+ diffs = diffs.filter((pkgDiff) => opts.filterPkgsDiff(pkgDiff));
45188
+ }
45186
45189
  if (diffs.length > 0) {
45187
45190
  msg += constants_1.EOL;
45188
45191
  if (opts.pnpmConfig?.global) {
@@ -45207,9 +45210,6 @@ var require_reportSummary = __commonJS({
45207
45210
  }
45208
45211
  exports2.reportSummary = reportSummary;
45209
45212
  function printDiffs(opts, pkgsDiff) {
45210
- if (opts.filterPkgsDiff) {
45211
- pkgsDiff = pkgsDiff.filter((pkgDiff) => opts.filterPkgsDiff(pkgDiff));
45212
- }
45213
45213
  pkgsDiff.sort((a, b) => a.name.localeCompare(b.name) * 10 + (Number(!b.added) - Number(!a.added)));
45214
45214
  const msg = pkgsDiff.map((pkg) => {
45215
45215
  let result2 = pkg.added ? outputConstants_1.ADDED_CHAR : outputConstants_1.REMOVED_CHAR;
@@ -60266,9 +60266,9 @@ var require_fetch_blob = __commonJS({
60266
60266
  }
60267
60267
  });
60268
60268
 
60269
- // ../node_modules/.pnpm/node-fetch@3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs
60269
+ // ../node_modules/.pnpm/@pnpm+node-fetch@1.0.0/node_modules/@pnpm/node-fetch/dist/index.cjs
60270
60270
  var require_dist6 = __commonJS({
60271
- "../node_modules/.pnpm/node-fetch@3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs"(exports2, module2) {
60271
+ "../node_modules/.pnpm/@pnpm+node-fetch@1.0.0/node_modules/@pnpm/node-fetch/dist/index.cjs"(exports2, module2) {
60272
60272
  "use strict";
60273
60273
  exports2 = module2.exports = fetch;
60274
60274
  var http = require("http");
@@ -60361,7 +60361,7 @@ var require_dist6 = __commonJS({
60361
60361
  length += Buffer.byteLength(getFooter(boundary));
60362
60362
  return length;
60363
60363
  }
60364
- var INTERNALS = Symbol("Body internals");
60364
+ var INTERNALS$2 = Symbol("Body internals");
60365
60365
  var Body = class {
60366
60366
  constructor(body, {
60367
60367
  size = 0
@@ -60387,7 +60387,7 @@ var require_dist6 = __commonJS({
60387
60387
  } else {
60388
60388
  body = Buffer.from(String(body));
60389
60389
  }
60390
- this[INTERNALS] = {
60390
+ this[INTERNALS$2] = {
60391
60391
  body,
60392
60392
  boundary,
60393
60393
  disturbed: false,
@@ -60397,15 +60397,15 @@ var require_dist6 = __commonJS({
60397
60397
  if (body instanceof Stream) {
60398
60398
  body.on("error", (err) => {
60399
60399
  const error = err instanceof FetchBaseError ? err : new FetchError(`Invalid response body while trying to fetch ${this.url}: ${err.message}`, "system", err);
60400
- this[INTERNALS].error = error;
60400
+ this[INTERNALS$2].error = error;
60401
60401
  });
60402
60402
  }
60403
60403
  }
60404
60404
  get body() {
60405
- return this[INTERNALS].body;
60405
+ return this[INTERNALS$2].body;
60406
60406
  }
60407
60407
  get bodyUsed() {
60408
- return this[INTERNALS].disturbed;
60408
+ return this[INTERNALS$2].disturbed;
60409
60409
  }
60410
60410
  /**
60411
60411
  * Decode response as ArrayBuffer
@@ -60422,7 +60422,7 @@ var require_dist6 = __commonJS({
60422
60422
  * @return Promise
60423
60423
  */
60424
60424
  async blob() {
60425
- const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
60425
+ const ct = this.headers && this.headers.get("content-type") || this[INTERNALS$2].body && this[INTERNALS$2].body.type || "";
60426
60426
  const buf = await this.buffer();
60427
60427
  return new Blob([buf], {
60428
60428
  type: ct
@@ -60464,12 +60464,12 @@ var require_dist6 = __commonJS({
60464
60464
  text: { enumerable: true }
60465
60465
  });
60466
60466
  async function consumeBody(data) {
60467
- if (data[INTERNALS].disturbed) {
60467
+ if (data[INTERNALS$2].disturbed) {
60468
60468
  throw new TypeError(`body used already for: ${data.url}`);
60469
60469
  }
60470
- data[INTERNALS].disturbed = true;
60471
- if (data[INTERNALS].error) {
60472
- throw data[INTERNALS].error;
60470
+ data[INTERNALS$2].disturbed = true;
60471
+ if (data[INTERNALS$2].error) {
60472
+ throw data[INTERNALS$2].error;
60473
60473
  }
60474
60474
  let { body } = data;
60475
60475
  if (body === null) {
@@ -60528,7 +60528,7 @@ var require_dist6 = __commonJS({
60528
60528
  p2 = new Stream.PassThrough({ highWaterMark });
60529
60529
  body.pipe(p1);
60530
60530
  body.pipe(p2);
60531
- instance[INTERNALS].body = p1;
60531
+ instance[INTERNALS$2].body = p1;
60532
60532
  body = p2;
60533
60533
  }
60534
60534
  return body;
@@ -60553,7 +60553,7 @@ var require_dist6 = __commonJS({
60553
60553
  return `multipart/form-data;boundary=${body.getBoundary()}`;
60554
60554
  }
60555
60555
  if (isFormData(body)) {
60556
- return `multipart/form-data; boundary=${request[INTERNALS].boundary}`;
60556
+ return `multipart/form-data; boundary=${request[INTERNALS$2].boundary}`;
60557
60557
  }
60558
60558
  if (body instanceof Stream) {
60559
60559
  return null;
@@ -60575,7 +60575,7 @@ var require_dist6 = __commonJS({
60575
60575
  return body.hasKnownLength && body.hasKnownLength() ? body.getLengthSync() : null;
60576
60576
  }
60577
60577
  if (isFormData(body)) {
60578
- return getFormDataLength(request[INTERNALS].boundary);
60578
+ return getFormDataLength(request[INTERNALS$2].boundary);
60579
60579
  }
60580
60580
  return null;
60581
60581
  };
@@ -60659,7 +60659,7 @@ var require_dist6 = __commonJS({
60659
60659
  validateHeaderName(name);
60660
60660
  validateHeaderValue(name, String(value));
60661
60661
  return URLSearchParams.prototype[p].call(
60662
- receiver,
60662
+ target,
60663
60663
  String(name).toLowerCase(),
60664
60664
  String(value)
60665
60665
  );
@@ -60670,7 +60670,7 @@ var require_dist6 = __commonJS({
60670
60670
  return (name) => {
60671
60671
  validateHeaderName(name);
60672
60672
  return URLSearchParams.prototype[p].call(
60673
- receiver,
60673
+ target,
60674
60674
  String(name).toLowerCase()
60675
60675
  );
60676
60676
  };
@@ -60877,9 +60877,9 @@ var require_dist6 = __commonJS({
60877
60877
  const hash = parsedURL.hash || (parsedURL.href[lastOffset] === "#" ? "#" : "");
60878
60878
  return parsedURL.href[lastOffset - hash.length] === "?" ? "?" : "";
60879
60879
  };
60880
- var INTERNALS$2 = Symbol("Request internals");
60880
+ var INTERNALS = Symbol("Request internals");
60881
60881
  var isRequest = (object) => {
60882
- return typeof object === "object" && typeof object[INTERNALS$2] === "object";
60882
+ return typeof object === "object" && typeof object[INTERNALS] === "object";
60883
60883
  };
60884
60884
  var Request = class extends Body {
60885
60885
  constructor(input, init = {}) {
@@ -60913,7 +60913,7 @@ var require_dist6 = __commonJS({
60913
60913
  if (signal !== null && !isAbortSignal(signal)) {
60914
60914
  throw new TypeError("Expected signal to be an instanceof AbortSignal");
60915
60915
  }
60916
- this[INTERNALS$2] = {
60916
+ this[INTERNALS] = {
60917
60917
  method,
60918
60918
  redirect: init.redirect || input.redirect || "follow",
60919
60919
  headers,
@@ -60928,19 +60928,19 @@ var require_dist6 = __commonJS({
60928
60928
  this.insecureHTTPParser = init.insecureHTTPParser || input.insecureHTTPParser || false;
60929
60929
  }
60930
60930
  get method() {
60931
- return this[INTERNALS$2].method;
60931
+ return this[INTERNALS].method;
60932
60932
  }
60933
60933
  get url() {
60934
- return url.format(this[INTERNALS$2].parsedURL);
60934
+ return url.format(this[INTERNALS].parsedURL);
60935
60935
  }
60936
60936
  get headers() {
60937
- return this[INTERNALS$2].headers;
60937
+ return this[INTERNALS].headers;
60938
60938
  }
60939
60939
  get redirect() {
60940
- return this[INTERNALS$2].redirect;
60940
+ return this[INTERNALS].redirect;
60941
60941
  }
60942
60942
  get signal() {
60943
- return this[INTERNALS$2].signal;
60943
+ return this[INTERNALS].signal;
60944
60944
  }
60945
60945
  /**
60946
60946
  * Clone this request
@@ -60963,8 +60963,8 @@ var require_dist6 = __commonJS({
60963
60963
  signal: { enumerable: true }
60964
60964
  });
60965
60965
  var getNodeRequestOptions = (request) => {
60966
- const { parsedURL } = request[INTERNALS$2];
60967
- const headers = new Headers(request[INTERNALS$2].headers);
60966
+ const { parsedURL } = request[INTERNALS];
60967
+ const headers = new Headers(request[INTERNALS].headers);
60968
60968
  if (!headers.has("Accept")) {
60969
60969
  headers.set("Accept", "*/*");
60970
60970
  }
@@ -61199,7 +61199,7 @@ var require_dist6 = __commonJS({
61199
61199
  exports2.Headers = Headers;
61200
61200
  exports2.Request = Request;
61201
61201
  exports2.Response = Response;
61202
- exports2.default = fetch;
61202
+ exports2["default"] = fetch;
61203
61203
  exports2.isRedirect = isRedirect;
61204
61204
  }
61205
61205
  });
@@ -114191,10 +114191,12 @@ var require_satisfiesPackageManifest = __commonJS({
114191
114191
  };
114192
114192
  }
114193
114193
  const pickNonLinkedDeps = (0, pickBy_1.default)((spec) => !spec.startsWith("link:"));
114194
+ let specs = importer.specifiers;
114194
114195
  if (opts?.excludeLinksFromLockfile) {
114195
114196
  existingDeps = pickNonLinkedDeps(existingDeps);
114197
+ specs = pickNonLinkedDeps(specs);
114196
114198
  }
114197
- if (!(0, equals_1.default)(existingDeps, importer.specifiers) || importer.publishDirectory !== pkg.publishConfig?.directory) {
114199
+ if (!(0, equals_1.default)(existingDeps, specs) || importer.publishDirectory !== pkg.publishConfig?.directory) {
114198
114200
  return false;
114199
114201
  }
114200
114202
  if (!(0, equals_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {}))
@@ -180700,14 +180702,13 @@ var require_lib131 = __commonJS({
180700
180702
  for (const { id, manifest } of selectedProjects) {
180701
180703
  if (filteredLockfile.importers[id]) {
180702
180704
  for (const depType of types_1.DEPENDENCIES_FIELDS) {
180703
- for (const [depName, spec] of Object.entries(manifest[depType] ?? {})) {
180704
- if (spec.startsWith("link:")) {
180705
- if (!filteredLockfile.importers[id][depType]) {
180706
- filteredLockfile.importers[id][depType] = {};
180707
- }
180708
- filteredLockfile.importers[id][depType][depName] = spec;
180709
- }
180710
- }
180705
+ filteredLockfile.importers[id][depType] = {
180706
+ ...filteredLockfile.importers[id][depType],
180707
+ ...Object.entries(manifest[depType] ?? {}).filter(([_, spec]) => spec.startsWith("link:")).reduce((acc, [depName, spec]) => {
180708
+ acc[depName] = `link:${path_1.default.relative(opts.lockfileDir, spec.substring(5))}`;
180709
+ return acc;
180710
+ }, {})
180711
+ };
180711
180712
  }
180712
180713
  }
180713
180714
  }
@@ -186439,6 +186440,7 @@ var require_extendInstallOptions = __commonJS({
186439
186440
  enablePnp: false,
186440
186441
  engineStrict: false,
186441
186442
  force: false,
186443
+ forceFullResolution: false,
186442
186444
  forceSharedLockfile: false,
186443
186445
  frozenLockfile: false,
186444
186446
  hoistPattern: void 0,
@@ -187147,7 +187149,7 @@ var require_install = __commonJS({
187147
187149
  onlyBuiltDependencies: opts.onlyBuiltDependencies,
187148
187150
  packageExtensionsChecksum,
187149
187151
  patchedDependencies
187150
- }) || opts.fixLockfile || !ctx.wantedLockfile.lockfileVersion.toString().startsWith("6.");
187152
+ }) || opts.fixLockfile || !ctx.wantedLockfile.lockfileVersion.toString().startsWith("6.") || opts.forceFullResolution;
187151
187153
  if (needsFullResolution) {
187152
187154
  ctx.wantedLockfile.overrides = opts.overrides;
187153
187155
  ctx.wantedLockfile.neverBuiltDependencies = opts.neverBuiltDependencies;
@@ -189509,6 +189511,7 @@ var require_install2 = __commonJS({
189509
189511
  ...rcOptionsTypes(),
189510
189512
  ...(0, pick_1.default)(["force"], config_1.types),
189511
189513
  "fix-lockfile": Boolean,
189514
+ "resolution-only": Boolean,
189512
189515
  recursive: Boolean
189513
189516
  });
189514
189517
  exports2.cliOptionsTypes = cliOptionsTypes;
@@ -189654,6 +189657,10 @@ var require_install2 = __commonJS({
189654
189657
  description: "Only use the side effects cache if present, do not create it for new packages",
189655
189658
  name: "--side-effects-cache-readonly"
189656
189659
  },
189660
+ {
189661
+ description: "Re-runs resolution: useful for printing out peer dependency issues",
189662
+ name: "--resolution-only"
189663
+ },
189657
189664
  ...common_cli_options_help_1.UNIVERSAL_OPTIONS
189658
189665
  ]
189659
189666
  },
@@ -189671,12 +189678,17 @@ var require_install2 = __commonJS({
189671
189678
  devDependencies: opts.dev !== false,
189672
189679
  optionalDependencies: opts.optional !== false
189673
189680
  };
189674
- return (0, installDeps_1.installDeps)({
189681
+ const installDepsOptions = {
189675
189682
  ...opts,
189676
189683
  frozenLockfileIfExists: ci_info_1.isCI && !opts.lockfileOnly && typeof opts.rawLocalConfig["frozen-lockfile"] === "undefined" && typeof opts.rawLocalConfig["prefer-frozen-lockfile"] === "undefined",
189677
189684
  include,
189678
189685
  includeDirect: include
189679
- }, []);
189686
+ };
189687
+ if (opts.resolutionOnly) {
189688
+ installDepsOptions.lockfileOnly = true;
189689
+ installDepsOptions.forceFullResolution = true;
189690
+ }
189691
+ return (0, installDeps_1.installDeps)(installDepsOptions, []);
189680
189692
  }
189681
189693
  exports2.handler = handler;
189682
189694
  }
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.3.0-0",
4
+ "version": "8.3.1",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"