dotmd-cli 0.79.0 → 0.79.1

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.
@@ -46,6 +46,10 @@ function runCli(directory, args, input = null) {
46
46
  cwd: directory,
47
47
  timeout: PRIMER_TIMEOUT_MS,
48
48
  windowsHide: true,
49
+ // Node refuses to execFile a `.cmd` without a shell (EINVAL since the
50
+ // 2024 batch-file fix), and npm installs the CLI on Windows as one.
51
+ // The arguments are fixed strings, never user input.
52
+ shell: process.platform === 'win32',
49
53
  env: { ...process.env, NO_COLOR: '1' },
50
54
  }, (error, stdout) => {
51
55
  if (error?.code === 'ENOENT') attempt(index + 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotmd-cli",
3
- "version": "0.79.0",
3
+ "version": "0.79.1",
4
4
  "description": "CLI for managing markdown documents with YAML frontmatter — index, query, validate, graph, export, lifecycle, and AI summaries.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -73,7 +73,9 @@ export function fixMembershipBackrefs(config, {
73
73
  const ambiguous = planned.ambiguous.map(item => ({ path: item.childPath, hubs: item.hubPaths }));
74
74
  const managed = [
75
75
  ...updates.map(update => update.path),
76
- ...guardByPath.values().map(guard => guard.path),
76
+ // Array.from, not `.values().map`: iterator helpers are Node 22+, and the
77
+ // package supports Node 20.
78
+ ...Array.from(guardByPath.values(), guard => guard.path),
77
79
  ];
78
80
  if (managed.length) authorizeManagedSweep(managed, config, { kind: 'Membership repair source' });
79
81