Skip to content

Fix drizzle false positive for non-db .delete() calls#43

Merged
rwdaigle merged 1 commit into
mainfrom
ryan/fix-drizzle-false-positive
Mar 3, 2026
Merged

Fix drizzle false positive for non-db .delete() calls#43
rwdaigle merged 1 commit into
mainfrom
ryan/fix-drizzle-false-positive

Conversation

@rwdaigle

@rwdaigle rwdaigle commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix false positive where URLSearchParams.delete(), Map.delete(), Set.delete() etc. were incorrectly flagged as database DELETE operations by the drizzle/persistence check
  • Track known db variable names (including import aliases) and verify .delete()/.insert()/.update() callers are actual database clients before treating them as DB operations
  • Bump version to 0.10.1

Test plan

  • Added non-db-delete.tsx fixture with URLSearchParams, Map, and Set .delete() calls
  • Verified extractDbOperations returns zero delete ops for the fixture
  • Verified checkPersistence produces no "no .where()" issues for the fixture
  • All 215 existing tests pass
  • Build, typecheck, and lint all pass

🤖 Generated with Claude Code


Open with Devin

…s.delete() etc.

Track known db variable names (imported or aliased) and verify .delete()/.insert()/.update()
callers are actual database clients before treating them as DB operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@rwdaigle rwdaigle merged commit 96177ac into main Mar 3, 2026
3 checks passed
@rwdaigle rwdaigle deleted the ryan/fix-drizzle-false-positive branch March 3, 2026 16:10
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