@proteinjs/db 1.40.0 → 1.42.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 (40) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/generated/index.js +1 -1
  3. package/dist/generated/index.js.map +1 -1
  4. package/dist/generated/test/index.js +1 -1
  5. package/dist/generated/test/index.js.map +1 -1
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +1 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/src/DetachedDbOps.d.ts +27 -0
  11. package/dist/src/DetachedDbOps.d.ts.map +1 -0
  12. package/dist/src/DetachedDbOps.js +60 -0
  13. package/dist/src/DetachedDbOps.js.map +1 -0
  14. package/dist/src/Table.d.ts +19 -0
  15. package/dist/src/Table.d.ts.map +1 -1
  16. package/dist/src/Table.js.map +1 -1
  17. package/dist/src/auth/TableAuth.d.ts +11 -0
  18. package/dist/src/auth/TableAuth.d.ts.map +1 -1
  19. package/dist/src/auth/TableAuth.js +19 -0
  20. package/dist/src/auth/TableAuth.js.map +1 -1
  21. package/dist/src/tables/MigrationTable.d.ts +12 -2
  22. package/dist/src/tables/MigrationTable.d.ts.map +1 -1
  23. package/dist/src/tables/MigrationTable.js +18 -4
  24. package/dist/src/tables/MigrationTable.js.map +1 -1
  25. package/dist/test/DetachedDbOps.test.d.ts +2 -0
  26. package/dist/test/DetachedDbOps.test.d.ts.map +1 -0
  27. package/dist/test/DetachedDbOps.test.js +158 -0
  28. package/dist/test/DetachedDbOps.test.js.map +1 -0
  29. package/dist/test/MigrationAuth.test.js +30 -0
  30. package/dist/test/MigrationAuth.test.js.map +1 -1
  31. package/generated/index.ts +1 -1
  32. package/generated/test/index.ts +1 -1
  33. package/index.ts +1 -0
  34. package/package.json +2 -2
  35. package/src/DetachedDbOps.ts +47 -0
  36. package/src/Table.ts +19 -0
  37. package/src/auth/TableAuth.ts +22 -0
  38. package/src/tables/MigrationTable.ts +18 -4
  39. package/test/DetachedDbOps.test.ts +90 -0
  40. package/test/MigrationAuth.test.ts +25 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.42.0](https://github.com/proteinjs/db/compare/@proteinjs/db@1.41.0...@proteinjs/db@1.42.0) (2026-09-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **db:** DetachedDbOps — THE named detachment idiom for deliberately fire-and-forget db work (one owner). Under node's default unhandled-rejection policy (node 24 in production) a detached db operation that rejects — e.g. a write tripping the driver's 60s op deadline — killed the whole process (observed live: a detached write past the deadline aborted the server). DetachedDbOps.run(description, work, context?) invokes the work, terminally catches (synchronous throws included), and logs the failure WITH the caller's context — never process death, never a silent swallow; returns void by design so a detached outcome cannot be accidentally consumed. Exported from the package root for every consumer's deliberate detached DML. The repo's own deliberate detached call sites route through it: SpannerLivenessMonitor's two detached verifyLiveness dispatches (pool-error listener + driver-reported error); the client-recycle oldDb.close stays on its existing terminal catch (its silent swallow is a named decision — the channel is believed dead). No half-existing db-layer idiom found to extend: the service layer's doNotAwait observer (ServiceExecutor) covers only service-dispatched work. RED RUN stated: DetachedDbOps.test red at the absent module (the simulated 60s-deadline driver rejection is the suite's first pin); green wired 4/4. Bites verified: terminal catch dropped -> the 2 rejection pins red; sync containment dropped -> the sync-throw pin red alone; restored green. Suites: packages/db 16 suites / 134 tests green (130 pre-existing + 4 new); drivers/spanner Liveness 1/1 green on a dedicated emulator (:9040) — the routed pool-error path exercised live; driver tsc clean (the one build red was the cloned stale db-query dist, cleared by rebuilding query from main source). ([3b92847](https://github.com/proteinjs/db/commit/3b92847355b23db7013fb9bf11fd1b6e7e879b72))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.41.0](https://github.com/proteinjs/db/compare/@proteinjs/db@1.40.0...@proteinjs/db@1.41.0) (2026-09-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * record surfaces render what tables declare — declared row columns + auth-derived affordances ([cf5a62e](https://github.com/proteinjs/db/commit/cf5a62e73283720e40bae95e5957e282ffbf25b3))
23
+
24
+
25
+
26
+
27
+
6
28
  # [1.40.0](https://github.com/proteinjs/db/compare/@proteinjs/db@1.39.0...@proteinjs/db@1.40.0) (2026-08-31)
7
29
 
8
30