@optique/env 1.2.0-dev.2180 → 1.2.0-dev.2187

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/index.cjs CHANGED
@@ -25,6 +25,7 @@ const node_fs = __toESM(require("node:fs"));
25
25
  const node_path = __toESM(require("node:path"));
26
26
  const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
27
27
  const __optique_core_extension = __toESM(require("@optique/core/extension"));
28
+ const __optique_core_fluent = __toESM(require("@optique/core/fluent"));
28
29
  const __optique_core_message = __toESM(require("@optique/core/message"));
29
30
  const __optique_core_valueparser = __toESM(require("@optique/core/valueparser"));
30
31
 
@@ -482,7 +483,7 @@ function bindEnv(parser, options) {
482
483
  configurable: true,
483
484
  enumerable: false
484
485
  });
485
- return boundParser;
486
+ return (0, __optique_core_fluent.fluent)(boundParser);
486
487
  }
487
488
  /**
488
489
  * Resolves a `bindEnv()` fallback value with env > default > inner
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { SourceContext } from "@optique/core/context";
2
+ import { FluentParser } from "@optique/core/fluent";
2
3
  import { Message } from "@optique/core/message";
3
4
  import { Mode, Parser } from "@optique/core/parser";
4
5
  import { NonEmptyString, ValueParser } from "@optique/core/valueparser";
@@ -183,7 +184,7 @@ interface BindEnvOptions<M extends Mode, TValue> {
183
184
  * CLI tokens are parsed (see issue #414).
184
185
  * @since 1.0.0
185
186
  */
186
- declare function bindEnv<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, options: BindEnvOptions<M, TValue>): Parser<M, TValue, TState>;
187
+ declare function bindEnv<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, options: BindEnvOptions<M, TValue>): FluentParser<M, TValue, TState>;
187
188
  /**
188
189
  * Options for the {@link bool} parser.
189
190
  *
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { FluentParser } from "@optique/core/fluent";
1
2
  import { Message } from "@optique/core/message";
2
3
  import { NonEmptyString, ValueParser } from "@optique/core/valueparser";
3
4
  import { SourceContext } from "@optique/core/context";
@@ -183,7 +184,7 @@ interface BindEnvOptions<M extends Mode, TValue> {
183
184
  * CLI tokens are parsed (see issue #414).
184
185
  * @since 1.0.0
185
186
  */
186
- declare function bindEnv<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, options: BindEnvOptions<M, TValue>): Parser<M, TValue, TState>;
187
+ declare function bindEnv<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, options: BindEnvOptions<M, TValue>): FluentParser<M, TValue, TState>;
187
188
  /**
188
189
  * Options for the {@link bool} parser.
189
190
  *
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import { readFileSync } from "node:fs";
2
2
  import { resolve } from "node:path";
3
3
  import { getAnnotations } from "@optique/core/annotations";
4
4
  import { defineTraits, delegateSuggestNodes, dispatchByMode, getTraits, inheritAnnotations, injectAnnotations, isInjectedAnnotationState, mapModeValue, mapSourceMetadata, wrapForMode } from "@optique/core/extension";
5
+ import { fluent } from "@optique/core/fluent";
5
6
  import { envVar, message, valueSet } from "@optique/core/message";
6
7
  import { ensureNonEmptyString, isValueParser } from "@optique/core/valueparser";
7
8
 
@@ -459,7 +460,7 @@ function bindEnv(parser, options) {
459
460
  configurable: true,
460
461
  enumerable: false
461
462
  });
462
- return boundParser;
463
+ return fluent(boundParser);
463
464
  }
464
465
  /**
465
466
  * Resolves a `bindEnv()` fallback value with env > default > inner
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/env",
3
- "version": "1.2.0-dev.2180",
3
+ "version": "1.2.0-dev.2187",
4
4
  "description": "Environment variable support for Optique",
5
5
  "keywords": [
6
6
  "CLI",
@@ -60,14 +60,14 @@
60
60
  },
61
61
  "sideEffects": false,
62
62
  "dependencies": {
63
- "@optique/core": "1.2.0-dev.2180+f59f99d2"
63
+ "@optique/core": "1.2.0-dev.2187+6112b083"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/node": "^24.0.0",
67
67
  "fast-check": "^4.7.0",
68
68
  "tsdown": "^0.13.0",
69
69
  "typescript": "^5.8.3",
70
- "@optique/config": "1.2.0-dev.2180+f59f99d2"
70
+ "@optique/config": "1.2.0-dev.2187+6112b083"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "tsdown",