Skip to content

fix: feature detection correctness (0.3.5) - #103

Merged
itsflaid merged 4 commits into
mainfrom
feature-detection-correctness
Sep 13, 2026
Merged

fix: feature detection correctness (0.3.5)#103
itsflaid merged 4 commits into
mainfrom
feature-detection-correctness

Conversation

@itsflaid

Copy link
Copy Markdown
Owner

Changes

Task 1.1 — Fix entity filter order

  • Filter infrastructure and true-child entities before the 8-entity cap, not after
  • Entities with actual source files are now prioritized via sort
  • Prevents domain entities (Room, Message) from being starved out by NextAuth boilerplate when Prisma schema has >8 relation-bearing models

Task 1.2 — Barrel-aware ownership

  • Added \isPureBarrelFile\ detection (export-dominance check: no local symbols + >50% re-export lines)
  • BFS ownership expansion stops at barrel files, preventing re-exported components from being attributed to the wrong page
  • Updated \detectFrontendPageFeatures\ and \detectClientRouteFeatures\ to accept analyses and compute barrel files

Task 1.3 — Merge anchor fan-in guard

  • Files imported by >5\HUB_FILE_THRESHOLD) other files are no longer treated as merge anchors
  • Prevents high fan-in shared utilities from falsely merging unrelated feature candidates

Verification

  • \pnpm test:cli\ — 268/268 pass (3 new tests)
  • \pnpm build:cli\ — clean
  • Version bumped to 0.3.5

@vercel

vercel Bot commented Sep 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
devmap-web Ready Ready Preview Sep 13, 2026 5:41am UTC

@github-actions

Copy link
Copy Markdown

✅ Welcome ke DevMap!

Terima kasih sudah buat PR. Pastikan checklist ini terpenuhi sebelum review:

  • devmap doctor lolos (tanpa error)
  • Test pnpm test:cli lolos (251 pass)
  • New commands diupdate di docs/commands.md
  • Tidak ada console.log di command files
  • Registry terms sesuai standar (baca docs/guide/05-signal-registry.md)
  • Code style match dengan CONTRIBUTING.md

CI akan jalan otomatis pada setiap update. Kalau gagal, akan muncul link run di komentar ini.

Kalau DevMap membantu, tolong star ya: https://github.com/itsflaid/devmap

Terima kasih kontribusinya! 🙏

@itsflaid
itsflaid merged commit 25e6fa2 into main Sep 13, 2026
3 checks passed
@itsflaid
itsflaid deleted the feature-detection-correctness branch September 13, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant