@thi.ng/args 2.3.55 → 2.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -168
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-23T13:39:11Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
7
|
+
Only versions published since **2022-01-01** are listed here.
|
|
8
|
+
Please consult the Git history for older version information.
|
|
7
9
|
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
10
|
|
|
9
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
@@ -70,170 +72,3 @@ and/or version bumps of transitive dependencies.
|
|
|
70
72
|
#### ♻️ Refactoring
|
|
71
73
|
|
|
72
74
|
- replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
|
|
73
|
-
|
|
74
|
-
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.1.0) (2021-11-17)
|
|
75
|
-
|
|
76
|
-
#### 🚀 Features
|
|
77
|
-
|
|
78
|
-
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
79
|
-
Improving the overall build ergonomics
|
|
80
|
-
- introduced a tools workspaces
|
|
81
|
-
- imported it in all needed packages/examples
|
|
82
|
-
- inclusive project root
|
|
83
|
-
|
|
84
|
-
#### ♻️ Refactoring
|
|
85
|
-
|
|
86
|
-
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
87
|
-
this commit reverts (partly) changes made in:
|
|
88
|
-
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
89
|
-
overall purpose is better testament ergonomics:
|
|
90
|
-
instead of having to pass NODE_OPTIONS with every invocation
|
|
91
|
-
having a binary to handle this for us.
|
|
92
|
-
|
|
93
|
-
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.0.1) (2021-10-13)
|
|
94
|
-
|
|
95
|
-
#### ♻️ Refactoring
|
|
96
|
-
|
|
97
|
-
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
98
|
-
- add .js suffix for all relative imports
|
|
99
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
100
|
-
|
|
101
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.0.0) (2021-10-12)
|
|
102
|
-
|
|
103
|
-
#### 🛑 Breaking changes
|
|
104
|
-
|
|
105
|
-
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
106
|
-
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
107
|
-
- only ESM modules will be published from now on
|
|
108
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
109
|
-
- i.e. launch NodeJS via:
|
|
110
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
111
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
112
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
113
|
-
Also:
|
|
114
|
-
- normalize/restructure/reorg all package.json files
|
|
115
|
-
- cleanup all build scripts, remove obsolete
|
|
116
|
-
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
117
|
-
|
|
118
|
-
#### ♻️ Refactoring
|
|
119
|
-
|
|
120
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
121
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
122
|
-
- update imports ([890936b](https://github.com/thi-ng/umbrella/commit/890936b))
|
|
123
|
-
|
|
124
|
-
### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@1.1.1) (2021-09-03)
|
|
125
|
-
|
|
126
|
-
#### ♻️ Refactoring
|
|
127
|
-
|
|
128
|
-
- fix up TS4.4 changes ([ba616db](https://github.com/thi-ng/umbrella/commit/ba616db))
|
|
129
|
-
|
|
130
|
-
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@1.1.0) (2021-08-19)
|
|
131
|
-
|
|
132
|
-
#### 🚀 Features
|
|
133
|
-
|
|
134
|
-
- capitalize usage section headings ([eaa0f23](https://github.com/thi-ng/umbrella/commit/eaa0f23))
|
|
135
|
-
|
|
136
|
-
### [0.7.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.7.1) (2021-07-29)
|
|
137
|
-
|
|
138
|
-
#### 🩹 Bug fixes
|
|
139
|
-
|
|
140
|
-
- omit empty groups from usage() ([a66c19a](https://github.com/thi-ng/umbrella/commit/a66c19a))
|
|
141
|
-
|
|
142
|
-
## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.7.0) (2021-07-01)
|
|
143
|
-
|
|
144
|
-
#### 🚀 Features
|
|
145
|
-
|
|
146
|
-
- add showGroupNames option ([6917111](https://github.com/thi-ng/umbrella/commit/6917111))
|
|
147
|
-
|
|
148
|
-
## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.6.0) (2021-06-08)
|
|
149
|
-
|
|
150
|
-
#### 🚀 Features
|
|
151
|
-
|
|
152
|
-
- add kvPairsMulti(), update coerceKV() ([fd12f80](https://github.com/thi-ng/umbrella/commit/fd12f80))
|
|
153
|
-
- add KVMultiDict type alias
|
|
154
|
-
- update tests
|
|
155
|
-
|
|
156
|
-
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.5.0) (2021-03-28)
|
|
157
|
-
|
|
158
|
-
#### 🚀 Features
|
|
159
|
-
|
|
160
|
-
- wordwrap usage prefix/suffix, defaults ([325b558](https://github.com/thi-ng/umbrella/commit/325b558))
|
|
161
|
-
- update/revert default val handling in usage(), don't show null/false
|
|
162
|
-
- minor other usage() refactoring
|
|
163
|
-
- update doc strings
|
|
164
|
-
- add vec() arg type ([f05cb2a](https://github.com/thi-ng/umbrella/commit/f05cb2a))
|
|
165
|
-
|
|
166
|
-
### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.4.1) (2021-03-24)
|
|
167
|
-
|
|
168
|
-
#### ♻️ Refactoring
|
|
169
|
-
|
|
170
|
-
- update wordwrapping in usage() ([4af3d41](https://github.com/thi-ng/umbrella/commit/4af3d41))
|
|
171
|
-
|
|
172
|
-
## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.4.0) (2021-03-22)
|
|
173
|
-
|
|
174
|
-
#### 🚀 Features
|
|
175
|
-
|
|
176
|
-
- support arbitrary length aliases ([1cfdf49](https://github.com/thi-ng/umbrella/commit/1cfdf49))
|
|
177
|
-
- update parseKey() to allow any length aliases
|
|
178
|
-
- add test
|
|
179
|
-
- add arg groups, segment usage output ([ebf5197](https://github.com/thi-ng/umbrella/commit/ebf5197))
|
|
180
|
-
- add `ArgSpecBase.group` to classify args
|
|
181
|
-
- update arg factories to define default groups ("flags" & "main")
|
|
182
|
-
- update usage() to output segmented & sorted groups of args
|
|
183
|
-
|
|
184
|
-
### [0.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.3.1) (2021-03-21)
|
|
185
|
-
|
|
186
|
-
#### 🩹 Bug fixes
|
|
187
|
-
|
|
188
|
-
- fix usage() show defaults logic ([ae31158](https://github.com/thi-ng/umbrella/commit/ae31158))
|
|
189
|
-
- show all default values (incl. zero, false), only skip undefined
|
|
190
|
-
|
|
191
|
-
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.3.0) (2021-03-20)
|
|
192
|
-
|
|
193
|
-
#### 🚀 Features
|
|
194
|
-
|
|
195
|
-
- update ParseOpts, UsageOpts ([6577c80](https://github.com/thi-ng/umbrella/commit/6577c80))
|
|
196
|
-
- add `ParseOpts.help` to configure special `--help` option(s)
|
|
197
|
-
- add `UsageOpts.prefix/suffix` strings
|
|
198
|
-
|
|
199
|
-
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.2.0) (2021-01-13)
|
|
200
|
-
|
|
201
|
-
#### 🚀 Features
|
|
202
|
-
|
|
203
|
-
- add defaultHint opt, update usage() ([f8a4146](https://github.com/thi-ng/umbrella/commit/f8a4146))
|
|
204
|
-
- add UsageOpts.showDefaults to display arg default vals
|
|
205
|
-
- add ArgSpecBase.defaultHint for default vals for display purposes
|
|
206
|
-
|
|
207
|
-
#### ♻️ Refactoring
|
|
208
|
-
|
|
209
|
-
- splitup parse() into smaller fns ([64be608](https://github.com/thi-ng/umbrella/commit/64be608))
|
|
210
|
-
|
|
211
|
-
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@0.1.0) (2021-01-10)
|
|
212
|
-
|
|
213
|
-
#### 🚀 Features
|
|
214
|
-
|
|
215
|
-
- import as new package ([af5d943](https://github.com/thi-ng/umbrella/commit/af5d943))
|
|
216
|
-
- major general package update ([26ec49a](https://github.com/thi-ng/umbrella/commit/26ec49a))
|
|
217
|
-
- use more mapped types to better infer & verify specs for optional args
|
|
218
|
-
- add support for comma separated multi-args
|
|
219
|
-
- add ParseOpts & UsageOpts
|
|
220
|
-
- add/replace coercions
|
|
221
|
-
- add arg spec factories
|
|
222
|
-
- update parse()
|
|
223
|
-
- add comma handling
|
|
224
|
-
- auto-usage on error
|
|
225
|
-
- kebab -> camelCase names
|
|
226
|
-
- update/rewrite usage(), add color support
|
|
227
|
-
- add kv args, callbacks, usage opts ([c306aba](https://github.com/thi-ng/umbrella/commit/c306aba))
|
|
228
|
-
- add KVDict type, coerceKV(), kvPairs()
|
|
229
|
-
- add optional `fn` arg spec callbacks
|
|
230
|
-
- add `--help` built-in handling
|
|
231
|
-
- add ColorTheme, update usage()
|
|
232
|
-
- add strict mode kvArgs()/coerceKV(), add docs ([b76c4f1](https://github.com/thi-ng/umbrella/commit/b76c4f1))
|
|
233
|
-
- update multi arg specs, parse ([dbdf913](https://github.com/thi-ng/umbrella/commit/dbdf913))
|
|
234
|
-
- simplify Args conditionals (remove special casing for string(s))
|
|
235
|
-
- replace spec.comma => spec.delim
|
|
236
|
-
- update ParseResult
|
|
237
|
-
- update parse() to stop at first non-arg value
|
|
238
|
-
- add/update tests
|
|
239
|
-
- add tuple arg type support ([a05dde9](https://github.com/thi-ng/umbrella/commit/a05dde9))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/args",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.56",
|
|
4
4
|
"description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,18 +40,17 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/errors": "^2.5.
|
|
46
|
-
"@thi.ng/logger": "^3.0.
|
|
47
|
-
"@thi.ng/strings": "^3.9.
|
|
48
|
-
"@thi.ng/text-format": "^2.2.
|
|
43
|
+
"@thi.ng/api": "^8.11.18",
|
|
44
|
+
"@thi.ng/checks": "^3.6.21",
|
|
45
|
+
"@thi.ng/errors": "^2.5.24",
|
|
46
|
+
"@thi.ng/logger": "^3.0.29",
|
|
47
|
+
"@thi.ng/strings": "^3.9.3",
|
|
48
|
+
"@thi.ng/text-format": "^2.2.23"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@microsoft/api-extractor": "^7.48.1",
|
|
52
51
|
"esbuild": "^0.24.2",
|
|
53
52
|
"typedoc": "^0.27.6",
|
|
54
|
-
"typescript": "^5.7.
|
|
53
|
+
"typescript": "^5.7.3"
|
|
55
54
|
},
|
|
56
55
|
"keywords": [
|
|
57
56
|
"ansi",
|
|
@@ -107,5 +106,5 @@
|
|
|
107
106
|
"thi.ng": {
|
|
108
107
|
"year": 2018
|
|
109
108
|
},
|
|
110
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
|
|
111
110
|
}
|