@inlang/sdk 2.0.0-prerelease.0 → 2.0.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 (1018) hide show
  1. package/LICENSE +21 -201
  2. package/dist/index.d.ts +0 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2 -4
  5. package/dist/index.js.map +1 -1
  6. package/dist/lix/index.d.ts +2 -0
  7. package/dist/lix/index.d.ts.map +1 -0
  8. package/dist/lix/index.js +5 -0
  9. package/dist/lix/index.js.map +1 -0
  10. package/dist/project/api.d.ts +0 -4
  11. package/dist/project/api.d.ts.map +1 -1
  12. package/dist/project/api.js +2 -2
  13. package/dist/project/api.js.map +1 -1
  14. package/dist/project/initHandleSaveToLixOnChange.d.ts.map +1 -1
  15. package/dist/project/initHandleSaveToLixOnChange.js +16 -10
  16. package/dist/project/initHandleSaveToLixOnChange.js.map +1 -1
  17. package/dist/project/loadProject.d.ts +11 -1
  18. package/dist/project/loadProject.d.ts.map +1 -1
  19. package/dist/project/loadProject.js +79 -16
  20. package/dist/project/loadProject.js.map +1 -1
  21. package/dist/project/loadProject.test.js +45 -22
  22. package/dist/project/loadProject.test.js.map +1 -1
  23. package/dist/project/loadProjectFromDirectory.d.ts +0 -10
  24. package/dist/project/loadProjectFromDirectory.d.ts.map +1 -1
  25. package/dist/project/loadProjectFromDirectory.js +30 -39
  26. package/dist/project/loadProjectFromDirectory.js.map +1 -1
  27. package/dist/project/loadProjectFromDirectory.test.js +32 -11
  28. package/dist/project/loadProjectFromDirectory.test.js.map +1 -1
  29. package/dist/project/loadProjectInMemory.d.ts.map +1 -1
  30. package/dist/project/loadProjectInMemory.js +3 -2
  31. package/dist/project/loadProjectInMemory.js.map +1 -1
  32. package/dist/project/maybeCaptureTelemetry.d.ts +8 -2
  33. package/dist/project/maybeCaptureTelemetry.d.ts.map +1 -1
  34. package/dist/project/maybeCaptureTelemetry.js +49 -37
  35. package/dist/project/maybeCaptureTelemetry.js.map +1 -1
  36. package/dist/project/maybeCaptureTelemetry.test.js +14 -3
  37. package/dist/project/maybeCaptureTelemetry.test.js.map +1 -1
  38. package/dist/project/newProject.d.ts.map +1 -1
  39. package/dist/project/newProject.js +6 -5
  40. package/dist/project/newProject.js.map +1 -1
  41. package/dist/project/saveProjectToDirectory.test.js +3 -3
  42. package/dist/project/saveProjectToDirectory.test.js.map +1 -1
  43. package/dist/query-utilities/index.d.ts +0 -1
  44. package/dist/query-utilities/index.d.ts.map +1 -1
  45. package/dist/query-utilities/index.js +2 -3
  46. package/dist/query-utilities/index.js.map +1 -1
  47. package/dist/services/env-variables/index.js +3 -3
  48. package/dist/services/env-variables/index.js.map +1 -1
  49. package/dist/services/telemetry/capture.d.ts +1 -0
  50. package/dist/services/telemetry/capture.d.ts.map +1 -1
  51. package/dist/services/telemetry/capture.js +5 -6
  52. package/dist/services/telemetry/capture.js.map +1 -1
  53. package/dist/services/telemetry/capture.test.js +4 -2
  54. package/dist/services/telemetry/capture.test.js.map +1 -1
  55. package/package.json +6 -11
  56. package/src/index.ts +0 -2
  57. package/src/lix/index.ts +1 -0
  58. package/src/project/api.ts +0 -4
  59. package/src/project/initHandleSaveToLixOnChange.ts +13 -8
  60. package/src/project/loadProject.test.ts +51 -23
  61. package/src/project/loadProject.ts +108 -15
  62. package/src/project/loadProjectFromDirectory.test.ts +44 -9
  63. package/src/project/loadProjectFromDirectory.ts +32 -47
  64. package/src/project/loadProjectInMemory.ts +1 -0
  65. package/src/project/maybeCaptureTelemetry.test.ts +16 -2
  66. package/src/project/maybeCaptureTelemetry.ts +55 -37
  67. package/src/project/newProject.ts +4 -3
  68. package/src/project/saveProjectToDirectory.test.ts +1 -1
  69. package/src/query-utilities/index.ts +0 -1
  70. package/src/services/telemetry/capture.test.ts +2 -0
  71. package/src/services/telemetry/capture.ts +5 -4
  72. package/dist/project/state/id$.d.ts +0 -6
  73. package/dist/project/state/id$.d.ts.map +0 -1
  74. package/dist/project/state/id$.js +0 -19
  75. package/dist/project/state/id$.js.map +0 -1
  76. package/dist/project/state/id$.test.d.ts +0 -2
  77. package/dist/project/state/id$.test.d.ts.map +0 -1
  78. package/dist/project/state/id$.test.js +0 -36
  79. package/dist/project/state/id$.test.js.map +0 -1
  80. package/dist/project/state/setSettings.d.ts +0 -7
  81. package/dist/project/state/setSettings.d.ts.map +0 -1
  82. package/dist/project/state/setSettings.js +0 -16
  83. package/dist/project/state/setSettings.js.map +0 -1
  84. package/dist/project/state/setSettings.test.d.ts +0 -2
  85. package/dist/project/state/setSettings.test.d.ts.map +0 -1
  86. package/dist/project/state/setSettings.test.js +0 -58
  87. package/dist/project/state/setSettings.test.js.map +0 -1
  88. package/dist/project/state/settings$.d.ts +0 -7
  89. package/dist/project/state/settings$.d.ts.map +0 -1
  90. package/dist/project/state/settings$.js +0 -21
  91. package/dist/project/state/settings$.js.map +0 -1
  92. package/dist/project/state/settings$.test.d.ts +0 -2
  93. package/dist/project/state/settings$.test.d.ts.map +0 -1
  94. package/dist/project/state/settings$.test.js +0 -51
  95. package/dist/project/state/settings$.test.js.map +0 -1
  96. package/dist/project/state/state.d.ts +0 -58
  97. package/dist/project/state/state.d.ts.map +0 -1
  98. package/dist/project/state/state.js +0 -67
  99. package/dist/project/state/state.js.map +0 -1
  100. package/dist/project/state/state.test.d.ts +0 -2
  101. package/dist/project/state/state.test.d.ts.map +0 -1
  102. package/dist/project/state/state.test.js +0 -103
  103. package/dist/project/state/state.test.js.map +0 -1
  104. package/dist/query-utilities/pollQuery.d.ts +0 -14
  105. package/dist/query-utilities/pollQuery.d.ts.map +0 -1
  106. package/dist/query-utilities/pollQuery.js +0 -22
  107. package/dist/query-utilities/pollQuery.js.map +0 -1
  108. package/dist/query-utilities/pollQuery.test.d.ts +0 -2
  109. package/dist/query-utilities/pollQuery.test.d.ts.map +0 -1
  110. package/dist/query-utilities/pollQuery.test.js +0 -67
  111. package/dist/query-utilities/pollQuery.test.js.map +0 -1
  112. package/node_modules/@lix-js/sdk/LICENSE +0 -21
  113. package/node_modules/@lix-js/sdk/README.md +0 -68
  114. package/node_modules/@lix-js/sdk/dist/account/create-account.d.ts +0 -7
  115. package/node_modules/@lix-js/sdk/dist/account/create-account.d.ts.map +0 -1
  116. package/node_modules/@lix-js/sdk/dist/account/create-account.js +0 -20
  117. package/node_modules/@lix-js/sdk/dist/account/create-account.js.map +0 -1
  118. package/node_modules/@lix-js/sdk/dist/account/create-account.test.d.ts +0 -2
  119. package/node_modules/@lix-js/sdk/dist/account/create-account.test.d.ts.map +0 -1
  120. package/node_modules/@lix-js/sdk/dist/account/create-account.test.js +0 -22
  121. package/node_modules/@lix-js/sdk/dist/account/create-account.test.js.map +0 -1
  122. package/node_modules/@lix-js/sdk/dist/account/database-schema.d.ts +0 -18
  123. package/node_modules/@lix-js/sdk/dist/account/database-schema.d.ts.map +0 -1
  124. package/node_modules/@lix-js/sdk/dist/account/database-schema.js +0 -36
  125. package/node_modules/@lix-js/sdk/dist/account/database-schema.js.map +0 -1
  126. package/node_modules/@lix-js/sdk/dist/account/database-schema.test.d.ts +0 -2
  127. package/node_modules/@lix-js/sdk/dist/account/database-schema.test.d.ts.map +0 -1
  128. package/node_modules/@lix-js/sdk/dist/account/database-schema.test.js +0 -139
  129. package/node_modules/@lix-js/sdk/dist/account/database-schema.test.js.map +0 -1
  130. package/node_modules/@lix-js/sdk/dist/account/index.d.ts +0 -4
  131. package/node_modules/@lix-js/sdk/dist/account/index.d.ts.map +0 -1
  132. package/node_modules/@lix-js/sdk/dist/account/index.js +0 -4
  133. package/node_modules/@lix-js/sdk/dist/account/index.js.map +0 -1
  134. package/node_modules/@lix-js/sdk/dist/account/switch-account.d.ts +0 -26
  135. package/node_modules/@lix-js/sdk/dist/account/switch-account.d.ts.map +0 -1
  136. package/node_modules/@lix-js/sdk/dist/account/switch-account.js +0 -34
  137. package/node_modules/@lix-js/sdk/dist/account/switch-account.js.map +0 -1
  138. package/node_modules/@lix-js/sdk/dist/account/switch-account.test.d.ts +0 -2
  139. package/node_modules/@lix-js/sdk/dist/account/switch-account.test.d.ts.map +0 -1
  140. package/node_modules/@lix-js/sdk/dist/account/switch-account.test.js +0 -48
  141. package/node_modules/@lix-js/sdk/dist/account/switch-account.test.js.map +0 -1
  142. package/node_modules/@lix-js/sdk/dist/change/apply-changes.d.ts +0 -25
  143. package/node_modules/@lix-js/sdk/dist/change/apply-changes.d.ts.map +0 -1
  144. package/node_modules/@lix-js/sdk/dist/change/apply-changes.js +0 -98
  145. package/node_modules/@lix-js/sdk/dist/change/apply-changes.js.map +0 -1
  146. package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.d.ts +0 -2
  147. package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.d.ts.map +0 -1
  148. package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.js +0 -222
  149. package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.js.map +0 -1
  150. package/node_modules/@lix-js/sdk/dist/change/create-change.d.ts +0 -27
  151. package/node_modules/@lix-js/sdk/dist/change/create-change.d.ts.map +0 -1
  152. package/node_modules/@lix-js/sdk/dist/change/create-change.js +0 -97
  153. package/node_modules/@lix-js/sdk/dist/change/create-change.js.map +0 -1
  154. package/node_modules/@lix-js/sdk/dist/change/create-change.test.d.ts +0 -2
  155. package/node_modules/@lix-js/sdk/dist/change/create-change.test.d.ts.map +0 -1
  156. package/node_modules/@lix-js/sdk/dist/change/create-change.test.js +0 -235
  157. package/node_modules/@lix-js/sdk/dist/change/create-change.test.js.map +0 -1
  158. package/node_modules/@lix-js/sdk/dist/change/index.d.ts +0 -3
  159. package/node_modules/@lix-js/sdk/dist/change/index.d.ts.map +0 -1
  160. package/node_modules/@lix-js/sdk/dist/change/index.js +0 -3
  161. package/node_modules/@lix-js/sdk/dist/change/index.js.map +0 -1
  162. package/node_modules/@lix-js/sdk/dist/change/mock-change.d.ts +0 -10
  163. package/node_modules/@lix-js/sdk/dist/change/mock-change.d.ts.map +0 -1
  164. package/node_modules/@lix-js/sdk/dist/change/mock-change.js +0 -20
  165. package/node_modules/@lix-js/sdk/dist/change/mock-change.js.map +0 -1
  166. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.d.ts +0 -15
  167. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.d.ts.map +0 -1
  168. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.js +0 -67
  169. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.js.map +0 -1
  170. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.d.ts +0 -2
  171. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.d.ts.map +0 -1
  172. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.js +0 -145
  173. package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.js.map +0 -1
  174. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.d.ts +0 -23
  175. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.d.ts.map +0 -1
  176. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.js +0 -50
  177. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.js.map +0 -1
  178. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.d.ts +0 -2
  179. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.d.ts.map +0 -1
  180. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.js +0 -182
  181. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.js.map +0 -1
  182. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.d.ts +0 -32
  183. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.d.ts.map +0 -1
  184. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.js +0 -66
  185. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.js.map +0 -1
  186. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.d.ts +0 -2
  187. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.d.ts.map +0 -1
  188. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.js +0 -201
  189. package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.js.map +0 -1
  190. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.d.ts +0 -14
  191. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.d.ts.map +0 -1
  192. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.js +0 -67
  193. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.js.map +0 -1
  194. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.d.ts +0 -2
  195. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.d.ts.map +0 -1
  196. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.js +0 -182
  197. package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.js.map +0 -1
  198. package/node_modules/@lix-js/sdk/dist/change-conflict/index.d.ts +0 -4
  199. package/node_modules/@lix-js/sdk/dist/change-conflict/index.d.ts.map +0 -1
  200. package/node_modules/@lix-js/sdk/dist/change-conflict/index.js +0 -4
  201. package/node_modules/@lix-js/sdk/dist/change-conflict/index.js.map +0 -1
  202. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.d.ts +0 -12
  203. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.d.ts.map +0 -1
  204. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.js +0 -48
  205. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.js.map +0 -1
  206. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.d.ts +0 -2
  207. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.d.ts.map +0 -1
  208. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.js +0 -95
  209. package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.js.map +0 -1
  210. package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.d.ts +0 -2
  211. package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.d.ts.map +0 -1
  212. package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.js +0 -72
  213. package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.js.map +0 -1
  214. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.d.ts +0 -13
  215. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.d.ts.map +0 -1
  216. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.js +0 -25
  217. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.js.map +0 -1
  218. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.d.ts +0 -2
  219. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.d.ts.map +0 -1
  220. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.js +0 -47
  221. package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.js.map +0 -1
  222. package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.d.ts +0 -24
  223. package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.d.ts.map +0 -1
  224. package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.js +0 -209
  225. package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.js.map +0 -1
  226. package/node_modules/@lix-js/sdk/dist/change-queue/index.d.ts +0 -2
  227. package/node_modules/@lix-js/sdk/dist/change-queue/index.d.ts.map +0 -1
  228. package/node_modules/@lix-js/sdk/dist/change-queue/index.js +0 -2
  229. package/node_modules/@lix-js/sdk/dist/change-queue/index.js.map +0 -1
  230. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.d.ts +0 -7
  231. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.d.ts.map +0 -1
  232. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.js +0 -80
  233. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.js.map +0 -1
  234. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.d.ts +0 -2
  235. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.d.ts.map +0 -1
  236. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.js +0 -373
  237. package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.js.map +0 -1
  238. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.d.ts +0 -3
  239. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.d.ts.map +0 -1
  240. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.js +0 -26
  241. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.js.map +0 -1
  242. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.d.ts +0 -2
  243. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.d.ts.map +0 -1
  244. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.js +0 -138
  245. package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.js.map +0 -1
  246. package/node_modules/@lix-js/sdk/dist/change-schema/index.d.ts +0 -2
  247. package/node_modules/@lix-js/sdk/dist/change-schema/index.d.ts.map +0 -1
  248. package/node_modules/@lix-js/sdk/dist/change-schema/index.js +0 -2
  249. package/node_modules/@lix-js/sdk/dist/change-schema/index.js.map +0 -1
  250. package/node_modules/@lix-js/sdk/dist/change-schema/types.d.ts +0 -40
  251. package/node_modules/@lix-js/sdk/dist/change-schema/types.d.ts.map +0 -1
  252. package/node_modules/@lix-js/sdk/dist/change-schema/types.js +0 -2
  253. package/node_modules/@lix-js/sdk/dist/change-schema/types.js.map +0 -1
  254. package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.d.ts +0 -2
  255. package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.d.ts.map +0 -1
  256. package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.js +0 -34
  257. package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.js.map +0 -1
  258. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.d.ts +0 -19
  259. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.d.ts.map +0 -1
  260. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.js +0 -36
  261. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.js.map +0 -1
  262. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.d.ts +0 -2
  263. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.d.ts.map +0 -1
  264. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.js +0 -106
  265. package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.js.map +0 -1
  266. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.d.ts +0 -16
  267. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.d.ts.map +0 -1
  268. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.js +0 -33
  269. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.js.map +0 -1
  270. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.d.ts +0 -2
  271. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.d.ts.map +0 -1
  272. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.js +0 -37
  273. package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.js.map +0 -1
  274. package/node_modules/@lix-js/sdk/dist/change-set/index.d.ts +0 -3
  275. package/node_modules/@lix-js/sdk/dist/change-set/index.d.ts.map +0 -1
  276. package/node_modules/@lix-js/sdk/dist/change-set/index.js +0 -3
  277. package/node_modules/@lix-js/sdk/dist/change-set/index.js.map +0 -1
  278. package/node_modules/@lix-js/sdk/dist/database/apply-schema.d.ts +0 -8
  279. package/node_modules/@lix-js/sdk/dist/database/apply-schema.d.ts.map +0 -1
  280. package/node_modules/@lix-js/sdk/dist/database/apply-schema.js +0 -266
  281. package/node_modules/@lix-js/sdk/dist/database/apply-schema.js.map +0 -1
  282. package/node_modules/@lix-js/sdk/dist/database/execute-sync.d.ts +0 -18
  283. package/node_modules/@lix-js/sdk/dist/database/execute-sync.d.ts.map +0 -1
  284. package/node_modules/@lix-js/sdk/dist/database/execute-sync.js +0 -36
  285. package/node_modules/@lix-js/sdk/dist/database/execute-sync.js.map +0 -1
  286. package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.d.ts +0 -2
  287. package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.d.ts.map +0 -1
  288. package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.js +0 -118
  289. package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.js.map +0 -1
  290. package/node_modules/@lix-js/sdk/dist/database/index.d.ts +0 -5
  291. package/node_modules/@lix-js/sdk/dist/database/index.d.ts.map +0 -1
  292. package/node_modules/@lix-js/sdk/dist/database/index.js +0 -5
  293. package/node_modules/@lix-js/sdk/dist/database/index.js.map +0 -1
  294. package/node_modules/@lix-js/sdk/dist/database/init-db.d.ts +0 -7
  295. package/node_modules/@lix-js/sdk/dist/database/init-db.d.ts.map +0 -1
  296. package/node_modules/@lix-js/sdk/dist/database/init-db.js +0 -95
  297. package/node_modules/@lix-js/sdk/dist/database/init-db.js.map +0 -1
  298. package/node_modules/@lix-js/sdk/dist/database/init-db.test.d.ts +0 -2
  299. package/node_modules/@lix-js/sdk/dist/database/init-db.test.d.ts.map +0 -1
  300. package/node_modules/@lix-js/sdk/dist/database/init-db.test.js +0 -497
  301. package/node_modules/@lix-js/sdk/dist/database/init-db.test.js.map +0 -1
  302. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.d.ts +0 -3
  303. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.d.ts.map +0 -1
  304. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.js +0 -44
  305. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.js.map +0 -1
  306. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.d.ts +0 -2
  307. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.d.ts.map +0 -1
  308. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.js +0 -162
  309. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.js.map +0 -1
  310. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.d.ts +0 -12
  311. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.d.ts.map +0 -1
  312. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.js +0 -149
  313. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.js.map +0 -1
  314. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.d.ts +0 -2
  315. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.d.ts.map +0 -1
  316. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.js +0 -162
  317. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.js.map +0 -1
  318. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.d.ts +0 -3
  319. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.d.ts.map +0 -1
  320. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.js +0 -100
  321. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.js.map +0 -1
  322. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.d.ts +0 -2
  323. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.d.ts.map +0 -1
  324. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.js +0 -107
  325. package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.js.map +0 -1
  326. package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.d.ts +0 -16
  327. package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.d.ts.map +0 -1
  328. package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.js +0 -101
  329. package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.js.map +0 -1
  330. package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.d.ts +0 -8
  331. package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.d.ts.map +0 -1
  332. package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.js +0 -18
  333. package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.js.map +0 -1
  334. package/node_modules/@lix-js/sdk/dist/database/nano-id.d.ts +0 -21
  335. package/node_modules/@lix-js/sdk/dist/database/nano-id.d.ts.map +0 -1
  336. package/node_modules/@lix-js/sdk/dist/database/nano-id.js +0 -58
  337. package/node_modules/@lix-js/sdk/dist/database/nano-id.js.map +0 -1
  338. package/node_modules/@lix-js/sdk/dist/database/nano-id.test.d.ts +0 -2
  339. package/node_modules/@lix-js/sdk/dist/database/nano-id.test.d.ts.map +0 -1
  340. package/node_modules/@lix-js/sdk/dist/database/nano-id.test.js +0 -13
  341. package/node_modules/@lix-js/sdk/dist/database/nano-id.test.js.map +0 -1
  342. package/node_modules/@lix-js/sdk/dist/database/schema.d.ts +0 -212
  343. package/node_modules/@lix-js/sdk/dist/database/schema.d.ts.map +0 -1
  344. package/node_modules/@lix-js/sdk/dist/database/schema.js +0 -2
  345. package/node_modules/@lix-js/sdk/dist/database/schema.js.map +0 -1
  346. package/node_modules/@lix-js/sdk/dist/discussion/create-comment.d.ts +0 -8
  347. package/node_modules/@lix-js/sdk/dist/discussion/create-comment.d.ts.map +0 -1
  348. package/node_modules/@lix-js/sdk/dist/discussion/create-comment.js +0 -12
  349. package/node_modules/@lix-js/sdk/dist/discussion/create-comment.js.map +0 -1
  350. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.d.ts +0 -21
  351. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.d.ts.map +0 -1
  352. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.js +0 -40
  353. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.js.map +0 -1
  354. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.d.ts +0 -2
  355. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.d.ts.map +0 -1
  356. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.js +0 -38
  357. package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.js.map +0 -1
  358. package/node_modules/@lix-js/sdk/dist/discussion/index.d.ts +0 -3
  359. package/node_modules/@lix-js/sdk/dist/discussion/index.d.ts.map +0 -1
  360. package/node_modules/@lix-js/sdk/dist/discussion/index.js +0 -3
  361. package/node_modules/@lix-js/sdk/dist/discussion/index.js.map +0 -1
  362. package/node_modules/@lix-js/sdk/dist/file/index.d.ts +0 -2
  363. package/node_modules/@lix-js/sdk/dist/file/index.d.ts.map +0 -1
  364. package/node_modules/@lix-js/sdk/dist/file/index.js +0 -2
  365. package/node_modules/@lix-js/sdk/dist/file/index.js.map +0 -1
  366. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.d.ts +0 -16
  367. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.d.ts.map +0 -1
  368. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.js +0 -44
  369. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.js.map +0 -1
  370. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.d.ts +0 -2
  371. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.d.ts.map +0 -1
  372. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.js +0 -36
  373. package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.js.map +0 -1
  374. package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.d.ts +0 -24
  375. package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.d.ts.map +0 -1
  376. package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.js +0 -209
  377. package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.js.map +0 -1
  378. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.d.ts +0 -5
  379. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.d.ts.map +0 -1
  380. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.js +0 -85
  381. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.js.map +0 -1
  382. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.d.ts +0 -2
  383. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.d.ts.map +0 -1
  384. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.js +0 -373
  385. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.js.map +0 -1
  386. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.d.ts +0 -13
  387. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.d.ts.map +0 -1
  388. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.js +0 -25
  389. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.js.map +0 -1
  390. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.d.ts +0 -2
  391. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.d.ts.map +0 -1
  392. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.js +0 -47
  393. package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.js.map +0 -1
  394. package/node_modules/@lix-js/sdk/dist/file-queue/index.d.ts +0 -2
  395. package/node_modules/@lix-js/sdk/dist/file-queue/index.d.ts.map +0 -1
  396. package/node_modules/@lix-js/sdk/dist/file-queue/index.js +0 -2
  397. package/node_modules/@lix-js/sdk/dist/file-queue/index.js.map +0 -1
  398. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.d.ts +0 -3
  399. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.d.ts.map +0 -1
  400. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.js +0 -26
  401. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.js.map +0 -1
  402. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.d.ts +0 -2
  403. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.d.ts.map +0 -1
  404. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.js +0 -138
  405. package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.js.map +0 -1
  406. package/node_modules/@lix-js/sdk/dist/index.d.ts +0 -17
  407. package/node_modules/@lix-js/sdk/dist/index.d.ts.map +0 -1
  408. package/node_modules/@lix-js/sdk/dist/index.js +0 -17
  409. package/node_modules/@lix-js/sdk/dist/index.js.map +0 -1
  410. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.d.ts +0 -42
  411. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.d.ts.map +0 -1
  412. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.js +0 -21
  413. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.js.map +0 -1
  414. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.d.ts +0 -2
  415. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.d.ts.map +0 -1
  416. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.js +0 -114
  417. package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.js.map +0 -1
  418. package/node_modules/@lix-js/sdk/dist/lix/close-lix.d.ts +0 -8
  419. package/node_modules/@lix-js/sdk/dist/lix/close-lix.d.ts.map +0 -1
  420. package/node_modules/@lix-js/sdk/dist/lix/close-lix.js +0 -7
  421. package/node_modules/@lix-js/sdk/dist/lix/close-lix.js.map +0 -1
  422. package/node_modules/@lix-js/sdk/dist/lix/index.d.ts +0 -5
  423. package/node_modules/@lix-js/sdk/dist/lix/index.d.ts.map +0 -1
  424. package/node_modules/@lix-js/sdk/dist/lix/index.js +0 -8
  425. package/node_modules/@lix-js/sdk/dist/lix/index.js.map +0 -1
  426. package/node_modules/@lix-js/sdk/dist/lix/merge.d.ts +0 -9
  427. package/node_modules/@lix-js/sdk/dist/lix/merge.d.ts.map +0 -1
  428. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.d.ts +0 -15
  429. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.d.ts.map +0 -1
  430. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.js +0 -34
  431. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.js.map +0 -1
  432. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.d.ts +0 -2
  433. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.d.ts.map +0 -1
  434. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.js +0 -121
  435. package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.js.map +0 -1
  436. package/node_modules/@lix-js/sdk/dist/lix/merge.js +0 -195
  437. package/node_modules/@lix-js/sdk/dist/lix/merge.js.map +0 -1
  438. package/node_modules/@lix-js/sdk/dist/lix/merge.test.d.ts +0 -2
  439. package/node_modules/@lix-js/sdk/dist/lix/merge.test.d.ts.map +0 -1
  440. package/node_modules/@lix-js/sdk/dist/lix/merge.test.js +0 -689
  441. package/node_modules/@lix-js/sdk/dist/lix/merge.test.js.map +0 -1
  442. package/node_modules/@lix-js/sdk/dist/lix/new-lix.d.ts +0 -8
  443. package/node_modules/@lix-js/sdk/dist/lix/new-lix.d.ts.map +0 -1
  444. package/node_modules/@lix-js/sdk/dist/lix/new-lix.js +0 -26
  445. package/node_modules/@lix-js/sdk/dist/lix/new-lix.js.map +0 -1
  446. package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.d.ts +0 -2
  447. package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.d.ts.map +0 -1
  448. package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.js +0 -21
  449. package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.js.map +0 -1
  450. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.d.ts +0 -12
  451. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.d.ts.map +0 -1
  452. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.js +0 -19
  453. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.js.map +0 -1
  454. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.d.ts +0 -2
  455. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.d.ts.map +0 -1
  456. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.js +0 -30
  457. package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.js.map +0 -1
  458. package/node_modules/@lix-js/sdk/dist/lix/open-lix.d.ts +0 -50
  459. package/node_modules/@lix-js/sdk/dist/lix/open-lix.d.ts.map +0 -1
  460. package/node_modules/@lix-js/sdk/dist/lix/open-lix.js +0 -33
  461. package/node_modules/@lix-js/sdk/dist/lix/open-lix.js.map +0 -1
  462. package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.d.ts +0 -2
  463. package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.d.ts.map +0 -1
  464. package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.js +0 -38
  465. package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.js.map +0 -1
  466. package/node_modules/@lix-js/sdk/dist/lix/to-blob.d.ts +0 -11
  467. package/node_modules/@lix-js/sdk/dist/lix/to-blob.d.ts.map +0 -1
  468. package/node_modules/@lix-js/sdk/dist/lix/to-blob.js +0 -11
  469. package/node_modules/@lix-js/sdk/dist/lix/to-blob.js.map +0 -1
  470. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.d.ts +0 -10
  471. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.d.ts.map +0 -1
  472. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.js +0 -69
  473. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.js.map +0 -1
  474. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.d.ts +0 -2
  475. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.d.ts.map +0 -1
  476. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.js +0 -297
  477. package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.js.map +0 -1
  478. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.d.ts +0 -60
  479. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.d.ts.map +0 -1
  480. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.js +0 -70
  481. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.js.map +0 -1
  482. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.d.ts +0 -2
  483. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.d.ts.map +0 -1
  484. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.js +0 -48
  485. package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.js.map +0 -1
  486. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.d.ts +0 -5
  487. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.d.ts.map +0 -1
  488. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.js +0 -135
  489. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.js.map +0 -1
  490. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.d.ts +0 -2
  491. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.d.ts.map +0 -1
  492. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.js +0 -214
  493. package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.js.map +0 -1
  494. package/node_modules/@lix-js/sdk/dist/own-change-control/index.d.ts +0 -2
  495. package/node_modules/@lix-js/sdk/dist/own-change-control/index.d.ts.map +0 -1
  496. package/node_modules/@lix-js/sdk/dist/own-change-control/index.js +0 -2
  497. package/node_modules/@lix-js/sdk/dist/own-change-control/index.js.map +0 -1
  498. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.d.ts +0 -3
  499. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.d.ts.map +0 -1
  500. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.js +0 -28
  501. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.js.map +0 -1
  502. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.d.ts +0 -2
  503. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.d.ts.map +0 -1
  504. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.js +0 -49
  505. package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.js.map +0 -1
  506. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.d.ts +0 -10
  507. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.d.ts.map +0 -1
  508. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.js +0 -69
  509. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.js.map +0 -1
  510. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.d.ts +0 -2
  511. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.d.ts.map +0 -1
  512. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.js +0 -297
  513. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.js.map +0 -1
  514. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.d.ts +0 -61
  515. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.d.ts.map +0 -1
  516. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.js +0 -71
  517. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.js.map +0 -1
  518. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.d.ts +0 -2
  519. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.d.ts.map +0 -1
  520. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.js +0 -48
  521. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.js.map +0 -1
  522. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.d.ts +0 -5
  523. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.d.ts.map +0 -1
  524. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.js +0 -135
  525. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.js.map +0 -1
  526. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.d.ts +0 -2
  527. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.d.ts.map +0 -1
  528. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.js +0 -214
  529. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.js.map +0 -1
  530. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.d.ts +0 -2
  531. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.d.ts.map +0 -1
  532. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.js +0 -2
  533. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.js.map +0 -1
  534. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.d.ts +0 -3
  535. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.d.ts.map +0 -1
  536. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.js +0 -24
  537. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.js.map +0 -1
  538. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.d.ts +0 -2
  539. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.d.ts.map +0 -1
  540. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.js +0 -49
  541. package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.js.map +0 -1
  542. package/node_modules/@lix-js/sdk/dist/plugin/index.d.ts +0 -2
  543. package/node_modules/@lix-js/sdk/dist/plugin/index.d.ts.map +0 -1
  544. package/node_modules/@lix-js/sdk/dist/plugin/index.js +0 -2
  545. package/node_modules/@lix-js/sdk/dist/plugin/index.js.map +0 -1
  546. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.d.ts +0 -114
  547. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.d.ts.map +0 -1
  548. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.js +0 -2
  549. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.js.map +0 -1
  550. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.d.ts +0 -2
  551. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.d.ts.map +0 -1
  552. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.js +0 -40
  553. package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.js.map +0 -1
  554. package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.d.ts +0 -5
  555. package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.d.ts.map +0 -1
  556. package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.js +0 -20
  557. package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.js.map +0 -1
  558. package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.d.ts +0 -11
  559. package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.d.ts.map +0 -1
  560. package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.js +0 -15
  561. package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.js.map +0 -1
  562. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.d.ts +0 -15
  563. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.d.ts.map +0 -1
  564. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.js +0 -18
  565. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.js.map +0 -1
  566. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.d.ts +0 -2
  567. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.d.ts.map +0 -1
  568. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.js +0 -55
  569. package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.js.map +0 -1
  570. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.d.ts +0 -25
  571. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.d.ts.map +0 -1
  572. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.js +0 -30
  573. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.js.map +0 -1
  574. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.d.ts +0 -2
  575. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.d.ts.map +0 -1
  576. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.js +0 -46
  577. package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.js.map +0 -1
  578. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.d.ts +0 -16
  579. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.d.ts.map +0 -1
  580. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.js +0 -29
  581. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.js.map +0 -1
  582. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.d.ts +0 -2
  583. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.d.ts.map +0 -1
  584. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.js +0 -75
  585. package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.js.map +0 -1
  586. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.d.ts +0 -16
  587. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.d.ts.map +0 -1
  588. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.js +0 -35
  589. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.js.map +0 -1
  590. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.d.ts +0 -2
  591. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.d.ts.map +0 -1
  592. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.js +0 -70
  593. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.js.map +0 -1
  594. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.d.ts +0 -2
  595. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.d.ts.map +0 -1
  596. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.js +0 -132
  597. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.js.map +0 -1
  598. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.d.ts +0 -29
  599. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.d.ts.map +0 -1
  600. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.js +0 -44
  601. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.js.map +0 -1
  602. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.d.ts +0 -2
  603. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.d.ts.map +0 -1
  604. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.js +0 -71
  605. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.js.map +0 -1
  606. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.d.ts +0 -18
  607. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.d.ts.map +0 -1
  608. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.js +0 -18
  609. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.js.map +0 -1
  610. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.d.ts +0 -2
  611. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.d.ts.map +0 -1
  612. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.js +0 -122
  613. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.js.map +0 -1
  614. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.d.ts +0 -16
  615. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.d.ts.map +0 -1
  616. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.js +0 -55
  617. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.js.map +0 -1
  618. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.d.ts +0 -2
  619. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.d.ts.map +0 -1
  620. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.js +0 -155
  621. package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.js.map +0 -1
  622. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.d.ts +0 -25
  623. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.d.ts.map +0 -1
  624. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.js +0 -29
  625. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.js.map +0 -1
  626. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.d.ts +0 -2
  627. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.d.ts.map +0 -1
  628. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.js +0 -43
  629. package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.js.map +0 -1
  630. package/node_modules/@lix-js/sdk/dist/query-filter/index.d.ts +0 -9
  631. package/node_modules/@lix-js/sdk/dist/query-filter/index.d.ts.map +0 -1
  632. package/node_modules/@lix-js/sdk/dist/query-filter/index.js +0 -9
  633. package/node_modules/@lix-js/sdk/dist/query-filter/index.js.map +0 -1
  634. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.d.ts +0 -18
  635. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.d.ts.map +0 -1
  636. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.js +0 -25
  637. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.js.map +0 -1
  638. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.d.ts +0 -2
  639. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.d.ts.map +0 -1
  640. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.js +0 -85
  641. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.js.map +0 -1
  642. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.d.ts +0 -19
  643. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.d.ts.map +0 -1
  644. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.js +0 -36
  645. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.js.map +0 -1
  646. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.d.ts +0 -2
  647. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.d.ts.map +0 -1
  648. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.js +0 -84
  649. package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.js.map +0 -1
  650. package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.d.ts +0 -48
  651. package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.d.ts.map +0 -1
  652. package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.js +0 -68
  653. package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.js.map +0 -1
  654. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.d.ts +0 -8
  655. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.d.ts.map +0 -1
  656. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.js +0 -97
  657. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.js.map +0 -1
  658. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.d.ts +0 -2
  659. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.d.ts.map +0 -1
  660. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.js +0 -103
  661. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.js.map +0 -1
  662. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.d.ts +0 -53
  663. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.d.ts.map +0 -1
  664. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.js +0 -2
  665. package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.js.map +0 -1
  666. package/node_modules/@lix-js/sdk/dist/server-api-handler/index.d.ts +0 -3
  667. package/node_modules/@lix-js/sdk/dist/server-api-handler/index.d.ts.map +0 -1
  668. package/node_modules/@lix-js/sdk/dist/server-api-handler/index.js +0 -3
  669. package/node_modules/@lix-js/sdk/dist/server-api-handler/index.js.map +0 -1
  670. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.d.ts +0 -3
  671. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.d.ts.map +0 -1
  672. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.js +0 -44
  673. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.js.map +0 -1
  674. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.d.ts +0 -2
  675. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.d.ts.map +0 -1
  676. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.js +0 -108
  677. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.js.map +0 -1
  678. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.d.ts +0 -3
  679. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.d.ts.map +0 -1
  680. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.js +0 -38
  681. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.js.map +0 -1
  682. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.d.ts +0 -2
  683. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.d.ts.map +0 -1
  684. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.js +0 -72
  685. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.js.map +0 -1
  686. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.d.ts +0 -3
  687. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.d.ts.map +0 -1
  688. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.js +0 -41
  689. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.js.map +0 -1
  690. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.d.ts +0 -2
  691. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.d.ts.map +0 -1
  692. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.js +0 -146
  693. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.js.map +0 -1
  694. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.d.ts +0 -3
  695. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.d.ts.map +0 -1
  696. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.js +0 -142
  697. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.js.map +0 -1
  698. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.d.ts +0 -2
  699. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.d.ts.map +0 -1
  700. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.js +0 -231
  701. package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.js.map +0 -1
  702. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.d.ts +0 -18
  703. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.d.ts.map +0 -1
  704. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.js +0 -33
  705. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.js.map +0 -1
  706. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.d.ts +0 -2
  707. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.d.ts.map +0 -1
  708. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.js +0 -54
  709. package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.js.map +0 -1
  710. package/node_modules/@lix-js/sdk/dist/snapshot/index.d.ts +0 -3
  711. package/node_modules/@lix-js/sdk/dist/snapshot/index.d.ts.map +0 -1
  712. package/node_modules/@lix-js/sdk/dist/snapshot/index.js +0 -3
  713. package/node_modules/@lix-js/sdk/dist/snapshot/index.js.map +0 -1
  714. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.d.ts +0 -8
  715. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.d.ts.map +0 -1
  716. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.js +0 -29
  717. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.js.map +0 -1
  718. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.d.ts +0 -2
  719. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.d.ts.map +0 -1
  720. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.js +0 -10
  721. package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.js.map +0 -1
  722. package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.d.ts +0 -8
  723. package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.d.ts.map +0 -1
  724. package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.js +0 -13
  725. package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.js.map +0 -1
  726. package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.d.ts +0 -16
  727. package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.d.ts.map +0 -1
  728. package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.js +0 -62
  729. package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.js.map +0 -1
  730. package/node_modules/@lix-js/sdk/dist/sync/merge-state.d.ts +0 -20
  731. package/node_modules/@lix-js/sdk/dist/sync/merge-state.d.ts.map +0 -1
  732. package/node_modules/@lix-js/sdk/dist/sync/merge-state.js +0 -237
  733. package/node_modules/@lix-js/sdk/dist/sync/merge-state.js.map +0 -1
  734. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.d.ts +0 -8
  735. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.d.ts.map +0 -1
  736. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.js +0 -113
  737. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.js.map +0 -1
  738. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.d.ts +0 -2
  739. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.d.ts.map +0 -1
  740. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.js +0 -340
  741. package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.js.map +0 -1
  742. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.d.ts +0 -12
  743. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.d.ts.map +0 -1
  744. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.js +0 -35
  745. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.js.map +0 -1
  746. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.d.ts +0 -2
  747. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.d.ts.map +0 -1
  748. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.js +0 -308
  749. package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.js.map +0 -1
  750. package/node_modules/@lix-js/sdk/dist/sync/sync-process.d.ts +0 -5
  751. package/node_modules/@lix-js/sdk/dist/sync/sync-process.d.ts.map +0 -1
  752. package/node_modules/@lix-js/sdk/dist/sync/sync-process.js +0 -74
  753. package/node_modules/@lix-js/sdk/dist/sync/sync-process.js.map +0 -1
  754. package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.d.ts +0 -2
  755. package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.d.ts.map +0 -1
  756. package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.js +0 -243
  757. package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.js.map +0 -1
  758. package/node_modules/@lix-js/sdk/dist/version/create-version.d.ts +0 -27
  759. package/node_modules/@lix-js/sdk/dist/version/create-version.d.ts.map +0 -1
  760. package/node_modules/@lix-js/sdk/dist/version/create-version.js +0 -74
  761. package/node_modules/@lix-js/sdk/dist/version/create-version.js.map +0 -1
  762. package/node_modules/@lix-js/sdk/dist/version/create-version.test.d.ts +0 -2
  763. package/node_modules/@lix-js/sdk/dist/version/create-version.test.d.ts.map +0 -1
  764. package/node_modules/@lix-js/sdk/dist/version/create-version.test.js +0 -126
  765. package/node_modules/@lix-js/sdk/dist/version/create-version.test.js.map +0 -1
  766. package/node_modules/@lix-js/sdk/dist/version/index.d.ts +0 -8
  767. package/node_modules/@lix-js/sdk/dist/version/index.d.ts.map +0 -1
  768. package/node_modules/@lix-js/sdk/dist/version/index.js +0 -8
  769. package/node_modules/@lix-js/sdk/dist/version/index.js.map +0 -1
  770. package/node_modules/@lix-js/sdk/dist/version/merge-version.d.ts +0 -8
  771. package/node_modules/@lix-js/sdk/dist/version/merge-version.d.ts.map +0 -1
  772. package/node_modules/@lix-js/sdk/dist/version/merge-version.js +0 -67
  773. package/node_modules/@lix-js/sdk/dist/version/merge-version.js.map +0 -1
  774. package/node_modules/@lix-js/sdk/dist/version/merge-version.test.d.ts +0 -2
  775. package/node_modules/@lix-js/sdk/dist/version/merge-version.test.d.ts.map +0 -1
  776. package/node_modules/@lix-js/sdk/dist/version/merge-version.test.js +0 -434
  777. package/node_modules/@lix-js/sdk/dist/version/merge-version.test.js.map +0 -1
  778. package/node_modules/@lix-js/sdk/dist/version/switch-version.d.ts +0 -27
  779. package/node_modules/@lix-js/sdk/dist/version/switch-version.d.ts.map +0 -1
  780. package/node_modules/@lix-js/sdk/dist/version/switch-version.js +0 -91
  781. package/node_modules/@lix-js/sdk/dist/version/switch-version.js.map +0 -1
  782. package/node_modules/@lix-js/sdk/dist/version/switch-version.test.d.ts +0 -2
  783. package/node_modules/@lix-js/sdk/dist/version/switch-version.test.d.ts.map +0 -1
  784. package/node_modules/@lix-js/sdk/dist/version/switch-version.test.js +0 -227
  785. package/node_modules/@lix-js/sdk/dist/version/switch-version.test.js.map +0 -1
  786. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.d.ts +0 -13
  787. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.d.ts.map +0 -1
  788. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.js +0 -36
  789. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.js.map +0 -1
  790. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.d.ts +0 -2
  791. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.d.ts.map +0 -1
  792. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.js +0 -323
  793. package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.js.map +0 -1
  794. package/node_modules/@lix-js/sdk/package.json +0 -52
  795. package/node_modules/@lix-js/sdk/src/account/create-account.test.ts +0 -26
  796. package/node_modules/@lix-js/sdk/src/account/create-account.ts +0 -26
  797. package/node_modules/@lix-js/sdk/src/account/database-schema.test.ts +0 -187
  798. package/node_modules/@lix-js/sdk/src/account/database-schema.ts +0 -58
  799. package/node_modules/@lix-js/sdk/src/account/index.ts +0 -3
  800. package/node_modules/@lix-js/sdk/src/account/switch-account.test.ts +0 -63
  801. package/node_modules/@lix-js/sdk/src/account/switch-account.ts +0 -39
  802. package/node_modules/@lix-js/sdk/src/change/apply-changes.test.ts +0 -268
  803. package/node_modules/@lix-js/sdk/src/change/apply-changes.ts +0 -114
  804. package/node_modules/@lix-js/sdk/src/change/create-change.test.ts +0 -296
  805. package/node_modules/@lix-js/sdk/src/change/create-change.ts +0 -129
  806. package/node_modules/@lix-js/sdk/src/change/index.ts +0 -2
  807. package/node_modules/@lix-js/sdk/src/change/mock-change.ts +0 -21
  808. package/node_modules/@lix-js/sdk/src/change-conflict/create-change-conflict.test.ts +0 -173
  809. package/node_modules/@lix-js/sdk/src/change-conflict/create-change-conflict.ts +0 -105
  810. package/node_modules/@lix-js/sdk/src/change-conflict/detect-change-conflicts.test.ts +0 -215
  811. package/node_modules/@lix-js/sdk/src/change-conflict/detect-change-conflicts.ts +0 -65
  812. package/node_modules/@lix-js/sdk/src/change-conflict/detect-diverging-entity-conflict.test.ts +0 -228
  813. package/node_modules/@lix-js/sdk/src/change-conflict/detect-diverging-entity-conflict.ts +0 -82
  814. package/node_modules/@lix-js/sdk/src/change-conflict/garbage-collect-change-conflicts.test.ts +0 -219
  815. package/node_modules/@lix-js/sdk/src/change-conflict/garbage-collect-change-conflicts.ts +0 -96
  816. package/node_modules/@lix-js/sdk/src/change-conflict/index.ts +0 -3
  817. package/node_modules/@lix-js/sdk/src/change-conflict/resolve-conflict-by-selecting.test.ts +0 -118
  818. package/node_modules/@lix-js/sdk/src/change-conflict/resolve-conflict-by-selecting.ts +0 -66
  819. package/node_modules/@lix-js/sdk/src/change-conflict/update-change-conflicts.ts +0 -79
  820. package/node_modules/@lix-js/sdk/src/change-schema/README.md +0 -3
  821. package/node_modules/@lix-js/sdk/src/change-schema/index.ts +0 -4
  822. package/node_modules/@lix-js/sdk/src/change-schema/types.test-d.ts +0 -52
  823. package/node_modules/@lix-js/sdk/src/change-schema/types.ts +0 -53
  824. package/node_modules/@lix-js/sdk/src/change-set/change-set-element-in-symmetric-difference.test.ts +0 -128
  825. package/node_modules/@lix-js/sdk/src/change-set/change-set-element-in-symmetric-difference.ts +0 -52
  826. package/node_modules/@lix-js/sdk/src/change-set/create-change-set.test.ts +0 -43
  827. package/node_modules/@lix-js/sdk/src/change-set/create-change-set.ts +0 -41
  828. package/node_modules/@lix-js/sdk/src/change-set/index.ts +0 -2
  829. package/node_modules/@lix-js/sdk/src/database/apply-schema.ts +0 -270
  830. package/node_modules/@lix-js/sdk/src/database/execute-sync.test.ts +0 -152
  831. package/node_modules/@lix-js/sdk/src/database/execute-sync.ts +0 -47
  832. package/node_modules/@lix-js/sdk/src/database/index.ts +0 -4
  833. package/node_modules/@lix-js/sdk/src/database/init-db.test.ts +0 -628
  834. package/node_modules/@lix-js/sdk/src/database/init-db.ts +0 -111
  835. package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v1.test.ts +0 -204
  836. package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v1.ts +0 -55
  837. package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.ts +0 -204
  838. package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v2.ts +0 -194
  839. package/node_modules/@lix-js/sdk/src/database/kysely-plugin/serialize-jsonb-plugin.test.ts +0 -132
  840. package/node_modules/@lix-js/sdk/src/database/kysely-plugin/serialize-jsonb-plugin.ts +0 -122
  841. package/node_modules/@lix-js/sdk/src/database/mutation-log/database-schema.ts +0 -126
  842. package/node_modules/@lix-js/sdk/src/database/mutation-log/lix-session.ts +0 -19
  843. package/node_modules/@lix-js/sdk/src/database/nano-id.test.ts +0 -15
  844. package/node_modules/@lix-js/sdk/src/database/nano-id.ts +0 -72
  845. package/node_modules/@lix-js/sdk/src/database/schema.ts +0 -273
  846. package/node_modules/@lix-js/sdk/src/discussion/create-comment.ts +0 -18
  847. package/node_modules/@lix-js/sdk/src/discussion/create-discussion.test.ts +0 -45
  848. package/node_modules/@lix-js/sdk/src/discussion/create-discussion.ts +0 -48
  849. package/node_modules/@lix-js/sdk/src/discussion/index.ts +0 -2
  850. package/node_modules/@lix-js/sdk/src/file/index.ts +0 -1
  851. package/node_modules/@lix-js/sdk/src/file/validate-file-path.test.ts +0 -44
  852. package/node_modules/@lix-js/sdk/src/file/validate-file-path.ts +0 -60
  853. package/node_modules/@lix-js/sdk/src/file-queue/file-handlers.ts +0 -273
  854. package/node_modules/@lix-js/sdk/src/file-queue/file-queue-process.test.ts +0 -457
  855. package/node_modules/@lix-js/sdk/src/file-queue/file-queue-process.ts +0 -101
  856. package/node_modules/@lix-js/sdk/src/file-queue/file-queue-settled.test.ts +0 -56
  857. package/node_modules/@lix-js/sdk/src/file-queue/file-queue-settled.ts +0 -31
  858. package/node_modules/@lix-js/sdk/src/file-queue/index.ts +0 -1
  859. package/node_modules/@lix-js/sdk/src/file-queue/with-skip-file-queue.test.ts +0 -158
  860. package/node_modules/@lix-js/sdk/src/file-queue/with-skip-file-queue.ts +0 -33
  861. package/node_modules/@lix-js/sdk/src/index.ts +0 -16
  862. package/node_modules/@lix-js/sdk/src/key-value/database-schema.test.ts +0 -140
  863. package/node_modules/@lix-js/sdk/src/key-value/database-schema.ts +0 -66
  864. package/node_modules/@lix-js/sdk/src/lix/close-lix.ts +0 -8
  865. package/node_modules/@lix-js/sdk/src/lix/index.ts +0 -7
  866. package/node_modules/@lix-js/sdk/src/lix/merge.get-leaf-changes-only-in-source.test.ts +0 -143
  867. package/node_modules/@lix-js/sdk/src/lix/merge.get-leaf-changes-only-in-source.ts +0 -46
  868. package/node_modules/@lix-js/sdk/src/lix/merge.test.ts +0 -858
  869. package/node_modules/@lix-js/sdk/src/lix/merge.ts +0 -244
  870. package/node_modules/@lix-js/sdk/src/lix/new-lix.test.ts +0 -23
  871. package/node_modules/@lix-js/sdk/src/lix/new-lix.ts +0 -29
  872. package/node_modules/@lix-js/sdk/src/lix/open-lix-in-memory.test.ts +0 -34
  873. package/node_modules/@lix-js/sdk/src/lix/open-lix-in-memory.ts +0 -28
  874. package/node_modules/@lix-js/sdk/src/lix/open-lix.test.ts +0 -45
  875. package/node_modules/@lix-js/sdk/src/lix/open-lix.ts +0 -86
  876. package/node_modules/@lix-js/sdk/src/lix/to-blob.ts +0 -14
  877. package/node_modules/@lix-js/sdk/src/own-change-control/apply-own-change.test.ts +0 -361
  878. package/node_modules/@lix-js/sdk/src/own-change-control/apply-own-change.ts +0 -110
  879. package/node_modules/@lix-js/sdk/src/own-change-control/change-controlled-tables.test.ts +0 -69
  880. package/node_modules/@lix-js/sdk/src/own-change-control/change-controlled-tables.ts +0 -102
  881. package/node_modules/@lix-js/sdk/src/own-change-control/database-triggers.test.ts +0 -259
  882. package/node_modules/@lix-js/sdk/src/own-change-control/database-triggers.ts +0 -189
  883. package/node_modules/@lix-js/sdk/src/own-change-control/index.ts +0 -1
  884. package/node_modules/@lix-js/sdk/src/own-change-control/with-skip-own-change-control.test.ts +0 -57
  885. package/node_modules/@lix-js/sdk/src/own-change-control/with-skip-own-change-control.ts +0 -34
  886. package/node_modules/@lix-js/sdk/src/plugin/index.ts +0 -6
  887. package/node_modules/@lix-js/sdk/src/plugin/lix-plugin.test-d.ts +0 -45
  888. package/node_modules/@lix-js/sdk/src/plugin/lix-plugin.ts +0 -128
  889. package/node_modules/@lix-js/sdk/src/plugin/load-plugin.ts +0 -28
  890. package/node_modules/@lix-js/sdk/src/plugin/with-transaction.ts +0 -22
  891. package/node_modules/@lix-js/sdk/src/query-filter/change-conflict-in-version.test.ts +0 -62
  892. package/node_modules/@lix-js/sdk/src/query-filter/change-conflict-in-version.ts +0 -25
  893. package/node_modules/@lix-js/sdk/src/query-filter/change-has-label.test.ts +0 -52
  894. package/node_modules/@lix-js/sdk/src/query-filter/change-has-label.ts +0 -41
  895. package/node_modules/@lix-js/sdk/src/query-filter/change-in-version.test.ts +0 -82
  896. package/node_modules/@lix-js/sdk/src/query-filter/change-in-version.ts +0 -31
  897. package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-in-version.test.ts +0 -77
  898. package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-in-version.ts +0 -36
  899. package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.bench.ts +0 -175
  900. package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.test.ts +0 -84
  901. package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.ts +0 -46
  902. package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf.test.ts +0 -140
  903. package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf.ts +0 -25
  904. package/node_modules/@lix-js/sdk/src/query-filter/change-is-lowest-common-ancestor-of.test.ts +0 -173
  905. package/node_modules/@lix-js/sdk/src/query-filter/change-is-lowest-common-ancestor-of.ts +0 -57
  906. package/node_modules/@lix-js/sdk/src/query-filter/change-set-has-label.test.ts +0 -50
  907. package/node_modules/@lix-js/sdk/src/query-filter/change-set-has-label.ts +0 -36
  908. package/node_modules/@lix-js/sdk/src/query-filter/index.ts +0 -8
  909. package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-difference.test.ts +0 -105
  910. package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-difference.ts +0 -37
  911. package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-symmetric-difference.test.ts +0 -104
  912. package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-symmetric-difference.ts +0 -52
  913. package/node_modules/@lix-js/sdk/src/server-api-handler/create-server-api-handler.ts +0 -84
  914. package/node_modules/@lix-js/sdk/src/server-api-handler/environment/create-in-memory-environment.test.ts +0 -131
  915. package/node_modules/@lix-js/sdk/src/server-api-handler/environment/create-in-memory-environment.ts +0 -115
  916. package/node_modules/@lix-js/sdk/src/server-api-handler/environment/environment.ts +0 -43
  917. package/node_modules/@lix-js/sdk/src/server-api-handler/index.ts +0 -5
  918. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/get-v1.test.ts +0 -147
  919. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/get-v1.ts +0 -61
  920. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/new-v1.test.ts +0 -103
  921. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/new-v1.ts +0 -46
  922. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/pull-v1.test.ts +0 -201
  923. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/pull-v1.ts +0 -57
  924. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/push-v1.test.ts +0 -302
  925. package/node_modules/@lix-js/sdk/src/server-api-handler/routes/push-v1.ts +0 -180
  926. package/node_modules/@lix-js/sdk/src/snapshot/create-snapshot.test.ts +0 -68
  927. package/node_modules/@lix-js/sdk/src/snapshot/create-snapshot.ts +0 -40
  928. package/node_modules/@lix-js/sdk/src/snapshot/index.ts +0 -2
  929. package/node_modules/@lix-js/sdk/src/snapshot/json-sha-256.test.ts +0 -12
  930. package/node_modules/@lix-js/sdk/src/snapshot/json-sha-256.ts +0 -35
  931. package/node_modules/@lix-js/sdk/src/snapshot/mock-json-snapshot.ts +0 -14
  932. package/node_modules/@lix-js/sdk/src/sync/get-diffing-rows.ts +0 -96
  933. package/node_modules/@lix-js/sdk/src/sync/merge-state.ts +0 -310
  934. package/node_modules/@lix-js/sdk/src/sync/pull-from-server.test.ts +0 -425
  935. package/node_modules/@lix-js/sdk/src/sync/pull-from-server.ts +0 -144
  936. package/node_modules/@lix-js/sdk/src/sync/push-to-server.test.ts +0 -391
  937. package/node_modules/@lix-js/sdk/src/sync/push-to-server.ts +0 -47
  938. package/node_modules/@lix-js/sdk/src/sync/sync-process.test.ts +0 -321
  939. package/node_modules/@lix-js/sdk/src/sync/sync-process.ts +0 -85
  940. package/node_modules/@lix-js/sdk/src/version/create-version.test.ts +0 -149
  941. package/node_modules/@lix-js/sdk/src/version/create-version.ts +0 -88
  942. package/node_modules/@lix-js/sdk/src/version/index.ts +0 -8
  943. package/node_modules/@lix-js/sdk/src/version/merge-version.test.ts +0 -530
  944. package/node_modules/@lix-js/sdk/src/version/merge-version.ts +0 -88
  945. package/node_modules/@lix-js/sdk/src/version/switch-version.test.ts +0 -292
  946. package/node_modules/@lix-js/sdk/src/version/switch-version.ts +0 -110
  947. package/node_modules/@lix-js/sdk/src/version/update-changes-in-version.test.ts +0 -371
  948. package/node_modules/@lix-js/sdk/src/version/update-changes-in-version.ts +0 -47
  949. package/node_modules/sqlite-wasm-kysely/LICENSE +0 -21
  950. package/node_modules/sqlite-wasm-kysely/README.md +0 -11
  951. package/node_modules/sqlite-wasm-kysely/dist/dialect.d.ts +0 -11
  952. package/node_modules/sqlite-wasm-kysely/dist/dialect.js +0 -13
  953. package/node_modules/sqlite-wasm-kysely/dist/dialect.js.map +0 -1
  954. package/node_modules/sqlite-wasm-kysely/dist/index.d.ts +0 -2
  955. package/node_modules/sqlite-wasm-kysely/dist/index.js +0 -3
  956. package/node_modules/sqlite-wasm-kysely/dist/index.js.map +0 -1
  957. package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.d.ts +0 -5
  958. package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.js +0 -34
  959. package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.js.map +0 -1
  960. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.d.ts +0 -8
  961. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.js +0 -57
  962. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.js.map +0 -1
  963. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.d.ts +0 -18
  964. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.js +0 -2
  965. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.js.map +0 -1
  966. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.d.ts +0 -13
  967. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.js +0 -57
  968. package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.js.map +0 -1
  969. package/node_modules/sqlite-wasm-kysely/dist/kysely/index.d.ts +0 -4
  970. package/node_modules/sqlite-wasm-kysely/dist/kysely/index.js +0 -4
  971. package/node_modules/sqlite-wasm-kysely/dist/kysely/index.js.map +0 -1
  972. package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.d.ts +0 -3
  973. package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.js +0 -5
  974. package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.js.map +0 -1
  975. package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.d.ts +0 -9
  976. package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.js +0 -12
  977. package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.js.map +0 -1
  978. package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.d.ts +0 -3
  979. package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.js +0 -22
  980. package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.js.map +0 -1
  981. package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.d.ts +0 -7
  982. package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.js +0 -15
  983. package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.js.map +0 -1
  984. package/node_modules/sqlite-wasm-kysely/dist/util/index.d.ts +0 -5
  985. package/node_modules/sqlite-wasm-kysely/dist/util/index.js +0 -5
  986. package/node_modules/sqlite-wasm-kysely/dist/util/index.js.map +0 -1
  987. package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.d.ts +0 -1
  988. package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.js +0 -13
  989. package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.js.map +0 -1
  990. package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.d.ts +0 -7
  991. package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.js +0 -17
  992. package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.js.map +0 -1
  993. package/node_modules/sqlite-wasm-kysely/package.json +0 -34
  994. package/node_modules/sqlite-wasm-kysely/src/dialect.ts +0 -15
  995. package/node_modules/sqlite-wasm-kysely/src/index.ts +0 -2
  996. package/node_modules/sqlite-wasm-kysely/src/kysely/ConnectionMutex.ts +0 -23
  997. package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmConnection.ts +0 -57
  998. package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmDialectConfig.ts +0 -19
  999. package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmDriver.ts +0 -58
  1000. package/node_modules/sqlite-wasm-kysely/src/kysely/index.ts +0 -4
  1001. package/node_modules/sqlite-wasm-kysely/src/kysely/sqliteModule.ts +0 -7
  1002. package/node_modules/sqlite-wasm-kysely/src/util/contentFromDatabase.ts +0 -13
  1003. package/node_modules/sqlite-wasm-kysely/src/util/createInMemoryDatabase.ts +0 -30
  1004. package/node_modules/sqlite-wasm-kysely/src/util/importDatabase.ts +0 -34
  1005. package/node_modules/sqlite-wasm-kysely/src/util/index.ts +0 -5
  1006. package/node_modules/sqlite-wasm-kysely/src/util/loadDatabaseInMemory.ts +0 -13
  1007. package/node_modules/sqlite-wasm-kysely/src/util/sqliteWasmBinary.ts +0 -20
  1008. package/src/project/state/README.md +0 -22
  1009. package/src/project/state/id$.test.ts +0 -40
  1010. package/src/project/state/id$.ts +0 -21
  1011. package/src/project/state/setSettings.test.ts +0 -73
  1012. package/src/project/state/setSettings.ts +0 -19
  1013. package/src/project/state/settings$.test.ts +0 -63
  1014. package/src/project/state/settings$.ts +0 -26
  1015. package/src/project/state/state.test.ts +0 -128
  1016. package/src/project/state/state.ts +0 -94
  1017. package/src/query-utilities/pollQuery.test.ts +0 -88
  1018. package/src/query-utilities/pollQuery.ts +0 -26
