@beignet/core 0.0.22 → 0.0.23

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @beignet/core
2
2
 
3
+ ## 0.0.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 02f09fb: Add Drizzle audit log setup statements and `AuditLogPort` factories for SQLite, Postgres, and MySQL.
8
+
3
9
  ## 0.0.22
4
10
 
5
11
  ### Patch Changes
@@ -345,7 +345,7 @@ export interface InstrumentedAuditLogOptions {
345
345
  * @example
346
346
  * ```ts
347
347
  * const audit = createInstrumentedAuditLog({
348
- * audit: createDrizzleAuditLog(db),
348
+ * audit: createDrizzleSqliteAuditLogPort(db),
349
349
  * instrumentation: ports,
350
350
  * });
351
351
  * ```
@@ -194,7 +194,7 @@ function auditSummary(entry) {
194
194
  * @example
195
195
  * ```ts
196
196
  * const audit = createInstrumentedAuditLog({
197
- * audit: createDrizzleAuditLog(db),
197
+ * audit: createDrizzleSqliteAuditLogPort(db),
198
198
  * instrumentation: ports,
199
199
  * });
200
200
  * ```
@@ -17,7 +17,10 @@ import type { AuditLogPort } from "../ports/index.js";
17
17
  * @example
18
18
  * ```ts
19
19
  * const audit = createAmbientAuditLog(
20
- * createInstrumentedAuditLog({ audit: createDrizzleAuditLog(db), instrumentation: ports }),
20
+ * createInstrumentedAuditLog({
21
+ * audit: createDrizzleSqliteAuditLogPort(db),
22
+ * instrumentation: ports,
23
+ * }),
21
24
  * );
22
25
  * await audit.record({ action: "posts.publish", resource: { type: "post", id } });
23
26
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"audit-context.d.ts","sourceRoot":"","sources":["../../src/server/audit-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAevE"}
1
+ {"version":3,"file":"audit-context.d.ts","sourceRoot":"","sources":["../../src/server/audit-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAevE"}
@@ -17,7 +17,10 @@ import { getActiveRequestContext } from "./request-context.js";
17
17
  * @example
18
18
  * ```ts
19
19
  * const audit = createAmbientAuditLog(
20
- * createInstrumentedAuditLog({ audit: createDrizzleAuditLog(db), instrumentation: ports }),
20
+ * createInstrumentedAuditLog({
21
+ * audit: createDrizzleSqliteAuditLogPort(db),
22
+ * instrumentation: ports,
23
+ * }),
21
24
  * );
22
25
  * await audit.record({ action: "posts.publish", resource: { type: "post", id } });
23
26
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"audit-context.js","sourceRoot":"","sources":["../../src/server/audit-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAmB;IACvD,OAAO;QACL,MAAM,CAAC,KAAK;YACV,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;YAC1C,IAAI,CAAC,OAAO;gBAAE,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAEzC,OAAO,KAAK,CAAC,MAAM,CAAC;gBAClB,GAAG,KAAK;gBACR,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK;gBACnC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM;gBACtC,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS;gBAC/C,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO;aAC1C,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"audit-context.js","sourceRoot":"","sources":["../../src/server/audit-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAmB;IACvD,OAAO;QACL,MAAM,CAAC,KAAK;YACV,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;YAC1C,IAAI,CAAC,OAAO;gBAAE,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAEzC,OAAO,KAAK,CAAC,MAAM,CAAC;gBAClB,GAAG,KAAK;gBACR,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK;gBACnC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM;gBACtC,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS;gBAC/C,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO;aAC1C,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beignet/core",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "description": "Core framework primitives for Beignet",
6
6
  "exports": {
@@ -472,7 +472,7 @@ function auditSummary(entry: AuditLogEntry): string {
472
472
  * @example
473
473
  * ```ts
474
474
  * const audit = createInstrumentedAuditLog({
475
- * audit: createDrizzleAuditLog(db),
475
+ * audit: createDrizzleSqliteAuditLogPort(db),
476
476
  * instrumentation: ports,
477
477
  * });
478
478
  * ```
@@ -19,7 +19,10 @@ import { getActiveRequestContext } from "./request-context.js";
19
19
  * @example
20
20
  * ```ts
21
21
  * const audit = createAmbientAuditLog(
22
- * createInstrumentedAuditLog({ audit: createDrizzleAuditLog(db), instrumentation: ports }),
22
+ * createInstrumentedAuditLog({
23
+ * audit: createDrizzleSqliteAuditLogPort(db),
24
+ * instrumentation: ports,
25
+ * }),
23
26
  * );
24
27
  * await audit.record({ action: "posts.publish", resource: { type: "post", id } });
25
28
  * ```