@optique/run 1.3.0-dev.2536 → 1.3.0-dev.2540

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/dist/run.d.cts CHANGED
@@ -338,6 +338,8 @@ type AcceptExactOptionalRunOptions<TOptions> = [TOptions] extends [RunOptions |
338
338
  * @param parser The command-line parser to execute.
339
339
  * @param options Configuration options for customizing behavior.
340
340
  * See {@link RunOptions} for available settings.
341
+ * @throws {RangeError} If rendering help or errors encounters an invalid theme
342
+ * color, even when colors are disabled.
341
343
  * @returns The parsed result if successful. On help display or parse errors,
342
344
  * the function will call `process.exit()` and not return.
343
345
  *
@@ -417,6 +419,8 @@ declare function run<T extends Parser<Mode, unknown, unknown>>(parser: T, option
417
419
  * @template T The sync parser type being executed.
418
420
  * @param parser The synchronous command-line parser to execute.
419
421
  * @param options Configuration options for customizing behavior.
422
+ * @throws {RangeError} If rendering help or errors encounters an invalid theme
423
+ * color, even when colors are disabled.
420
424
  * @returns The parsed result if successful.
421
425
  * @throws {TypeError} If an async parser (or a {@link Program} wrapping one)
422
426
  * is passed at runtime. Use {@link run} or {@link runAsync} instead.
@@ -442,6 +446,8 @@ declare function runSync<T extends Parser<"sync", unknown, unknown>>(parser: T,
442
446
  * @template T The parser type being executed.
443
447
  * @param parser The command-line parser to execute.
444
448
  * @param options Configuration options for customizing behavior.
449
+ * @throws {RangeError} If rendering help or errors encounters an invalid theme
450
+ * color, even when colors are disabled.
445
451
  * @returns A Promise of the parsed result if successful.
446
452
  * @since 0.9.0
447
453
  */
package/dist/run.d.ts CHANGED
@@ -338,6 +338,8 @@ type AcceptExactOptionalRunOptions<TOptions> = [TOptions] extends [RunOptions |
338
338
  * @param parser The command-line parser to execute.
339
339
  * @param options Configuration options for customizing behavior.
340
340
  * See {@link RunOptions} for available settings.
341
+ * @throws {RangeError} If rendering help or errors encounters an invalid theme
342
+ * color, even when colors are disabled.
341
343
  * @returns The parsed result if successful. On help display or parse errors,
342
344
  * the function will call `process.exit()` and not return.
343
345
  *
@@ -417,6 +419,8 @@ declare function run<T extends Parser<Mode, unknown, unknown>>(parser: T, option
417
419
  * @template T The sync parser type being executed.
418
420
  * @param parser The synchronous command-line parser to execute.
419
421
  * @param options Configuration options for customizing behavior.
422
+ * @throws {RangeError} If rendering help or errors encounters an invalid theme
423
+ * color, even when colors are disabled.
420
424
  * @returns The parsed result if successful.
421
425
  * @throws {TypeError} If an async parser (or a {@link Program} wrapping one)
422
426
  * is passed at runtime. Use {@link run} or {@link runAsync} instead.
@@ -442,6 +446,8 @@ declare function runSync<T extends Parser<"sync", unknown, unknown>>(parser: T,
442
446
  * @template T The parser type being executed.
443
447
  * @param parser The command-line parser to execute.
444
448
  * @param options Configuration options for customizing behavior.
449
+ * @throws {RangeError} If rendering help or errors encounters an invalid theme
450
+ * color, even when colors are disabled.
445
451
  * @returns A Promise of the parsed result if successful.
446
452
  * @since 0.9.0
447
453
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/run",
3
- "version": "1.3.0-dev.2536",
3
+ "version": "1.3.0-dev.2540",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",
@@ -76,11 +76,11 @@
76
76
  },
77
77
  "sideEffects": false,
78
78
  "dependencies": {
79
- "@optique/core": "1.3.0-dev.2536+22f9c880"
79
+ "@optique/core": "1.3.0-dev.2540+a24fec00"
80
80
  },
81
81
  "devDependencies": {
82
- "@optique/config": "1.3.0-dev.2536+22f9c880",
83
- "@optique/env": "1.3.0-dev.2536+22f9c880",
82
+ "@optique/config": "1.3.0-dev.2540+a24fec00",
83
+ "@optique/env": "1.3.0-dev.2540+a24fec00",
84
84
  "@types/node": "^24.0.0",
85
85
  "fast-check": "^4.7.0",
86
86
  "tsdown": "^0.13.0",