@anolilab/semantic-release-pnpm 1.1.7 โ†’ 1.1.8

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,3 +1,9 @@
1
+ ## @anolilab/semantic-release-pnpm [1.1.8](https://github.com/anolilab/semantic-release/compare/@anolilab/semantic-release-pnpm@1.1.7...@anolilab/semantic-release-pnpm@1.1.8) (2025-01-16)
2
+
3
+ ### Bug Fixes
4
+
5
+ * remove usage of aggregate-error library ([e0c6e95](https://github.com/anolilab/semantic-release/commit/e0c6e95b07416d6694fa192ddca96e17a4c1c4b8))
6
+
1
7
  ## @anolilab/semantic-release-pnpm [1.1.7](https://github.com/anolilab/semantic-release/compare/@anolilab/semantic-release-pnpm@1.1.6...@anolilab/semantic-release-pnpm@1.1.7) (2025-01-14)
2
8
 
3
9
  ### Bug Fixes
package/README.md CHANGED
@@ -135,8 +135,8 @@ The [`registry`](https://docs.npmjs.com/misc/registry) and [`dist-tag`](https://
135
135
 
136
136
  **Notes**:
137
137
 
138
- - The presence of an `.npmrc` file will override any specified environment variables.
139
- - The presence of `registry` or `dist-tag` under `publishConfig` in the `package.json` will take precedence over the configuration in `.npmrc` and `NPM_CONFIG_REGISTRY`
138
+ - The presence of an `.npmrc` file will override any specified environment variables.
139
+ - The presence of `registry` or `dist-tag` under `publishConfig` in the `package.json` will take precedence over the configuration in `.npmrc` and `NPM_CONFIG_REGISTRY`
140
140
 
141
141
  ### Examples
142
142
 
@@ -197,8 +197,8 @@ When publishing from a sub-directory with the `pkgRoot` option, the `package.jso
197
197
 
198
198
  ## Related
199
199
 
200
- - [@semantic-release/npm](https://github.com/semantic-release/npm) - ๐Ÿšข semantic-release plugin to publish a npm package
201
- - [semantic-release-yarn](https://github.com/hongaar/semantic-release-yarn) - ๐Ÿงถ A semantic-release plugin to publish npm packages with Yarn. Comes with built-in support for monorepos.
200
+ - [@semantic-release/npm](https://github.com/semantic-release/npm) - ๐Ÿšข semantic-release plugin to publish a npm package
201
+ - [semantic-release-yarn](https://github.com/hongaar/semantic-release-yarn) - ๐Ÿงถ A semantic-release plugin to publish npm packages with Yarn. Comes with built-in support for monorepos.
202
202
 
203
203
  ## Supported Node.js Versions
204
204
 
@@ -213,8 +213,8 @@ If you would like to help take a look at the [list of issues](https://github.com
213
213
 
214
214
  ## Credits
215
215
 
216
- - [Daniel Bannert](https://github.com/prisis)
217
- - [All Contributors](https://github.com/anolilab/semantic-release/graphs/contributors)
216
+ - [Daniel Bannert](https://github.com/prisis)
217
+ - [All Contributors](https://github.com/anolilab/semantic-release/graphs/contributors)
218
218
 
219
219
  ## License
220
220
 
package/dist/index.mjs CHANGED
@@ -4,7 +4,6 @@ import { isAccessibleSync, ensureFileSync, move, writeFile } from '@visulima/fs'
4
4
  import { resolve } from '@visulima/path';
5
5
  import { rc } from '@anolilab/rc';
6
6
  import normalizeUrl from 'normalize-url';
7
- import AggregateError from 'aggregate-error';
8
7
  import { findPackageJson, getPackageManagerVersion } from '@visulima/package';
9
8
  import SemanticReleaseError from '@semantic-release/error';
10
9
  import { stringify } from 'ini';
@@ -165,7 +164,7 @@ const publishNpm = /* @__PURE__ */ __name$a(async (pluginConfig, packageJson, co
165
164
  await result;
166
165
  } catch (error) {
167
166
  logger.log(`Failed to publish ${packageJson.name}@${version} to dist-tag @${distributionTag} on ${registry}: ${error.message ?? error}`);
168
- throw new AggregateError([error]);
167
+ throw new AggregateError([error], error.message);
169
168
  }
170
169
  logger.log(`Published ${packageJson.name}@${version} to dist-tag @${distributionTag} on ${registry}`);
171
170
  return getReleaseInfo(packageJson, context, distributionTag, registry);
@@ -175,7 +174,7 @@ const publishNpm = /* @__PURE__ */ __name$a(async (pluginConfig, packageJson, co
175
174
  }, "default");
176
175
 
177
176
  const name = "@anolilab/semantic-release-pnpm";
178
- const version = "1.1.6";
177
+ const version = "1.1.7";
179
178
  const description = "Semantic-release plugin to publish a npm package with pnpm.";
180
179
  const keywords = [
181
180
  "anolilab",
@@ -238,12 +237,11 @@ const scripts = {
238
237
  "test:watch": "vitest"
239
238
  };
240
239
  const dependencies = {
241
- "@anolilab/rc": "1.1.4",
240
+ "@anolilab/rc": "1.1.5",
242
241
  "@semantic-release/error": "^4.0.0",
243
242
  "@visulima/fs": "^2.3.7",
244
243
  "@visulima/package": "^3.4.4",
245
244
  "@visulima/path": "^1.3.3",
246
- "aggregate-error": "^5.0.0",
247
245
  execa: "^9.5.2",
248
246
  ini: "^5.0.0",
249
247
  "normalize-url": "^8.0.1",
@@ -453,12 +451,14 @@ const getPackage = /* @__PURE__ */ __name$7(async ({ pkgRoot }, { cwd }) => {
453
451
  try {
454
452
  const { packageJson } = await findPackageJson(pkgRoot ? resolve(cwd, pkgRoot) : cwd);
455
453
  if (!packageJson.name) {
456
- throw new AggregateError([getError("ENOPKGNAME")]);
454
+ const semanticError = getError("ENOPKGNAME");
455
+ throw new AggregateError([semanticError], semanticError.message);
457
456
  }
458
457
  return packageJson;
459
458
  } catch (error) {
460
459
  if (error.code === "ENOENT") {
461
- throw new AggregateError([getError("ENOPKG")]);
460
+ const semanticError = getError("ENOPKG");
461
+ throw new AggregateError([semanticError], semanticError.message);
462
462
  }
463
463
  throw error;
464
464
  }
@@ -499,7 +499,8 @@ email = \${NPM_EMAIL}`);
499
499
  ` : ""}${nerfDart(registry)}:_authToken = \${NPM_TOKEN}`);
500
500
  logger.log(`Wrote NPM_TOKEN to ${npmrc}`);
501
501
  } else {
502
- throw new AggregateError([getError("ENONPMTOKEN", { registry })]);
502
+ const semanticError = getError("ENONPMTOKEN", { registry });
503
+ throw new AggregateError([semanticError], semanticError.message);
503
504
  }
