@oclif/plugin-test-esbuild 0.5.64 → 0.5.66

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
@@ -17,7 +17,7 @@ $ npm install -g @oclif/plugin-test-esbuild
17
17
  $ bundle COMMAND
18
18
  running command...
19
19
  $ bundle (--version)
20
- @oclif/plugin-test-esbuild/0.5.64 linux-x64 node-v22.13.0
20
+ @oclif/plugin-test-esbuild/0.5.66 linux-x64 node-v22.13.1
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-SJ2X2LSZ.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-SJ2X2LSZ.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -318,6 +318,17 @@ var require_semver = __commonJS({
318
318
  // preminor will bump the version up to the next minor release, and immediately
319
319
  // down to pre-release. premajor and prepatch work the same way.
320
320
  inc(release, identifier, identifierBase) {
321
+ if (release.startsWith("pre")) {
322
+ if (!identifier && identifierBase === false) {
323
+ throw new Error("invalid increment argument: identifier is empty");
324
+ }
325
+ if (identifier) {
326
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
327
+ if (!match || match[1] !== identifier) {
328
+ throw new Error(`invalid identifier: ${identifier}`);
329
+ }
330
+ }
331
+ }
321
332
  switch (release) {
322
333
  case "premajor":
323
334
  this.prerelease.length = 0;
@@ -345,6 +356,12 @@ var require_semver = __commonJS({
345
356
  }
346
357
  this.inc("pre", identifier, identifierBase);
347
358
  break;
359
+ case "release":
360
+ if (this.prerelease.length === 0) {
361
+ throw new Error(`version ${this.raw} is not a prerelease`);
362
+ }
363
+ this.prerelease.length = 0;
364
+ break;
348
365
  case "major":
349
366
  if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
350
367
  this.major++;
@@ -370,9 +387,6 @@ var require_semver = __commonJS({
370
387
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
371
388
  case "pre": {
372
389
  const base = Number(identifierBase) ? 1 : 0;
373
- if (!identifier && identifierBase === false) {
374
- throw new Error("invalid increment argument: identifier is empty");
375
- }
376
390
  if (this.prerelease.length === 0) {
377
391
  this.prerelease = [base];
378
392
  } else {
@@ -512,13 +526,12 @@ var require_diff = __commonJS({
512
526
  if (!lowVersion.patch && !lowVersion.minor) {
513
527
  return "major";
514
528
  }
515
- if (highVersion.patch) {
529
+ if (lowVersion.compareMain(highVersion) === 0) {
530
+ if (lowVersion.minor && !lowVersion.patch) {
531
+ return "minor";
532
+ }
516
533
  return "patch";
517
534
  }
518
- if (highVersion.minor) {
519
- return "minor";
520
- }
521
- return "major";
522
535
  }
523
536
  const prefix = highHasPre ? "pre" : "";
524
537
  if (v1.major !== v2.major) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-SJ2X2LSZ.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-SJ2X2LSZ.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims