ReviewOS

also looking at this

stacks/food-market

chore(deps): update dependency @clack/core to v1 - autoclosed

#21
Closed renovate[bot] wants to merge renovate/clack-core-1.x into main
2 files +11 -3
9 days ago

This PR contains the following updates:

PackageChangeAgeAdoptionPassingConfidence
@clack/core (source)^0.4.1 → ^1.3.0ageadoptionpassingconfidence

Release Notes

bombshell-dev/clack (@​clack/core)

v1.3.0

Compare Source

Minor Changes
  • 78fd3ae: Remove unused debug option key.
  • ea5702e: fix: add engines field expressing node >=20.12 requirement
  • 814ab9a: Add new multiline prompt for multi-line text input.

v1.2.0

Compare Source

Minor Changes
  • 9786226: Externalize fast-string-width and fast-wrap-ansi to avoid double dependencies
  • 090902c: Adds date prompt with format support (YMD, MDY, DMY)
Patch Changes
  • bdf89a5: Adds placeholder option to autocomplete. When the placeholder is set and the input is empty, pressing tab will set the value to placeholder.
  • 417b451: Only apply autocomplete default filter if it has been explicitly set or if options is not a getter.

v1.1.0

Compare Source

Minor Changes
  • e3333fb: Replaces picocolors with Node.js built-in styleText.

v1.0.1

Compare Source

Patch Changes
  • 6404dc1: Disallows selection of disabled options in autocomplete.
  • 2533180: Updates the documentation to mention userInputWithCursor when using the TextPrompt primitive.

v1.0.0

Compare Source

Major Changes
Minor Changes
  • 7bc3301: Prompts now have a userInput stored separately from their value.

  • 2837845: Adds suggestion and path prompts

  • 729bbb6: Add support for customizable spinner cancel and error messages. Users can now customize these messages either per spinner instance or globally via the updateSettings function to support multilingual CLIs.

    This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.

    // Per-instance customization
    const spinner = prompts.spinner({
      cancelMessage: "Operación cancelada", // "Operation cancelled" in Spanish
      errorMessage: "Se produjo un error", // "An error occurred" in Spanish
    });
    
    // Global customization via updateSettings
    prompts.updateSettings({
      messages: {
        cancel: "Operación cancelada", // "Operation cancelled" in Spanish
        error: "Se produjo un error", // "An error occurred" in Spanish
      },
    });
    
    // Settings can now be accessed directly
    console.log(prompts.settings.messages.cancel); // "Operación cancelada"
    
    // Direct options take priority over global settings
    const spinner = prompts.spinner({
      cancelMessage: "Cancelled", // This will be used instead of the global setting
    });
  • 55645c2: Support wrapping autocomplete and select prompts.

  • f2c2b89: Adds AutocompletePrompt to core with comprehensive tests and implement both autocomplete and autocomplete-multiselect components in prompts package.

  • df4eea1: Remove suggestion prompt and change path prompt to be an autocomplete prompt.

  • 1604f97: Add clearOnError option to password prompt to automatically clear input when validation fails

Patch Changes
  • 0718b07: fix: export *Options types for prompts.
  • bfe0dd3: Prevents placeholder from being used as input value in text prompts
  • 6868c1c: Adds a new selectableGroups boolean to the group multi-select prompt. Using selectableGroups: false will disable the ability to select a top-level group, but still allow every child to be selected individually.
  • 7df841d: Removed all trailing space in prompt output and fixed various padding rendering bugs.
  • a4f5034: Fixes an edge case for placeholder values. Previously, when pressing enter on an empty prompt, placeholder values would be ignored. Now, placeholder values are treated as the prompt value.
  • b103ad3: Allow disabled options in multi-select and select prompts.
  • 71b5029: Add missing nullish checks around values.
  • a36292b: Fix "TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)" error happening on Windows for non-tty terminals.
  • 1a45f93: Switched from wrap-ansi to fast-wrap-ansi
  • 4ba2d78: Support short terminal windows when re-rendering by accounting for off-screen lines
  • 34f52fe: Validates initial values immediately when using text prompts with initialValue and validate props.
  • 94fee2a: Changes placeholder to be a visual hint rather than a tabbable value.
  • 4f6b3c2: Set initial values of auto complete prompt to first option when multiple is false.
  • 8ead5d3: Avoid passing initial values to core when using auto complete prompt
  • acc4c3a: Add a new withGuide option to all prompts to disable the default clack border
  • 68dbf9b: select-key: Fixed wrapping and added new caseSensitive option
  • 2310b43: Allow custom writables as output stream.
  • d98e033: add invert selection for multiselect prompt

v0.5.0

Compare Source

Minor Changes
  • 07ca32d: Reverted a change where placeholders were being set as values on return.

v0.4.2

Compare Source

Patch Changes
  • 30aa7ed: Adds a new selectableGroups boolean to the group multi-select prompt. Using selectableGroups: false will disable the ability to select a top-level group, but still allow every child to be selected individually.
  • 5dfce8a: Fixes an edge case for placeholder values. Previously, when pressing enter on an empty prompt, placeholder values would be ignored. Now, placeholder values are treated as the prompt value.
  • f574297: Fix "TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)" error happening on Windows for non-tty terminals.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

2 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.