504
505
  }, "default");
505
506
 
@@ -527,7 +528,8 @@ const verifyAuth = /* @__PURE__ */ __name$4(async (npmrc, package_, context) =>
527
528
  whoamiResult.stderr.pipe(stderr, { end: false });
528
529
  await whoamiResult;
529
530
  } catch {
530
- throw new AggregateError([getError("EINVALIDNPMTOKEN", { registry })]);
531
+ const semanticError = getError("EINVALIDNPMTOKEN", { registry });
532
+ throw new AggregateError([semanticError], semanticError.message);
531
533
  }
532
534
  } else {
533
535
  logger.log(`Skipping authentication verification for non-default registry "${registry}"`);
@@ -575,7 +577,8 @@ async function verifyPnpm({ logger }) {
575
577
  logger.log(`Verify pnpm version is >= ${MIN_PNPM_VERSION}`);
576
578
  const version = getPackageManagerVersion("pnpm");
577
579
  if (gte(MIN_PNPM_VERSION, version)) {
578
- throw new AggregateError([getError("EINVALIDPNPM", { version: String(version) })]);
580
+ const semanticError = getError("EINVALIDPNPM", { version: String(version) });
581
+ throw new AggregateError([semanticError], semanticError.message);
579
582
  }
580
583
  }
581
584
  __name$2(verifyPnpm, "verifyPnpm");
@@ -584,10 +587,12 @@ var __defProp$1 = Object.defineProperty;
584
587
  var __name$1 = (target, value) => __defProp$1(target, "name", { value, configurable: true });
585
588
  const verify = /* @__PURE__ */ __name$1(async (pluginConfig, context) => {
586
589
  let errors = verifyConfig(pluginConfig);
590
+ let errorsMessage = "";
587
591
  try {
588
592
  await verifyPnpm(context);
589
593
  } catch (error) {
590
594
  const typedError = error;
595
+ errorsMessage += typedError.message;
591
596
  errors = [...errors, ...typedError.errors ?? [error]];
592
597
  }
593
598
  try {
@@ -598,10 +603,11 @@ const verify = /* @__PURE__ */ __name$1(async (pluginConfig, context) => {
598
603
  }
599
604
  } catch (error) {
600
605
  const typedError = error;
606
+ errorsMessage += typedError.message;
601
607
  errors = [...errors, ...typedError.errors ?? [error]];
602
608
  }
603
609
  if (errors.length > 0) {
604
- throw new AggregateError(errors);
610
+ throw new AggregateError(errors, errorsMessage);
605
611
  }
606
612
  }, "verify");
607
613
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/semantic-release-pnpm",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Semantic-release plugin to publish a npm package with pnpm.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -51,7 +51,6 @@
51
51
  "@visulima/fs": "^2.3.7",
52
52
  "@visulima/package": "^3.4.4",
53
53
  "@visulima/path": "^1.3.3",
54
- "aggregate-error": "^5.0.0",
55
54
  "execa": "^9.5.2",
56
55
  "ini": "^5.0.0",
57
56
  "normalize-url": "^8.0.1",