@geekmidas/db 9.0.2 → 10.0.0-alpha.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.
Files changed (66) hide show
  1. package/dist/errors-CfFCan-X.mjs +69 -0
  2. package/dist/errors-CfFCan-X.mjs.map +1 -0
  3. package/dist/errors-Cs5jlAv-.cjs +93 -0
  4. package/dist/errors-Cs5jlAv-.cjs.map +1 -0
  5. package/dist/errors.cjs +6 -0
  6. package/dist/errors.d.cts +53 -0
  7. package/dist/errors.d.cts.map +1 -0
  8. package/dist/errors.d.mts +53 -0
  9. package/dist/errors.d.mts.map +1 -0
  10. package/dist/errors.mjs +3 -0
  11. package/dist/kysely/pagination.cjs +1 -1
  12. package/dist/kysely/pagination.d.mts +1 -1
  13. package/dist/kysely/pagination.mjs +1 -1
  14. package/dist/{kysely-Dm1w5gAY.d.mts → kysely-BAedYsvn.d.mts} +1 -1
  15. package/dist/{kysely-Dm1w5gAY.d.mts.map → kysely-BAedYsvn.d.mts.map} +1 -1
  16. package/dist/{kysely-DmfA94RY.mjs → kysely-Bo_Zg-D3.mjs} +1 -1
  17. package/dist/{kysely-DmfA94RY.mjs.map → kysely-Bo_Zg-D3.mjs.map} +1 -1
  18. package/dist/{kysely-8WPSKCZG.cjs → kysely-LWvS2ekY.cjs} +1 -1
  19. package/dist/{kysely-8WPSKCZG.cjs.map → kysely-LWvS2ekY.cjs.map} +1 -1
  20. package/dist/kysely.cjs +1 -1
  21. package/dist/kysely.d.mts +1 -1
  22. package/dist/kysely.mjs +1 -1
  23. package/dist/objection/pagination.cjs +1 -1
  24. package/dist/objection/pagination.d.mts +1 -1
  25. package/dist/objection/pagination.mjs +1 -1
  26. package/dist/{pagination-Bdoa4PVj.cjs → pagination-Bu1dqOy0.cjs} +1 -1
  27. package/dist/{pagination-Bdoa4PVj.cjs.map → pagination-Bu1dqOy0.cjs.map} +1 -1
  28. package/dist/{pagination-BDLa7Yb_.mjs → pagination-CQ8QHXaL.mjs} +1 -1
  29. package/dist/{pagination-BDLa7Yb_.mjs.map → pagination-CQ8QHXaL.mjs.map} +1 -1
  30. package/dist/{pagination-BziGl-B8.d.mts → pagination-kv-KWS-7.d.mts} +1 -1
  31. package/dist/{pagination-BziGl-B8.d.mts.map → pagination-kv-KWS-7.d.mts.map} +1 -1
  32. package/dist/pagination.cjs +1 -1
  33. package/dist/pagination.d.mts +1 -1
  34. package/dist/pagination.mjs +1 -1
  35. package/dist/pg/roles.cjs +154 -0
  36. package/dist/pg/roles.cjs.map +1 -0
  37. package/dist/pg/roles.d.cts +82 -0
  38. package/dist/pg/roles.d.cts.map +1 -0
  39. package/dist/pg/roles.d.mts +82 -0
  40. package/dist/pg/roles.d.mts.map +1 -0
  41. package/dist/pg/roles.mjs +150 -0
  42. package/dist/pg/roles.mjs.map +1 -0
  43. package/dist/pg/url.cjs +33 -0
  44. package/dist/pg/url.cjs.map +1 -0
  45. package/dist/pg/url.d.cts +47 -0
  46. package/dist/pg/url.d.cts.map +1 -0
  47. package/dist/pg/url.d.mts +47 -0
  48. package/dist/pg/url.d.mts.map +1 -0
  49. package/dist/pg/url.mjs +33 -0
  50. package/dist/pg/url.mjs.map +1 -0
  51. package/dist/rls.cjs +1 -1
  52. package/dist/rls.d.mts +1 -1
  53. package/dist/rls.mjs +1 -1
  54. package/package.json +34 -1
  55. package/CHANGELOG.md +0 -65
  56. package/src/__tests__/kysely.integration.spec.ts +0 -741
  57. package/src/__tests__/kysely.spec.ts +0 -394
  58. package/src/__tests__/rls.spec.ts +0 -716
  59. package/src/kysely/__tests__/pagination.integration.spec.ts +0 -341
  60. package/src/kysely/pagination.ts +0 -113
  61. package/src/kysely.ts +0 -33
  62. package/src/objection/__tests__/pagination.integration.spec.ts +0 -291
  63. package/src/objection/pagination.ts +0 -98
  64. package/src/pagination.ts +0 -49
  65. package/src/rls.ts +0 -90
  66. package/tsconfig.json +0 -9
package/CHANGELOG.md DELETED
@@ -1,65 +0,0 @@
1
- # @geekmidas/db
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
- ## 1.1.1
22
-
23
- ### Patch Changes
24
-
25
- - 🐛 [#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
26
- registry. The previous release only published the four packages that had
27
- version bumps; the remaining packages failed with "cannot publish over the
28
- previously published versions" because their versions were unchanged.
29
-
30
- ## 1.1.0
31
-
32
- ### Minor Changes
33
-
34
- - [#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.
35
-
36
- kysely 0.29 moved `Migrator` and `FileMigrationProvider` from the root barrel
37
- (`'kysely'`) to the `'kysely/migration'` subpath. `@geekmidas/testkit`'s
38
- `PostgresKyselyMigrator` now imports `Migrator` from `'kysely/migration'` and
39
- its kysely peer becomes `~0.29.4` — consumers must be on kysely 0.29+.
40
-
41
- The library packages that only declare a kysely _peer_ (`db`, `audit`, `studio`,
42
- `telescope`) don't touch the moved symbols, so their peer range is _widened_ to
43
- `>=0.28.2 <0.30.0` — they now support both 0.28 and 0.29 (non-breaking).
44
-
45
- `@geekmidas/cli`'s scaffolded `test/globalSetup.ts` template now imports
46
- `FileMigrationProvider` from `'kysely/migration'` so generated projects work on
47
- kysely 0.29.
48
-
49
- ## 1.0.2
50
-
51
- ### Patch Changes
52
-
53
- - 🐛 [`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`.
54
-
55
- ## 1.0.1
56
-
57
- ### Patch Changes
58
-
59
- - ✨ [`ac041cc`](https://github.com/geekmidas/toolbox/commit/ac041cc459e87107ffb4e508e85c04c3079bf040) Thanks [@geekmidas](https://github.com/geekmidas)! - Add objection pagination and fix secret loading for server apps
60
-
61
- ## 1.0.0
62
-
63
- ### Major Changes
64
-
65
- - [`ff7b115`](https://github.com/geekmidas/toolbox/commit/ff7b11599f60f84ac6cdc73714c853ecf786b2e8) Thanks [@geekmidas](https://github.com/geekmidas)! - Version 1 Stable release