Skip to content

Releases: clercjs/clerc

v1.3.0-beta.1

18 Jan 11:01
068f519

Choose a tag to compare

v1.3.0-beta.1 Pre-release
Pre-release

   🚀 Features

   🐞 Bug Fixes

  • plugin-help:
    • Should display Array<string> if parameter is variadic  -  by @so1ve (1c16c)
    • Should not show Commands section when all commands are hidden  -  by @so1ve (2b479)
    • Should display version in every commands  -  by @so1ve (5cd62)

   🧹 Chore

   🧪 Test

    View changes on GitHub

v1.2.1

07 Jan 23:16
v1.2.1
63cd8c0

Choose a tag to compare

   🐞 Bug Fixes

  • plugin-help: Should handle alias: '' correctly  -  by @so1ve (0458e)

   🧹 Chore

    View changes on GitHub

v1.2.0

07 Jan 23:10
v1.2.0
c3d4832

Choose a tag to compare

   🚀 Features

   🐞 Bug Fixes

  • Use Object.prototype.hasOwnProperty instead of Object.hasOwn to improve compatibility  -  by @so1ve (5613c)
  • core:
  • parser:
    • Should merge object type with default value types correctly  -  by @so1ve (0901c)
    • Should coerce object type values  -  by @so1ve (74207)
    • Should not use object merging behavior in type level  -  by @so1ve (bca12)
  • plugin-completions:
  • plugin-help:
    • Should display root commands in alias correctly  -  by @so1ve (30296)

   🏎 Performance

  • Improve performance by caching camelCase result and remove use of regexs  -  by @so1ve (b2675)
  • Use charcodes in camelCase function as possible  -  by @so1ve (d96a9)
  • parser: Use string comparison instead of BUILTIN_DELIMITERS_RE in config validation  -  by @so1ve (eda2e)

   🧹 Chore

   🧪 Test

   🔨 Refactor

    View changes on GitHub

v1.1.1

28 Dec 17:17
v1.1.1
86ecc27

Choose a tag to compare

   🏎 Performance

   🧹 Chore

    View changes on GitHub

v1.1.0

28 Dec 09:42
v1.1.0
0685f3b

Choose a tag to compare

   🚀 Features

   🐞 Bug Fixes

  • Use tsdown to generate the correct export fields  -  by @so1ve (4653e)

   🏎 Performance

  • Bundle several dependencies to minimum space size  -  by @so1ve (dac27)
  • plugin-not-found: Drop didyoumean2 to reduce package size and get better customizability  -  by @so1ve (28992)

   👷 CI

   🧹 Chore

   🧪 Test

   🔨 Refactor

    View changes on GitHub

v1.0.3

19 Dec 20:40
v1.0.3
0471d14

Choose a tag to compare

   🐞 Bug Fixes

  • plugin-help: Move @types/text-table to devDependencies to reduce install size  -  by @so1ve (54d16)

   🏎 Performance

  • Configure external condition properly to reduce package size  -  by @so1ve (679c4)

   🧹 Chore

    View changes on GitHub

v1.0.2

19 Dec 11:16
v1.0.2
8f38ebf

Choose a tag to compare

   🐞 Bug Fixes

  • plugin-help: Display help examples for help command itself only  -  by @so1ve (de255)

   🧹 Chore

    View changes on GitHub

v1.0.1

19 Dec 10:51
v1.0.1
49f7b1c

Choose a tag to compare

   🚀 Features

  • plugin-help: Show additional info when no command specified  -  by @so1ve (01457)

   🐞 Bug Fixes

  • plugin-help:
    • Should use _scriptName everywhere  -  by @so1ve (972be)
    • Should use _scriptName and make scriptName bold when generating text for root command  -  by @so1ve (3da89)

   🧹 Chore

   🧪 Test

    View changes on GitHub

v1.0.0

19 Dec 10:29
v1.0.0
7878c7c

Choose a tag to compare

   🚨 Breaking Changes

  • Move argv to ParseOptions  -  by @so1ve (93c4e)
  • clerc:
    • Drop extending Clerc, export a function Cli instead  -  by @so1ve (58814)
  • core:
    • Return a Promise if run is set to true  -  by @so1ve (9cd67)
    • Split definition and handler in defineCommand util  -  by @so1ve (2672f)
    • Remove constraints, use type  -  by @so1ve (ed797)
    • Remove resolved and missingParameters as they are overdesigned  -  by @so1ve (12601)
  • core, parser:
    • Introduce missingRequiredFlags, move error throwing logic to core  -  by @so1ve (393ae)
  • core, plugin-help:
  • parser:
  • plugin-help:

   🚀 Features

   🐞 Bug Fixes

  • Use console.log instead of process.stdout.write  -  by @so1ve (59ed5)
  • Correctly inline @clerc/utils  -  by @so1ve (9e12e)
  • Remove default value for Flags in command definitions to help autocompletion  -  by @so1ve (364f7)
  • clerc:
  • core:
    • Rename maybeMissingParameters to missingParameters and it's not optional  -  by @so1ve (c1ac0)
    • Should return promise instead of ignore it during error handling  -  by @so1ve (5f67b)
    • Should accept a stricter readonly string[] as Parameters  -  by @so1ve (dfb83)
    • Should accept readonly parameters in defineCommand as well  -  by @so1ve (25e29)
    • Should resolve al...
Read more

v1.0.0-beta.30

18 Dec 11:21
v1.0.0-beta.30
1bf6128

Choose a tag to compare

v1.0.0-beta.30 Pre-release
Pre-release

   🐞 Bug Fixes

  • plugin-help:
    • Correctly ignore double dash in parameters section  -  by @so1ve (06777)
    • Should wrap -- in [] if there's no required parameters after --  -  by @so1ve (70c25)

   🧹 Chore

   🧪 Test

   🔨 Refactor

  • plugin-completions: Create a new RootCommand instance instead of using the global one  -  by @so1ve (08b3b)
  • test-utils: Use vi.mocked  -  by @so1ve (edc8f)
    View changes on GitHub