Skip to content

v0.4.14

Latest

Choose a tag to compare

@NISH1001 NISH1001 released this 29 Nov 02:29

What's new

  • JS/TS gaps 5–10 (#27):
    • TypeScript declaration merging.
    • Types used only in type positions, and default parameter values, now count as uses of an import.
    • export { X } publishes X without using it.
    • A catch {} inside an inline callback is now checked.
    • A package is used if package.json fields, script commands, tool configs or peers name it; root-hoisted workspace deps are accepted; Vite and Docusaurus aliases are no longer packages.
    • Cyclomatic complexity is counted per function, as ESLint and radon do.
    • const f: Impl = ... annotations and declare module augmentation are understood.
  • Five more linker bugs found by the eval rerun:
    • A static method call (Store.get()) now uses its class, in Python and JS.
    • A namespace import handed on whole now uses every export.
    • So does a dynamic import() kept in a variable.
    • A comment inside import() no longer hides it.
    • import type {} from 'pkg' now uses the package.
  • Evaluation rerun (Python and JS/TS), same pinned corpus and tools, with fresh hand-checked samples:
    • JS dead code only vibepiler reports (vs knip) went from 173 to 7, and all 7 are correct.
    • Python's vibepiler-only dead pool went from 458 to 237; the remaining gaps W–Z are written up for the next round.
    • docs/eval/img/eval.png has been regenerated.
  • CI: tests now run on every push and PR (Ubuntu with Python 3.12 and 3.13, macOS with 3.12), and the PyPI publish waits for them.
  • Bootstrap round 11: this release's own new code was run through vibepiler and cleaned up; bloat 22.2%.

Full changelog: v0.4.13...v0.4.14