@thi.ng/args 2.6.2 → 2.6.4

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/package.json +11 -11
  3. package/parse.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-03T15:03:31Z
3
+ - **Last updated**: 2025-07-10T14:20:23Z
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.
@@ -11,6 +11,14 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [2.6.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.6.3) (2025-07-09)
15
+
16
+ #### 🩹 Bug fixes
17
+
18
+ - update parse logic to allow option values starting with `-` ([8a9050d](https://github.com/thi-ng/umbrella/commit/8a9050d))
19
+ - disable regex check in `__parseValue()`
20
+ - add tests
21
+
14
22
  ## [2.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.6.0) (2025-06-28)
15
23
 
16
24
  #### 🚀 Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/args",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "Declarative, functional CLI argument/options parser, value coercions, sub-commands etc.",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,17 +39,17 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.11.29",
43
- "@thi.ng/checks": "^3.7.9",
44
- "@thi.ng/errors": "^2.5.35",
45
- "@thi.ng/logger": "^3.1.10",
46
- "@thi.ng/strings": "^3.9.15",
47
- "@thi.ng/text-format": "^2.2.34"
42
+ "@thi.ng/api": "^8.11.30",
43
+ "@thi.ng/checks": "^3.7.10",
44
+ "@thi.ng/errors": "^2.5.36",
45
+ "@thi.ng/logger": "^3.1.11",
46
+ "@thi.ng/strings": "^3.9.16",
47
+ "@thi.ng/text-format": "^2.2.35"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/node": "^22.15.21",
51
- "esbuild": "^0.25.5",
52
- "typedoc": "^0.28.5",
50
+ "@types/node": "^24.0.12",
51
+ "esbuild": "^0.25.6",
52
+ "typedoc": "^0.28.7",
53
53
  "typescript": "^5.8.3"
54
54
  },
55
55
  "keywords": [
@@ -110,5 +110,5 @@
110
110
  "tag": "cli",
111
111
  "year": 2018
112
112
  },
113
- "gitHead": "06e582f962a9cd3abb905e91d97d652e1d3bb971\n"
113
+ "gitHead": "56d8f088389b22192a06e9a395b5eecebf47697a\n"
114
114
  }
package/parse.js CHANGED
@@ -75,7 +75,6 @@ const __parseKey = (specs, aliases, acc, a) => {
75
75
  return { state: 2 };
76
76
  };
77
77
  const __parseValue = (spec, acc, id, a) => {
78
- /^-[a-z]/i.test(a) && illegalArgs(`missing value for: --${id}`);
79
78
  if (spec.multi) {
80
79
  isArray(acc[id]) ? acc[id].push(a) : acc[id] = [a];
81
80
  } else {