/claim #71
deepCompareAst compared every primitive field in the parsed AST, including literal value fields. That made an allowlisted query shape such as WHERE id = 1 reject the same query shape with a different literal, even though the code comment says specific values should be ignored.
corepack pnpm vitest run src/allowlist/index.test.tscorepack pnpm vitest run src/allowlist/index.test.ts --coverage.enabled true --coverage.include src/allowlist/index.ts --coverage.reporter text --coverage.thresholds.lines=0 --coverage.thresholds.branches=0 --coverage.thresholds.functions=0 --coverage.thresholds.statements=0corepack pnpm exec prettier --check src/allowlist/index.ts src/allowlist/index.test.tsgit diff --check -- src/allowlist/index.ts src/allowlist/index.test.tscorepack pnpm vitest run still reports the existing 4 upstream RLS failures in src/rls/index.test.ts; the new allowlist tests pass in that run.--no-verify because the local Husky hook invokes a global pnpm binary that is not on this Windows Git hook PATH. The equivalent focused checks above were run with Corepack.Siqi Li
@lisiqi1983
Outerbase (YC W23)
@outerbase