Skip to content

Releases: bombshell-dev/clack

@clack/prompts@1.7.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jul 22:59
Immutable release. Only release title and notes can be modified.
dc5bce8

Minor Changes

  • #574 8f1c380 Thanks @dreyfus92! - Add showInstructions option to select, multiselect, and groupMultiselect. Keyboard hints remain shown by default; pass showInstructions: false to hide them.

Patch Changes

  • #582 4b24953 Thanks @43081j! - Handle empty arrays in various prompts and utilities.

  • Updated dependencies [4b24953]:

    • @clack/core@1.4.3

@clack/core@1.4.3

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jul 22:59
Immutable release. Only release title and notes can be modified.
dc5bce8

Patch Changes

@clack/prompts@1.6.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 19 Jun 17:53
Immutable release. Only release title and notes can be modified.
0e70056

Minor Changes

  • #568 f87933f Thanks @florian-lefebvre! - Updates default formatter of note() to note dim lines anymore

    If you want the old behavior, provide a format() function:

    import { note } from '@clack/prompts';
    +import { styleText } from 'node:util';
    
    note(
      'You can edit the file src/index.jsx',
      'Next steps.'
    +  { format: (text) => styleText('dim', text) }
    );
  • #567 cc6aab5 Thanks @dreyfus92! - Add keyboard instruction footers to select, multiselect, and groupMultiselect in the active state, matching autocomplete. No option — always shown.

Patch Changes

@clack/core@1.4.2

Choose a tag to compare

@bombshell-bot bombshell-bot released this 19 Jun 17:53
Immutable release. Only release title and notes can be modified.
0e70056

Patch Changes

  • #561 2f2b52f Thanks @avallete! - Fix password prompt resolving to undefined on empty submit. It now normalizes an empty submission to "", matching the text prompt behavior and the documented Promise<string | symbol> return type.

  • #569 e1b6ee7 Thanks @43081j! - fix: only submit multi-line prompt when double-return happens at end of input.

    Also fixes two minor things:

    • Initial value is used as initial user input for multi-line prompts
    • Cursor is placed at the end when there is initial input

@clack/prompts@1.5.1

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jun 15:29
Immutable release. Only release title and notes can be modified.
02ae191

Patch Changes

@clack/core@1.4.1

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jun 15:29
Immutable release. Only release title and notes can be modified.
02ae191

Patch Changes

@clack/prompts@1.5.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 29 May 16:34
Immutable release. Only release title and notes can be modified.
030ba4d

Minor Changes

  • #543 83428ac Thanks @florian-lefebvre! - Adds support for Standard Schema validation

    Prompts accept an optional validate() function to validate user input. While a function provides more flexibility and customization over your validation, it can be a bit verbose. To help solve this, there are libraries that provide schema-based validation to make shorthand and type-strict validation substantially easier.

    Libraries following the Standard Schema specification are now natively supported. For example, using Arktype:

    import { text } from '@clack/prompts';
    import { type } from 'arktype';
    
    const name = await text({
    	message: 'Enter your email',
    +	validate: type('string.email').describe('Invalid email'),
    });

Patch Changes

@clack/core@1.4.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 29 May 16:34
Immutable release. Only release title and notes can be modified.
030ba4d

Minor Changes

  • #543 83428ac Thanks @florian-lefebvre! - Adds support for Standard Schema validation

    Prompts accept an optional validate() function to validate user input. While a function provides more flexibility and customization over your validation, it can be a bit verbose. To help solve this, there are libraries that provide schema-based validation to make shorthand and type-strict validation substantially easier.

    Libraries following the Standard Schema specification are now natively supported. For example, using Arktype:

    import { text } from '@clack/prompts';
    import { type } from 'arktype';
    
    const name = await text({
    	message: 'Enter your email',
    +	validate: type('string.email').describe('Invalid email'),
    });

Patch Changes

@clack/prompts@1.4.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 12 May 08:30
Immutable release. Only release title and notes can be modified.
fe2bcd2

Minor Changes

  • 284677e: Support scrolling and maxItems option for groupMultiselect, and removes indent when withGuide is set to false

Patch Changes

  • aab46a2: docs: add jsdoc for text, password, and multiline prompts
  • 54be8d7: Fix line wrapping and overflow computation in group multi-select and other list-like prompts.
  • Updated dependencies [54be8d7]
    • @clack/core@1.3.1

@clack/core@1.3.1

Choose a tag to compare

@bombshell-bot bombshell-bot released this 12 May 08:30
Immutable release. Only release title and notes can be modified.
fe2bcd2

Patch Changes

  • 54be8d7: Fix line wrapping and overflow computation in group multi-select and other list-like prompts.