You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@prisma/adapter-pgBytes field fails in jsdom environment due to cross-realm instanceof Uint8Array check #29129
When running tests with Vitest in jsdom environment, reading or writing Bytes fields fails with:
Expected a byte array in column 'value', got object: <content>
This happens because jsdom creates its own JavaScript realm with separate built-in classes. A Uint8Array created in jsdom's realm fails instanceof Uint8Array checks in Node's realm where @prisma/adapter-pg runs.
Severity
🔹 Minor: Unexpected behavior, but does not block development
Activity
fix(client-engine-runtime): use cross-realm safe Uint8Array check (pr…
fix(client-engine-runtime): use cross-realm safe Uint8Array check (pr…