@geekmidas/audit 9.0.2 → 10.0.0-alpha.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
@@ -435,9 +435,9 @@ CREATE INDEX idx_audit_logs_entity_id ON audit_logs("entityId");
435
435
  The audit package integrates seamlessly with `@geekmidas/constructs` endpoints:
436
436
 
437
437
  ```typescript
438
- import { e } from '@geekmidas/constructs/endpoints';
438
+ import { api } from '../constructs/api';
439
439
 
440
- const endpoint = e
440
+ const endpoint = api
441
441
  .post('/users')
442
442
  .body(UserSchema)
443
443
  .output(UserResponseSchema)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/audit",
3
- "version": "9.0.2",
3
+ "version": "10.0.0-alpha.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -54,6 +54,9 @@
54
54
  }
55
55
  }
56
56
  },
57
+ "files": [
58
+ "dist"
59
+ ],
57
60
  "repository": {
58
61
  "type": "git",
59
62
  "url": "https://github.com/geekmidas/toolbox"
@@ -69,8 +72,8 @@
69
72
  "peerDependencies": {
70
73
  "kysely": ">=0.28.2 <0.30.0",
71
74
  "knex": ">=3.0.0 <4.0.0",
72
- "@geekmidas/cache": "^9.0.2",
73
- "@geekmidas/schema": "^9.0.2"
75
+ "@geekmidas/cache": "^10.0.0-alpha.0",
76
+ "@geekmidas/schema": "^10.0.0-alpha.0"
74
77
  },
75
78
  "peerDependenciesMeta": {
76
79
  "@geekmidas/cache": {
@@ -91,7 +94,7 @@
91
94
  "pg": "~8.16.0",
92
95
  "@types/pg": "~8.15.6",
93
96
  "knex": "~3.1.0",
94
- "@geekmidas/cache": "^9.0.2",
95
- "@geekmidas/schema": "^9.0.2"
97
+ "@geekmidas/cache": "^10.0.0-alpha.0",
98
+ "@geekmidas/schema": "^10.0.0-alpha.0"
96
99
  }
97
100
  }
package/CHANGELOG.md DELETED
@@ -1,101 +0,0 @@
1
- # @geekmidas/audit
2
-
3
- ## 9.0.2
4
-
5
- ### Patch Changes
6
-
7
- - [#12](https://github.com/geekmidas/toolbox/pull/12) [`d53863a`](https://github.com/geekmidas/toolbox/commit/d53863a84db2e4ab5420e08f79128b637043fc42) Thanks [@geekmidas](https://github.com/geekmidas)! - Align every published package on a single version and keep them in step.
8
-
9
- All packages now share one version, enforced by a changesets `fixed` group. The
10
- baseline is 9.0.1 — @geekmidas/client's published version — so nothing moves
11
- backwards; this release takes the whole set to 9.0.2 together.
12
-
13
- Independent versions made "which version of the docs applies to me"
14
- unanswerable: a reader on constructs@7 and cli@2 was on no version at all. One
15
- number per release makes versioned documentation possible, and lets 9 freeze as
16
- the current paradigm while the constructs rework is developed against it.
17
-
18
- Every release now publishes every package, and a major anywhere is a major
19
- everywhere. Peer ranges get simpler in return.
20
-
21
- - Updated dependencies [[`d53863a`](https://github.com/geekmidas/toolbox/commit/d53863a84db2e4ab5420e08f79128b637043fc42)]:
22
- - @geekmidas/cache@9.0.2
23
- - @geekmidas/schema@9.0.2
24
-
25
- ## 2.2.1
26
-
27
- ### Patch Changes
28
-
29
- - 🐛 [#11](https://github.com/geekmidas/toolbox/pull/11) [`40f4dc0`](https://github.com/geekmidas/toolbox/commit/40f4dc095911b2223a255029d8f776caf7781309) Thanks [@geekmidas](https://github.com/geekmidas)! - Patch release across all packages to realign published versions with the
30
- registry. The previous release only published the four packages that had
31
- version bumps; the remaining packages failed with "cannot publish over the
32
- previously published versions" because their versions were unchanged.
33
- - Updated dependencies [[`40f4dc0`](https://github.com/geekmidas/toolbox/commit/40f4dc095911b2223a255029d8f776caf7781309)]:
34
- - @geekmidas/cache@1.1.2
35
- - @geekmidas/schema@1.0.4
36
-
37
- ## 2.2.0
38
-
39
- ### Minor Changes
40
-
41
- - ✨ [#10](https://github.com/geekmidas/toolbox/pull/10) [`ae678fe`](https://github.com/geekmidas/toolbox/commit/ae678fe6fbc89307d052335468f1b955b306a604) Thanks [@geekmidas](https://github.com/geekmidas)! - Add Knex audit storage via a new `@geekmidas/audit/knex` entry point.
42
-
43
- `KnexAuditStorage` mirrors `KyselyAuditStorage` — same config (`db`,
44
- `tableName`, `databaseServiceName`, `autoId`), same `query()`/`count()`
45
- filters, and the same transaction semantics. A `withAuditableTransaction`
46
- helper is included; passing an existing transaction reuses it instead of
47
- opening a savepoint, so audits roll back with the outer transaction.
48
-
49
- Because it implements `withTransaction()`, `getDatabase()` and
50
- `databaseServiceName`, endpoints wrap handlers and audit flushes in a single
51
- transaction with Knex just as they do with Kysely.
52
-
53
- `knex` is an optional peer dependency, so Kysely-only users are unaffected.
54
-
55
- ## 2.1.0
56
-
57
- ### Minor Changes
58
-
59
- - [#9](https://github.com/geekmidas/toolbox/pull/9) [`e31a60a`](https://github.com/geekmidas/toolbox/commit/e31a60a971366180a0e7bec6e7da56d8f36aa21f) Thanks [@geekmidas](https://github.com/geekmidas)! - Support kysely 0.29.
60
-
61
- kysely 0.29 moved `Migrator` and `FileMigrationProvider` from the root barrel
62
- (`'kysely'`) to the `'kysely/migration'` subpath. `@geekmidas/testkit`'s
63
- `PostgresKyselyMigrator` now imports `Migrator` from `'kysely/migration'` and
64
- its kysely peer becomes `~0.29.4` — consumers must be on kysely 0.29+.
65
-
66
- The library packages that only declare a kysely _peer_ (`db`, `audit`, `studio`,
67
- `telescope`) don't touch the moved symbols, so their peer range is _widened_ to
68
- `>=0.28.2 <0.30.0` — they now support both 0.28 and 0.29 (non-breaking).
69
-
70
- `@geekmidas/cli`'s scaffolded `test/globalSetup.ts` template now imports
71
- `FileMigrationProvider` from `'kysely/migration'` so generated projects work on
72
- kysely 0.29.
73
-
74
- ## 2.0.1
75
-
76
- ### Patch Changes
77
-
78
- - 🐛 [`d70c6c0`](https://github.com/geekmidas/toolbox/commit/d70c6c0aeb8a79da2473ac77dbd8255a4a2f5651) Thanks [@geekmidas](https://github.com/geekmidas)! - Fix `package.json` exports so TypeScript declarations resolve correctly under NodeNext/Bundler module resolution. Each subpath export now nests `types` inside its `import`/`require` condition, pointing at the `.d.mts` and `.d.cts` files that `tsdown` actually emits (previously the exports referenced non-existent `.d.ts` files, causing type-resolution failures for consumers). Both ESM (`.mjs`) and CJS (`.cjs`) runtime entry points are preserved. Additionally, `@geekmidas/ui` had `import` paths pointing at `.js` files that were never emitted — those are corrected to `.mjs`.
79
-
80
- - Updated dependencies [[`d70c6c0`](https://github.com/geekmidas/toolbox/commit/d70c6c0aeb8a79da2473ac77dbd8255a4a2f5651)]:
81
- - @geekmidas/cache@1.1.1
82
- - @geekmidas/schema@1.0.2
83
-
84
- ## 2.0.0
85
-
86
- ### Patch Changes
87
-
88
- - Updated dependencies [[`be4f7a9`](https://github.com/geekmidas/toolbox/commit/be4f7a9bd5de7f08adbca582916d6902e0c24de2)]:
89
- - @geekmidas/cache@1.1.0
90
-
91
- ## 1.0.0
92
-
93
- ### Major Changes
94
-
95
- - [`ff7b115`](https://github.com/geekmidas/toolbox/commit/ff7b11599f60f84ac6cdc73714c853ecf786b2e8) Thanks [@geekmidas](https://github.com/geekmidas)! - Version 1 Stable release
96
-
97
- ### Patch Changes
98
-
99
- - Updated dependencies [[`ff7b115`](https://github.com/geekmidas/toolbox/commit/ff7b11599f60f84ac6cdc73714c853ecf786b2e8)]:
100
- - @geekmidas/cache@1.0.0
101
- - @geekmidas/schema@1.0.0