Skip to content

Commit bfa77d6

Browse files
committed
fix(prisma-next): make the JSON encryptQuery cast suppressions effective
The `searchableJson` encryptQuery call spreads its two `as never` operands across separate argument lines, so the single `// biome-ignore` above the call reached neither cast — both still tripped the no-type-erasing-assertions plugin, and the ignore itself was flagged as an ineffective suppression. Put one ignore directly above each cast line. Warning-only (CI gates on errors), but resolves the CodeRabbit thread and the dangling ineffective-suppression note. The scalar branch was already correct. Claude-Session: https://claude.ai/code/session_01MxTTPaPP16m6br7Hoab94w
1 parent 8db7196 commit bfa77d6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/prisma-next/src/v3/sdk-adapter-v3.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,13 @@ export function createCipherstashV3Sdk(
244244
// this mirrors stack-drizzle's JSON containment usage exactly.
245245
await Promise.all(
246246
jsonTerms.map(async (slot) => {
247-
// Cast rationale: see the scalar branch above.
248-
// biome-ignore lint/plugin: deliberate bridge into the structural `never`-operand surface (rationale above)
247+
// Cast rationale: see the scalar branch above. The two operands sit
248+
// on separate argument lines, so each cast needs its own ignore —
249+
// a single comment above the call reaches neither.
249250
const result = await client.encryptQuery(
251+
// biome-ignore lint/plugin: deliberate bridge into the structural `never`-operand surface (rationale above)
250252
slot.plaintext as never,
253+
// biome-ignore lint/plugin: deliberate bridge into the structural `never`-operand surface (rationale above)
251254
{ table, column, queryType: 'searchableJson' } as never,
252255
)
253256
const term = unwrap(result, 'encryptQuery(searchableJson)')

0 commit comments

Comments
 (0)