Skip to content

v0.10.0

Choose a tag to compare

@benvinegar benvinegar released this 30 Jun 21:32
· 35 commits to main since this release
68d33f8

What's new

  • Scoped PostgreSQL/SQLite .onConflictDoUpdate(...) now injects the table rule's where(scopeValue) predicate into setWhere, so cross-scope conflicts safely no-op.

Changed

  • Relaxed scoped PostgreSQL/SQLite .onConflictDoUpdate(...) conflict-target validation. Any conflict target is allowed while insert/update payload validators still run and scope-column reassignment still throws.
  • Stopped exposing raw execute on scoped wrappers; use _unsafeUnscopedDb.execute(...) when intentionally running raw SQL.
  • Reject aliases of scoped tables unless the alias has its own explicit scoped rule, preventing aliases from silently bypassing rule lookup.

Fixed

  • Prevent scoped insert/update/delete result chaining from leaking raw Drizzle builders through .returning(), a second .where(...), or $dynamic().