@absolutejs/vulnerabilities-postgres 0.8.0 → 0.9.1

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/dist/manifest.js CHANGED
@@ -23,6 +23,36 @@ var manifest = defineManifest()({
23
23
  tagline: "Keep vulnerability intelligence durable and auditable."
24
24
  },
25
25
  implements: [
26
+ defineImplementation()({
27
+ contract: "vulnerabilities/persistence",
28
+ factory: "createDrizzleVulnerabilityStore",
29
+ from: "@absolutejs/vulnerabilities-postgres",
30
+ requires: {
31
+ peers: [
32
+ {
33
+ name: "drizzle-orm",
34
+ range: ">=1.0.0-rc.4",
35
+ reason: "Schema-derived Postgres persistence"
36
+ }
37
+ ],
38
+ services: [
39
+ {
40
+ description: "Stores the complete vulnerability intelligence and remediation lifecycle through the application's Drizzle database",
41
+ id: "postgres"
42
+ }
43
+ ]
44
+ },
45
+ title: "Drizzle Postgres (application-managed schema)",
46
+ wiring: {
47
+ code: "createDrizzleVulnerabilityStore(db)",
48
+ imports: [
49
+ {
50
+ from: "@absolutejs/vulnerabilities-postgres",
51
+ names: ["createDrizzleVulnerabilityStore"]
52
+ }
53
+ ]
54
+ }
55
+ }),
26
56
  defineImplementation()({
27
57
  contract: "vulnerabilities/persistence",
28
58
  factory: "createPostgresVulnerabilityStore",
@@ -76,6 +106,16 @@ var manifest = defineManifest()({
76
106
  }
77
107
  })
78
108
  ],
109
+ lifecycle: [
110
+ {
111
+ docsUrl: "https://github.com/absolutejs/vulnerabilities-postgres",
112
+ id: "migrate",
113
+ idempotent: true,
114
+ kind: "migration",
115
+ title: "Import the package-owned vulnerability Drizzle tables into your application schema, then apply the migration",
116
+ when: "before-first-run"
117
+ }
118
+ ],
79
119
  settings: Type.Object({}),
80
120
  wiring: []
81
121
  });
@@ -30,6 +30,38 @@
30
30
  "tagline": "Keep vulnerability intelligence durable and auditable."
31
31
  },
32
32
  "implements": [
33
+ {
34
+ "contract": "vulnerabilities/persistence",
35
+ "factory": "createDrizzleVulnerabilityStore",
36
+ "from": "@absolutejs/vulnerabilities-postgres",
37
+ "requires": {
38
+ "peers": [
39
+ {
40
+ "name": "drizzle-orm",
41
+ "range": ">=1.0.0-rc.4",
42
+ "reason": "Schema-derived Postgres persistence"
43
+ }
44
+ ],
45
+ "services": [
46
+ {
47
+ "description": "Stores the complete vulnerability intelligence and remediation lifecycle through the application's Drizzle database",
48
+ "id": "postgres"
49
+ }
50
+ ]
51
+ },
52
+ "title": "Drizzle Postgres (application-managed schema)",
53
+ "wiring": {
54
+ "code": "createDrizzleVulnerabilityStore(db)",
55
+ "imports": [
56
+ {
57
+ "from": "@absolutejs/vulnerabilities-postgres",
58
+ "names": [
59
+ "createDrizzleVulnerabilityStore"
60
+ ]
61
+ }
62
+ ]
63
+ }
64
+ },
33
65
  {
34
66
  "contract": "vulnerabilities/persistence",
35
67
  "factory": "createPostgresVulnerabilityStore",
@@ -95,6 +127,16 @@
95
127
  }
96
128
  }
97
129
  ],
130
+ "lifecycle": [
131
+ {
132
+ "docsUrl": "https://github.com/absolutejs/vulnerabilities-postgres",
133
+ "id": "migrate",
134
+ "idempotent": true,
135
+ "kind": "migration",
136
+ "title": "Import the package-owned vulnerability Drizzle tables into your application schema, then apply the migration",
137
+ "when": "before-first-run"
138
+ }
139
+ ],
98
140
  "settings": {
99
141
  "type": "object",
100
142
  "properties": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/vulnerabilities-postgres",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Durable Postgres feeds, findings, alert incidents, policy history, delivery queues, remediation evidence, and risk assessments for AbsoluteJS vulnerability management.",
5
5
  "type": "module",
6
6
  "license": "BSL-1.1",
@@ -54,12 +54,12 @@
54
54
  "dependencies": {
55
55
  "@absolutejs/manifest": "0.3.0",
56
56
  "@absolutejs/vulnerabilities": ">=0.14.0 <0.15.0",
57
- "@sinclair/typebox": "0.34.52",
58
- "drizzle-orm": "1.0.0-rc.4"
57
+ "@sinclair/typebox": "0.34.52"
59
58
  },
60
59
  "peerDependencies": {
61
60
  "@neondatabase/serverless": ">=0.10.0",
62
- "postgres": ">=3.4.0"
61
+ "postgres": ">=3.4.0",
62
+ "drizzle-orm": ">=1.0.0-rc.4 <2"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "@neondatabase/serverless": {
@@ -73,6 +73,7 @@
73
73
  "@electric-sql/pglite": "0.3.14",
74
74
  "@types/bun": "1.3.14",
75
75
  "prettier": "3.8.1",
76
- "typescript": "5.9.3"
76
+ "typescript": "5.9.3",
77
+ "drizzle-orm": "1.0.0-rc.4"
77
78
  }
78
79
  }