@optique/core 1.4.0-dev.2675 → 1.4.0-dev.2678

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.4.0-dev.2675",
3
+ "version": "1.4.0-dev.2678",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",
@@ -237,7 +237,7 @@
237
237
  },
238
238
  "sideEffects": false,
239
239
  "devDependencies": {
240
- "@optique/env": "1.4.0-dev.2675+980e94e9",
240
+ "@optique/env": "1.4.0-dev.2678+a475f32a",
241
241
  "@types/node": "^24.0.0",
242
242
  "fast-check": "^4.7.0",
243
243
  "tsdown": "^0.13.0",
@@ -248,10 +248,10 @@ Common mistakes checklist
248
248
  - Use structured `message` values for errors and descriptions.
249
249
  - Register contexts for `bindEnv()`, `bindConfig()`, `bindDerivedDefault()`,
250
250
  and `bindKeyring()` in the runner's `contexts` option.
251
+ - Use `bindEnv().readFallback()` for env/default in error handlers.
251
252
  - Enable `showEnvironment` for env-only help; set `documentation.description`.
252
- - Do not flatten a multi-level dependency graph into duplicated one-level
253
- factories. Wrap each derived value that becomes a later source with
254
- `dependency()` and derive the next parser from it.
253
+ - Keep multi-level dependency graphs with `dependency()` rather than
254
+ duplicating one-level factories.
255
255
  - Do not probe runtime capabilities eagerly before constructing a prompt
256
256
  parser. Put synchronous or asynchronous checks in the prompt config's
257
257
  `when` field and provide a typed `otherwise` value. The check then runs