github safishamsi/graphify v0.7.4

4 hours ago

What's new

Fix: tsconfig JSONC parsing (#700)

_read_tsconfig_aliases() now handles the format every TypeScript tool generates — // comments, /* */ block comments, trailing commas. Previously json.loads threw JSONDecodeError which was silently swallowed, causing alias resolution to return {} for essentially every real TS project (SvelteKit, NestJS, T3, Astro, Vite, Nx). The extends-following logic from v0.7.1 was correct all along — it was just unreachable. Both now work together.

Fix: Svelte dynamic import edges (#701)

Two bugs in the extract_svelte() regex fallback that caused 100% of generated edges to be dropped:

  • Bug A: Aliased imports ($lib/..., $partials/..., @/...) were skipped by a .startswith('.') filter — now resolved via the tsconfig alias map
  • Bug B: Synthetic node IDs used the wrong _make_id signature so both endpoints were phantom nodes; fixed to match _extract_generic and _import_js conventions

For a real 1,870-file SvelteKit app: 4,246 $lib/... + 478 $partials/... imports now resolve correctly, recovering ~150 previously orphaned .svelte files.

Don't miss a new graphify release

NewReleases is sending notifications on new releases.