Repository navigation
Releases
Releases · auditstream/auditstream-js
v0.2.1
Published packages
@auditstream/node
Patch Changes
- 4893f97: Fix
@auditstream/drizzleREADME imports (drizzle-orminstead of internaldrizzle-orm-v1), polish all published package READMEs with idiomatic examples and verified badges, and addhomepagemetadata pointing tohttps://auditstream.dev/docs/typescript/. - 0bee515: Update package
homepageURLs to point directly to the/docs/typescript/documentation routes.
@auditstream/prisma
Patch Changes
- 4893f97: Fix
@auditstream/drizzleREADME imports (drizzle-orminstead of internaldrizzle-orm-v1), polish all published package READMEs with idiomatic examples and verified badges, and addhomepagemetadata pointing tohttps://auditstream.dev/docs/typescript/. - 0bee515: Update package
homepageURLs to point directly to the/docs/typescript/documentation routes.
@auditstream/drizzle
Patch Changes
- 4893f97: Fix
@auditstream/drizzleREADME imports (drizzle-orminstead of internaldrizzle-orm-v1), polish all published package READMEs with idiomatic examples and verified badges, and addhomepagemetadata pointing tohttps://auditstream.dev/docs/typescript/. - 0bee515: Update package
homepageURLs to point directly to the/docs/typescript/documentation routes.
v0.2.0
Published packages
@auditstream/node
Minor Changes
- 6b96a3c: Add
audit.query()with validated filters (table,schemaName,recordId,actor,tenant,source,op,opPrefixviapg_catalog.starts_with,since,until),appevent support, bounding-filter guardrails, and partition-pruning microsecond keyset pagination while keepingaudit.history()backwards-compatible. - 8c8e630: Add
audit.log(exec, event)to record application-level audit events throughauditstream.log_event($1::text, $2::jsonb, $3::jsonb)with Specification 0.1.0 validation andAsyncLocalStorageactor context propagation. - 639b175: Add typed audit history helpers (
HistoryEntry,ExportRecord,parseExportRecord()with arbitrary-precisionnumericpreservation, andaudit.history()parameterized record lookup).
Patch Changes
- 699521c: Align
decodeScope(),parseExportRecord(), andaudit.history()actor/context validation with the hardened Auditstream Specification 0.1.0 rules (closed 5-valueactor.typeenum, non-emptytenant, depth-1onBehalfOf, andcontextobject/known-field validation while preserving unknown keys) and sync conformance fixtures. - a453cf6: Preserve full PostgreSQL microsecond precision for
occurred_atinaudit.history()usingpg_catalog.to_char(..., 'YYYY-MM-DD"T"HH24:MI:SS.US"Z"')and harden@auditstream/nodemiddleware 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
AsyncLocalStoragestore viaglobalThis[Symbol.for("auditstream.node.scopeStorage.v1")]so separate server chunks (such as Next.js 16 Turbopack Route Handlers and Server Actions sharing aglobalThisPrisma client) always observe the same active actor scope. - 46cf7bb: Add
audit.as(),audit.current(), andAuditstreamErrorwith spec 0.1.0 validation andAsyncLocalStorage(run()-only) scope isolation. - 6ee0af1: Add spec 0.1.0 actor transport codec (
encodeScope,decodeScope,tagSql,isTagged,setConfigValue) and pinspec-v0.1.0conformance 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-wideWeakMap, and add an O(1) trailing-character fast path toisTagged()anddecodeScope().
@auditstream/prisma
Minor Changes
- 22e355e: Implement the
auditstream()Prisma 7 SQL comments plugin with local structural types, end-to-end integration tests acrossPrismaPg(and optionalNEON_TEST_URLcells forPrismaNeonandPrismaNeonHttp), and JC2 rules inpackages/prisma/AGENTS.md. - b3f019d: Add the
auditTransaction()transaction-localset_configfallback (SELECT set_config('auditstream.actor', $1, true)viasetConfigValue()) for Prisma Accelerate and finalize@auditstream/prismaTSDoc and API report.
@auditstream/drizzle
Minor Changes
- 4b6a185: Add
wrapPgPool()in@auditstream/drizzle/pgto tag SQL statements onnode-postgres(pg.Pool) and Neon WebSocket (@neondatabase/serverlessPool) with the caller's activeaudit.as()actor without leaking actors across pooled callbacks or creating per-actor named prepared statements. - 135d59f: Add
wrapNeonHttp()in@auditstream/drizzle/neon-httpto tag Neon HTTP queries, plain string calls, HTTP transactions, and Drizzledb.batch()queries with the active actor. - ca78099: Add
wrapPostgresJs()in@auditstream/drizzle/postgres-jsto tag Drizzlepostgres.jsunsafe()statements across root,begin(), and nestedsavepoint()clients while forcingprepare: falseon tagged calls. - 215f04b: Add
auditComment()in@auditstream/drizzlefor Drizzle 1.x.comment()query builders and relational queries, merging optional extra sqlcommenter keys without importingdrizzle-ormin public types.