Skip to content

engines: node >=22.5.0, the floor the product actually has - #1866

Merged
swapnilpaliwal-sd merged 1 commit into
apps/integration-0.1.9from
fix/node-engines-22-5
Oct 8, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
apps/integration-0.1.9from
fix/node-engines-22-5

Conversation

@swapnilpaliwal-sd

Copy link
Copy Markdown
Contributor

What

Fixes #1865: the manifests declared engines: { node: ">=18.0.0" } while the product needs Node ≥ 22.5.

Why

graph/bundle/write.ts writes graph.sqlite through node:sqlite, which ships since Node 22.5. On an older Node the guarded import degrades the bundle to CSV — and every query surface (impact/path/tests, the MCP server, the hooks) reads graph.sqlite, so the product does not answer. README.md already states ≥ 22.5 (badge + Requirements) and CI runs Node 22; the manifests were the stragglers, so a package manager honoring engines let Node 18 install something that cannot run.

How

  • package.json and parser/package.json: engines.node → >=22.5.0.
  • graph/test/csharp/README.md: the "18 or newer" line now says 22.5.

Note: the base (not the default branch) will not auto-close #1865 on merge; it gets closed manually after.

🤖 Generated with Claude Code

The bundle writes graph.sqlite through node:sqlite, which ships since
Node 22.5; on an older Node the guarded import degrades the bundle to
CSV and every query surface reads graph.sqlite, so nothing answers.
README.md and CI already say 22.5 / 22 — the manifests still said
>=18.0.0, so a package manager that honors engines let Node 18 install
something that cannot run. Both manifests now declare >=22.5.0, and the
C# suite README's '18 or newer' line says 22.5 like everything else.

Fixes #1865.

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 896e395 into apps/integration-0.1.9 Oct 8, 2026
11 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the fix/node-engines-22-5 branch October 8, 2026 17:57
swapnilpaliwal-sd added a commit that referenced this pull request Oct 8, 2026
The graph is written with node:sqlite, which Node ships without a flag only from 22.13
(and 23.4). #1866 set engines to >=22.5, but on 22.5-22.12 the module needs
--experimental-sqlite: on Node 22.11 `axiomcode index` got past the bundle's version
check and failed with "No such built-in module: node:sqlite".

- bin/axiomcode.js stops at once on an older Node: "axiomcode needs Node 22.13 or newer
  (it writes the graph with node:sqlite); this is Node X". Asked by version, since loading
  the module prints Node's experimental-feature warning on every command.
- sqliteAvailable() asks the module, not the version.
- engines.node >=22.13.0 in both package.json files; CI and the C# suite README say 22.13.

Checked on Node 22.11 and 23.3 (refused, module absent) and 22.13 and 23.4 (run, module
present).

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant