viborm 1.0.0 → 1.2.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 (300) hide show
  1. package/README.md +4 -3
  2. package/dist/{adapter-namespace-DMhEF6my.mjs → adapter-namespace-DqkJQdrD.mjs} +2 -2
  3. package/dist/{adapter-namespace-DMhEF6my.mjs.map → adapter-namespace-DqkJQdrD.mjs.map} +1 -1
  4. package/dist/adapters.d.mts +1 -1
  5. package/dist/adapters.mjs +1 -1
  6. package/dist/{array-literal-D9FexFqy.mjs → array-literal-BsbbSLw3.mjs} +1 -1
  7. package/dist/{array-literal-D9FexFqy.mjs.map → array-literal-BsbbSLw3.mjs.map} +1 -1
  8. package/dist/base-AdXAoy6l.mjs +2 -0
  9. package/dist/base-AdXAoy6l.mjs.map +1 -0
  10. package/dist/batch-refs-4L8ECdPU.mjs +2 -0
  11. package/dist/batch-refs-4L8ECdPU.mjs.map +1 -0
  12. package/dist/bind-parameter-capacity-CjPgqnmx.mjs +2 -0
  13. package/dist/{bind-parameter-capacity-DzMcIB95.mjs.map → bind-parameter-capacity-CjPgqnmx.mjs.map} +1 -1
  14. package/dist/builder-Ycvq3ETg.mjs +2 -0
  15. package/dist/builder-Ycvq3ETg.mjs.map +1 -0
  16. package/dist/bun-sql.d.mts +19 -2
  17. package/dist/bun-sql.mjs +1 -1
  18. package/dist/bun-sql.mjs.map +1 -1
  19. package/dist/bun-sqlite.d.mts +9 -8
  20. package/dist/bun-sqlite.mjs +1 -1
  21. package/dist/bun-sqlite.mjs.map +1 -1
  22. package/dist/cache/cloudflare-kv.d.mts +1 -1
  23. package/dist/cache/cloudflare-kv.mjs +1 -1
  24. package/dist/cache/memory.d.mts +1 -1
  25. package/dist/cache/memory.mjs +1 -1
  26. package/dist/cache/memory.mjs.map +1 -1
  27. package/dist/cache-BO57X0TT.mjs +2 -0
  28. package/dist/cache-BO57X0TT.mjs.map +1 -0
  29. package/dist/cache.d.mts +1 -1
  30. package/dist/cache.mjs +1 -1
  31. package/dist/cache.mjs.map +1 -1
  32. package/dist/canonical-json-rfC2Dg0X.mjs +2 -0
  33. package/dist/canonical-json-rfC2Dg0X.mjs.map +1 -0
  34. package/dist/chain-Dh0FV72b.mjs +2 -0
  35. package/dist/chain-Dh0FV72b.mjs.map +1 -0
  36. package/dist/cli.mjs +5 -6
  37. package/dist/cli.mjs.map +1 -1
  38. package/dist/client-BLiBmykn.mjs +2 -0
  39. package/dist/client-BLiBmykn.mjs.map +1 -0
  40. package/dist/client-CCgfcp5A.mjs +52 -0
  41. package/dist/client-CCgfcp5A.mjs.map +1 -0
  42. package/dist/client-CRBo95D0.d.mts +610 -0
  43. package/dist/client.d.mts +1 -1
  44. package/dist/client.mjs +1 -1
  45. package/dist/{clock-W8H2Khng.mjs → clock-CK41KO7t.mjs} +1 -1
  46. package/dist/{clock-W8H2Khng.mjs.map → clock-CK41KO7t.mjs.map} +1 -1
  47. package/dist/config.d.mts +3 -3
  48. package/dist/config.mjs +1 -1
  49. package/dist/controls-DXgIn4zh.mjs +2 -0
  50. package/dist/controls-DXgIn4zh.mjs.map +1 -0
  51. package/dist/d1.d.mts +1 -1
  52. package/dist/d1.mjs +1 -1
  53. package/dist/d1.mjs.map +1 -1
  54. package/dist/datetime-physical-codec-oIhiYZEP.mjs +2 -0
  55. package/dist/datetime-physical-codec-oIhiYZEP.mjs.map +1 -0
  56. package/dist/driver-B19QlFqn.mjs +2 -0
  57. package/dist/{driver-CRaDT4B7.mjs.map → driver-B19QlFqn.mjs.map} +1 -1
  58. package/dist/driver-BlnKXPFF.mjs +2 -0
  59. package/dist/driver-BlnKXPFF.mjs.map +1 -0
  60. package/dist/driver.d.mts +2 -2
  61. package/dist/driver.mjs +1 -1
  62. package/dist/error-mapping-CnPCv1dm.mjs +2 -0
  63. package/dist/error-mapping-CnPCv1dm.mjs.map +1 -0
  64. package/dist/every-4KE0p2Gw.mjs +2 -0
  65. package/dist/every-4KE0p2Gw.mjs.map +1 -0
  66. package/dist/execution-context-BKR3bgES.mjs +2 -0
  67. package/dist/execution-context-BKR3bgES.mjs.map +1 -0
  68. package/dist/fs-estate-CAhDg7nY.mjs +2 -0
  69. package/dist/fs-estate-CAhDg7nY.mjs.map +1 -0
  70. package/dist/{geo-area-codec-B4DRInvA.mjs → geo-area-codec-1SY9im7O.mjs} +2 -2
  71. package/dist/{geo-area-codec-B4DRInvA.mjs.map → geo-area-codec-1SY9im7O.mjs.map} +1 -1
  72. package/dist/geo-point-codec-lhxH42SK.mjs +2 -0
  73. package/dist/geo-point-codec-lhxH42SK.mjs.map +1 -0
  74. package/dist/{hydration-D6JICBQG.mjs → hydration-CAxOL4aI.mjs} +2 -2
  75. package/dist/{hydration-D6JICBQG.mjs.map → hydration-CAxOL4aI.mjs.map} +1 -1
  76. package/dist/identifier-conversion-GgbwHc2G.mjs +2 -0
  77. package/dist/identifier-conversion-GgbwHc2G.mjs.map +1 -0
  78. package/dist/{identifier-EsWKVHXi.mjs → identifier-hQCs8M1n.mjs} +2 -2
  79. package/dist/{identifier-EsWKVHXi.mjs.map → identifier-hQCs8M1n.mjs.map} +1 -1
  80. package/dist/identity-CLFhCTZx.mjs +2 -0
  81. package/dist/identity-CLFhCTZx.mjs.map +1 -0
  82. package/dist/{index-T0YKKw66.d.mts → index-C_XLSTy2.d.mts} +723 -400
  83. package/dist/index.d.mts +2 -2
  84. package/dist/index.mjs +1 -1
  85. package/dist/index.mjs.map +1 -1
  86. package/dist/instrumentation.d.mts +1 -1
  87. package/dist/instrumentation.mjs +1 -1
  88. package/dist/instrumentation.mjs.map +1 -1
  89. package/dist/{invariant-DCsftyml.mjs → invariant-BnLYqsHO.mjs} +1 -1
  90. package/dist/{invariant-DCsftyml.mjs.map → invariant-BnLYqsHO.mjs.map} +1 -1
  91. package/dist/{json-number-C10HFiy6.mjs → json-number-CGXpPu4D.mjs} +1 -1
  92. package/dist/{json-number-C10HFiy6.mjs.map → json-number-CGXpPu4D.mjs.map} +1 -1
  93. package/dist/key-BeoOwGr3.mjs +2 -0
  94. package/dist/key-BeoOwGr3.mjs.map +1 -0
  95. package/dist/libsql-Bu_IdFU1.mjs +11 -0
  96. package/dist/libsql-Bu_IdFU1.mjs.map +1 -0
  97. package/dist/libsql.d.mts +8 -3
  98. package/dist/libsql.mjs +1 -1
  99. package/dist/libsql.mjs.map +1 -1
  100. package/dist/memory-D4yxtCPK.mjs +2 -0
  101. package/dist/memory-D4yxtCPK.mjs.map +1 -0
  102. package/dist/migrations/mysql.d.mts +6 -0
  103. package/dist/migrations/mysql.mjs +2 -0
  104. package/dist/migrations/mysql.mjs.map +1 -0
  105. package/dist/migrations/postgres.d.mts +6 -0
  106. package/dist/migrations/postgres.mjs +2 -0
  107. package/dist/migrations/postgres.mjs.map +1 -0
  108. package/dist/migrations/sqlite.d.mts +6 -0
  109. package/dist/migrations/sqlite.mjs +2 -0
  110. package/dist/migrations/sqlite.mjs.map +1 -0
  111. package/dist/migrations/storage/durable-object.d.mts +17 -0
  112. package/dist/migrations/storage/durable-object.mjs +2 -0
  113. package/dist/migrations/storage/durable-object.mjs.map +1 -0
  114. package/dist/migrations/storage/fs.d.mts +6 -1
  115. package/dist/migrations/storage/fs.mjs +1 -1
  116. package/dist/migrations/storage/r2.d.mts +14 -0
  117. package/dist/migrations/storage/r2.mjs +2 -0
  118. package/dist/migrations/storage/r2.mjs.map +1 -0
  119. package/dist/migrations/tenant.d.mts +92 -0
  120. package/dist/migrations/tenant.mjs +2 -0
  121. package/dist/migrations/tenant.mjs.map +1 -0
  122. package/dist/{migrations-BWZSBMZh.mjs → migrations-DTObIjAm.mjs} +2 -2
  123. package/dist/migrations-DTObIjAm.mjs.map +1 -0
  124. package/dist/migrations.d.mts +6 -559
  125. package/dist/migrations.mjs +1 -1
  126. package/dist/migrations.mjs.map +1 -1
  127. package/dist/mysql-CibPaHSp.mjs +99 -0
  128. package/dist/mysql-CibPaHSp.mjs.map +1 -0
  129. package/dist/mysql-adapter-DkJPfoGf.mjs +2 -0
  130. package/dist/mysql-adapter-DkJPfoGf.mjs.map +1 -0
  131. package/dist/mysql2.d.mts +1 -3
  132. package/dist/mysql2.mjs +1 -1
  133. package/dist/mysql2.mjs.map +1 -1
  134. package/dist/neon-http.d.mts +1 -1
  135. package/dist/neon-http.mjs +1 -1
  136. package/dist/neon-http.mjs.map +1 -1
  137. package/dist/object-store-DQR6bTBY.mjs +2 -0
  138. package/dist/object-store-DQR6bTBY.mjs.map +1 -0
  139. package/dist/object-store-DyYOCtmX.d.mts +156 -0
  140. package/dist/observation-DUSm7oXK.mjs +2 -0
  141. package/dist/observation-DUSm7oXK.mjs.map +1 -0
  142. package/dist/pg.d.mts +37 -12
  143. package/dist/pg.mjs +1 -1
  144. package/dist/pg.mjs.map +1 -1
  145. package/dist/pglite.d.mts +2 -1
  146. package/dist/pglite.mjs +1 -1
  147. package/dist/pglite.mjs.map +1 -1
  148. package/dist/physical-6V_LNU3L.mjs +2 -0
  149. package/dist/{physical-BkelResN.mjs.map → physical-6V_LNU3L.mjs.map} +1 -1
  150. package/dist/pinned-session-CLxj5M5e.mjs +2 -0
  151. package/dist/pinned-session-CLxj5M5e.mjs.map +1 -0
  152. package/dist/planetscale.d.mts +1 -1
  153. package/dist/planetscale.mjs +1 -1
  154. package/dist/planetscale.mjs.map +1 -1
  155. package/dist/{planner-B11VjIin.d.mts → planner-C6Lfsasx.d.mts} +57 -3
  156. package/dist/postgres-adapter-B3SQvcV1.mjs +2 -0
  157. package/dist/postgres-adapter-B3SQvcV1.mjs.map +1 -0
  158. package/dist/postgres-adapter-CQD2oGuD.mjs +2 -0
  159. package/dist/postgres-adapter-CQD2oGuD.mjs.map +1 -0
  160. package/dist/postgres-oqNW9xqo.mjs +415 -0
  161. package/dist/postgres-oqNW9xqo.mjs.map +1 -0
  162. package/dist/{postgres-result-Dc_iW3Hb.mjs → postgres-result-7F0DllQe.mjs} +2 -2
  163. package/dist/{postgres-result-Dc_iW3Hb.mjs.map → postgres-result-7F0DllQe.mjs.map} +1 -1
  164. package/dist/postgres.d.mts +11 -1
  165. package/dist/postgres.mjs +1 -1
  166. package/dist/postgres.mjs.map +1 -1
  167. package/dist/provider-limits-BHATED_m.mjs +2 -0
  168. package/dist/provider-limits-BHATED_m.mjs.map +1 -0
  169. package/dist/registration-preflight-DEjv050M.mjs +4 -0
  170. package/dist/registration-preflight-DEjv050M.mjs.map +1 -0
  171. package/dist/result-shape-CTNdNSW3.mjs +2 -0
  172. package/dist/result-shape-CTNdNSW3.mjs.map +1 -0
  173. package/dist/scalar-U0wD5bKy.mjs +2 -0
  174. package/dist/{scalar-BTktMqvO.mjs.map → scalar-U0wD5bKy.mjs.map} +1 -1
  175. package/dist/schema/json.d.mts +1 -1
  176. package/dist/schema/json.mjs +1 -1
  177. package/dist/schema/json.mjs.map +1 -1
  178. package/dist/schema-Cjem1-0f.mjs +2 -0
  179. package/dist/{schema-BFNcMdO6.mjs.map → schema-Cjem1-0f.mjs.map} +1 -1
  180. package/dist/schema-introspection-DEYGC2qg.mjs +6 -0
  181. package/dist/schema-introspection-DEYGC2qg.mjs.map +1 -0
  182. package/dist/schema.d.mts +1 -1
  183. package/dist/schema.mjs +1 -1
  184. package/dist/{select-assembly-BgqlrePH.mjs → select-assembly-f1UGoblh.mjs} +2 -2
  185. package/dist/select-assembly-f1UGoblh.mjs.map +1 -0
  186. package/dist/settle-B9Vg1FnP.mjs +2 -0
  187. package/dist/settle-B9Vg1FnP.mjs.map +1 -0
  188. package/dist/soft-delete.d.mts +1 -1
  189. package/dist/{sql--69HUgel.mjs → sql-Bp7jicEX.mjs} +1 -1
  190. package/dist/{sql--69HUgel.mjs.map → sql-Bp7jicEX.mjs.map} +1 -1
  191. package/dist/{sql-statement-tokens-CykxFmOJ.mjs → sql-statement-tokens-BBcoGmJb.mjs} +1 -1
  192. package/dist/{sql-statement-tokens-CykxFmOJ.mjs.map → sql-statement-tokens-BBcoGmJb.mjs.map} +1 -1
  193. package/dist/sql.d.mts +1 -1
  194. package/dist/sql.mjs +1 -1
  195. package/dist/sqlite-adapter-CW_3l6ea.mjs +2 -0
  196. package/dist/sqlite-adapter-CW_3l6ea.mjs.map +1 -0
  197. package/dist/sqlite-utils-DlgokMJN.mjs +2 -0
  198. package/dist/sqlite-utils-DlgokMJN.mjs.map +1 -0
  199. package/dist/sqlite3.d.mts +2 -8
  200. package/dist/sqlite3.mjs +1 -1
  201. package/dist/sqlite3.mjs.map +1 -1
  202. package/dist/standard-sql-Bk4RZPqJ.mjs +6 -0
  203. package/dist/standard-sql-Bk4RZPqJ.mjs.map +1 -0
  204. package/dist/{suppressed-failure-BPxfHTMc.mjs → suppressed-failure-BwULh-8h.mjs} +1 -1
  205. package/dist/{suppressed-failure-BPxfHTMc.mjs.map → suppressed-failure-BwULh-8h.mjs.map} +1 -1
  206. package/dist/{terminal-BbRi0CNZ.mjs → terminal-C8cq1WWX.mjs} +2 -2
  207. package/dist/{terminal-BbRi0CNZ.mjs.map → terminal-C8cq1WWX.mjs.map} +1 -1
  208. package/dist/{transaction-oskVwmsf.mjs → transaction-Bnl6ULTw.mjs} +2 -2
  209. package/dist/transaction-Bnl6ULTw.mjs.map +1 -0
  210. package/dist/{transaction-operation-BC7aua5V.mjs → transaction-operation-CKK3l_9x.mjs} +2 -2
  211. package/dist/transaction-operation-CKK3l_9x.mjs.map +1 -0
  212. package/dist/{utils-DfztpPvR.mjs → utils-CZNaOZR7.mjs} +4 -3
  213. package/dist/utils-CZNaOZR7.mjs.map +1 -0
  214. package/dist/v-D5Z06FKN.mjs +2 -0
  215. package/dist/v-D5Z06FKN.mjs.map +1 -0
  216. package/dist/validation-Dk9Q_-C7.mjs +2 -0
  217. package/dist/validation-Dk9Q_-C7.mjs.map +1 -0
  218. package/dist/validation-PF9-_nKd.mjs +2 -0
  219. package/dist/{validation-tgjL_9n8.mjs.map → validation-PF9-_nKd.mjs.map} +1 -1
  220. package/dist/validation.d.mts +1 -1
  221. package/dist/validation.mjs +1 -1
  222. package/dist/validator-X9-bwtRo.mjs +2 -0
  223. package/dist/{validator-DMlEScV3.mjs.map → validator-X9-bwtRo.mjs.map} +1 -1
  224. package/dist/value-guards-CK9guf2Z.mjs +2 -0
  225. package/dist/value-guards-CK9guf2Z.mjs.map +1 -0
  226. package/dist/version-JDaZht4U.mjs +2 -0
  227. package/dist/{version-Cr80LFvx.mjs.map → version-JDaZht4U.mjs.map} +1 -1
  228. package/package.json +75 -34
  229. package/dist/base-vfur-DaU.mjs +0 -2
  230. package/dist/base-vfur-DaU.mjs.map +0 -1
  231. package/dist/batch-refs-BY51FIXm.mjs +0 -6
  232. package/dist/batch-refs-BY51FIXm.mjs.map +0 -1
  233. package/dist/bind-parameter-capacity-DzMcIB95.mjs +0 -2
  234. package/dist/builder-bPfagDQV.mjs +0 -2
  235. package/dist/builder-bPfagDQV.mjs.map +0 -1
  236. package/dist/chain-uIFlkkXS.mjs +0 -2
  237. package/dist/chain-uIFlkkXS.mjs.map +0 -1
  238. package/dist/client-NleI4Nm-.mjs +0 -434
  239. package/dist/client-NleI4Nm-.mjs.map +0 -1
  240. package/dist/client-tjSMPjeZ.mjs +0 -2
  241. package/dist/client-tjSMPjeZ.mjs.map +0 -1
  242. package/dist/controls-BhxRnPYS.mjs +0 -2
  243. package/dist/controls-BhxRnPYS.mjs.map +0 -1
  244. package/dist/decimal-12NERGYZ.mjs +0 -3
  245. package/dist/decimal-12NERGYZ.mjs.map +0 -1
  246. package/dist/driver-CRaDT4B7.mjs +0 -2
  247. package/dist/driver-options-DxlB1tms.mjs +0 -2
  248. package/dist/driver-options-DxlB1tms.mjs.map +0 -1
  249. package/dist/driver-yCYqzIQg.mjs +0 -2
  250. package/dist/driver-yCYqzIQg.mjs.map +0 -1
  251. package/dist/error-mapping-BWzb-l02.mjs +0 -2
  252. package/dist/error-mapping-BWzb-l02.mjs.map +0 -1
  253. package/dist/execution-context-BPk0YLhd.mjs +0 -2
  254. package/dist/execution-context-BPk0YLhd.mjs.map +0 -1
  255. package/dist/fs-estate-3Bu_K9mk.d.mts +0 -7
  256. package/dist/fs-estate-BcjgY4iY.mjs +0 -2
  257. package/dist/fs-estate-BcjgY4iY.mjs.map +0 -1
  258. package/dist/geo-point-codec-DUTTtlav.mjs +0 -2
  259. package/dist/geo-point-codec-DUTTtlav.mjs.map +0 -1
  260. package/dist/identifiers-By-JRCb5.mjs +0 -2
  261. package/dist/identifiers-By-JRCb5.mjs.map +0 -1
  262. package/dist/key-DKaqPb8w.mjs +0 -2
  263. package/dist/key-DKaqPb8w.mjs.map +0 -1
  264. package/dist/migrations-BWZSBMZh.mjs.map +0 -1
  265. package/dist/mysql-adapter-D9FoHlWE.mjs +0 -2
  266. package/dist/mysql-adapter-D9FoHlWE.mjs.map +0 -1
  267. package/dist/observation-CLp8ylmL.mjs +0 -2
  268. package/dist/observation-CLp8ylmL.mjs.map +0 -1
  269. package/dist/physical-BkelResN.mjs +0 -2
  270. package/dist/pinned-session-Ca7C9yxY.mjs +0 -2
  271. package/dist/pinned-session-Ca7C9yxY.mjs.map +0 -1
  272. package/dist/postgres-adapter-T2Iko-vt.mjs +0 -2
  273. package/dist/postgres-adapter-T2Iko-vt.mjs.map +0 -1
  274. package/dist/registration-preflight-BrA3EWvq.mjs +0 -4
  275. package/dist/registration-preflight-BrA3EWvq.mjs.map +0 -1
  276. package/dist/result-shape-DKTu8yre.mjs +0 -2
  277. package/dist/result-shape-DKTu8yre.mjs.map +0 -1
  278. package/dist/scalar-BTktMqvO.mjs +0 -2
  279. package/dist/schema-BFNcMdO6.mjs +0 -2
  280. package/dist/schema-introspection-DsXPfCst.mjs +0 -6
  281. package/dist/schema-introspection-DsXPfCst.mjs.map +0 -1
  282. package/dist/select-assembly-BgqlrePH.mjs.map +0 -1
  283. package/dist/sqlite-adapter-HqO3GpAK.mjs +0 -2
  284. package/dist/sqlite-adapter-HqO3GpAK.mjs.map +0 -1
  285. package/dist/sqlite-utils-D26BFuJJ.mjs +0 -2
  286. package/dist/sqlite-utils-D26BFuJJ.mjs.map +0 -1
  287. package/dist/transaction-operation-BC7aua5V.mjs.map +0 -1
  288. package/dist/transaction-oskVwmsf.mjs.map +0 -1
  289. package/dist/transactions-gjmrWN5W.mjs +0 -2
  290. package/dist/transactions-gjmrWN5W.mjs.map +0 -1
  291. package/dist/utils-DfztpPvR.mjs.map +0 -1
  292. package/dist/v-B2WwtcRz.mjs +0 -2
  293. package/dist/v-B2WwtcRz.mjs.map +0 -1
  294. package/dist/validation-Du6j0Q38.mjs +0 -2
  295. package/dist/validation-Du6j0Q38.mjs.map +0 -1
  296. package/dist/validation-tgjL_9n8.mjs +0 -2
  297. package/dist/validator-DMlEScV3.mjs +0 -2
  298. package/dist/version-Cr80LFvx.mjs +0 -2
  299. /package/dist/{contract-BHUOUAZ-.d.mts → contract-CIIqgFyb.d.mts} +0 -0
  300. /package/dist/{sql--yhoVvRM.d.mts → sql-BvfwUKIh.d.mts} +0 -0