@@ -1,228 +0,0 @@
1
- import { expect, test } from "vitest";
2
- import type { Change } from "../database/schema.js";
3
- import { openLixInMemory } from "../lix/open-lix-in-memory.js";
4
- import {
5
- detectDivergingEntityConflict,
6
- LIX_DIVERGING_ENTITY_CONFLICT_KEY,
7
- } from "./detect-diverging-entity-conflict.js";
8
- import type { DetectedConflict } from "../plugin/lix-plugin.js";
9
-
10
- test("it should detect a diverging entity conflict", async () => {
11
- const lix = await openLixInMemory({});
12
-
13
- const mockChanges = [
14
- {
15
- id: "change0",
16
- created_at: "mock",
17
- plugin_key: "plugin1",
18
- schema_key: "mock",
19
- file_id: "mock",
20
- entity_id: "value1",
21
- snapshot_id: "no-content",
22
- },
23
- {
24
- id: "change1",
25
- created_at: "mock",
26
- plugin_key: "plugin1",
27
- file_id: "mock",
28
- entity_id: "value1",
29
- schema_key: "mock",
30
- snapshot_id: "no-content",
31
- },
32
- {
33
- id: "change2",
34
- created_at: "mock",
35
- plugin_key: "plugin1",
36
- file_id: "mock",
37
- entity_id: "value1",
38
- schema_key: "mock",
39
- snapshot_id: "no-content",
40
- },
41
- ] as const satisfies Change[];
42
-
43
- await lix.db
44
- .insertInto("change")
45
- .values(mockChanges)
46
- .returningAll()
47
- .execute();
48
-
49
- await lix.db
50
- .insertInto("change_edge")
51
- .values([
52
- { parent_id: "change0", child_id: "change1" },
53
- { parent_id: "change0", child_id: "change2" },
54
- ])
55
- .execute();
56
-
57
- const result = await detectDivergingEntityConflict({
58
- lix: lix,
59
- changes: [mockChanges[1], mockChanges[2]],
60
- });
61
-
62
- expect(result).toEqual({
63
- key: LIX_DIVERGING_ENTITY_CONFLICT_KEY,
64
- conflictingChangeIds: new Set(["change1", "change2"]),
65
- } satisfies DetectedConflict);
66
- });
67
-
68
- test("it should return a conflict if no common ancestor is found (two clients created different entities without being aware of it (aka distributed system))", async () => {
69
- const lix = await openLixInMemory({});
70
-
71
- const mockChanges = [
72
- {
73
- id: "change0",
74
- created_at: "mock",
75
- plugin_key: "plugin1",
76
- schema_key: "mock",
77
- file_id: "mock",
78
- entity_id: "value1",
79
- snapshot_id: "no-content",
80
- },
81
- {
82
- id: "change1",
83
- created_at: "mock",
84
- plugin_key: "plugin1",
85
- schema_key: "mock",
86
- file_id: "mock",
87
- entity_id: "value1",
88
- snapshot_id: "no-content",
89
- },
90
- {
91
- id: "change2",
92
- created_at: "mock",
93
- plugin_key: "plugin1",
94
- schema_key: "mock",
95
- file_id: "mock",
96
- entity_id: "value2",
97
- snapshot_id: "no-content",
98
- },
99
- ] as const satisfies Change[];
100
-
101
- await lix.db
102
- .insertInto("change")
103
- .values(mockChanges)
104
- .returningAll()
105
- .execute();
106
-
107
- const result = await detectDivergingEntityConflict({
108
- lix: lix,
109
- changes: [mockChanges[0], mockChanges[1]],
110
- });
111
-
112
- expect(result).toEqual({
113
- key: LIX_DIVERGING_ENTITY_CONFLICT_KEY,
114
- conflictingChangeIds: new Set(["change0", "change1"]),
115
- } satisfies DetectedConflict);
116
- });
117
-
118
- test("it should return undefined if one of either change is the lowest common ancestor", async () => {
119
- const lix = await openLixInMemory({});
120
-
121
- const mockChanges = [
122
- {
123
- id: "change0",
124
- created_at: "mock",
125
- plugin_key: "plugin1",
126
- schema_key: "mock",
127
- file_id: "mock",
128
- entity_id: "value1",
129
- snapshot_id: "no-content",
130
- },
131
- {
132
- id: "change1",
133
- created_at: "mock",
134
- plugin_key: "plugin1",
135
- file_id: "mock",
136
- entity_id: "value1",
137
- schema_key: "mock",
138
- snapshot_id: "no-content",
139
- },
140
- ] as const satisfies Change[];
141
-
142
- await lix.db
143
- .insertInto("change")
144
- .values(mockChanges)
145
- .returningAll()
146
- .execute();
147
-
148
- await lix.db
149
- .insertInto("change_edge")
150
- .values([
151
- // change 1 is the lowest common ancestor of change2
152
- { parent_id: "change0", child_id: "change1" },
153
- ])
154
- .execute();
155
-
156
- const result = await detectDivergingEntityConflict({
157
- lix: lix,
158
- changes: [mockChanges[0], mockChanges[1]],
159
- });
160
-
161
- expect(result).toBeUndefined();
162
- });
163
-
164
- test("it should detect a diverging entity conflict with multiple divering entity changes", async () => {
165
- const lix = await openLixInMemory({});
166
-
167
- const mockChanges = [
168
- {
169
- id: "change0",
170
- created_at: "mock",
171
- plugin_key: "plugin1",
172
- schema_key: "mock",
173
- file_id: "mock",
174
- entity_id: "value1",
175
- snapshot_id: "no-content",
176
- },
177
- {
178
- id: "change1",
179
- created_at: "mock",
180
- plugin_key: "plugin1",
181
- file_id: "mock",
182
- entity_id: "value1",
183
- schema_key: "mock",
184
- snapshot_id: "no-content",
185
- },
186
- {
187
- id: "change2",
188
- created_at: "mock",
189
- plugin_key: "plugin1",
190
- file_id: "mock",
191
- entity_id: "value1",
192
- schema_key: "mock",
193
- snapshot_id: "no-content",
194
- },
195
- {
196
- id: "change3",
197
- created_at: "mock",
198
- plugin_key: "plugin1",
199
- file_id: "mock",
200
- entity_id: "value1",
201
- schema_key: "mock",
202
- snapshot_id: "no-content",
203
- },
204
- ] as const satisfies Change[];
205
-
206
- await lix.db.insertInto("change").values(mockChanges).execute();
207
-
208
- await lix.db
209
- .insertInto("change_edge")
210
- .values([
211
- // change 0 is the lowest common ancestor of change1, change2, and change3
212
- // which means that 1,2,3 are diverging
213
- { parent_id: "change0", child_id: "change1" },
214
- { parent_id: "change0", child_id: "change2" },
215
- { parent_id: "change0", child_id: "change3" },
216
- ])
217
- .execute();
218
-
219
- const result = await detectDivergingEntityConflict({
220
- lix: lix,
221
- changes: [mockChanges[1], mockChanges[2], mockChanges[3]],
222
- });
223
-
224
- expect(result).toEqual({
225
- key: LIX_DIVERGING_ENTITY_CONFLICT_KEY,
226
- conflictingChangeIds: new Set(["change1", "change2", "change3"]),
227
- } satisfies DetectedConflict);
228
- });
@@ -1,82 +0,0 @@
1
- import type { Change } from "../database/schema.js";
2
- import type { DetectedConflict, LixReadonly } from "../plugin/lix-plugin.js";
3
- import { changeIsLowestCommonAncestorOf } from "../query-filter/change-is-lowest-common-ancestor-of.js";
4
-
5
- export const LIX_DIVERGING_ENTITY_CONFLICT_KEY =
6
- "lix-diverging-entity-conflict";
7
-
8
- /**
9
- * Detects a diverging entity conflict between two changes.
10
- *
11
- * When two changes are diverging, it means that they are
12
- * based on the same entity state, but have different
13
- * changes to the entity.
14
- *
15
- * A diverging entity conflict usually happens when two users
16
- * are working on the same entity and both have made changes
17
- * to the entity but are not in sync.
18
- *
19
- * @note
20
- * Filter out changes that are not based on the same entity
21
- * before calling this function to reduce the number of
22
- * comparisons.
23
- *
24
- * @example
25
- * const detectedConflict = await detectDivergingEntityConflict({
26
- * lix: lix,
27
- * changes: [changeA, changeB],
28
- * });
29
- *
30
- * @returns The detected conflict or undefined if no conflict was detected.
31
- */
32
- export async function detectDivergingEntityConflict(args: {
33
- lix: Pick<LixReadonly, "db">;
34
- changes: Pick<Change, "id" | "entity_id" | "file_id" | "schema_key">[];
35
- }): Promise<DetectedConflict | undefined> {
36
- const conflictingChangeIds = new Set<string>();
37
-
38
- // iterate over all pairs of changes
39
- for (let i = 0; i < args.changes.length; i++) {
40
- for (let j = i + 1; j < args.changes.length; j++) {
41
- const changeA = args.changes[i];
42
- const changeB = args.changes[j];
43
-
44
- if (changeA === undefined || changeB === undefined) {
45
- continue;
46
- }
47
-
48
- // the primary key differs, the changes can't be diverging
49
- // because they are based on different entities
50
- if (
51
- changeA.entity_id !== changeB.entity_id ||
52
- changeA.file_id !== changeB.file_id ||
53
- changeA.schema_key !== changeB.schema_key
54
- ) {
55
- continue;
56
- }
57
-
58
- const lowestCommonAncestor = await args.lix.db
59
- .selectFrom("change")
60
- .where(changeIsLowestCommonAncestorOf([changeA, changeB]))
61
- .select("id")
62
- .executeTakeFirst();
63
-
64
- // change a or b is the lowest common ancestor, aka no divergence
65
- if (
66
- changeA.id === lowestCommonAncestor?.id ||
67
- changeB.id === lowestCommonAncestor?.id
68
- ) {
69
- continue;
70
- }
71
- conflictingChangeIds.add(changeA.id);
72
- conflictingChangeIds.add(changeB.id);
73
- }
74
- }
75
- if (conflictingChangeIds.size === 0) {
76
- return undefined;
77
- }
78
- return {
79
- key: LIX_DIVERGING_ENTITY_CONFLICT_KEY,
80
- conflictingChangeIds,
81
- };
82
- }
@@ -1,219 +0,0 @@
1
- import { test, expect } from "vitest";
2
- import { openLixInMemory } from "../lix/open-lix-in-memory.js";
3
- import { garbageCollectChangeConflicts } from "./garbage-collect-change-conflicts.js";
4
- import { createChangeConflict } from "./create-change-conflict.js";
5
- import { createVersion } from "../version/create-version.js";
6
- import { updateChangesInVersion } from "../version/update-changes-in-version.js";
7
-
8
- // garbage collection is not used atm
9
- test.skip("should garbage collect conflicts that contain one or more changes that no version change pointer references (anymore)", async () => {
10
- const lix = await openLixInMemory({});
11
-
12
- const version0 = await createVersion({ lix, name: "version0" });
13
-
14
- const changes = await lix.db
15
- .insertInto("change")
16
- .values([
17
- {
18
- id: "change0",
19
- plugin_key: "mock-plugin",
20
- schema_key: "mock",
21
- file_id: "mock",
22
- entity_id: "value0",
23
- snapshot_id: "no-content",
24
- },
25
- {
26
- id: "change1",
27
- plugin_key: "mock-plugin",
28
- schema_key: "mock",
29
- file_id: "mock",
30
- entity_id: "value1",
31
- snapshot_id: "no-content",
32
- },
33
- {
34
- id: "change2",
35
- plugin_key: "mock-plugin",
36
- schema_key: "mock",
37
- file_id: "mock",
38
- entity_id: "value2",
39
- snapshot_id: "no-content",
40
- },
41
- ])
42
- .returningAll()
43
- .execute();
44
-
45
- // Create change conflicts
46
- const mockConflict0 = await createChangeConflict({
47
- lix,
48
- version: version0,
49
- key: "mock-conflict0",
50
- conflictingChangeIds: new Set(["change0", "change1"]),
51
- });
52
-
53
- await createChangeConflict({
54
- lix,
55
- version: version0,
56
- key: "mock-conflict1",
57
- conflictingChangeIds: new Set(["change1", "change2"]),
58
- });
59
-
60
- // Insert version change pointers (only for change0 and change1)
61
- // change2 is not referenced by any version change pointer
62
- // and should be garbage collected
63
- await updateChangesInVersion({
64
- lix,
65
- version: version0,
66
- changes: [changes[0]!, changes[1]!],
67
- });
68
-
69
- // Run garbage collection
70
- await garbageCollectChangeConflicts({ lix });
71
-
72
- // Check remaining conflicts
73
- const remainingConflicts = await lix.db
74
- .selectFrom("change_conflict")
75
- .selectAll()
76
- .execute();
77
-
78
- expect(remainingConflicts.length).toBe(1);
79
- expect(remainingConflicts[0]?.id).toBe(mockConflict0.id);
80
-
81
- // Check remaining conflict elements
82
- const remainingConflictElements = await lix.db
83
- .selectFrom("change_set_element")
84
- .innerJoin(
85
- "change_conflict",
86
- "change_conflict.change_set_id",
87
- "change_set_element.change_set_id"
88
- )
89
- .selectAll()
90
- .execute();
91
-
92
- expect(remainingConflictElements.length).toBe(2);
93
- expect(remainingConflictElements[0]?.change_id).toBe(mockConflict0.id);
94
- expect(remainingConflictElements[1]?.change_id).toBe(mockConflict0.id);
95
-
96
- // Check remaining version change conflict pointers
97
- const remainingVersionChangeConflictPointers = await lix.db
98
- .selectFrom("version_change_conflict")
99
- .selectAll()
100
- .execute();
101
-
102
- expect(remainingVersionChangeConflictPointers.length).toBe(1);
103
- expect(remainingVersionChangeConflictPointers[0]?.change_conflict_id).toBe(
104
- mockConflict0.id
105
- );
106
- });
107
-
108
- test("should garbage collect conflicts that no version references", async () => {
109
- const lix = await openLixInMemory({});
110
-
111
- const changes = await lix.db
112
- .insertInto("change")
113
- .values([
114
- {
115
- id: "change0",
116
- plugin_key: "mock-plugin",
117
- schema_key: "mock",
118
- file_id: "mock",
119
- entity_id: "value0",
120
- snapshot_id: "no-content",
121
- },
122
- {
123
- id: "change1",
124
- plugin_key: "mock-plugin",
125
- schema_key: "mock",
126
- file_id: "mock",
127
- entity_id: "value1",
128
- snapshot_id: "no-content",
129
- },
130
- ])
131
- .returningAll()
132
- .execute();
133
-
134
- const version0 = await createVersion({ lix, name: "version0" });
135
-
136
- const mockConflict0 = await createChangeConflict({
137
- lix,
138
- version: version0,
139
- key: "mock-conflict0",
140
- conflictingChangeIds: new Set(["change0", "change1"]),
141
- });
142
-
143
- // version points to changes 0 and 1
144
-
145
- await updateChangesInVersion({
146
- lix,
147
- version: version0,
148
- changes: [changes[0]!, changes[1]!],
149
- });
150
-
151
- // delete the conflict pointers mockConflict0
152
- await lix.db
153
- .deleteFrom("version_change_conflict")
154
- .where("change_conflict_id", "=", mockConflict0.id)
155
- .execute();
156
-
157
- // Run garbage collection
158
- const gc0 = await garbageCollectChangeConflicts({ lix });
159
-
160
- expect(gc0.deletedChangeConflicts.length).toBe(1);
161
- expect(gc0.deletedChangeConflicts.length).toBe(1);
162
- expect(gc0.deletedChangeConflicts[0]?.id).toBe(mockConflict0.id);
163
- });
164
-
165
- test("should NOT garbage collect conflicts that a version change conflict pointer references and where each change is referenced by a version change pointer", async () => {
166
- const lix = await openLixInMemory({});
167
-
168
- const changes = await lix.db
169
- .insertInto("change")
170
- .values([
171
- {
172
- id: "change0",
173
- plugin_key: "mock-plugin",
174
- schema_key: "mock",
175
- file_id: "mock",
176
- entity_id: "value0",
177
- snapshot_id: "no-content",
178
- },
179
- {
180
- id: "change1",
181
- plugin_key: "mock-plugin",
182
- schema_key: "mock",
183
- file_id: "mock",
184
- entity_id: "value1",
185
- snapshot_id: "no-content",
186
- },
187
- ])
188
- .returningAll()
189
- .execute();
190
-
191
- const version0 = await createVersion({ lix, name: "version0" });
192
-
193
- const mockConflict0 = await createChangeConflict({
194
- lix,
195
- version: version0,
196
- key: "mock-conflict0",
197
- conflictingChangeIds: new Set(["change0", "change1"]),
198
- });
199
-
200
- // version points to changes 0 and 1
201
-
202
- await updateChangesInVersion({
203
- lix,
204
- version: version0,
205
- changes: [changes[0]!, changes[1]!],
206
- });
207
-
208
- // Run garbage collection
209
- const gc0 = await garbageCollectChangeConflicts({ lix });
210
-
211
- expect(gc0.deletedChangeConflicts.length).toBe(0);
212
-
213
- // delete all version change pointers
214
- await lix.db.deleteFrom("version_change_conflict").execute();
215
-
216
- const gc1 = await garbageCollectChangeConflicts({ lix });
217
- expect(gc1.deletedChangeConflicts.length).toBe(1);
218
- expect(gc1.deletedChangeConflicts[0]?.id).toBe(mockConflict0.id);
219
- });
@@ -1,96 +0,0 @@
1
- import { sql } from "kysely";
2
- import type { ChangeConflict } from "../database/schema.js";
3
- import type { Lix } from "../lix/open-lix.js";
4
-
5
- /**
6
- * Garbage collects change conflicts.
7
- *
8
- * A change conflict is considered garbage if the conflict
9
- * contains changes that no version change pointer points to.
10
- */
11
- export async function garbageCollectChangeConflicts(args: {
12
- lix: Pick<Lix, "db">;
13
- }): Promise<{
14
- deletedChangeConflicts: ChangeConflict[];
15
- }> {
16
- const executeInTransaction = async (trx: Lix["db"]) => {
17
- // no versions are pointing to the change conflict anymore
18
- // this can happen if a version is deleted or if the conflict is outdated
19
- // -> delete the conflict
20
- const conflictsWithVersionPointer = await trx
21
- .selectFrom("change_conflict")
22
- .leftJoin(
23
- "version_change_conflict",
24
- "change_conflict.id",
25
- "version_change_conflict.change_conflict_id"
26
- )
27
- .where("version_change_conflict.change_conflict_id", "is", null)
28
- .selectAll()
29
- .execute();
30
-
31
- // Find change conflicts where no version change pointer points to any of its elements
32
- const outdatedConflicts = await trx
33
- .selectFrom("change_conflict")
34
- .leftJoin(
35
- "change_set_element as conflict_elements",
36
- "change_conflict.change_set_id",
37
- "conflict_elements.change_set_id"
38
- )
39
- .leftJoin(
40
- "change_set_element as version_elements",
41
- "conflict_elements.change_id",
42
- "version_elements.change_id"
43
- )
44
- .groupBy("change_conflict.id")
45
- // TODO assumes that each change conflict element is a unique entity change
46
- // TODO watch out if this assumption holds true in the future
47
- //
48
- // if the number of changes in the conflict that have a corresponding version change pointer
49
- // is less than the total number of changes in the conflict, then there is at least one change
50
- // that no version change pointer references, aka the conflict is outdated.
51
- .having(
52
- sql`count(version_elements.change_id)`,
53
- // the number of changes in the conflict that have a corresponding version change pointer.
54
- "<",
55
- // the total number of changes in the conflict.
56
- sql`count(conflict_elements.change_id)`
57
- )
58
- .selectAll("change_conflict")
59
- .execute();
60
-
61
- const conflictsToDelete = [
62
- ...conflictsWithVersionPointer,
63
- ...outdatedConflicts,
64
- ];
65
-
66
- // Delete the identified change conflicts and their associated pointers
67
- if (conflictsToDelete.length > 0) {
68
- const conflictIds = conflictsToDelete.map((conflict) => conflict.id);
69
- await trx
70
- .deleteFrom("change_conflict")
71
- .where("id", "in", conflictIds)
72
- .execute();
73
-
74
- await trx
75
- .deleteFrom("change_set_element")
76
- .where(
77
- "change_set_element.change_set_id",
78
- "in",
79
- conflictsToDelete.map((conflict) => conflict.change_set_id)
80
- )
81
- .execute();
82
-
83
- await trx
84
- .deleteFrom("version_change_conflict")
85
- .where("change_conflict_id", "in", conflictIds)
86
- .execute();
87
- }
88
- return { deletedChangeConflicts: conflictsToDelete };
89
- };
90
-
91
- if (args.lix.db.isTransaction) {
92
- return await executeInTransaction(args.lix.db);
93
- } else {
94
- return await args.lix.db.transaction().execute(executeInTransaction);
95
- }
96
- }
@@ -1,3 +0,0 @@
1
- export { createChangeConflict } from "./create-change-conflict.js";
2
- export { detectChangeConflicts } from "./detect-change-conflicts.js";
3
- export { resolveChangeConflictBySelecting } from "./resolve-conflict-by-selecting.js";