@geekmidas/db 1.0.1 → 1.1.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/package.json +42 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @geekmidas/db
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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.
8
+
9
+ kysely 0.29 moved `Migrator` and `FileMigrationProvider` from the root barrel
10
+ (`'kysely'`) to the `'kysely/migration'` subpath. `@geekmidas/testkit`'s
11
+ `PostgresKyselyMigrator` now imports `Migrator` from `'kysely/migration'` and
12
+ its kysely peer becomes `~0.29.4` — consumers must be on kysely 0.29+.
13
+
14
+ The library packages that only declare a kysely _peer_ (`db`, `audit`, `studio`,
15
+ `telescope`) don't touch the moved symbols, so their peer range is _widened_ to
16
+ `>=0.28.2 <0.30.0` — they now support both 0.28 and 0.29 (non-breaking).
17
+
18
+ `@geekmidas/cli`'s scaffolded `test/globalSetup.ts` template now imports
19
+ `FileMigrationProvider` from `'kysely/migration'` so generated projects work on
20
+ kysely 0.29.
21
+
22
+ ## 1.0.2
23
+
24
+ ### Patch Changes
25
+
26
+ - 🐛 [`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`.
27
+
3
28
  ## 1.0.1
4
29
 
5
30
  ### Patch Changes
package/package.json CHANGED
@@ -1,33 +1,58 @@
1
1
  {
2
2
  "name": "@geekmidas/db",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./kysely": {
8
- "types": "./dist/kysely.d.ts",
9
- "import": "./dist/kysely.mjs",
10
- "require": "./dist/kysely.cjs"
8
+ "import": {
9
+ "types": "./dist/kysely.d.mts",
10
+ "default": "./dist/kysely.mjs"
11
+ },
12
+ "require": {
13
+ "types": "./dist/kysely.d.cts",
14
+ "default": "./dist/kysely.cjs"
15
+ }
11
16
  },
12
17
  "./kysely/pagination": {
13
- "types": "./dist/kysely/pagination.d.ts",
14
- "import": "./dist/kysely/pagination.mjs",
15
- "require": "./dist/kysely/pagination.cjs"
18
+ "import": {
19
+ "types": "./dist/kysely/pagination.d.mts",
20
+ "default": "./dist/kysely/pagination.mjs"
21
+ },
22
+ "require": {
23
+ "types": "./dist/kysely/pagination.d.cts",
24
+ "default": "./dist/kysely/pagination.cjs"
25
+ }
16
26
  },
17
27
  "./pagination": {
18
- "types": "./dist/pagination.d.ts",
19
- "import": "./dist/pagination.mjs",
20
- "require": "./dist/pagination.cjs"
28
+ "import": {
29
+ "types": "./dist/pagination.d.mts",
30
+ "default": "./dist/pagination.mjs"
31
+ },
32
+ "require": {
33
+ "types": "./dist/pagination.d.cts",
34
+ "default": "./dist/pagination.cjs"
35
+ }
21
36
  },
22
37
  "./objection/pagination": {
23
- "types": "./dist/objection/pagination.d.ts",
24
- "import": "./dist/objection/pagination.mjs",
25
- "require": "./dist/objection/pagination.cjs"
38
+ "import": {
39
+ "types": "./dist/objection/pagination.d.mts",
40
+ "default": "./dist/objection/pagination.mjs"
41
+ },
42
+ "require": {
43
+ "types": "./dist/objection/pagination.d.cts",
44
+ "default": "./dist/objection/pagination.cjs"
45
+ }
26
46
  },
27
47
  "./rls": {
28
- "types": "./dist/rls.d.ts",
29
- "import": "./dist/rls.mjs",
30
- "require": "./dist/rls.cjs"
48
+ "import": {
49
+ "types": "./dist/rls.d.mts",
50
+ "default": "./dist/rls.mjs"
51
+ },
52
+ "require": {
53
+ "types": "./dist/rls.d.cts",
54
+ "default": "./dist/rls.cjs"
55
+ }
31
56
  }
32
57
  },
33
58
  "dependencies": {
@@ -45,7 +70,7 @@
45
70
  "access": "public"
46
71
  },
47
72
  "peerDependencies": {
48
- "kysely": "~0.28.2",
73
+ "kysely": ">=0.28.2 <0.30.0",
49
74
  "pg": "~8.16.3",
50
75
  "knex": "~3.1.0",
51
76
  "objection": "~3.1.5",