Skip to content

v4.0.2

Choose a tag to compare

@prabhu prabhu released this 13 Nov 11:06
· 75 commits to main since this release
v4.0.2
a504584

atom 4.0.2 is a patch release against 4.0.0, prepared together with chen 4.0.1, which it uses. It carries every fix of the 4.0.1 round and completes that round's distribution: the v4.0.1 tag was cut before the macOS release job could run its PHP smoke case, so the macOS binary and the npm package of this round ship from this tag.

Windows C and C++ projects build their graph again: a Windows compile database's include
paths keep their backslashes instead of arriving mangled, and the EDG frontend agrees with
the exporter on project membership whichever way a directory is spelled, so headers under a
short-name or symlinked path are no longer dropped (atom#390; the fix itself is in chen 4.0.1,
whose release notes detail it, and it was verified on a Windows 11 machine under both
spellings of the temporary directory and on GitHub's Windows runner).

--parse-report ships: one JSON document naming every file the frontends left out or only
partly read, with the outcome, the stage and the parser's reason, written even when a run
fails. It is the instrument that told broken projects apart from quietly incomplete ones
while the fixes for this release were being found.

Reachables gained dependency-boundary sinks on both dynamic web languages. A Composer
project whose flows all cross into vendor code came out of 4.0.0 with an empty reachables
file and exit 0; calls into packages the composer metadata declares are now library-call
sinks carrying the package URL, so a flow ties back to a dependency CVE (atom#395,
symfony/demo: 0 boundary flows to 50 with real purls). The same boundary now exists for npm
packages (atom#402, atom#409: express 294 to 367 groups, body-parser 5 to 69, axios 20 to
56).

The C default sink categories are a fixed, contract-ordered list (library-call, http, cloud,
rpc, device-driver) instead of the first five tag names of the atom's whole vocabulary, which
made both the cost and the results depend on how many unrelated tags the frontend wrote
(atom#404). google/brotli's reachables run now lands at 6.4 s against the 3.2.1 reference's
5.7 s for the whole run, from about four times slower in 4.0.0, and curl's hundreds of
run-to-run-unstable entries reduce to its 3 genuine library-call chains. The EDG growth
chen#306 reported is measured, judged genuine reachability plus the labeling side effect
that the fixed list removes, and pinned by a calibrated gate (atom#410).

The memory-safety overlay runs only for the memory-safety command, which halves the C
reachables regression on its own, and memory-safety --reuse-atom now fails with a rebuild
instruction instead of silently rendering zero findings from an atom built without the
overlay (atom#397).

The native image's reflection metadata registers every BabelAst object (260 of 260; 4.0.0
registered 95), which is what silently dropped express's lib/ files in the npm package; the
native smoke script now carries the JavaScript, express-style reachables and Composer cases
that would have caught it, verified to fail against the released 4.0.0 binary (atom#396,
atom#405). The Composer case needs a PHP runtime, which the macOS release job now installs
(its runner image ships none).

Every helper program atom starts, the astgen runners, the plugin probe and the container
entry points among them, now starts without a shell, and project configuration is read only
when a command asks for it (atom#407).

The full corpus table, candidate against 3.2.1 across six real projects with the reading that
goes with it, is on atom#343. The changes were written by AI agents and reviewed by the
maintainer.

Full Changelog: v4.0.0...v4.0.2