Skip to content

Commit d565c8e

Browse files
authored
Merge pull request #99 from cb1kenobi/deps
v1.16.0
2 parents f77e3cd + 409543d commit d565c8e

4 files changed

Lines changed: 200 additions & 187 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fetch-depth: 0
1313
- uses: actions/setup-node@v1
1414
with:
15-
node-version: '12.x'
15+
node-version: '16.x'
1616
- name: Install dependencies
1717
run: yarn
1818
- name: Lint
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
nodeVersion: [ '10.24.1', '12.22.1', '14.16.1', '16.0.0' ]
28+
nodeVersion: [ '14.19.1', '16.14.2', '18.0.0' ]
2929
os: [ macos-latest, ubuntu-latest, windows-latest ]
3030
steps:
3131
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
# 1.16.0
1+
# v1.16.0 (Apr 21, 2022)
22

33
* feat: Add support for extension CLIs with multiple exported entrypoints that do not use cli-kit.
44
Fixes [#97](https://github.com/cb1kenobi/cli-kit/issues/97).
5+
* chore: Updated dependencies.
56

6-
# 1.15.0 (Apr 10, 2022)
7+
# v1.15.0 (Apr 10, 2022)
78

89
* feat: Moved internal `banner` value into state object to allow banner to be modified during
910
command execution when `autoHideBanner` is enabled (default).
1011
* chore: Updated dependencies.
1112

12-
# 1.14.1 (Aug 23, 2021)
13+
# v1.14.1 (Aug 23, 2021)
1314

1415
* fix: Fixed bug when adding a command using an absolute path to a js file.
1516
* chore: Minor dependency updates.
1617

17-
# 1.14.0 (Jul 27, 2021)
18+
# v1.14.0 (Jul 27, 2021)
1819

1920
* feat: Added `redact` flag to arguments and options so advanced implementations can know if an
2021
argument/option may contain sensitive information. Redact flag is `true` by default, but can
@@ -28,7 +29,7 @@
2829
* style(help): Render warnings using yellow.
2930
* chore: Updated dependencies.
3031

31-
# 1.13.0 (Apr 26, 2021)
32+
# v1.13.0 (Apr 26, 2021)
3233

3334
* feat(help): Added required options to usage on help screen.
3435
* feat(ansi): Added `trim()`, `trimStart()`, and `trimEnd()` functions.
@@ -39,59 +40,59 @@
3940
* build: Improved `watch` task to not hang on a lint or build error.
4041
* chore: Updated dev dependencies.
4142

42-
# 1.12.0 (Apr 15, 2021)
43+
# v1.12.0 (Apr 15, 2021)
4344

4445
* feat(extension): Allow extension exports values in its `package.json` to be the `main` path.
4546
* fix(command): Fixed regression introduced when fixing the custom help content for extensions.
4647

47-
# 1.11.4 (Apr 15, 2021)
48+
# v1.11.4 (Apr 15, 2021)
4849

4950
* fix(command): Fixed custom help content for extensions.
5051

51-
# 1.11.3 (Apr 14, 2021)
52+
# v1.11.3 (Apr 14, 2021)
5253

5354
* fix(command): Only consider command name to be a file if it is an absolute path.
5455

55-
# 1.11.2 (Apr 13, 2021)
56+
# v1.11.2 (Apr 13, 2021)
5657

5758
* fix(cli): Set `json` flag on errors when the executing context or its parent contexts has a
5859
`jsonMode` flag set.
5960
* chore: Updated dev dependencies.
6061

61-
# 1.11.1 (Apr 8, 2021)
62+
# v1.11.1 (Apr 8, 2021)
6263

6364
* fix: Don't override default value for boolean options.
6465
* chore: Updated dev dependencies.
6566

66-
# 1.11.0 (Mar 26, 2021)
67+
# v1.11.0 (Mar 26, 2021)
6768

6869
* feat: Mix custom command, argument, option, and extension constructor parameters into each
6970
instance. Only works for non-existing properties.
7071
* fix: Execute command actions using command's context.
7172

72-
# 1.10.0 (Mar 25, 2021)
73+
# v1.10.0 (Mar 25, 2021)
7374

7475
* feat(command): Support command name to be a path to command file.
7576
* feat(extension): Added support for defining extension contexts.
7677
* fix(option): Allow aliases to be negated.
7778
* fix(argument): Use correct `datatype` property when transforming argument value.
7879
* chore: Updated dependencies.
7980

80-
# 1.9.3 (Jan 8, 2021)
81+
# v1.9.3 (Jan 8, 2021)
8182

8283
* fix(extension): Strip the package scope name from an extension name, but still add it as a
8384
hidden alias.
8485
* chore: Updated dependencies.
8586

86-
# 1.9.2 (Jan 5, 2021)
87+
# v1.9.2 (Jan 5, 2021)
8788

8889
* chore: Updated dependencies.
8990

90-
# 1.9.1 (Nov 30, 2020)
91+
# v1.9.1 (Nov 30, 2020)
9192

9293
* chore: Updated dependencies.
9394

94-
# 1.9.0 (Nov 27, 2020)
95+
# v1.9.0 (Nov 27, 2020)
9596

9697
* feat(extension): Added support actions.
9798
* fix(terminal): One time keypress listener was not removing sigint handler after firing causing
@@ -100,57 +101,57 @@
100101
* style(help): Prefix the error with an 'x' symbol.
101102
* chore: Updated dependencies.
102103

103-
# 1.8.9 (Nov 15, 2020)
104+
# v1.8.9 (Nov 15, 2020)
104105

105106
* fix(cli): Fixed bug where banner was rendered twice if `autoHideBanner` is enabled and an the
106107
executed command throws an error.
107108

108-
# 1.8.8 (Nov 14, 2020)
109+
# v1.8.8 (Nov 14, 2020)
109110

110111
* fix(cli): Force banner to be rendered on error.
111112
* fix(cli): Render banner, but don't fire the banner hook on error.
112113

113-
# 1.8.7 (Nov 14, 2020)
114+
# v1.8.7 (Nov 14, 2020)
114115

115116
* fix(cli): Fixed banner hook from being fired more than once.
116117

117-
# 1.8.6 (Nov 13, 2020)
118+
# v1.8.6 (Nov 13, 2020)
118119

119120
* fix(cli): Fixed banner from being displayed more than once.
120121

121-
# 1.8.5 (Nov 11, 2020)
122+
# v1.8.5 (Nov 11, 2020)
122123

123124
* fix(extension): Removed node-pty support since it has never worked properly. On Windows, it
124125
would clear the screen and cause the parent to never exit. On macOS, it would not allow
125126
child processes to prompt for input.
126127
* fix(extension): Switched non-cli-kit based extensions to be `required()`'d instead of spawned.
127128
* chore: Updated dependencies.
128129

129-
# 1.8.4 (Nov 10, 2020)
130+
# v1.8.4 (Nov 10, 2020)
130131

131132
* fix(cli): Fixed rendering of banner if `autoHideBanner` is disabled.
132133
* refactor(cli): Switched the banner event to a hook to allow banner event handlers to tie into
133134
the banner event before and after the banner is rendered.
134135
* chore: Updated dependencies.
135136

136-
# 1.8.3 (Nov 6, 2020)
137+
# v1.8.3 (Nov 6, 2020)
137138

138139
* fix(cli): Unify arguments to the banner event handler.
139140
* style(help): Align descriptions based on longest command, argument, and option label.
140141
* style(help): Removed `=` between option label and value.
141142
* chore: Updated dependencies.
142143

143-
# 1.8.2 (Aug 26, 2020)
144+
# v1.8.2 (Aug 26, 2020)
144145

145146
* fix(parser): Fixed bug where context tree rev change was not updating the local rev before
146147
re-parsing causing unnecessary nested re-parses.
147148

148-
# 1.8.1 (Aug 26, 2020)
149+
# v1.8.1 (Aug 26, 2020)
149150

150151
* fix(parser): Fixed bug where if the context tree changed, the last argument would never be
151152
re-parsed.
152153

153-
# 1.8.0 (Aug 25, 2020)
154+
# v1.8.0 (Aug 25, 2020)
154155

155156
* feat(parser): Added `finalize` event hook that is emitted before applying defaults and filling
156157
`argv` and `_`.
@@ -169,23 +170,23 @@
169170
* chore: Updated dependencies.
170171
* test(keys): Added unit tests for `generateKey()`.
171172

172-
# 1.7.0 (Aug 13, 2020)
173+
# v1.7.0 (Aug 13, 2020)
173174

174175
* feat(ansi): Added `ansi.split()` to break a string up by ANSI escape sequences.
175176
* feat(ansi): Added `ansi.toLowerCase()` and `ansi.toUpperCase()`.
176177
* chore: Updated dependencies.
177178

178-
# 1.6.2 (Aug 11, 2020)
179+
# v1.6.2 (Aug 11, 2020)
179180

180181
* fix(cli): Only show help on errors caused by parsing and validation, not command execution.
181182

182-
# 1.6.1 (Aug 5, 2020)
183+
# v1.6.1 (Aug 5, 2020)
183184

184185
* fix(cli): Fixed regression introduced in v1.6.0 that broke missing argument validation.
185186
* fix(argument): Added missing argument `callback` and `hint`.
186187
* chore: Updated dev dependencies.
187188

188-
# 1.6.0 (Aug 3, 2020)
189+
# v1.6.0 (Aug 3, 2020)
189190

190191
* feat(help): Added `CLI` instanced styles to help template rendering.
191192
* fix(terminal): Only wire up keypress on stdin when added to `Terminal` and not if some other
@@ -194,17 +195,17 @@
194195
callbacks such as `--version` to work properly.
195196
* chore: Updated dependencies.
196197

197-
# 1.5.2 (Jul 24, 2020)
198+
# v1.5.2 (Jul 24, 2020)
198199

199200
* fix(terminal): Fixed bug where `keypress` event listeners were not properly being wired up to
200201
`stdin` resulting in the listener not being removed after being fired once.
201202

202-
# 1.5.1 (Jul 23, 2020)
203+
# v1.5.1 (Jul 23, 2020)
203204

204205
* fix(context): Fixed circular reference introduced when fixing the `generateHelp` hook event in
205206
v1.3.0 when generated JSON object is stringified.
206207

207-
# 1.5.0 (Jul 23, 2020)
208+
# v1.5.0 (Jul 23, 2020)
208209

209210
* feat(cli): Added `showHelp` flag on thrown errors to override `showHelpOnError`. Defaults to
210211
`true`. This still requires `help` to be enabled.
@@ -213,7 +214,7 @@
213214
* fix(help): Allow non-Error objects to be thrown and rendered on the help screen.
214215
* chore(dep): Replaced `fast-levenshtein` with `fastest-levenshtein`.
215216

216-
# 1.4.0 (Jul 21, 2020)
217+
# v1.4.0 (Jul 21, 2020)
217218

218219
* feat(cli): Added support for user-defined in `styles` passed into the `CLI` constructor as well
219220
as the `exec()` method.
@@ -225,7 +226,7 @@
225226
* fix(cli): Fixed rendering of errors to debug log when server connection executes a command that
226227
throws an exception.
227228

228-
# 1.3.0 (Jul 21, 2020)
229+
# v1.3.0 (Jul 21, 2020)
229230

230231
* feat(cli): Added `exec` hook event.
231232
* feat(context): Added `ctx` property to `generateHelp` hook event.
@@ -235,32 +236,32 @@
235236
`Command` and `Extension` objects were passed by reference.
236237
* chore: Updated dependencies.
237238

238-
# 1.2.4 (Jun 24, 2020)
239+
# v1.2.4 (Jun 24, 2020)
239240

240241
* fix(cli): Server-side output streams extend TTY `WriteStream` to improve compatibility with
241242
packages that check `isTTY` and terminal helper functions such as `cursorTo()` and
242243
`clearLine()`.
243244
* chore: Updated dev dependencies.
244245

245-
# 1.2.3 (Jun 19, 2020)
246+
# v1.2.3 (Jun 19, 2020)
246247

247248
* feat(cli): Added `timeout` option to `CLI.connect()` with default of 5 seconds.
248249
* fix(cli): `CLI.connect()` now waits for terminal resize handshake to complete before resolving.
249250
* fix(cli): Set the remote terminal size on the stdout/stderr streams.
250251

251-
# 1.2.2 (Jun 17, 2020)
252+
# v1.2.2 (Jun 17, 2020)
252253

253254
* fix(cli): Fixed issue where extension banner was not overriding parent context's banner.
254255
* fix(terminal): Fixed issue where banner was not being displayed if output occurred before banner
255256
callback was registered.
256257

257-
# 1.2.1 (Jun 15, 2020)
258+
# v1.2.1 (Jun 15, 2020)
258259

259260
* fix: Force all options after an extension is found to be an argument.
260261
* fix: Sort commands and extensions alphabetically in the help output.
261262
* chore: Updated dependencies.
262263

263-
# 1.2.0 (Jun 3, 2020)
264+
# v1.2.0 (Jun 3, 2020)
264265

265266
* feat(commands): Added syntactic sugar for declaring commands with aliases and arguments.
266267
* feat(help): Added command aliases to the help screen.
@@ -269,15 +270,15 @@
269270
* style(cli): Capitalized `--version` description.
270271
* chore: Updated dev dependencies.
271272

272-
# 1.1.1 (May 26, 2020)
273+
# v1.1.1 (May 26, 2020)
273274

274275
* fix(cli): On error, print the error stack instead of the error object to prevent infinite
275276
loops when JSON stringifying error objects during error the printing.
276277
* fix(cli): Improved server eval exit code handling.
277278
* fix(help): Highlight format for missing options.
278279
* chore: Updated dev dependencies.
279280

280-
# 1.1.0 (May 15, 2020)
281+
# v1.1.0 (May 15, 2020)
281282

282283
* feat(cli): Added new `keypress` ansi sequence for improved raw input handling in server mode.
283284
* feat(cli): Added new `exec` ansi sequence to explicitly run a command and differentiate between
@@ -292,7 +293,7 @@
292293
* fix(help): Trim the rendered help output to avoid excess whitespace.
293294
* chore: Updated dependencies.
294295

295-
# 1.0.1 (May 8, 2020)
296+
# v1.0.1 (May 8, 2020)
296297

297298
* fix(cli): Added support for 'parentContextNames' when a remote CLI instance is unaware of the
298299
local CLI's parent hierarchy.
@@ -301,7 +302,7 @@
301302
* fix(cli): Added banner to CLI schema object.
302303
* chore: Updated dependencies.
303304

304-
# 1.0.0 (May 1, 2020)
305+
# v1.0.0 (May 1, 2020)
305306

306307
* BREAKING CHANGE: Require Node.js 10 or newer.
307308
* fix(cli): Fixed bug where `--version` callback would show version if `next()` returned a truthy

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-kit",
3-
"version": "1.15.0",
3+
"version": "1.16.0",
44
"description": "Everything you need to create awesome command line interfaces",
55
"main": "./dist/index.js",
66
"author": "Chris Barber <chris@cb1inc.com> (https://github.com/cb1kenobi)",
@@ -46,22 +46,22 @@
4646
"lodash.camelcase": "^4.3.0",
4747
"pkg-dir": "^5.0.0",
4848
"pluralize": "^8.0.0",
49-
"semver": "^7.3.5",
49+
"semver": "^7.3.7",
5050
"snooplogg": "^3.0.2",
51-
"source-map-support": "^0.5.20",
51+
"source-map-support": "^0.5.21",
5252
"which": "^2.0.2",
53-
"ws": "^7.5.5"
53+
"ws": "^7.5.7"
5454
},
5555
"devDependencies": {
56-
"@babel/core": "^7.16.0",
57-
"@babel/plugin-proposal-class-properties": "^7.16.0",
58-
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
59-
"@babel/plugin-transform-modules-commonjs": "^7.16.0",
60-
"@babel/register": "^7.16.0",
56+
"@babel/core": "^7.17.9",
57+
"@babel/plugin-proposal-class-properties": "^7.16.7",
58+
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
59+
"@babel/plugin-transform-modules-commonjs": "^7.17.9",
60+
"@babel/register": "^7.17.7",
6161
"babel-eslint": "^10.1.0",
62-
"babel-loader": "^8.2.3",
62+
"babel-loader": "^8.2.5",
6363
"babel-plugin-istanbul": "^6.1.1",
64-
"chai": "^4.3.4",
64+
"chai": "^4.3.6",
6565
"chai-as-promised": "^7.1.1",
6666
"coveralls": "^3.1.1",
6767
"esdoc": "^1.1.0",
@@ -70,8 +70,8 @@
7070
"eslint": "^7.32.0",
7171
"eslint-plugin-chai-expect": "^2.2.0",
7272
"eslint-plugin-mocha": "^8.2.0",
73-
"eslint-plugin-promise": "^5.1.1",
74-
"eslint-plugin-security": "^1.4.0",
73+
"eslint-plugin-promise": "^5.2.0",
74+
"eslint-plugin-security": "^1.5.0",
7575
"gulp": "^4.0.2",
7676
"gulp-babel": "^8.0.0",
7777
"gulp-debug": "^4.0.0",

0 commit comments

Comments
 (0)