Skip to content

Releases

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 25 Nov 15:20
beb731c

Published packages

@auditstream/node

Patch Changes

  • 4893f97: Fix @auditstream/drizzle README imports (drizzle-orm instead of internal drizzle-orm-v1), polish all published package READMEs with idiomatic examples and verified badges, and add homepage metadata pointing to https://auditstream.dev/docs/typescript/.
  • 0bee515: Update package homepage URLs to point directly to the /docs/typescript/ documentation routes.

@auditstream/prisma

Patch Changes

  • 4893f97: Fix @auditstream/drizzle README imports (drizzle-orm instead of internal drizzle-orm-v1), polish all published package READMEs with idiomatic examples and verified badges, and add homepage metadata pointing to https://auditstream.dev/docs/typescript/.
  • 0bee515: Update package homepage URLs to point directly to the /docs/typescript/ documentation routes.

@auditstream/drizzle

Patch Changes

  • 4893f97: Fix @auditstream/drizzle README imports (drizzle-orm instead of internal drizzle-orm-v1), polish all published package READMEs with idiomatic examples and verified badges, and add homepage metadata pointing to https://auditstream.dev/docs/typescript/.
  • 0bee515: Update package homepage URLs to point directly to the /docs/typescript/ documentation routes.

v0.2.0

Choose a tag to compare

@gabrielrbl gabrielrbl released this 25 Nov 15:16
79095c9

Published packages

@auditstream/node

Minor Changes

  • 6b96a3c: Add audit.query() with validated filters (table, schemaName, recordId, actor, tenant, source, op, opPrefix via pg_catalog.starts_with, since, until), app event support, bounding-filter guardrails, and partition-pruning microsecond keyset pagination while keeping audit.history() backwards-compatible.
  • 8c8e630: Add audit.log(exec, event) to record application-level audit events through auditstream.log_event($1::text, $2::jsonb, $3::jsonb) with Specification 0.1.0 validation and AsyncLocalStorage actor context propagation.
  • 639b175: Add typed audit history helpers (HistoryEntry, ExportRecord, parseExportRecord() with arbitrary-precision numeric preservation, and audit.history() parameterized record lookup).

Patch Changes

  • 699521c: Align decodeScope(), parseExportRecord(), and audit.history() actor/context validation with the hardened Auditstream Specification 0.1.0 rules (closed 5-value actor.type enum, non-empty tenant, depth-1 onBehalfOf, and context object/known-field validation while preserving unknown keys) and sync conformance fixtures.
  • a453cf6: Preserve full PostgreSQL microsecond precision for occurred_at in audit.history() using pg_catalog.to_char(..., 'YYYY-MM-DD"T"HH24:MI:SS.US"Z"') and harden @auditstream/node middleware README examples against header spoofing.
  • 4b4cc7a: Pass an explicit locale-independent comparator when sorting extra actor and context keys during canonical JSON serialization.
  • cebe2a6: Share the internal AsyncLocalStorage store via globalThis[Symbol.for("auditstream.node.scopeStorage.v1")] so separate server chunks (such as Next.js 16 Turbopack Route Handlers and Server Actions sharing a globalThis Prisma client) always observe the same active actor scope.
  • 46cf7bb: Add audit.as(), audit.current(), and AuditstreamError with spec 0.1.0 validation and AsyncLocalStorage (run()-only) scope isolation.
  • 6ee0af1: Add spec 0.1.0 actor transport codec (encodeScope, decodeScope, tagSql, isTagged, setConfigValue) and pin spec-v0.1.0 conformance fixtures.
  • efc4b30: Add Express (/express), Hono (/hono), and Next.js (/next) request actor scope helpers.
  • f567c21: Cache canonical JSON and encoded tags for audit.as() scopes in a process-wide WeakMap, and add an O(1) trailing-character fast path to isTagged() and decodeScope().

@auditstream/prisma

Minor Changes

  • 22e355e: Implement the auditstream() Prisma 7 SQL comments plugin with local structural types, end-to-end integration tests across PrismaPg (and optional NEON_TEST_URL cells for PrismaNeon and PrismaNeonHttp), and JC2 rules in packages/prisma/AGENTS.md.
  • b3f019d: Add the auditTransaction() transaction-local set_config fallback (SELECT set_config('auditstream.actor', $1, true) via setConfigValue()) for Prisma Accelerate and finalize @auditstream/prisma TSDoc and API report.

@auditstream/drizzle

Minor Changes

  • 4b6a185: Add wrapPgPool() in @auditstream/drizzle/pg to tag SQL statements on node-postgres (pg.Pool) and Neon WebSocket (@neondatabase/serverless Pool) with the caller's active audit.as() actor without leaking actors across pooled callbacks or creating per-actor named prepared statements.
  • 135d59f: Add wrapNeonHttp() in @auditstream/drizzle/neon-http to tag Neon HTTP queries, plain string calls, HTTP transactions, and Drizzle db.batch() queries with the active actor.
  • ca78099: Add wrapPostgresJs() in @auditstream/drizzle/postgres-js to tag Drizzle postgres.js unsafe() statements across root, begin(), and nested savepoint() clients while forcing prepare: false on tagged calls.
  • 215f04b: Add auditComment() in @auditstream/drizzle for Drizzle 1.x .comment() query builders and relational queries, merging optional extra sqlcommenter keys without importing drizzle-orm in public types.