@williamthorsen/toolbelt.packaging 0.6.2 → 0.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.
@@ -1,6 +1,6 @@
1
1
  /** @noformat -- @generated. Do not edit. Compiled by rdy. */
2
2
  /* eslint-disable */
3
- export const __readyupVersion = "0.38.0";
3
+ export const __readyupVersion = "0.43.0";
4
4
 
5
5
 
6
6
  // ../adoption/src/conventions/path-predicates.ts
@@ -71,10 +71,9 @@ function defineAdoptionKit(spec) {
71
71
  if (seen.has(id)) duplicated.add(id);
72
72
  seen.add(id);
73
73
  }
74
- if (duplicated.size > 0) {
75
- const ids = [...duplicated].toSorted().join(", ");
76
- throw new Error(`${spec.packageName}'s kit gives one id to more than one check: ${ids}`);
77
- }
74
+ if (duplicated.size === 0) return;
75
+ const ids = [...duplicated].toSorted().join(", ");
76
+ throw new Error(`${spec.packageName}'s kit gives one id to more than one check: ${ids}`);
78
77
  }
79
78
  function isSweptPath(path) {
80
79
  return sweptPathFilters.some((pathFilter) => pathFilter(path));
@@ -2,6 +2,14 @@
2
2
  "version": 1,
3
3
  "kits": [
4
4
  {
5
+ "checklistChecks": [
6
+ {
7
+ "checklist": "adoption",
8
+ "checks": [
9
+ "No source searches the directory chain for package.json by hand"
10
+ ]
11
+ }
12
+ ],
5
13
  "checklists": [
6
14
  "adoption"
7
15
  ],
@@ -9,7 +17,7 @@
9
17
  "esbuildVersion": "0.28.2",
10
18
  "inputs": [
11
19
  {
12
- "hash": "98e2d140",
20
+ "hash": "fcd04dfa",
13
21
  "kind": "module",
14
22
  "path": "../../adoption/src/conventions/path-predicates.ts"
15
23
  },
@@ -19,12 +27,12 @@
19
27
  "path": "../../adoption/src/conventions/site-handoffs.ts"
20
28
  },
21
29
  {
22
- "hash": "e6e87602",
30
+ "hash": "7b9002b8",
23
31
  "kind": "module",
24
32
  "path": "../../adoption/src/kits/defineAdoptionKit.ts"
25
33
  },
26
34
  {
27
- "hash": "10596562",
35
+ "hash": "09840c67",
28
36
  "kind": "module",
29
37
  "path": "../../adoption/src/mod.ts"
30
38
  },
@@ -44,7 +52,7 @@
44
52
  "path": "../../adoption/src/portable/listFunctionBodies.ts"
45
53
  },
46
54
  {
47
- "hash": "ce2e063d",
55
+ "hash": "1e9b8276",
48
56
  "kind": "module",
49
57
  "path": "../../adoption/src/portable/listTemplateLiterals.ts"
50
58
  },
@@ -81,10 +89,10 @@
81
89
  ],
82
90
  "name": "default",
83
91
  "path": "kits/default.js",
84
- "readyupVersion": "0.38.0",
92
+ "readyupVersion": "0.43.0",
85
93
  "source": "kits/default.ts",
86
94
  "sourceHash": "9b6938d1",
87
- "targetHash": "bc16d87b"
95
+ "targetHash": "ec65dcf4"
88
96
  }
89
97
  ]
90
98
  }
package/CHANGELOG.md CHANGED
@@ -2,10 +2,34 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.6.4 — 2026-10-24
6
+
7
+ ### 📦 Dependencies
8
+
9
+ - Upgrade dependencies to latest compatible versions (#391)
10
+
11
+ Upgrades Node.js, pnpm, and the repository's dependencies to their latest compatible releases, which clears the three dev advisories that failed `nmr audit`. The upgrade to `@williamthorsen/eslint-config-typescript` 20.1.3 adds unicorn lint rules, and the code is adapted to them in the same change.
12
+
13
+ ## 0.6.3 — 2026-10-09
14
+
15
+ ### 🎉 Features
16
+
17
+ - Add a ReadyUp kit recommending toolbelt.cli over hand-rolled argument parsing (#367)
18
+
19
+ Adds a ReadyUp adoption kit to `@williamthorsen/toolbelt.cli` that reports, through `rdy run --packages`, each call to `node:util`'s `parseArgs` and each function that compares arguments against flag names by hand. Includes `bin/` and `src/bin/` in the kit's sweep, which the other toolbelt kits exempt, because a command-line runner usually lives there.
20
+
21
+ ### 📚 Documentation
22
+
23
+ - Updates each kit README to show `rdy run --sources` and a `sources: ['npm:…']` config example, and states that this spelling needs readyup 0.40.0 or later. (#371)
24
+
5
25
  ## 0.6.2 — 2026-10-02
6
26
 
7
27
  ### 📚 Documentation
8
28
 
29
+ - Sweep the repository's comments against the comment discipline (#353)
30
+
31
+ Sweeps the comments in every authored source file against the comment discipline. The sweep cuts comments that restate the code or narrate history, corrects descriptions that contradicted the code, and adds descriptions to declarations that lacked one. It also tags the exported tier functions and classes that lacked `@category` and `@stage`, and corrects test titles that misstated their tests.
32
+
9
33
  - Revises READMEs, doc comments, and test names across the repository to follow the current `plain-speech` and writing-preference rules. (#354)
10
34
  - Rewords the help text and messages printed by `tb-jira`, `tb-node`, and `tb-secret`, and the advice and skip reasons reported by the adoption kits, to follow the same writing conventions. (#354)
11
35
 
package/README.md CHANGED
@@ -116,7 +116,7 @@ The function throws on a manifest that declares a `name` but no string `version`
116
116
  The package includes a ReadyUp kit, so a project that installs it can ask how far its adoption got:
117
117
 
118
118
  ```sh
119
- rdy run --packages
119
+ rdy run --sources
120
120
  ```
121
121
 
122
122
  The kit reads the project's tracked sources and reports one idiom, counted against the calls that the project already makes into this package. It reports at `recommend`: A hand-rolled search is correct code that a published function expresses better, not a defect.
@@ -138,10 +138,10 @@ while (!fs.existsSync(path.join(dir, 'package.json'))) {
138
138
  }
139
139
  ```
140
140
 
141
- Add the package to `.config/readyup.config.ts` to include it in a routine sweep:
141
+ Add the package to `.config/readyup.config.ts` to include it in a routine sweep, a spelling that readyup 0.40.0 or later reads:
142
142
 
143
143
  ```ts
144
144
  export default defineRdyConfig({
145
- packages: ['@williamthorsen/toolbelt.packaging'],
145
+ sources: ['npm:@williamthorsen/toolbelt.packaging'],
146
146
  });
147
147
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/toolbelt.packaging",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Package and project layout utilities: where a package or project boundary begins, and what its manifest declares",
5
5
  "keywords": [
6
6
  "esm",
@@ -45,13 +45,13 @@
45
45
  "CHANGELOG.md"
46
46
  ],
47
47
  "dependencies": {
48
- "@williamthorsen/toolbelt.filesystem": "0.9.2"
48
+ "@williamthorsen/toolbelt.filesystem": "0.9.4"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@williamthorsen/toolbelt.adoption": "0.1.0",
52
- "@williamthorsen/toolbelt.testing": "0.6.2",
52
+ "@williamthorsen/toolbelt.testing": "0.7.0",
53
53
  "esbuild": "0.28.2",
54
- "readyup": "0.38.0"
54
+ "readyup": "0.43.0"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=24.0.0"