{"library":"pgrls-test","type":"library","category":null,"description":"Code-first RLS testing for Postgres — TypeScript port of pgrls.testing (Python). Current stable version is 0.6.3, with a release cadence of minor versions every few months. Implements the cross-language Layer 1 protocol (PROTOCOL_VERSION 1). Key differentiators: per-test transactions with role and JWT-claims switching, five RLS-specific assertion helpers (assertRows, assertRejected, etc.), and works with both pg and postgres.js drivers without forking or replacing your existing Postgres client. ESM-only, requires Node.js >=20, and ships TypeScript types.","language":"javascript","status":"active","version":"0.6.3","tags":["javascript","postgres","postgresql","rls","row-level-security","testing","vitest","supabase","drizzle","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pgrls-test","imports":["import { PgrlsTestClient } from 'pgrls-test'","import { pgDriver } from 'pgrls-test'","import { postgresJsDriver } from 'pgrls-test'"]},{"cmd":"yarn add pgrls-test","imports":[]},{"cmd":"pnpm add pgrls-test","imports":[]}],"homepage":"https://github.com/pgrls/pgrls","github":"https://github.com/pgrls/pgrls","docs":null,"changelog":null,"pypi":null,"npm":"pgrls-test","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}