argsbarg 5.1.10 → 5.1.11

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 CHANGED
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [5.1.11] - 2026-07-05
11
+
12
+
10
13
  ## [5.1.10] - 2026-07-05
11
14
 
12
15
  ### Added
@@ -656,7 +659,8 @@ const cli = { ... } satisfies CliProgram; // or : CliProgram
656
659
  - Migrate schemas: rename every `children` property to **`commands`**; move positional definitions to **`CliPositional`** objects on `positionals` and strip `positional` / `argMin` / `argMax` from flag definitions under `options` (flags only carry `name`, `description`, `kind`, and optional `shortName`).
657
660
  - Imports: use `CliPositional` where needed; replace `CliOptionDef` with `CliOption` or `CliPositional` as appropriate.
658
661
 
659
- [Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v5.1.10...HEAD
662
+ [Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v5.1.11...HEAD
663
+ [5.1.11]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.11
660
664
  [5.1.10]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.10
661
665
  [5.1.9]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.9
662
666
  [5.1.8]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.8
@@ -29,15 +29,19 @@ function generateJson(root: SchemaRoot): Record<string, unknown> {
29
29
  }
30
30
 
31
31
  function writeBridge(path: string, scriptName: string, roots: SchemaRoot[], banner: string): void {
32
+ /** Sort by import binding so Biome `organizeImports` does not reorder the bridge file. */
33
+ const sorted = [...roots].sort((left, right) =>
34
+ jsonImportVar(left.outfile).localeCompare(jsonImportVar(right.outfile)),
35
+ );
32
36
  const lines = [`// Auto-generated by scripts/${scriptName} — do not edit by hand.`, ""];
33
- for (const root of roots) {
37
+ for (const root of sorted) {
34
38
  const varName = jsonImportVar(root.outfile);
35
39
  lines.push(`import ${varName} from "./generated/${root.outfile}";`);
36
40
  }
37
- if (roots.length > 0) {
41
+ if (sorted.length > 0) {
38
42
  lines.push("");
39
43
  }
40
- for (const root of roots) {
44
+ for (const root of sorted) {
41
45
  const varName = jsonImportVar(root.outfile);
42
46
  lines.push(`/** ${banner} \`${root.typeName}\`. */`);
43
47
  lines.push(`export const ${root.exportName} = ${varName} as Record<string, unknown>;`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "argsbarg",
3
- "version": "5.1.10",
3
+ "version": "5.1.11",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "bun": ">=1.3"