@@ -1,559 +1,6 @@
1
- import { En as Dialect, Rn as AnyModel, fi as MigrationError, pi as isMigrationError } from "./index-T0YKKw66.mjs";
2
- import { n as Sql } from "./sql--yhoVvRM.mjs";
3
- import { a as ResolveChange, i as ResolveCallback, n as DiffOperation, o as SchemaSnapshot, r as MigrationTarget, t as MigrationClient } from "./planner-B11VjIin.mjs";
4
- import { i as Sha256, n as MigrationStorageWriter, r as PublishResult, t as MigrationStorageReader } from "./contract-BHUOUAZ-.mjs";
5
- import { t as createFsStorageWriter } from "./fs-estate-3Bu_K9mk.mjs";
6
-
7
- //#region src/adapters/databases/sqlite/storage/datetime.d.ts
8
-
9
- /** A reviewed manual-migration expression; the argument is a physical column name. */
10
- declare function sqliteCanonicalDateTimeExpression(columnName: string): string;
11
- /** Canonical millisecond Time storage; malformed source rows abort the statement. */
12
- declare function sqliteCanonicalTimeExpression(columnName: string): string;
13
- //#endregion
14
- //#region src/migrations/check.d.ts
15
- interface CheckFinding {
16
- readonly code: string;
17
- readonly message: string;
18
- }
19
- interface CheckResult {
20
- readonly ok: boolean;
21
- readonly findings: readonly CheckFinding[];
22
- }
23
- //#endregion
24
- //#region src/migrations/v1-types.d.ts
25
- type MigrationFormatV1 = "1";
26
- interface MigrationEstateDescriptorV1 {
27
- readonly format: MigrationFormatV1;
28
- readonly target: MigrationTarget;
29
- readonly hash: "sha256";
30
- }
31
- type MigrationParameterV1 = {
32
- readonly kind: "null";
33
- } | {
34
- readonly kind: "target-namespace";
35
- } | {
36
- readonly kind: "boolean";
37
- readonly value: boolean;
38
- } | {
39
- readonly kind: "string";
40
- readonly value: string;
41
- } | {
42
- readonly kind: "number";
43
- readonly value: number;
44
- } | {
45
- readonly kind: "bigint";
46
- readonly value: string;
47
- } | {
48
- readonly kind: "bytes";
49
- readonly value: string;
50
- } | {
51
- readonly kind: "date-time";
52
- readonly value: string;
53
- } | {
54
- readonly kind: "decimal";
55
- readonly value: string;
56
- } | {
57
- readonly kind: "json";
58
- readonly value: unknown;
59
- };
60
- interface MigrationDispatchV1 {
61
- readonly dispatchId: Sha256;
62
- readonly sqlHash: Sha256;
63
- readonly offset: number;
64
- readonly length: number;
65
- readonly parameters: readonly MigrationParameterV1[];
66
- }
67
- interface MigrationBooleanCheckV1 {
68
- readonly kind: "driver" | "trusted-read";
69
- readonly id: string;
70
- readonly query: MigrationDispatchV1;
71
- readonly equals: boolean;
72
- }
73
- type MigrationStepV1 = {
74
- readonly retry: "proven";
75
- readonly precheck: MigrationBooleanCheckV1;
76
- readonly execute: MigrationDispatchV1;
77
- readonly postcheck: MigrationBooleanCheckV1;
78
- } | {
79
- readonly retry: "opaque";
80
- readonly execute: MigrationDispatchV1;
81
- };
82
- interface MigrationOperationV1 {
83
- readonly id: string;
84
- readonly label: string;
85
- readonly origin: "generated" | "manual";
86
- readonly risk: "safe" | "destructive" | "opaque";
87
- readonly steps: readonly MigrationStepV1[];
88
- }
89
- type MigrationRollbackV1 = {
90
- readonly kind: "schema";
91
- readonly operations: readonly MigrationOperationV1[];
92
- } | {
93
- readonly kind: "manual";
94
- readonly requestedBoundary: "transactional" | "stepwise";
95
- readonly operations: readonly MigrationOperationV1[];
96
- } | {
97
- readonly kind: "irreversible";
98
- readonly reason: string;
99
- };
100
- interface MigrationParentTransitionV1 {
101
- readonly fromState: Sha256 | null;
102
- readonly transitionHash: Sha256;
103
- readonly originChecks: readonly MigrationBooleanCheckV1[];
104
- readonly requestedForwardBoundary: "transactional" | "stepwise" | null;
105
- readonly operations: readonly MigrationOperationV1[];
106
- readonly rollback: MigrationRollbackV1;
107
- }
108
- interface MigrationStateManifestV1 {
109
- readonly format: MigrationFormatV1;
110
- readonly estateHash: Sha256;
111
- readonly name: string;
112
- readonly stateId: Sha256;
113
- readonly snapshotHash: Sha256;
114
- readonly sqlHash: Sha256;
115
- readonly destinationChecks: readonly MigrationBooleanCheckV1[];
116
- readonly parents: readonly MigrationParentTransitionV1[];
117
- }
118
- interface MigrationCheckInput {
119
- readonly kind: "trusted-read";
120
- readonly query: Sql;
121
- readonly equals: boolean;
122
- }
123
- interface ManualTransitionInput {
124
- readonly from: Sha256 | null;
125
- readonly execution: "transactional" | "stepwise";
126
- readonly up: readonly Sql[];
127
- readonly originChecks?: readonly MigrationCheckInput[];
128
- readonly rollback: {
129
- readonly kind: "manual";
130
- readonly execution: "transactional" | "stepwise";
131
- readonly sql: readonly Sql[];
132
- } | {
133
- readonly kind: "irreversible";
134
- readonly reason: string;
135
- };
136
- }
137
- interface ManualMigrationInput {
138
- readonly transitions: readonly ManualTransitionInput[];
139
- readonly destinationChecks?: readonly MigrationCheckInput[];
140
- }
141
- type StateSelector = {
142
- readonly id: Sha256;
143
- } | {
144
- readonly prefix: string;
145
- } | {
146
- readonly name: string;
147
- };
148
- interface ApplyV1Options {
149
- readonly to?: StateSelector;
150
- readonly via?: readonly Sha256[];
151
- readonly dryRun?: boolean;
152
- }
153
- interface ResetV1Options {
154
- readonly to?: StateSelector;
155
- readonly via?: readonly Sha256[];
156
- readonly dryRun?: boolean;
157
- }
158
- interface BaselineOptions {
159
- readonly to: StateSelector;
160
- readonly via?: readonly Sha256[];
161
- }
162
- type DownV1Options = {
163
- readonly steps?: number;
164
- readonly to?: never;
165
- readonly dryRun?: boolean;
166
- } | {
167
- readonly to: StateSelector;
168
- readonly steps?: never;
169
- readonly dryRun?: boolean;
170
- };
171
- interface ResolveV1Options {
172
- readonly outcome: "complete" | "rolled-back" | "retry";
173
- }
174
- interface GenerateV1Options {
175
- readonly name?: string;
176
- /** Full parent state id, or `null` for the virtual empty root. */
177
- readonly from?: Sha256 | null;
178
- readonly dryRun?: boolean;
179
- readonly resolve?: ResolveCallback;
180
- readonly skipValidation?: boolean;
181
- readonly manualMigration?: ManualMigrationInput;
182
- }
183
- type PathHash = Sha256;
184
- interface MarkerPathEdgeV1 {
185
- readonly stateId: Sha256;
186
- readonly transitionHash: Sha256;
187
- readonly baselineBoundary: boolean;
188
- }
189
- interface MigrationMarkerV1 {
190
- readonly format: MigrationFormatV1;
191
- readonly estateHash: Sha256;
192
- readonly stateId: Sha256 | null;
193
- readonly snapshotHash: Sha256;
194
- readonly path: readonly MarkerPathEdgeV1[];
195
- readonly pathHash: PathHash;
196
- readonly revision: number;
197
- readonly updatedAt: string;
198
- }
199
- type LedgerEventKindV1 = "started" | "step-confirmed" | "applied" | "failed" | "rolled-back" | "baselined" | "resolved" | "reset-started" | "reset-step-confirmed" | "reset-applied";
200
- type LedgerEffectStateV1 = "none" | "committed" | "partial" | "may-have-committed";
201
- interface ResetPlanV1 {
202
- readonly estateHash: Sha256;
203
- readonly targetIdentity: string;
204
- readonly sourceRevision: number;
205
- readonly sourceFingerprint: Sha256;
206
- readonly replayPath: readonly Sha256[];
207
- readonly clearDispatches: readonly MigrationDispatchV1[];
208
- readonly referencedStates: readonly Sha256[];
209
- readonly resetPlanHash: Sha256;
210
- }
211
- interface LedgerEventV1 {
212
- readonly format: MigrationFormatV1;
213
- readonly eventId: Sha256;
214
- readonly attemptId: Sha256;
215
- readonly kind: LedgerEventKindV1;
216
- readonly estateHash: Sha256;
217
- readonly snapshotHash: Sha256;
218
- readonly sqlHash: Sha256 | null;
219
- readonly fromState: Sha256 | null;
220
- readonly toState: Sha256 | null;
221
- readonly transitionHash: Sha256 | null;
222
- readonly direction: "forward" | "rollback" | "reset" | "baseline" | "resolve";
223
- readonly operationId: string | null;
224
- readonly dispatchId: Sha256 | null;
225
- readonly effectState: LedgerEffectStateV1;
226
- readonly startedAt: string;
227
- readonly finishedAt: string | null;
228
- readonly toolVersion: string;
229
- readonly resetPlan?: ResetPlanV1;
230
- readonly failure: string | null;
231
- }
232
- interface PushPlanningOptions {
233
- readonly forceReset?: boolean;
234
- readonly skipValidation?: boolean;
235
- readonly resolve?: ResolveCallback;
236
- }
237
- type PushTargetIdentity = {
238
- readonly dialect: "postgresql";
239
- readonly database: string;
240
- readonly namespace: string;
241
- readonly bindingId: string;
242
- } | {
243
- readonly dialect: "mysql";
244
- readonly database: string;
245
- readonly bindingId: string;
246
- } | {
247
- readonly dialect: "sqlite";
248
- readonly location: string | null;
249
- readonly bindingId: string;
250
- };
251
- interface PushStatementPreview {
252
- readonly sql: string;
253
- readonly parameters: readonly MigrationParameterV1[];
254
- }
255
- interface PushResolution {
256
- readonly id: string;
257
- readonly decision: string;
258
- }
259
- interface PushConsent {
260
- readonly format: MigrationFormatV1;
261
- readonly target: PushTargetIdentity;
262
- readonly planHash: Sha256;
263
- readonly mode: "diff" | "force-reset";
264
- readonly validation: "full" | "structural-only";
265
- readonly resolutions: readonly PushResolution[];
266
- }
267
- type PushOptionsV1 = (PushPlanningOptions & {
268
- readonly dryRun: true;
269
- }) | (PushPlanningOptions & {
270
- readonly dryRun?: false;
271
- readonly consent?: never;
272
- }) | {
273
- readonly consent: PushConsent;
274
- readonly dryRun?: false;
275
- };
276
- type PushOptionKey = "forceReset" | "skipValidation" | "resolve" | "dryRun" | "consent";
277
- type ExactPushOptions<O> = O & Record<Exclude<keyof O & string, PushOptionKey>, never>;
278
- interface PushOperation {
279
- readonly id: string;
280
- readonly label: string;
281
- readonly risk: "safe" | "destructive" | "opaque";
282
- }
283
- interface PushPreview$1 {
284
- readonly outcome: "planned" | "noop";
285
- readonly target: PushTargetIdentity;
286
- readonly planHash: Sha256;
287
- readonly destructive: boolean;
288
- readonly operations: readonly PushOperation[];
289
- readonly statements: readonly PushStatementPreview[];
290
- readonly consent: PushConsent;
291
- }
292
- interface PushApplyResult$1 {
293
- readonly outcome: "applied" | "noop";
294
- readonly target: PushTargetIdentity;
295
- readonly planHash: Sha256;
296
- readonly operations: readonly PushOperation[];
297
- readonly statements: readonly PushStatementPreview[];
298
- }
299
- //#endregion
300
- //#region src/migrations/apply-v1.d.ts
301
- interface ApplyV1Result {
302
- readonly outcome: "applied" | "noop" | "preview";
303
- readonly path: readonly Sha256[];
304
- readonly statements: readonly string[];
305
- }
306
- //#endregion
307
- //#region src/migrations/generate-v1.d.ts
308
- interface GenerateV1Result {
309
- readonly outcome: "published" | "preview" | "noop";
310
- readonly stateId: Sha256 | null;
311
- readonly name: string | null;
312
- readonly estateHash: Sha256 | null;
313
- readonly snapshotHash: Sha256 | null;
314
- readonly sqlHash: Sha256 | null;
315
- readonly operations: readonly DiffOperation[];
316
- readonly warnings: readonly string[];
317
- readonly operationsByParent: readonly {
318
- readonly fromState: string | null;
319
- readonly operations: readonly DiffOperation[];
320
- }[];
321
- readonly sql: string;
322
- readonly reviewSql: string;
323
- }
324
- //#endregion
325
- //#region src/migrations/operators.d.ts
326
- interface StatusV1Result {
327
- readonly control: "absent" | "present";
328
- readonly marker: MigrationMarkerV1 | null;
329
- readonly pending: readonly Sha256[];
330
- readonly unfinished: boolean;
331
- }
332
- //#endregion
333
- //#region src/migrations/public-view.d.ts
334
- interface MigrationStateListItem {
335
- readonly stateId: Sha256;
336
- readonly name: string;
337
- }
338
- interface MigrationStateMetadata extends MigrationStateListItem {
339
- readonly snapshotHash: Sha256;
340
- readonly sqlHash: Sha256;
341
- readonly root: boolean;
342
- readonly leaf: boolean;
343
- }
344
- type MigrationRollbackMetadata = {
345
- readonly kind: "schema" | "manual";
346
- readonly operationCount: number;
347
- readonly stepCount: number;
348
- } | {
349
- readonly kind: "irreversible";
350
- readonly reason: string;
351
- readonly operationCount: 0;
352
- readonly stepCount: 0;
353
- };
354
- interface MigrationEdgeMetadata {
355
- readonly fromState: Sha256 | null;
356
- readonly toState: Sha256;
357
- readonly transitionHash: Sha256;
358
- readonly requestedBoundary: "transactional" | "stepwise" | null;
359
- readonly operationCount: number;
360
- readonly stepCount: number;
361
- readonly origins: readonly ("generated" | "manual")[];
362
- readonly risks: readonly ("safe" | "destructive" | "opaque")[];
363
- readonly rollback: MigrationRollbackMetadata;
364
- }
365
- interface MigrationStateDetails extends MigrationStateMetadata {
366
- readonly incoming: readonly MigrationEdgeMetadata[];
367
- readonly outgoing: readonly MigrationEdgeMetadata[];
368
- }
369
- interface GraphResult {
370
- readonly estateHash: Sha256;
371
- readonly target: MigrationTarget;
372
- readonly roots: readonly Sha256[];
373
- readonly leaves: readonly Sha256[];
374
- readonly states: readonly MigrationStateMetadata[];
375
- readonly edges: readonly MigrationEdgeMetadata[];
376
- }
377
- type ListResult = readonly MigrationStateListItem[];
378
- type ShowResult = MigrationStateDetails;
379
- //#endregion
380
- //#region src/migrations/push-v1.d.ts
381
- interface PushAttestation {
382
- readonly pathHash: Sha256;
383
- readonly planHash: Sha256;
384
- readonly schemaHash: Sha256;
385
- readonly fingerprint: Sha256;
386
- }
387
- interface PushApplyResult extends PushApplyResult$1 {
388
- readonly attestation: PushAttestation;
389
- }
390
- interface PushPreview extends PushPreview$1 {
391
- readonly schemaHash: Sha256;
392
- readonly fingerprint: Sha256;
393
- }
394
- type PushResultFor<O> = [O] extends [{
395
- readonly dryRun: true;
396
- }] ? PushPreview : PushApplyResult;
397
- //#endregion
398
- //#region src/migrations/client.d.ts
399
- interface MigrationClientOptions<S extends MigrationStorageReader = MigrationStorageReader> {
400
- readonly storage: S;
401
- readonly tables?: readonly string[];
402
- }
403
- type NoExtraMigrationClientOptionKeys<Given> = Record<Exclude<keyof Given, "storage" | "tables">, never>;
404
- type GenerateResult = GenerateV1Result;
405
- type StatusResult = StatusV1Result;
406
- interface VerifyResult {
407
- readonly ok: boolean;
408
- }
409
- type LogResult = readonly LedgerEventV1[];
410
- type ApplyResult = ApplyV1Result;
411
- interface DownResult {
412
- readonly path: readonly string[];
413
- readonly preview: boolean;
414
- }
415
- interface BaselineResult {
416
- readonly stateId: string;
417
- }
418
- interface ResolveResult {
419
- readonly outcome: ResolveV1Options["outcome"];
420
- }
421
- interface ResetResult {
422
- /** Physical tables selected for a read-only reset preview. */
423
- readonly tables?: readonly string[];
424
- readonly preview: boolean;
425
- readonly path: readonly string[];
426
- }
427
- interface LiveMigrations {
428
- log(): Promise<LogResult>;
429
- push<O extends PushOptionsV1>(options?: ExactPushOptions<O>): Promise<PushResultFor<O>>;
430
- }
431
- interface ReadableMigrations extends LiveMigrations {
432
- check(): Promise<CheckResult>;
433
- list(): Promise<ListResult>;
434
- show(selector: StateSelector): Promise<ShowResult>;
435
- graph(): Promise<GraphResult>;
436
- status(): Promise<StatusResult>;
437
- verify(): Promise<VerifyResult>;
438
- apply(options?: ApplyV1Options): Promise<ApplyResult>;
439
- down(options?: DownV1Options): Promise<DownResult>;
440
- baseline(options: BaselineOptions): Promise<BaselineResult>;
441
- resolve(options: ResolveV1Options): Promise<ResolveResult>;
442
- }
443
- interface WritableMigrations extends ReadableMigrations {
444
- generate(options?: GenerateV1Options): Promise<GenerateResult>;
445
- reset(options?: ResetV1Options): Promise<ResetResult>;
446
- }
447
- declare function createMigrationClient<Options extends MigrationClientOptions<MigrationStorageWriter>>(client: MigrationClient, options: Options & NoExtraMigrationClientOptionKeys<Options>): WritableMigrations;
448
- declare function createMigrationClient<Options extends MigrationClientOptions<MigrationStorageReader>>(client: MigrationClient, options: Options & NoExtraMigrationClientOptionKeys<Options>): ReadableMigrations;
449
- declare function createMigrationClient<Options extends {
450
- readonly tables: readonly string[];
451
- }>(client: MigrationClient, options: Options & Record<Exclude<keyof Options, "tables">, never>): LiveMigrations;
452
- declare function createMigrationClient(client: MigrationClient, options?: undefined): LiveMigrations;
453
- //#endregion
454
- //#region src/migrations/identifier-conversion.d.ts
455
- /** The key whose text column is being converted, and the schema it lives in. */
456
- interface IdentifierConversionRequest {
457
- /**
458
- * The WHOLE schema, not just the model: a foreign key's domain is derived
459
- * from the resolved topology, and so is the list of columns that reference
460
- * this key. Resolved here, exactly as `serializeModels` resolves it.
461
- */
462
- readonly schema: Record<string, AnyModel>;
463
- readonly model: AnyModel;
464
- readonly field: string;
465
- readonly dialect: Dialect;
466
- /** PostgreSQL's target namespace, when the estate is bound to one. */
467
- readonly namespace?: string | undefined;
468
- }
469
- /**
470
- * The pre-checks for converting one key's text column into its identifier
471
- * column, in the order a conversion needs them.
472
- *
473
- * Refuses a field with no compactly stored identifier domain rather than
474
- * answering with an empty list: an empty list reads as "this estate is ready",
475
- * and that is the one answer a caller who named the wrong field must not get.
476
- */
477
- declare function identifierConversionChecks(request: IdentifierConversionRequest): readonly MigrationCheckInput[];
478
- //#endregion
479
- //#region src/migrations/resolver.d.ts
480
- /**
481
- * Rejects all changes requiring resolution.
482
- * Useful for CI/CD pipelines where human intervention is not possible.
483
- */
484
- declare const rejectAllResolver: ResolveCallback;
485
- /**
486
- * Accepts destructive changes, treats ambiguous changes as renames,
487
- * and maps enum value removals to NULL.
488
- * Useful for development when you know all changes are intentional renames.
489
- */
490
- declare const lenientResolver: ResolveCallback;
491
- /**
492
- * Accepts destructive changes, treats ambiguous changes as add+drop,
493
- * and maps enum value removals to NULL.
494
- * Useful when you don't care about preserving data in ambiguous scenarios.
495
- */
496
- declare const addDropResolver: ResolveCallback;
497
- //#endregion
498
- //#region src/migrations/storage/conformance.d.ts
499
- declare function createStorageConformanceSuite(createWriter: () => MigrationStorageWriter): {
500
- readonly name: string;
501
- readonly run: () => Promise<void>;
502
- }[];
503
- //#endregion
504
- //#region src/migrations/storage/memory.d.ts
505
- declare class MemoryEstateStorage implements MigrationStorageWriter {
506
- private estate;
507
- private readonly states;
508
- private readonly snapshots;
509
- private readonly sql;
510
- readEstate(): Promise<Uint8Array | null>;
511
- listStates(): Promise<readonly Sha256[]>;
512
- listSnapshots(): Promise<readonly Sha256[]>;
513
- listSql(): Promise<readonly Sha256[]>;
514
- readState(id: Sha256): Promise<Uint8Array | null>;
515
- readSnapshot(hash: Sha256): Promise<Uint8Array | null>;
516
- readSql(hash: Sha256): Promise<Uint8Array | null>;
517
- publishEstate(bytes: Uint8Array): Promise<PublishResult>;
518
- publishSnapshot(hash: Sha256, bytes: Uint8Array): Promise<PublishResult>;
519
- publishSql(hash: Sha256, bytes: Uint8Array): Promise<PublishResult>;
520
- publishState(id: Sha256, bytes: Uint8Array): Promise<PublishResult>;
521
- }
522
- //#endregion
523
- //#region src/migrations/storage/object-store.d.ts
524
- declare function refuseWorkersKvWritable(): never;
525
- interface ObjectStoreConditionalPut {
526
- putIfAbsent(key: string, bytes: Uint8Array): Promise<"created" | "exists">;
527
- get(key: string): Promise<Uint8Array | null>;
528
- list(prefix: string): Promise<readonly string[]>;
529
- }
530
- /**
531
- * Estate writer over a strongly consistent object store with if-none-match
532
- * publication. Manifests become visible only after referenced bytes exist.
533
- */
534
- declare class ObjectStoreEstateStorage implements MigrationStorageWriter {
535
- private readonly store;
536
- constructor(store: ObjectStoreConditionalPut);
537
- readEstate(): Promise<Uint8Array | null>;
538
- listStates(): Promise<readonly Sha256[]>;
539
- listSnapshots(): Promise<readonly Sha256[]>;
540
- listSql(): Promise<readonly Sha256[]>;
541
- readState(id: Sha256): Promise<Uint8Array | null>;
542
- readSnapshot(hash: Sha256): Promise<Uint8Array | null>;
543
- readSql(hash: Sha256): Promise<Uint8Array | null>;
544
- publishEstate(bytes: Uint8Array): Promise<PublishResult>;
545
- publishSnapshot(hash: Sha256, bytes: Uint8Array): Promise<PublishResult>;
546
- publishSql(hash: Sha256, bytes: Uint8Array): Promise<PublishResult>;
547
- publishState(id: Sha256, bytes: Uint8Array): Promise<PublishResult>;
548
- private publish;
549
- private listHex;
550
- }
551
- /** In-memory strong object store for the conformance fixture. */
552
- declare class MemoryConditionalObjectStore implements ObjectStoreConditionalPut {
553
- private readonly objects;
554
- putIfAbsent(key: string, bytes: Uint8Array): Promise<"created" | "exists">;
555
- get(key: string): Promise<Uint8Array | null>;
556
- list(prefix: string): Promise<readonly string[]>;
557
- }
558
- //#endregion
559
- export { type ApplyV1Options as ApplyOptions, type ApplyResult, type BaselineOptions, type BaselineResult, type CheckFinding, type CheckResult, type DownV1Options as DownOptions, type DownResult, type ExactPushOptions, type GenerateV1Options as GenerateOptions, type GenerateResult, type GraphResult, type IdentifierConversionRequest, type ListResult, type LiveMigrations, type LogResult, type ManualMigrationInput, type ManualTransitionInput, MemoryConditionalObjectStore, MemoryEstateStorage, type MigrationCheckInput, type MigrationClientOptions, type MigrationEdgeMetadata, MigrationError, type MigrationEstateDescriptorV1, type MigrationRollbackMetadata, type MigrationStateDetails, type MigrationStateListItem, type MigrationStateManifestV1, type MigrationStateMetadata, type MigrationStorageReader, type MigrationStorageWriter, type MigrationTarget, type ObjectStoreConditionalPut, ObjectStoreEstateStorage, type PublishResult, type PushApplyResult, type PushConsent, type PushOptionsV1 as PushOptions, type PushPreview, type ReadableMigrations, type ResetV1Options as ResetOptions, type ResetResult, type ResolveCallback, type ResolveChange, type ResolveV1Options as ResolveOptions, type ResolveResult, type SchemaSnapshot, type ShowResult, type StateSelector, type StatusResult, type VerifyResult, type WritableMigrations, addDropResolver, createFsStorageWriter, createMigrationClient, createStorageConformanceSuite, identifierConversionChecks, isMigrationError, lenientResolver, refuseWorkersKvWritable, rejectAllResolver, sqliteCanonicalDateTimeExpression, sqliteCanonicalTimeExpression };
1
+ import { gi as isMigrationError, hi as MigrationError } from "./index-C_XLSTy2.mjs";
2
+ import { a as ResolveChange, i as ResolveCallback, o as SchemaSnapshot, r as MigrationTarget, s as MigrationLimits } from "./planner-C6Lfsasx.mjs";
3
+ import { n as MigrationStorageWriter, r as PublishResult, t as MigrationStorageReader } from "./contract-CIIqgFyb.mjs";
4
+ import { a as MemoryEstateStorage, c as auditStorage, d as lenientResolver, f as rejectAllResolver, g as sqliteCanonicalTimeExpression, h as sqliteCanonicalDateTimeExpression, i as refuseWorkersKvWritable, l as addDropResolver, m as identifierConversionChecks, n as ObjectStoreConditionalPut, o as createStorageConformanceSuite, p as IdentifierConversionRequest, r as ObjectStoreEstateStorage, s as StorageColumnAudit, t as MemoryConditionalObjectStore, u as createPredefinedResolver } from "./object-store-DyYOCtmX.mjs";
5
+ import { A as InvalidIndex, B as MigrationCheckInput, C as MigrationStateListItem, D as PruneResult, E as PruneOptions, F as ExactPushOptions, G as PushConsent, H as MigrationEstateDescriptorV1, I as GenerateV1Options, J as ResetV1Options, K as PushOptionsV1, L as ManualMigrationInput, M as BaselineOptions, N as DownPreviewEdgeV1, O as CheckFinding, P as DownV1Options, R as ManualTransitionInput, S as MigrationStateDetails, T as ShowResult, V as MigrationDecisionV1, W as MigrationStateManifestV1, X as StateSelector, Y as ResolveV1Options, _ as PushPreview, a as LiveMigrations, b as MigrationEdgeMetadata, c as ReadableMigrations, d as ResolveResult, f as StatusResult, g as PushApplyResult, h as createMigrationClient, i as GenerateResult, j as ApplyV1Options, k as CheckResult, l as ReanchorResult, m as WritableMigrations, n as BaselineResult, o as LogResult, p as VerifyResult, q as ReanchorOptions, r as DownResult, s as MigrationClientOptions, t as ApplyResult, u as ResetResult, v as GraphResult, w as MigrationStateMetadata, x as MigrationRollbackMetadata, y as ListResult, z as MigrationApprovalV1 } from "./client-CRBo95D0.mjs";
6
+ export { ApplyV1Options as ApplyOptions, ApplyResult, BaselineOptions, BaselineResult, CheckFinding, CheckResult, DownV1Options as DownOptions, DownPreviewEdgeV1 as DownPreviewEdge, DownResult, ExactPushOptions, GenerateV1Options as GenerateOptions, GenerateResult, GraphResult, IdentifierConversionRequest, InvalidIndex, ListResult, LiveMigrations, LogResult, ManualMigrationInput, ManualTransitionInput, MemoryConditionalObjectStore, MemoryEstateStorage, MigrationApprovalV1 as MigrationApproval, MigrationCheckInput, MigrationClientOptions, MigrationDecisionV1 as MigrationDecision, MigrationEdgeMetadata, MigrationError, MigrationEstateDescriptorV1, MigrationLimits, MigrationRollbackMetadata, MigrationStateDetails, MigrationStateListItem, MigrationStateManifestV1, MigrationStateMetadata, MigrationStorageReader, MigrationStorageWriter, MigrationTarget, ObjectStoreConditionalPut, ObjectStoreEstateStorage, PruneOptions, PruneResult, PublishResult, PushApplyResult, PushConsent, PushOptionsV1 as PushOptions, PushPreview, ReadableMigrations, ReanchorOptions, ReanchorResult, ResetV1Options as ResetOptions, ResetResult, ResolveCallback, ResolveChange, ResolveV1Options as ResolveOptions, ResolveResult, SchemaSnapshot, ShowResult, StateSelector, StatusResult, StorageColumnAudit, VerifyResult, WritableMigrations, addDropResolver, auditStorage, createMigrationClient, createPredefinedResolver, createStorageConformanceSuite, identifierConversionChecks, isMigrationError, lenientResolver, refuseWorkersKvWritable, rejectAllResolver, sqliteCanonicalDateTimeExpression, sqliteCanonicalTimeExpression };
@@ -1,2 +1,2 @@
1
- import{n as e}from"./chunk-BuuaeEvq.mjs";import{n as t}from"./base-vfur-DaU.mjs";import{n,t as r}from"./migrations-BWZSBMZh.mjs";import{d as i,l as a}from"./decimal-12NERGYZ.mjs";import{c as o,i as s,l as c,o as l,s as u,t as d,u as f}from"./client-NleI4Nm-.mjs";import{c as p,o as m,t as h}from"./fs-estate-BcjgY4iY.mjs";function createStorageConformanceSuite(e){return[{name:`identical content-addressed publish is idempotent`,run:async()=>{let t=e(),n=p(`hello`),r=c(n),i=await t.publishSql(r,n),a=await t.publishSql(r,n);if(i.outcome!==`created`||a.outcome!==`identical`)throw Error(`idempotent publish failed`)}},{name:`same hash with different bytes is corruption`,run:async()=>{let n=e(),i=p(`hello`),a=c(i);await n.publishSql(a,i);try{await n.publishSql(a,p(`other`))}catch(e){if(e instanceof r&&e.code===t.MIGRATION_CORRUPTION)return}throw Error(`corrupt publish was accepted`)}},{name:`listStates returns only committed manifests`,run:async()=>{if((await e().listStates()).length!==0)throw Error(`fresh writer is not empty`)}},{name:`estate publish is idempotent for identical bytes`,run:async()=>{let t=e(),n=p(`{"format":"1"}`),r=await t.publishEstate(n),i=await t.publishEstate(n);if(r.outcome!==`created`||i.outcome!==`identical`)throw Error(`estate idempotent publish failed`)}}]}var MemoryEstateStorage=class{estate=null;states=new Map;snapshots=new Map;sql=new Map;async readEstate(){return this.estate?this.estate.slice():null}async listStates(){return[...this.states.keys()].sort()}async listSnapshots(){return[...this.snapshots.keys()].sort()}async listSql(){return[...this.sql.keys()].sort()}async readState(e){let t=this.states.get(e);return t?t.slice():null}async readSnapshot(e){let t=this.snapshots.get(e);return t?t.slice():null}async readSql(e){let t=this.sql.get(e);return t?t.slice():null}async publishEstate(e){if(this.estate&&!f(this.estate,e))throw new r(`estate.json already exists with different bytes`,t.MIGRATION_CORRUPTION);return this.estate?{outcome:`identical`}:(this.estate=e.slice(),{outcome:`created`})}async publishSnapshot(e,t){return publishMap(this.snapshots,e,t,`snapshot`)}async publishSql(e,t){return publishMap(this.sql,e,t,`sql`)}async publishState(e,n){if(!m(e))throw new r(`State id is not a SHA-256 digest`,t.MIGRATION_INVALID_ESTATE);return publishMap(this.states,e,n,`state`)}};function publishMap(e,n,i,a){let o=e.get(n);if(o){if(!f(o,i))throw new r(`${a} ${n} already holds different bytes`,t.MIGRATION_CORRUPTION);return{outcome:`identical`}}return e.set(n,i.slice()),{outcome:`created`}}function refuseWorkersKvWritable(){throw new r(`Workers KV cannot be a V1 estate writer: listing is eventually consistent and puts are not conditional`,t.MIGRATION_UNSUPPORTED_PROVIDER)}var ObjectStoreEstateStorage=class{store;constructor(e){this.store=e}async readEstate(){return this.store.get(`estate.json`)}async listStates(){return this.listHex(`states/`,`.json`)}async listSnapshots(){return this.listHex(`snapshots/`,`.json`)}async listSql(){return this.listHex(`sql/`,`.sql`)}async readState(e){return this.store.get(`states/${e}.json`)}async readSnapshot(e){return this.store.get(`snapshots/${e}.json`)}async readSql(e){return this.store.get(`sql/${e}.sql`)}async publishEstate(e){return this.publish(`estate.json`,e)}async publishSnapshot(e,t){return this.publish(`snapshots/${e}.json`,t)}async publishSql(e,t){return this.publish(`sql/${e}.sql`,t)}async publishState(e,n){if(!m(e))throw new r(`State id is not a SHA-256 digest`,t.MIGRATION_INVALID_ESTATE);return this.publish(`states/${e}.json`,n)}async publish(e,n){if(await this.store.putIfAbsent(e,n)===`created`)return{outcome:`created`};let i=await this.store.get(e);if(!(i&&f(i,n)))throw new r(`Object-store key ${e} already holds different bytes`,t.MIGRATION_CORRUPTION);return{outcome:`identical`}}async listHex(e,t){let n=await this.store.list(e),r=[];for(let i of n){let n=i.slice(e.length);if(!n.endsWith(t))continue;let a=n.slice(0,-t.length);m(a)&&r.push(a)}return r.sort()}},MemoryConditionalObjectStore=class{objects=new Map;async putIfAbsent(e,t){return this.objects.has(e)?`exists`:(this.objects.set(e,t.slice()),`created`)}async get(e){let t=this.objects.get(e);return t?t.slice():null}async list(e){return[...this.objects.keys()].filter(t=>t.startsWith(e)).sort()}};export{MemoryConditionalObjectStore,MemoryEstateStorage,r as MigrationError,ObjectStoreEstateStorage,l as addDropResolver,h as createFsStorageWriter,d as createMigrationClient,createStorageConformanceSuite,s as identifierConversionChecks,n as isMigrationError,u as lenientResolver,refuseWorkersKvWritable,o as rejectAllResolver,a as sqliteCanonicalDateTimeExpression,i as sqliteCanonicalTimeExpression};
1
+ import{n as e,t}from"./migrations-DTObIjAm.mjs";import{C as n,S as r,T as i,l as a,s as o,t as s,u as c,w as l}from"./client-CCgfcp5A.mjs";import{t as u}from"./identifier-conversion-GgbwHc2G.mjs";import{t as d}from"./every-4KE0p2Gw.mjs";import{n as f,t as p}from"./memory-D4yxtCPK.mjs";import{n as m,r as h,t as g}from"./object-store-DQR6bTBY.mjs";d();export{g as MemoryConditionalObjectStore,p as MemoryEstateStorage,t as MigrationError,m as ObjectStoreEstateStorage,r as addDropResolver,o as auditStorage,s as createMigrationClient,n as createPredefinedResolver,f as createStorageConformanceSuite,u as identifierConversionChecks,e as isMigrationError,l as lenientResolver,h as refuseWorkersKvWritable,i as rejectAllResolver,a as sqliteCanonicalDateTimeExpression,c as sqliteCanonicalTimeExpression};
2
2
  //# sourceMappingURL=migrations.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrations.mjs","names":[],"sources":["../src/migrations/storage/conformance.ts","../src/migrations/storage/memory.ts","../src/migrations/storage/object-store.ts"],"sourcesContent":["/**\n * Reusable storage conformance suite. A writable driver that cannot pass\n * these tests is not a V1 estate owner.\n */\n\nimport { MigrationError, VibORMErrorCode } from \"../../errors\";\nimport { utf8Bytes } from \"../identity\";\nimport { encodeSqlBlob } from \"../v1-parse\";\nimport type { MigrationStorageWriter } from \"./contract\";\n\nexport function createStorageConformanceSuite(\n createWriter: () => MigrationStorageWriter\n): { readonly name: string; readonly run: () => Promise<void> }[] {\n return [\n {\n name: \"identical content-addressed publish is idempotent\",\n run: async () => {\n const storage = createWriter();\n const bytes = utf8Bytes(\"hello\");\n const hash = encodeSqlBlob(bytes);\n const first = await storage.publishSql(hash, bytes);\n const second = await storage.publishSql(hash, bytes);\n if (first.outcome !== \"created\" || second.outcome !== \"identical\") {\n throw new Error(\"idempotent publish failed\");\n }\n },\n },\n {\n name: \"same hash with different bytes is corruption\",\n run: async () => {\n const storage = createWriter();\n const bytes = utf8Bytes(\"hello\");\n const hash = encodeSqlBlob(bytes);\n await storage.publishSql(hash, bytes);\n try {\n await storage.publishSql(hash, utf8Bytes(\"other\"));\n } catch (error) {\n if (\n error instanceof MigrationError &&\n error.code === VibORMErrorCode.MIGRATION_CORRUPTION\n ) {\n return;\n }\n }\n throw new Error(\"corrupt publish was accepted\");\n },\n },\n {\n name: \"listStates returns only committed manifests\",\n run: async () => {\n const storage = createWriter();\n const listed = await storage.listStates();\n if (listed.length !== 0) throw new Error(\"fresh writer is not empty\");\n },\n },\n {\n name: \"estate publish is idempotent for identical bytes\",\n run: async () => {\n const storage = createWriter();\n const bytes = utf8Bytes('{\"format\":\"1\"}');\n const first = await storage.publishEstate(bytes);\n const second = await storage.publishEstate(bytes);\n if (first.outcome !== \"created\" || second.outcome !== \"identical\") {\n throw new Error(\"estate idempotent publish failed\");\n }\n },\n },\n ];\n}\n","/**\n * In-memory estate writer for tests and conformance.\n * Conditional create: same hash + same bytes is identical; different bytes is corruption.\n */\n\nimport { MigrationError, VibORMErrorCode } from \"../../errors\";\nimport { bytesEqual } from \"../canonical-json\";\nimport { isSha256, type Sha256 } from \"../identity\";\nimport type { MigrationStorageWriter, PublishResult } from \"./contract\";\n\nexport class MemoryEstateStorage implements MigrationStorageWriter {\n private estate: Uint8Array | null = null;\n private readonly states = new Map<Sha256, Uint8Array>();\n private readonly snapshots = new Map<Sha256, Uint8Array>();\n private readonly sql = new Map<Sha256, Uint8Array>();\n\n async readEstate(): Promise<Uint8Array | null> {\n return this.estate ? this.estate.slice() : null;\n }\n\n async listStates(): Promise<readonly Sha256[]> {\n return [...this.states.keys()].sort();\n }\n\n async listSnapshots(): Promise<readonly Sha256[]> {\n return [...this.snapshots.keys()].sort();\n }\n\n async listSql(): Promise<readonly Sha256[]> {\n return [...this.sql.keys()].sort();\n }\n\n async readState(id: Sha256): Promise<Uint8Array | null> {\n const bytes = this.states.get(id);\n return bytes ? bytes.slice() : null;\n }\n\n async readSnapshot(hash: Sha256): Promise<Uint8Array | null> {\n const bytes = this.snapshots.get(hash);\n return bytes ? bytes.slice() : null;\n }\n\n async readSql(hash: Sha256): Promise<Uint8Array | null> {\n const bytes = this.sql.get(hash);\n return bytes ? bytes.slice() : null;\n }\n\n async publishEstate(bytes: Uint8Array): Promise<PublishResult> {\n if (this.estate && !bytesEqual(this.estate, bytes)) {\n throw new MigrationError(\n \"estate.json already exists with different bytes\",\n VibORMErrorCode.MIGRATION_CORRUPTION\n );\n }\n if (this.estate) return { outcome: \"identical\" };\n this.estate = bytes.slice();\n return { outcome: \"created\" };\n }\n\n async publishSnapshot(\n hash: Sha256,\n bytes: Uint8Array\n ): Promise<PublishResult> {\n return publishMap(this.snapshots, hash, bytes, \"snapshot\");\n }\n\n async publishSql(hash: Sha256, bytes: Uint8Array): Promise<PublishResult> {\n return publishMap(this.sql, hash, bytes, \"sql\");\n }\n\n async publishState(id: Sha256, bytes: Uint8Array): Promise<PublishResult> {\n if (!isSha256(id)) {\n throw new MigrationError(\n \"State id is not a SHA-256 digest\",\n VibORMErrorCode.MIGRATION_INVALID_ESTATE\n );\n }\n return publishMap(this.states, id, bytes, \"state\");\n }\n}\n\nfunction publishMap(\n store: Map<Sha256, Uint8Array>,\n key: Sha256,\n bytes: Uint8Array,\n label: string\n): PublishResult {\n const existing = store.get(key);\n if (existing) {\n if (!bytesEqual(existing, bytes)) {\n throw new MigrationError(\n `${label} ${key} already holds different bytes`,\n VibORMErrorCode.MIGRATION_CORRUPTION\n );\n }\n return { outcome: \"identical\" };\n }\n store.set(key, bytes.slice());\n return { outcome: \"created\" };\n}\n","/**\n * Strong object-store publication contract.\n * A writable driver that cannot do conditional create is not a V1 estate owner.\n * Workers KV is refused here: it has no compare-and-swap publication.\n */\n\nimport { MigrationError, VibORMErrorCode } from \"../../errors\";\nimport { bytesEqual } from \"../canonical-json\";\nimport { isSha256, type Sha256 } from \"../identity\";\nimport type { MigrationStorageWriter, PublishResult } from \"./contract\";\n\nexport function refuseWorkersKvWritable(): never {\n throw new MigrationError(\n \"Workers KV cannot be a V1 estate writer: listing is eventually consistent and puts are not conditional\",\n VibORMErrorCode.MIGRATION_UNSUPPORTED_PROVIDER\n );\n}\n\nexport interface ObjectStoreConditionalPut {\n putIfAbsent(key: string, bytes: Uint8Array): Promise<\"created\" | \"exists\">;\n get(key: string): Promise<Uint8Array | null>;\n list(prefix: string): Promise<readonly string[]>;\n}\n\n/**\n * Estate writer over a strongly consistent object store with if-none-match\n * publication. Manifests become visible only after referenced bytes exist.\n */\nexport class ObjectStoreEstateStorage implements MigrationStorageWriter {\n private readonly store: ObjectStoreConditionalPut;\n\n constructor(store: ObjectStoreConditionalPut) {\n this.store = store;\n }\n\n async readEstate(): Promise<Uint8Array | null> {\n return this.store.get(\"estate.json\");\n }\n\n async listStates(): Promise<readonly Sha256[]> {\n return this.listHex(\"states/\", \".json\");\n }\n\n async listSnapshots(): Promise<readonly Sha256[]> {\n return this.listHex(\"snapshots/\", \".json\");\n }\n\n async listSql(): Promise<readonly Sha256[]> {\n return this.listHex(\"sql/\", \".sql\");\n }\n\n async readState(id: Sha256): Promise<Uint8Array | null> {\n return this.store.get(`states/${id}.json`);\n }\n\n async readSnapshot(hash: Sha256): Promise<Uint8Array | null> {\n return this.store.get(`snapshots/${hash}.json`);\n }\n\n async readSql(hash: Sha256): Promise<Uint8Array | null> {\n return this.store.get(`sql/${hash}.sql`);\n }\n\n async publishEstate(bytes: Uint8Array): Promise<PublishResult> {\n return this.publish(\"estate.json\", bytes);\n }\n\n async publishSnapshot(\n hash: Sha256,\n bytes: Uint8Array\n ): Promise<PublishResult> {\n return this.publish(`snapshots/${hash}.json`, bytes);\n }\n\n async publishSql(hash: Sha256, bytes: Uint8Array): Promise<PublishResult> {\n return this.publish(`sql/${hash}.sql`, bytes);\n }\n\n async publishState(id: Sha256, bytes: Uint8Array): Promise<PublishResult> {\n if (!isSha256(id)) {\n throw new MigrationError(\n \"State id is not a SHA-256 digest\",\n VibORMErrorCode.MIGRATION_INVALID_ESTATE\n );\n }\n return this.publish(`states/${id}.json`, bytes);\n }\n\n private async publish(\n key: string,\n bytes: Uint8Array\n ): Promise<PublishResult> {\n const result = await this.store.putIfAbsent(key, bytes);\n if (result === \"created\") return { outcome: \"created\" };\n const existing = await this.store.get(key);\n if (!(existing && bytesEqual(existing, bytes))) {\n throw new MigrationError(\n `Object-store key ${key} already holds different bytes`,\n VibORMErrorCode.MIGRATION_CORRUPTION\n );\n }\n return { outcome: \"identical\" };\n }\n\n private async listHex(prefix: string, suffix: string): Promise<Sha256[]> {\n const keys = await this.store.list(prefix);\n const hashes: Sha256[] = [];\n for (const key of keys) {\n const name = key.slice(prefix.length);\n if (!name.endsWith(suffix)) continue;\n const hex = name.slice(0, -suffix.length);\n if (isSha256(hex)) hashes.push(hex);\n }\n return hashes.sort();\n }\n}\n\n/** In-memory strong object store for the conformance fixture. */\nexport class MemoryConditionalObjectStore implements ObjectStoreConditionalPut {\n private readonly objects = new Map<string, Uint8Array>();\n\n async putIfAbsent(\n key: string,\n bytes: Uint8Array\n ): Promise<\"created\" | \"exists\"> {\n if (this.objects.has(key)) return \"exists\";\n this.objects.set(key, bytes.slice());\n return \"created\";\n }\n\n async get(key: string): Promise<Uint8Array | null> {\n const bytes = this.objects.get(key);\n return bytes ? bytes.slice() : null;\n }\n\n async list(prefix: string): Promise<readonly string[]> {\n return [...this.objects.keys()]\n .filter((key) => key.startsWith(prefix))\n .sort();\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"migrations.mjs","names":[],"sources":["../src/migrations/dialects/all.ts"],"sourcesContent":["/**\n * `viborm/migrations`: the migrations API with every dialect's migration\n * driver registered. The registration is this entry's own statement, so a\n * bundler keeps it (package.json `sideEffects`).\n */\n\nimport { registerEveryMigrationDriver } from \"./every\";\n\nregisterEveryMigrationDriver();\n\nexport * from \"../index\";\n"],"mappings":"4VAQA,GAA8B"}