Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Sep 22, 2025

Bumps cmd-ts from 0.13.0 to 0.14.2.

Release notes

Sourced from cmd-ts's releases.

v0.14.2

Patch Changes

  • 87565b2: Added onMissing callback support to flags, options, and custom types

    That allows providing dynamic fallback values when command-line arguments are not provided, This enables:

    • Hiding default values from help output
    • Interactive prompts: Ask users for input when flags/options are missing
    • Environment-based defaults: Check environment variables or config files dynamically
    • Auto-discovery: Automatically find files or resources when not specified
    • Async support: Handle both synchronous and asynchronous fallback logic

    The onMissing callback is used as a fallback when defaultValue is not provided, following the precedence order: environment variables → defaultValue → onMissing → type defaults.

    New APIs:

    • flag({ onMissing: () => boolean | Promise })
    • option({ onMissing: () => T | Promise })
    • multioption({ onMissing: () => T[] | Promise<T[]> })
    • Custom Type interface now supports onMissing property

v0.14.1

Patch Changes

  • 46bf4a7: fix: properly reconstruct original argument strings in rest combinator
Changelog

Sourced from cmd-ts's changelog.

0.14.2

Patch Changes

  • 87565b2: Added onMissing callback support to flags, options, and custom types

    That allows providing dynamic fallback values when command-line arguments are not provided, This enables:

    • Hiding default values from help output
    • Interactive prompts: Ask users for input when flags/options are missing
    • Environment-based defaults: Check environment variables or config files dynamically
    • Auto-discovery: Automatically find files or resources when not specified
    • Async support: Handle both synchronous and asynchronous fallback logic

    The onMissing callback is used as a fallback when defaultValue is not provided, following the precedence order: environment variables → defaultValue → onMissing → type defaults.

    New APIs:

    • flag({ onMissing: () => boolean | Promise })
    • option({ onMissing: () => T | Promise })
    • multioption({ onMissing: () => T[] | Promise<T[]> })
    • Custom Type interface now supports onMissing property

0.14.1

Patch Changes

  • 46bf4a7: fix: properly reconstruct original argument strings in rest combinator

0.14.0

Minor Changes

  • a1afb05: --help exits with statuscode 0
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [cmd-ts](https://github.com/Schniz/cmd-ts) from 0.13.0 to 0.14.2.
- [Release notes](https://github.com/Schniz/cmd-ts/releases)
- [Changelog](https://github.com/Schniz/cmd-ts/blob/main/CHANGELOG.md)
- [Commits](Schniz/cmd-ts@v0.13.0...v0.14.2)

---
updated-dependencies:
- dependency-name: cmd-ts
  dependency-version: 0.14.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 22, 2025
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 20, 2025

Superseded by #5.

@dependabot dependabot bot closed this Oct 20, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/cmd-ts-0.14.2 branch October 20, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant