@absolutejs/vulnerabilities-postgres 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,36 +15,35 @@ const alertPolicies = persistence.alertPolicies;
15
15
  const alertIncidents = persistence.alertIncidents;
16
16
  ```
17
17
 
18
- Applications already using Drizzle can keep the complete alert lifecycle
19
- schema-derived:
18
+ Applications already using Drizzle can keep the complete vulnerability
19
+ lifecycle schema-derived:
20
20
 
21
21
  ```ts
22
22
  import {
23
- createDrizzleVulnerabilityAlertStores,
24
- vulnerabilityAlertDrizzleSchema,
23
+ createDrizzleVulnerabilityStore,
24
+ vulnerabilityCoreDrizzleSchema,
25
25
  } from "@absolutejs/vulnerabilities-postgres";
26
26
  import { drizzle } from "drizzle-orm/bun-sql";
27
27
 
28
28
  export const schema = {
29
- ...vulnerabilityAlertDrizzleSchema,
29
+ ...vulnerabilityCoreDrizzleSchema,
30
30
  // ...the rest of your application's tables
31
31
  };
32
32
  const db = drizzle({ client: sql });
33
- const { alertIncidents, alertPolicies } =
34
- createDrizzleVulnerabilityAlertStores(db);
33
+ const persistence = createDrizzleVulnerabilityStore(db);
35
34
  ```
36
35
 
37
36
  The Drizzle store targets the standard `vulnerability_*` tables. Custom table
38
- prefixes remain available through `createPostgresVulnerabilityStore`.
37
+ prefixes and runtime schema bootstrap remain available through
38
+ `createPostgresVulnerabilityStore`.
39
39
 
40
40
  The package stores complete provider snapshots and records, appendable sync
41
41
  history, tenant-scoped managed findings, correlation observations, VEX decisions
42
42
  and applications, remediation plans and evidence, risk assessments, immutable
43
43
  alert-policy versions, incident timelines, and leased notification deliveries.
44
- Snapshot replacement is
45
- one Postgres statement, so readers never see a half-replaced record set. Schema
46
- creation is lazy and idempotent, or can be disabled when application migrations
47
- own the tables.
44
+ Snapshot replacement is one transaction, so readers never see a half-replaced
45
+ record set. Schema creation is lazy and idempotent for the tagged-template
46
+ adapter; Drizzle applications import the package tables and manage migrations.
48
47
 
49
48
  The SQL surface is compatible with postgres.js and Neon-style tagged-template
50
49
  clients. Table prefixes are strictly validated before identifiers are included