Skip to content

Releases: c4spar/deno-cliffy

v1.0.0-rc.7

28 Sep 21:09
632fb3d
Compare
Choose a tag to compare

No changes, i only forgot that deno needs an annoying version number in
deno.json.

v1.0.0-rc.6

28 Sep 20:57
409d25e
Compare
Choose a tag to compare

Features

  • add support for deno v2 (#745) (64fff28)
  • command: add support for disabling spinner in upgrade command (#749) (62fa792)
  • command: add support for npm package without scope to npm provider (#748) (f882fa0)

Bug Fixes

  • command: directly print example text w/o capitalization (#741) (b0f1942)
  • command: new version info is displayed if no stable version is available (#726) (3295c7a)
  • internal: resolve null instead of returning null (#752) (779cf08)
  • internal: fix readSync method (#747) (2d8aa19)
  • prompt: increase buffer size of input prompts for nodejs to allow paste of more than 8 chars (#739) (dd9aab0)

Code Refactoring

  • command: remove unused files (#751) (ced45fc)
  • prompt: set list index to 0 instead of 1 when selecting a group option (#727) (09c8c7a)

Chore

Documentation Updates

  • examples: use workspace specifier for imports (#728) (33b01f8)

v1.0.0-rc.5

01 Jul 21:59
03c0730
Compare
Choose a tag to compare

Features

  • add built-in jsr upgrade provider (rework) (#692) (b976d26)
  • publish to jsr.io (#679) (ff14148)
  • ansi,keypress,prompt: add support for node.js (#720) (1e1c2e6)
  • command: add support for nodejs (#693) (f81e895)
  • command: add support for node and bun to upgrade command (#705) (7011ada)
  • command: support zsh fpath completion (#703) (f770de2)
  • command: add npm upgrade provider (#701) (45dbe30)

Bug Fixes

  • prompt: expand input value if file suggestions are enabled (#719) (e377f04)
  • prompt: fix validation and return type of object option values for checkbox and seleect prompt (#718) (3e92792)

Code Refactoring

  • command: add exports for completions and upgrade provider (#700) (6d08b9a)

Chore

Unit/Integration Tests

deps

  • upgrade: upgrade @std/* to latest version (#704) (4e62e39)

v1.0.0-rc.4

07 Apr 20:50
d9600b5
Compare
Choose a tag to compare

BREAKING CHANGES

  • ansi,prompt: remove use of Deno.isatty() and rid (#672) (bcc7552)

    This commit removes the rid property from the reader option and replaces the isTty method with the isTerminal method.

  • command: remove support for executable sub-commands (#682) (89475a8)

Features

  • Publish to jsr (#679)

    This is the first release on jsr.io and is used for initial testing. Cliffy is still published to deno.land, but as soon as jsr.io becomes stable, cliffy will probably only be published on jsr.io and no longer on deno.land.

  • flags: export InvalidTypeError (#686) (e9a400a)

Bug Fixes

  • command: file type completion not working for first argument in zsh completions (#688) (a5cd35e)
  • command: zsh completion for command aliases not working (#688) (2351c77)
  • command: arg with no completions followed by args with completions breaks zsh completion (#688) (53551ac)
  • command: use ValidationError from command module instead of flags module in upgrade command (#684) (a568c39)
  • command: infer option default value as const (#660) (c91ddb6)
  • command: command action not triggered for standalone options without action handler (#654) (4e63862)
  • command: escape colons in subCommand name for zsh completions (#661) (aa1311f)
  • prompt: fix initial page offset for checkbox and select prompt (#689) (da56395)
  • table: Wrap ANSI codes for multiline cells (#657) (5118a1c)

Code Refactoring

  • command,flags: move some utils functions (#683) (6319a78)
  • flags,prompt: remove distance method and use std/text (#681) (181e055)

Chore

Unit/Integration Tests

  • command: add file type completion test for zsh (#688) (fba0969)

Documentation Updates

v1.0.0-rc.3

30 Jul 10:00
b732a44
Compare
Choose a tag to compare

Features

  • add select all option to checkbox prompt (#649) (5f2c4f8)

Bug Fixes

  • prompt: disabled options can be selected with next page & previous page keys (#646) (6f3ba29)
  • prompt: incorrect info message shown for checkbox prompt on submit (#643) (fd6831c)

Chore

Unit/Integration Tests

  • prompt: test confirmSubmit option from checkbox prompt (#644) (5d3bf0a)

Documentation Updates

v1.0.0-rc.2

04 Jul 20:14
8664ef1
Compare
Choose a tag to compare

Bug Fixes

  • prompt: fix separator option for select prompt (#640) (937f58a)

Chore

v1.0.0-rc.1

02 Jul 10:02
ff2706b
Compare
Choose a tag to compare

BREAKING CHANGES

  • ansi: rename .toBuffer() method to .bytes() (#606) (853c2a6)

  • ansi: rename stdin and stdout options to reader and writer (#570) (8980c53)

  • flags: remove requiredValue option and rename option.args[].optionalValue to option.args[].optional (#496) (f381e56)

    before:

    parseFlags(Deno.args, {
      flags: [{
        name: "foo",
        type: "boolean",
        requiredValue: true,
      }, {
        name: "bar",
        args: [{
          type: "string",
          optionalValue: true,
        }],
      }]
    });

    after:

    parseFlags(Deno.args, {
      flags: [{
        name: "foo",
        type: "boolean",
        optionalValue: false,
      }, {
        name: "bar",
        args: [{
          type: "string",
          optional: true,
        }],
      }]
    });
  • prompt: remove default indentation (#495) (16790ac)

    To restore the old behavior, you can use the indent option:

    await Input.prompt({
      message: "What's your name?",
      indent: " ",
    });

DEPRECATIONS

  • prompt: deprecate SelectValueOptions and CheckboxValueOptions types (#526) (20ba587)

    • SelectValueOptions -> Use Array<string | SelectOption> instead.
    • CheckboxValueOptions -> Use Array<string | CheckboxOption> instead.
  • table: refactor table types (#559) (2b1ea19)

    • IBorder -> Use Border instead.
    • ICell -> Use CellType instead.
    • IRow -> Use RowType instead.
    • IDataRow -> Use DataRow instead.
    • IBorderOptions -> Use BorderOptions instead.
    • ITable -> Use TableType instead.

Features

  • ansi: add .toArray() method to ansi module (#543) (ca2e7f6)
  • command: show required options in help usage (#598) (bd08f4b)
  • command: add --name option to completion commands (#587) (f9368eb)
  • command: add reader & writer options to prompt() function (#574) (72536ea)
  • command: support multiple option actions (#567) (4fb4f9a)
  • command: add .globalAction() method (#555) (b76524f)
  • prompt: add format option to select and checkbox prompt (#626) (5b8bc2d)
  • prompt: allow any type as value for select and checkbox prompt (#625) (20b59ec)
  • prompt: add support for multi level options for select and checkbox prompt (#445) (880d472)
  • prompt: refactor and export un-exported prompt() types and update docs (#578) (9487d8d)
  • prompt: add reader and writer options (#569) (8923a6f)
  • table: implement Column class (#554) (738355a)
  • table: set default value for .border() method to true (#557) (a43d845)
  • testing: add testing module (#581) (5db0f6e, 36c8dbe, 6a8ad25, d20d31c)

Bug Fixes

  • ansi: use opts.stdin.setRaw instead of Deno.stdin.setRaw intty module and getCursorPosition method and fiy stdin option types (#564) (0bc4cca)
  • ansi: color methods ignore an empty string argument (#558) (39eb048)
  • command: use Array<unknown> for arguments in .globalAction() action handler (#607) (de75995)
  • command: global parent action handlers are executed if noGlobals is enabled (#603) (b7e34fa)
  • command: enum type not always inferred correctly (#573) (31ba2ff)
  • command: incorrect validation when parsing global options with default values mixed with non-global options (#548) (ddd3e53)
  • command: error handler not triggered with .useRawArgs() enabled (#549) (ecdb98e)
  • flags: OptionType is exported as type (#636) (45890b9)
  • flags: default value for no-value-flag cannot be overridden (#551) (456eb41)
  • table: more accurate cell width for unicode chars (#632) (d29dce4)
  • table: apply column options only to table body (#608) (a7db939)
  • table: fix hasBodyBorder method (#560) (36d3d5d)
  • table: full width characters are not aligned correctly (#542) (9fea2ac)
  • table: japanese characters are not aligned correctly (#541) (44e48ea)

Code Refactoring

  • remove main mod.ts (#638) (7de3ddc)
  • ansi: use explicit exports in mod.ts (#610) (7e7063a)
  • command: move checkVersion method to separate file (#623) (a7a2d10)
  • command: remove indentation from help output (#605) (e9ab46a)
  • command: re-organize types (#602) (277fb27)
  • command: use exit code 2 as default for validation errors (#601) (6394f89)
  • command: improve error message for duplicate option names (#600) (1ef9e68)
  • command: throw an error if the command name is missing when generating shell completions (#599) (fa804b5)
  • command: switch to Deno.Command api (#596) (90d9565)
  • command: set default value for ignore and only in snapshotTest method (#588) (7f0ec49)
  • flags: use explicit exports in mod.ts (#609) (dd857d7)
  • keycode: use explicit exports in mod.ts (#611) (eb4d7a0)
  • prompt: remove GenericPrompt, GenericInput & GenericList exports (#627) (19a19f4)
  • prompt: remove unnecessary border arguments (#617) (ca6c705)
  • prompt: remove GenericInputPromptSettings export from mod.ts (#614) (ad8be98)
  • prompt: use explicit exports in mod.ts (#612) (f5dead8)
  • prompt: change default search icon to 🔎 (#577) (52830a8)
  • prompt: remove windows encoding workaround (#566) (11e379f)
  • prompt: change default label of secret prompt from Password to Secret (#494) (ed49579)

Chore

Unit/Integration Tests

  • prompt: test also stderr in integration tests (#565) (6fa7ef5)
  • prompt: improve integration tests (#544) (986168f)

Documentation Updates

  • fix discussions link in CONTRIBUTING.md (#633) (d5d29d9)
  • ansi: documentation ...
Read more

v0.25.7

05 Jan 20:40
e1680bf
Compare
Choose a tag to compare

Bug Fixes

  • prompt: suggestions are not completed if input is empty (#528) (06f71aa)
  • prompt: suggestions only work with lowercase input (#527) (9da2288)

Code Refactoring

  • command: use brightBlue and brightMagenta instead of blue and magenta in command output (#533) (c9e69e2)
  • command: show expected values in error message for invalid boolean value (#534) (9d47a5e)
  • prompt: use brightBlue instead of blue in prompt output (#530) (d7388a7)

v0.25.6

20 Dec 17:45
989c07b
Compare
Choose a tag to compare

Bug Fixes

  • command: single quotes in option description breaks fish completions (#518) (c09c74a)
  • command: zsh completion broken for options without aliases (#515) (f65465a)
  • kecode: char property not set for space key (#519) (eafa1be)

Code Refactoring

  • command: refactor generateOption method in zsh completions generator (#517) (eb53cd2)

Chore

Unit/Integration Tests

v0.25.5

03 Dec 16:02
1fc674d
Compare
Choose a tag to compare

Features

  • command: expose .throw() method (#508) (f07d37a)
  • command: add cmd property to ValidationError (#506) (27ae6cd)
  • command: add error handler (#505) (a9f55b2)
  • keypress: add char property to KeyPressEvent (#504) (0b655c7)
  • keycode: add char property to KeyCode and support more special chars (#501) (b0db79e)

Bug Fixes

  • command: add missing await to catch validation error correctly (#500) (f33161a)
  • command: export UpgradeCommand from command/mod.ts (#482) (fee48bf)
  • prompt: ignore special key like F1, escape, etc. in input prompts (#502) (1e444a7)
  • prompt: grammar longer then to longer than (#497) (1b6b563)

Code Refactoring

  • prompt: refactor handleEvent method in input prompt (#503) (94fa06b)
  • prompt: use long names for generic parameters (#491) (f2a0d2a)

Chore

Unit/Integration Tests

  • prompt: use assertSnapshot for snapshot tests (#493) (e3a2d65)

Documentation Updates

  • command: update example (572c44f)
  • command: add example for .throw() method (#509) (dd4d33d)
  • command: add missing await in command examples (#507) (1443b38)
  • examples: don't use deprecated OptionType (#487) (a9a0a98)