joist-core 2.4.0-next.5 → 2.4.0-next.51

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 (863) hide show
  1. package/build/BaseEntity.d.cts +3 -4
  2. package/build/BaseEntity.d.cts.map +1 -1
  3. package/build/BaseEntity.d.mts +3 -4
  4. package/build/BaseEntity.d.mts.map +1 -1
  5. package/build/Entity.d.cts +3 -4
  6. package/build/Entity.d.cts.map +1 -1
  7. package/build/Entity.d.mts +3 -4
  8. package/build/Entity.d.mts.map +1 -1
  9. package/build/EntityFields.d.cts +3 -4
  10. package/build/EntityFields.d.cts.map +1 -1
  11. package/build/EntityFields.d.mts +3 -4
  12. package/build/EntityFields.d.mts.map +1 -1
  13. package/build/EntityManager.cjs +75 -16
  14. package/build/EntityManager.cjs.map +1 -1
  15. package/build/EntityManager.d.cts +94 -53
  16. package/build/EntityManager.d.cts.map +1 -1
  17. package/build/EntityManager.d.mts +94 -53
  18. package/build/EntityManager.d.mts.map +1 -1
  19. package/build/EntityManager.js +75 -18
  20. package/build/EntityManager.js.map +1 -1
  21. package/build/EntityMetadata.cjs +0 -1
  22. package/build/EntityMetadata.cjs.map +1 -1
  23. package/build/EntityMetadata.d.cts +42 -36
  24. package/build/EntityMetadata.d.cts.map +1 -1
  25. package/build/EntityMetadata.d.mts +42 -36
  26. package/build/EntityMetadata.d.mts.map +1 -1
  27. package/build/EntityMetadata.js +0 -1
  28. package/build/EntityMetadata.js.map +1 -1
  29. package/build/EnumMetadata.d.cts +1 -2
  30. package/build/EnumMetadata.d.cts.map +1 -1
  31. package/build/EnumMetadata.d.mts +1 -2
  32. package/build/EnumMetadata.d.mts.map +1 -1
  33. package/build/IndexManager.cjs +23 -5
  34. package/build/IndexManager.cjs.map +1 -1
  35. package/build/IndexManager.d.cts +2 -3
  36. package/build/IndexManager.d.cts.map +1 -1
  37. package/build/IndexManager.d.mts +2 -3
  38. package/build/IndexManager.d.mts.map +1 -1
  39. package/build/IndexManager.js +23 -5
  40. package/build/IndexManager.js.map +1 -1
  41. package/build/InstanceData.cjs.map +1 -1
  42. package/build/InstanceData.d.cts +1 -2
  43. package/build/InstanceData.d.cts.map +1 -1
  44. package/build/InstanceData.d.mts +1 -2
  45. package/build/InstanceData.d.mts.map +1 -1
  46. package/build/InstanceData.js.map +1 -1
  47. package/build/PluginManager.cjs.map +1 -1
  48. package/build/PluginManager.d.cts +4 -4
  49. package/build/PluginManager.d.cts.map +1 -1
  50. package/build/PluginManager.d.mts +4 -4
  51. package/build/PluginManager.d.mts.map +1 -1
  52. package/build/PluginManager.js.map +1 -1
  53. package/build/RowData.d.cts +3 -4
  54. package/build/RowData.d.cts.map +1 -1
  55. package/build/RowData.d.mts +3 -4
  56. package/build/RowData.d.mts.map +1 -1
  57. package/build/batchloaders/BatchLoader.cjs.map +1 -1
  58. package/build/batchloaders/BatchLoader.d.cts +1 -2
  59. package/build/batchloaders/BatchLoader.d.cts.map +1 -1
  60. package/build/batchloaders/BatchLoader.d.mts +1 -2
  61. package/build/batchloaders/BatchLoader.d.mts.map +1 -1
  62. package/build/batchloaders/BatchLoader.js.map +1 -1
  63. package/build/batchloaders/enumCollectionBatchLoader.d.cts +2 -3
  64. package/build/batchloaders/enumCollectionBatchLoader.d.cts.map +1 -1
  65. package/build/batchloaders/enumCollectionBatchLoader.d.mts +2 -3
  66. package/build/batchloaders/enumCollectionBatchLoader.d.mts.map +1 -1
  67. package/build/batchloaders/loadBatchLoader.d.cts +2 -3
  68. package/build/batchloaders/loadBatchLoader.d.cts.map +1 -1
  69. package/build/batchloaders/loadBatchLoader.d.mts +2 -3
  70. package/build/batchloaders/loadBatchLoader.d.mts.map +1 -1
  71. package/build/batchloaders/manyToManyBatchLoader.d.cts +2 -3
  72. package/build/batchloaders/manyToManyBatchLoader.d.cts.map +1 -1
  73. package/build/batchloaders/manyToManyBatchLoader.d.mts +2 -3
  74. package/build/batchloaders/manyToManyBatchLoader.d.mts.map +1 -1
  75. package/build/batchloaders/oneToManyBatchLoader.cjs +1 -1
  76. package/build/batchloaders/oneToManyBatchLoader.d.cts +2 -3
  77. package/build/batchloaders/oneToManyBatchLoader.d.cts.map +1 -1
  78. package/build/batchloaders/oneToManyBatchLoader.d.mts +2 -3
  79. package/build/batchloaders/oneToManyBatchLoader.d.mts.map +1 -1
  80. package/build/batchloaders/oneToManyBatchLoader.js +1 -1
  81. package/build/batchloaders/oneToOneBatchLoader.cjs +1 -1
  82. package/build/batchloaders/oneToOneBatchLoader.d.cts +2 -3
  83. package/build/batchloaders/oneToOneBatchLoader.d.cts.map +1 -1
  84. package/build/batchloaders/oneToOneBatchLoader.d.mts +2 -3
  85. package/build/batchloaders/oneToOneBatchLoader.d.mts.map +1 -1
  86. package/build/batchloaders/oneToOneBatchLoader.js +1 -1
  87. package/build/batchloaders/populateBatchLoader.d.cts +2 -3
  88. package/build/batchloaders/populateBatchLoader.d.cts.map +1 -1
  89. package/build/batchloaders/populateBatchLoader.d.mts +2 -3
  90. package/build/batchloaders/populateBatchLoader.d.mts.map +1 -1
  91. package/build/batchloaders/recursiveChildrenBatchLoader.cjs +1 -1
  92. package/build/batchloaders/recursiveChildrenBatchLoader.d.cts +2 -3
  93. package/build/batchloaders/recursiveChildrenBatchLoader.d.cts.map +1 -1
  94. package/build/batchloaders/recursiveChildrenBatchLoader.d.mts +2 -3
  95. package/build/batchloaders/recursiveChildrenBatchLoader.d.mts.map +1 -1
  96. package/build/batchloaders/recursiveChildrenBatchLoader.js +1 -1
  97. package/build/batchloaders/recursiveM2mBatchLoader.d.cts +2 -3
  98. package/build/batchloaders/recursiveM2mBatchLoader.d.cts.map +1 -1
  99. package/build/batchloaders/recursiveM2mBatchLoader.d.mts +2 -3
  100. package/build/batchloaders/recursiveM2mBatchLoader.d.mts.map +1 -1
  101. package/build/batchloaders/recursiveParentsBatchLoader.cjs +1 -1
  102. package/build/batchloaders/recursiveParentsBatchLoader.d.cts +2 -3
  103. package/build/batchloaders/recursiveParentsBatchLoader.d.cts.map +1 -1
  104. package/build/batchloaders/recursiveParentsBatchLoader.d.mts +2 -3
  105. package/build/batchloaders/recursiveParentsBatchLoader.d.mts.map +1 -1
  106. package/build/batchloaders/recursiveParentsBatchLoader.js +1 -1
  107. package/build/changes.cjs +1 -1
  108. package/build/changes.cjs.map +1 -1
  109. package/build/changes.d.cts +9 -10
  110. package/build/changes.d.cts.map +1 -1
  111. package/build/changes.d.mts +9 -10
  112. package/build/changes.d.mts.map +1 -1
  113. package/build/changes.js +1 -1
  114. package/build/changes.js.map +1 -1
  115. package/build/config.cjs +96 -16
  116. package/build/config.cjs.map +1 -1
  117. package/build/config.d.cts +106 -18
  118. package/build/config.d.cts.map +1 -1
  119. package/build/config.d.mts +106 -18
  120. package/build/config.d.mts.map +1 -1
  121. package/build/config.js +96 -16
  122. package/build/config.js.map +1 -1
  123. package/build/configure.cjs +6 -2
  124. package/build/configure.cjs.map +1 -1
  125. package/build/configure.d.cts +8 -9
  126. package/build/configure.d.cts.map +1 -1
  127. package/build/configure.d.mts +8 -9
  128. package/build/configure.d.mts.map +1 -1
  129. package/build/configure.js +6 -2
  130. package/build/configure.js.map +1 -1
  131. package/build/dataloaders/fastWhereFilterHash.d.cts +1 -2
  132. package/build/dataloaders/fastWhereFilterHash.d.cts.map +1 -1
  133. package/build/dataloaders/fastWhereFilterHash.d.mts +1 -2
  134. package/build/dataloaders/fastWhereFilterHash.d.mts.map +1 -1
  135. package/build/dataloaders/findByUniqueDataLoader.d.cts +2 -3
  136. package/build/dataloaders/findByUniqueDataLoader.d.cts.map +1 -1
  137. package/build/dataloaders/findByUniqueDataLoader.d.mts +2 -3
  138. package/build/dataloaders/findByUniqueDataLoader.d.mts.map +1 -1
  139. package/build/dataloaders/findCountDataLoader.d.cts +4 -5
  140. package/build/dataloaders/findCountDataLoader.d.cts.map +1 -1
  141. package/build/dataloaders/findCountDataLoader.d.mts +4 -5
  142. package/build/dataloaders/findCountDataLoader.d.mts.map +1 -1
  143. package/build/dataloaders/findDataLoader.cjs +1 -1
  144. package/build/dataloaders/findDataLoader.d.cts +11 -12
  145. package/build/dataloaders/findDataLoader.d.cts.map +1 -1
  146. package/build/dataloaders/findDataLoader.d.mts +11 -12
  147. package/build/dataloaders/findDataLoader.d.mts.map +1 -1
  148. package/build/dataloaders/findDataLoader.js +1 -1
  149. package/build/dataloaders/findIdsDataLoader.d.cts +2 -3
  150. package/build/dataloaders/findIdsDataLoader.d.cts.map +1 -1
  151. package/build/dataloaders/findIdsDataLoader.d.mts +2 -3
  152. package/build/dataloaders/findIdsDataLoader.d.mts.map +1 -1
  153. package/build/dataloaders/findOrCreateDataLoader.cjs +6 -2
  154. package/build/dataloaders/findOrCreateDataLoader.cjs.map +1 -1
  155. package/build/dataloaders/findOrCreateDataLoader.d.cts +3 -3
  156. package/build/dataloaders/findOrCreateDataLoader.d.cts.map +1 -1
  157. package/build/dataloaders/findOrCreateDataLoader.d.mts +3 -3
  158. package/build/dataloaders/findOrCreateDataLoader.d.mts.map +1 -1
  159. package/build/dataloaders/findOrCreateDataLoader.js +7 -3
  160. package/build/dataloaders/findOrCreateDataLoader.js.map +1 -1
  161. package/build/dataloaders/findPaginatedDataLoader.cjs +10 -12
  162. package/build/dataloaders/findPaginatedDataLoader.cjs.map +1 -1
  163. package/build/dataloaders/findPaginatedDataLoader.d.cts +1 -2
  164. package/build/dataloaders/findPaginatedDataLoader.d.cts.map +1 -1
  165. package/build/dataloaders/findPaginatedDataLoader.d.mts +1 -2
  166. package/build/dataloaders/findPaginatedDataLoader.d.mts.map +1 -1
  167. package/build/dataloaders/findPaginatedDataLoader.js +10 -12
  168. package/build/dataloaders/findPaginatedDataLoader.js.map +1 -1
  169. package/build/dataloaders/lensDataLoader.d.cts +2 -3
  170. package/build/dataloaders/lensDataLoader.d.cts.map +1 -1
  171. package/build/dataloaders/lensDataLoader.d.mts +2 -3
  172. package/build/dataloaders/lensDataLoader.d.mts.map +1 -1
  173. package/build/dataloaders/manyToManyFindDataLoader.d.cts +2 -3
  174. package/build/dataloaders/manyToManyFindDataLoader.d.cts.map +1 -1
  175. package/build/dataloaders/manyToManyFindDataLoader.d.mts +2 -3
  176. package/build/dataloaders/manyToManyFindDataLoader.d.mts.map +1 -1
  177. package/build/dataloaders/oneToManyFindDataLoader.d.cts +2 -3
  178. package/build/dataloaders/oneToManyFindDataLoader.d.cts.map +1 -1
  179. package/build/dataloaders/oneToManyFindDataLoader.d.mts +2 -3
  180. package/build/dataloaders/oneToManyFindDataLoader.d.mts.map +1 -1
  181. package/build/defaults.cjs +1 -1
  182. package/build/defaults.cjs.map +1 -1
  183. package/build/defaults.d.cts +7 -7
  184. package/build/defaults.d.cts.map +1 -1
  185. package/build/defaults.d.mts +7 -7
  186. package/build/defaults.d.mts.map +1 -1
  187. package/build/defaults.js +1 -1
  188. package/build/defaults.js.map +1 -1
  189. package/build/drivers/Driver.d.cts +2 -3
  190. package/build/drivers/Driver.d.cts.map +1 -1
  191. package/build/drivers/Driver.d.mts +2 -3
  192. package/build/drivers/Driver.d.mts.map +1 -1
  193. package/build/drivers/EntityWriter.cjs +4 -3
  194. package/build/drivers/EntityWriter.cjs.map +1 -1
  195. package/build/drivers/EntityWriter.d.cts +19 -7
  196. package/build/drivers/EntityWriter.d.cts.map +1 -1
  197. package/build/drivers/EntityWriter.d.mts +19 -7
  198. package/build/drivers/EntityWriter.d.mts.map +1 -1
  199. package/build/drivers/EntityWriter.js +5 -4
  200. package/build/drivers/EntityWriter.js.map +1 -1
  201. package/build/drivers/IdAssigner.cjs.map +1 -1
  202. package/build/drivers/IdAssigner.d.cts +5 -5
  203. package/build/drivers/IdAssigner.d.cts.map +1 -1
  204. package/build/drivers/IdAssigner.d.mts +5 -5
  205. package/build/drivers/IdAssigner.d.mts.map +1 -1
  206. package/build/drivers/IdAssigner.js.map +1 -1
  207. package/build/drivers/driverApi.d.cts +2 -3
  208. package/build/drivers/driverApi.d.cts.map +1 -1
  209. package/build/drivers/driverApi.d.mts +2 -3
  210. package/build/drivers/driverApi.d.mts.map +1 -1
  211. package/build/fields.cjs +11 -8
  212. package/build/fields.cjs.map +1 -1
  213. package/build/fields.d.cts +10 -11
  214. package/build/fields.d.cts.map +1 -1
  215. package/build/fields.d.mts +10 -11
  216. package/build/fields.d.mts.map +1 -1
  217. package/build/fields.js +11 -8
  218. package/build/fields.js.map +1 -1
  219. package/build/flush/FlushLock.cjs.map +1 -1
  220. package/build/flush/FlushLock.d.cts +1 -2
  221. package/build/flush/FlushLock.d.cts.map +1 -1
  222. package/build/flush/FlushLock.d.mts +1 -2
  223. package/build/flush/FlushLock.d.mts.map +1 -1
  224. package/build/flush/FlushLock.js.map +1 -1
  225. package/build/flush/JoinRows.cjs.map +1 -1
  226. package/build/flush/JoinRows.d.cts +5 -6
  227. package/build/flush/JoinRows.d.cts.map +1 -1
  228. package/build/flush/JoinRows.d.mts +5 -6
  229. package/build/flush/JoinRows.d.mts.map +1 -1
  230. package/build/flush/JoinRows.js.map +1 -1
  231. package/build/flush/PendingChanges.d.cts +5 -6
  232. package/build/flush/PendingChanges.d.cts.map +1 -1
  233. package/build/flush/PendingChanges.d.mts +5 -6
  234. package/build/flush/PendingChanges.d.mts.map +1 -1
  235. package/build/flush/ReadDrift.cjs +90 -0
  236. package/build/flush/ReadDrift.cjs.map +1 -0
  237. package/build/flush/ReadDrift.d.cts +25 -0
  238. package/build/flush/ReadDrift.d.cts.map +1 -0
  239. package/build/flush/ReadDrift.d.mts +25 -0
  240. package/build/flush/ReadDrift.d.mts.map +1 -0
  241. package/build/flush/ReadDrift.js +87 -0
  242. package/build/flush/ReadDrift.js.map +1 -0
  243. package/build/flush/Todo.d.cts +5 -6
  244. package/build/flush/Todo.d.cts.map +1 -1
  245. package/build/flush/Todo.d.mts +5 -6
  246. package/build/flush/Todo.d.mts.map +1 -1
  247. package/build/getProperties.cjs +1 -1
  248. package/build/getProperties.d.cts +3 -4
  249. package/build/getProperties.d.cts.map +1 -1
  250. package/build/getProperties.d.mts +3 -4
  251. package/build/getProperties.d.mts.map +1 -1
  252. package/build/getProperties.js +1 -1
  253. package/build/index.cjs +16 -7
  254. package/build/index.cjs.map +1 -1
  255. package/build/index.d.cts +21 -19
  256. package/build/index.d.cts.map +1 -1
  257. package/build/index.d.mts +21 -19
  258. package/build/index.d.mts.map +1 -1
  259. package/build/index.js +15 -10
  260. package/build/index.js.map +1 -1
  261. package/build/json.d.cts +11 -11
  262. package/build/json.d.cts.map +1 -1
  263. package/build/json.d.mts +11 -11
  264. package/build/json.d.mts.map +1 -1
  265. package/build/keys.d.cts +27 -27
  266. package/build/keys.d.cts.map +1 -1
  267. package/build/keys.d.mts +27 -27
  268. package/build/keys.d.mts.map +1 -1
  269. package/build/loading/HintTree.d.cts +3 -4
  270. package/build/loading/HintTree.d.cts.map +1 -1
  271. package/build/loading/HintTree.d.mts +3 -4
  272. package/build/loading/HintTree.d.mts.map +1 -1
  273. package/build/loading/IsLoadedCache.cjs.map +1 -1
  274. package/build/loading/IsLoadedCache.d.cts +2 -3
  275. package/build/loading/IsLoadedCache.d.cts.map +1 -1
  276. package/build/loading/IsLoadedCache.d.mts +2 -3
  277. package/build/loading/IsLoadedCache.d.mts.map +1 -1
  278. package/build/loading/IsLoadedCache.js.map +1 -1
  279. package/build/loading/loadHints.d.cts +17 -17
  280. package/build/loading/loadHints.d.cts.map +1 -1
  281. package/build/loading/loadHints.d.mts +17 -17
  282. package/build/loading/loadHints.d.mts.map +1 -1
  283. package/build/loading/loadLens.d.cts +13 -13
  284. package/build/loading/loadLens.d.cts.map +1 -1
  285. package/build/loading/loadLens.d.mts +13 -13
  286. package/build/loading/loadLens.d.mts.map +1 -1
  287. package/build/loading/withLoaded.d.cts +5 -6
  288. package/build/loading/withLoaded.d.cts.map +1 -1
  289. package/build/loading/withLoaded.d.mts +5 -6
  290. package/build/loading/withLoaded.d.mts.map +1 -1
  291. package/build/logging/FactoryLogger.cjs +1 -1
  292. package/build/logging/FactoryLogger.cjs.map +1 -1
  293. package/build/logging/FactoryLogger.d.cts +3 -4
  294. package/build/logging/FactoryLogger.d.cts.map +1 -1
  295. package/build/logging/FactoryLogger.d.mts +3 -4
  296. package/build/logging/FactoryLogger.d.mts.map +1 -1
  297. package/build/logging/FactoryLogger.js +2 -2
  298. package/build/logging/FactoryLogger.js.map +1 -1
  299. package/build/logging/FieldLogger.cjs.map +1 -1
  300. package/build/logging/FieldLogger.d.cts +4 -5
  301. package/build/logging/FieldLogger.d.cts.map +1 -1
  302. package/build/logging/FieldLogger.d.mts +4 -5
  303. package/build/logging/FieldLogger.d.mts.map +1 -1
  304. package/build/logging/FieldLogger.js.map +1 -1
  305. package/build/logging/ReactionLogger.d.cts +7 -7
  306. package/build/logging/ReactionLogger.d.cts.map +1 -1
  307. package/build/logging/ReactionLogger.d.mts +7 -7
  308. package/build/logging/ReactionLogger.d.mts.map +1 -1
  309. package/build/newEntity.cjs +1 -1
  310. package/build/newEntity.cjs.map +1 -1
  311. package/build/newEntity.d.cts +4 -5
  312. package/build/newEntity.d.cts.map +1 -1
  313. package/build/newEntity.d.mts +4 -5
  314. package/build/newEntity.d.mts.map +1 -1
  315. package/build/newEntity.js +1 -1
  316. package/build/newEntity.js.map +1 -1
  317. package/build/newTestInstance.cjs +1 -0
  318. package/build/newTestInstance.cjs.map +1 -1
  319. package/build/newTestInstance.d.cts +21 -21
  320. package/build/newTestInstance.d.cts.map +1 -1
  321. package/build/newTestInstance.d.mts +21 -21
  322. package/build/newTestInstance.d.mts.map +1 -1
  323. package/build/newTestInstance.js +1 -0
  324. package/build/newTestInstance.js.map +1 -1
  325. package/build/normalizeHints.d.cts +7 -8
  326. package/build/normalizeHints.d.cts.map +1 -1
  327. package/build/normalizeHints.d.mts +7 -8
  328. package/build/normalizeHints.d.mts.map +1 -1
  329. package/build/nowUTC.d.cts +4 -5
  330. package/build/nowUTC.d.cts.map +1 -1
  331. package/build/nowUTC.d.mts +4 -5
  332. package/build/nowUTC.d.mts.map +1 -1
  333. package/build/plugins/ImmutableEntitiesPlugin.d.cts +1 -2
  334. package/build/plugins/ImmutableEntitiesPlugin.d.cts.map +1 -1
  335. package/build/plugins/ImmutableEntitiesPlugin.d.mts +1 -2
  336. package/build/plugins/ImmutableEntitiesPlugin.d.mts.map +1 -1
  337. package/build/plugins/PreloadPlugin.d.cts +3 -4
  338. package/build/plugins/PreloadPlugin.d.cts.map +1 -1
  339. package/build/plugins/PreloadPlugin.d.mts +3 -4
  340. package/build/plugins/PreloadPlugin.d.mts.map +1 -1
  341. package/build/preloading/JsonAggregatePreloader.d.cts +1 -2
  342. package/build/preloading/JsonAggregatePreloader.d.cts.map +1 -1
  343. package/build/preloading/JsonAggregatePreloader.d.mts +1 -2
  344. package/build/preloading/JsonAggregatePreloader.d.mts.map +1 -1
  345. package/build/preloading/canPreload.d.cts +1 -2
  346. package/build/preloading/canPreload.d.cts.map +1 -1
  347. package/build/preloading/canPreload.d.mts +1 -2
  348. package/build/preloading/canPreload.d.mts.map +1 -1
  349. package/build/preloading/partitionHint.cjs +1 -1
  350. package/build/preloading/partitionHint.d.cts +1 -2
  351. package/build/preloading/partitionHint.d.cts.map +1 -1
  352. package/build/preloading/partitionHint.d.mts +1 -2
  353. package/build/preloading/partitionHint.d.mts.map +1 -1
  354. package/build/preloading/partitionHint.js +1 -1
  355. package/build/queries/ConditionBuilder.d.cts +2 -2
  356. package/build/queries/ConditionBuilder.d.cts.map +1 -1
  357. package/build/queries/ConditionBuilder.d.mts +2 -2
  358. package/build/queries/ConditionBuilder.d.mts.map +1 -1
  359. package/build/queries/conditions.d.cts +11 -12
  360. package/build/queries/conditions.d.cts.map +1 -1
  361. package/build/queries/conditions.d.mts +11 -12
  362. package/build/queries/conditions.d.mts.map +1 -1
  363. package/build/queries/entityQueryUtils.d.cts +4 -5
  364. package/build/queries/entityQueryUtils.d.cts.map +1 -1
  365. package/build/queries/entityQueryUtils.d.mts +4 -5
  366. package/build/queries/entityQueryUtils.d.mts.map +1 -1
  367. package/build/queries/find/Aliases.d.cts +16 -16
  368. package/build/queries/find/Aliases.d.cts.map +1 -1
  369. package/build/queries/find/Aliases.d.mts +16 -16
  370. package/build/queries/find/Aliases.d.mts.map +1 -1
  371. package/build/queries/find/DeferredAlias.d.cts +5 -6
  372. package/build/queries/find/DeferredAlias.d.cts.map +1 -1
  373. package/build/queries/find/DeferredAlias.d.mts +5 -6
  374. package/build/queries/find/DeferredAlias.d.mts.map +1 -1
  375. package/build/queries/find/EntityFilter.d.cts +12 -13
  376. package/build/queries/find/EntityFilter.d.cts.map +1 -1
  377. package/build/queries/find/EntityFilter.d.mts +12 -13
  378. package/build/queries/find/EntityFilter.d.mts.map +1 -1
  379. package/build/queries/find/EntityGraphQLFilter.d.cts +8 -9
  380. package/build/queries/find/EntityGraphQLFilter.d.cts.map +1 -1
  381. package/build/queries/find/EntityGraphQLFilter.d.mts +8 -9
  382. package/build/queries/find/EntityGraphQLFilter.d.mts.map +1 -1
  383. package/build/queries/find/QueryParser.collectionJoins.d.cts +1 -2
  384. package/build/queries/find/QueryParser.collectionJoins.d.cts.map +1 -1
  385. package/build/queries/find/QueryParser.collectionJoins.d.mts +1 -2
  386. package/build/queries/find/QueryParser.collectionJoins.d.mts.map +1 -1
  387. package/build/queries/find/QueryParser.d.cts +18 -18
  388. package/build/queries/find/QueryParser.d.cts.map +1 -1
  389. package/build/queries/find/QueryParser.d.mts +18 -18
  390. package/build/queries/find/QueryParser.d.mts.map +1 -1
  391. package/build/queries/find/QueryParser.pruning.d.cts +2 -3
  392. package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
  393. package/build/queries/find/QueryParser.pruning.d.mts +2 -3
  394. package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
  395. package/build/queries/find/QueryVisitor.d.cts +4 -4
  396. package/build/queries/find/QueryVisitor.d.cts.map +1 -1
  397. package/build/queries/find/QueryVisitor.d.mts +4 -4
  398. package/build/queries/find/QueryVisitor.d.mts.map +1 -1
  399. package/build/queries/find/buildFindQuery.d.cts +3 -3
  400. package/build/queries/find/buildFindQuery.d.cts.map +1 -1
  401. package/build/queries/find/buildFindQuery.d.mts +3 -3
  402. package/build/queries/find/buildFindQuery.d.mts.map +1 -1
  403. package/build/queries/find/scopes.cjs.map +1 -1
  404. package/build/queries/find/scopes.d.cts +12 -13
  405. package/build/queries/find/scopes.d.cts.map +1 -1
  406. package/build/queries/find/scopes.d.mts +12 -13
  407. package/build/queries/find/scopes.d.mts.map +1 -1
  408. package/build/queries/find/scopes.js.map +1 -1
  409. package/build/queries/parsedConditions.d.cts +7 -8
  410. package/build/queries/parsedConditions.d.cts.map +1 -1
  411. package/build/queries/parsedConditions.d.mts +7 -8
  412. package/build/queries/parsedConditions.d.mts.map +1 -1
  413. package/build/queries/renderConditions.d.cts +3 -4
  414. package/build/queries/renderConditions.d.cts.map +1 -1
  415. package/build/queries/renderConditions.d.mts +3 -4
  416. package/build/queries/renderConditions.d.mts.map +1 -1
  417. package/build/queries/skipCondition.d.cts +1 -2
  418. package/build/queries/skipCondition.d.cts.map +1 -1
  419. package/build/queries/skipCondition.d.mts +1 -2
  420. package/build/queries/skipCondition.d.mts.map +1 -1
  421. package/build/queries/sql/AliasAssigner.cjs.map +1 -1
  422. package/build/queries/sql/AliasAssigner.d.cts +1 -2
  423. package/build/queries/sql/AliasAssigner.d.cts.map +1 -1
  424. package/build/queries/sql/AliasAssigner.d.mts +1 -2
  425. package/build/queries/sql/AliasAssigner.d.mts.map +1 -1
  426. package/build/queries/sql/AliasAssigner.js.map +1 -1
  427. package/build/queries/sql/Expr.cjs +38 -0
  428. package/build/queries/sql/Expr.cjs.map +1 -1
  429. package/build/queries/sql/Expr.d.cts +45 -27
  430. package/build/queries/sql/Expr.d.cts.map +1 -1
  431. package/build/queries/sql/Expr.d.mts +45 -27
  432. package/build/queries/sql/Expr.d.mts.map +1 -1
  433. package/build/queries/sql/Expr.js +38 -1
  434. package/build/queries/sql/Expr.js.map +1 -1
  435. package/build/queries/sql/JoinTree.d.cts +5 -5
  436. package/build/queries/sql/JoinTree.d.cts.map +1 -1
  437. package/build/queries/sql/JoinTree.d.mts +5 -5
  438. package/build/queries/sql/JoinTree.d.mts.map +1 -1
  439. package/build/queries/sql/Tables.cjs +9 -0
  440. package/build/queries/sql/Tables.cjs.map +1 -1
  441. package/build/queries/sql/Tables.d.cts +46 -39
  442. package/build/queries/sql/Tables.d.cts.map +1 -1
  443. package/build/queries/sql/Tables.d.mts +46 -39
  444. package/build/queries/sql/Tables.d.mts.map +1 -1
  445. package/build/queries/sql/Tables.js +10 -1
  446. package/build/queries/sql/Tables.js.map +1 -1
  447. package/build/queries/sql/custom.d.cts +14 -14
  448. package/build/queries/sql/custom.d.cts.map +1 -1
  449. package/build/queries/sql/custom.d.mts +14 -14
  450. package/build/queries/sql/custom.d.mts.map +1 -1
  451. package/build/queries/sql/execute.cjs +4 -9
  452. package/build/queries/sql/execute.cjs.map +1 -1
  453. package/build/queries/sql/execute.d.cts +24 -18
  454. package/build/queries/sql/execute.d.cts.map +1 -1
  455. package/build/queries/sql/execute.d.mts +24 -18
  456. package/build/queries/sql/execute.d.mts.map +1 -1
  457. package/build/queries/sql/execute.js +5 -10
  458. package/build/queries/sql/execute.js.map +1 -1
  459. package/build/queries/sql/expressions/arrayAgg.d.cts +5 -6
  460. package/build/queries/sql/expressions/arrayAgg.d.cts.map +1 -1
  461. package/build/queries/sql/expressions/arrayAgg.d.mts +5 -6
  462. package/build/queries/sql/expressions/arrayAgg.d.mts.map +1 -1
  463. package/build/queries/sql/expressions/case.d.cts +10 -10
  464. package/build/queries/sql/expressions/case.d.cts.map +1 -1
  465. package/build/queries/sql/expressions/case.d.mts +10 -10
  466. package/build/queries/sql/expressions/case.d.mts.map +1 -1
  467. package/build/queries/sql/expressions/coalesce.d.cts +5 -6
  468. package/build/queries/sql/expressions/coalesce.d.cts.map +1 -1
  469. package/build/queries/sql/expressions/coalesce.d.mts +5 -6
  470. package/build/queries/sql/expressions/coalesce.d.mts.map +1 -1
  471. package/build/queries/sql/expressions/codecs.d.cts +1 -2
  472. package/build/queries/sql/expressions/codecs.d.cts.map +1 -1
  473. package/build/queries/sql/expressions/codecs.d.mts +1 -2
  474. package/build/queries/sql/expressions/codecs.d.mts.map +1 -1
  475. package/build/queries/sql/expressions/expression.d.cts +6 -6
  476. package/build/queries/sql/expressions/expression.d.cts.map +1 -1
  477. package/build/queries/sql/expressions/expression.d.mts +6 -6
  478. package/build/queries/sql/expressions/expression.d.mts.map +1 -1
  479. package/build/queries/sql/expressions/greatest.d.cts +5 -6
  480. package/build/queries/sql/expressions/greatest.d.cts.map +1 -1
  481. package/build/queries/sql/expressions/greatest.d.mts +5 -6
  482. package/build/queries/sql/expressions/greatest.d.mts.map +1 -1
  483. package/build/queries/sql/expressions/least.d.cts +5 -6
  484. package/build/queries/sql/expressions/least.d.cts.map +1 -1
  485. package/build/queries/sql/expressions/least.d.mts +5 -6
  486. package/build/queries/sql/expressions/least.d.mts.map +1 -1
  487. package/build/queries/sql/expressions/nullIf.d.cts +5 -6
  488. package/build/queries/sql/expressions/nullIf.d.cts.map +1 -1
  489. package/build/queries/sql/expressions/nullIf.d.mts +5 -6
  490. package/build/queries/sql/expressions/nullIf.d.mts.map +1 -1
  491. package/build/queries/sql/expressions/parseExpression.d.cts +5 -6
  492. package/build/queries/sql/expressions/parseExpression.d.cts.map +1 -1
  493. package/build/queries/sql/expressions/parseExpression.d.mts +5 -6
  494. package/build/queries/sql/expressions/parseExpression.d.mts.map +1 -1
  495. package/build/queries/sql/expressions/types.d.cts +11 -11
  496. package/build/queries/sql/expressions/types.d.cts.map +1 -1
  497. package/build/queries/sql/expressions/types.d.mts +11 -11
  498. package/build/queries/sql/expressions/types.d.mts.map +1 -1
  499. package/build/queries/sql/keywords.d.cts +4 -5
  500. package/build/queries/sql/keywords.d.cts.map +1 -1
  501. package/build/queries/sql/keywords.d.mts +4 -5
  502. package/build/queries/sql/keywords.d.mts.map +1 -1
  503. package/build/queries/sql/query.cjs +59 -23
  504. package/build/queries/sql/query.cjs.map +1 -1
  505. package/build/queries/sql/query.d.cts +108 -77
  506. package/build/queries/sql/query.d.cts.map +1 -1
  507. package/build/queries/sql/query.d.mts +108 -77
  508. package/build/queries/sql/query.d.mts.map +1 -1
  509. package/build/queries/sql/query.js +58 -23
  510. package/build/queries/sql/query.js.map +1 -1
  511. package/build/queries/unnest.cjs +4 -5
  512. package/build/queries/unnest.cjs.map +1 -1
  513. package/build/queries/unnest.d.cts +2 -3
  514. package/build/queries/unnest.d.cts.map +1 -1
  515. package/build/queries/unnest.d.mts +2 -3
  516. package/build/queries/unnest.d.mts.map +1 -1
  517. package/build/queries/unnest.js +4 -5
  518. package/build/queries/unnest.js.map +1 -1
  519. package/build/queries/valueFilters.d.cts +5 -6
  520. package/build/queries/valueFilters.d.cts.map +1 -1
  521. package/build/queries/valueFilters.d.mts +5 -6
  522. package/build/queries/valueFilters.d.mts.map +1 -1
  523. package/build/reactivity/ReactionsManager.cjs +168 -2
  524. package/build/reactivity/ReactionsManager.cjs.map +1 -1
  525. package/build/reactivity/ReactionsManager.d.cts +56 -4
  526. package/build/reactivity/ReactionsManager.d.cts.map +1 -1
  527. package/build/reactivity/ReactionsManager.d.mts +56 -4
  528. package/build/reactivity/ReactionsManager.d.mts.map +1 -1
  529. package/build/reactivity/ReactionsManager.js +169 -3
  530. package/build/reactivity/ReactionsManager.js.map +1 -1
  531. package/build/reactivity/reactiveHints.cjs +2 -2
  532. package/build/reactivity/reactiveHints.cjs.map +1 -1
  533. package/build/reactivity/reactiveHints.d.cts +18 -18
  534. package/build/reactivity/reactiveHints.d.cts.map +1 -1
  535. package/build/reactivity/reactiveHints.d.mts +18 -18
  536. package/build/reactivity/reactiveHints.d.mts.map +1 -1
  537. package/build/reactivity/reactiveHints.js +2 -2
  538. package/build/reactivity/reactiveHints.js.map +1 -1
  539. package/build/relations/AbstractPropertyImpl.cjs.map +1 -1
  540. package/build/relations/AbstractPropertyImpl.d.cts +1 -2
  541. package/build/relations/AbstractPropertyImpl.d.cts.map +1 -1
  542. package/build/relations/AbstractPropertyImpl.d.mts +1 -2
  543. package/build/relations/AbstractPropertyImpl.d.mts.map +1 -1
  544. package/build/relations/AbstractPropertyImpl.js.map +1 -1
  545. package/build/relations/AbstractRelationImpl.d.cts +1 -2
  546. package/build/relations/AbstractRelationImpl.d.cts.map +1 -1
  547. package/build/relations/AbstractRelationImpl.d.mts +1 -2
  548. package/build/relations/AbstractRelationImpl.d.mts.map +1 -1
  549. package/build/relations/AsyncProperty.cjs +1 -1
  550. package/build/relations/AsyncProperty.cjs.map +1 -1
  551. package/build/relations/AsyncProperty.d.cts +5 -6
  552. package/build/relations/AsyncProperty.d.cts.map +1 -1
  553. package/build/relations/AsyncProperty.d.mts +5 -6
  554. package/build/relations/AsyncProperty.d.mts.map +1 -1
  555. package/build/relations/AsyncProperty.js +1 -1
  556. package/build/relations/AsyncProperty.js.map +1 -1
  557. package/build/relations/AsyncReactiveField.cjs +2 -2
  558. package/build/relations/AsyncReactiveField.cjs.map +1 -1
  559. package/build/relations/AsyncReactiveField.d.cts +4 -5
  560. package/build/relations/AsyncReactiveField.d.cts.map +1 -1
  561. package/build/relations/AsyncReactiveField.d.mts +4 -5
  562. package/build/relations/AsyncReactiveField.d.mts.map +1 -1
  563. package/build/relations/AsyncReactiveField.js +2 -2
  564. package/build/relations/AsyncReactiveField.js.map +1 -1
  565. package/build/relations/Collection.d.cts +4 -5
  566. package/build/relations/Collection.d.cts.map +1 -1
  567. package/build/relations/Collection.d.mts +4 -5
  568. package/build/relations/Collection.d.mts.map +1 -1
  569. package/build/relations/CustomCollection.cjs +1 -1
  570. package/build/relations/CustomCollection.cjs.map +1 -1
  571. package/build/relations/CustomCollection.d.cts +3 -4
  572. package/build/relations/CustomCollection.d.cts.map +1 -1
  573. package/build/relations/CustomCollection.d.mts +3 -4
  574. package/build/relations/CustomCollection.d.mts.map +1 -1
  575. package/build/relations/CustomCollection.js +1 -1
  576. package/build/relations/CustomCollection.js.map +1 -1
  577. package/build/relations/CustomReference.cjs +2 -2
  578. package/build/relations/CustomReference.cjs.map +1 -1
  579. package/build/relations/CustomReference.d.cts +3 -4
  580. package/build/relations/CustomReference.d.cts.map +1 -1
  581. package/build/relations/CustomReference.d.mts +3 -4
  582. package/build/relations/CustomReference.d.mts.map +1 -1
  583. package/build/relations/CustomReference.js +2 -2
  584. package/build/relations/CustomReference.js.map +1 -1
  585. package/build/relations/EnumCollection.cjs +1 -1
  586. package/build/relations/EnumCollection.cjs.map +1 -1
  587. package/build/relations/EnumCollection.d.cts +5 -5
  588. package/build/relations/EnumCollection.d.cts.map +1 -1
  589. package/build/relations/EnumCollection.d.mts +5 -5
  590. package/build/relations/EnumCollection.d.mts.map +1 -1
  591. package/build/relations/EnumCollection.js +1 -1
  592. package/build/relations/EnumCollection.js.map +1 -1
  593. package/build/relations/LargeCollection.d.cts +1 -2
  594. package/build/relations/LargeCollection.d.cts.map +1 -1
  595. package/build/relations/LargeCollection.d.mts +1 -2
  596. package/build/relations/LargeCollection.d.mts.map +1 -1
  597. package/build/relations/LazyField.cjs +16 -2
  598. package/build/relations/LazyField.cjs.map +1 -1
  599. package/build/relations/LazyField.d.cts +13 -8
  600. package/build/relations/LazyField.d.cts.map +1 -1
  601. package/build/relations/LazyField.d.mts +13 -8
  602. package/build/relations/LazyField.d.mts.map +1 -1
  603. package/build/relations/LazyField.js +16 -2
  604. package/build/relations/LazyField.js.map +1 -1
  605. package/build/relations/ManyToManyCollection.cjs +1 -1
  606. package/build/relations/ManyToManyCollection.cjs.map +1 -1
  607. package/build/relations/ManyToManyCollection.d.cts +2 -3
  608. package/build/relations/ManyToManyCollection.d.cts.map +1 -1
  609. package/build/relations/ManyToManyCollection.d.mts +2 -3
  610. package/build/relations/ManyToManyCollection.d.mts.map +1 -1
  611. package/build/relations/ManyToManyCollection.js +1 -1
  612. package/build/relations/ManyToManyCollection.js.map +1 -1
  613. package/build/relations/ManyToManyLargeCollection.cjs +1 -1
  614. package/build/relations/ManyToManyLargeCollection.d.cts +2 -3
  615. package/build/relations/ManyToManyLargeCollection.d.cts.map +1 -1
  616. package/build/relations/ManyToManyLargeCollection.d.mts +2 -3
  617. package/build/relations/ManyToManyLargeCollection.d.mts.map +1 -1
  618. package/build/relations/ManyToManyLargeCollection.js +1 -1
  619. package/build/relations/ManyToOneReference.cjs +2 -2
  620. package/build/relations/ManyToOneReference.cjs.map +1 -1
  621. package/build/relations/ManyToOneReference.d.cts +6 -7
  622. package/build/relations/ManyToOneReference.d.cts.map +1 -1
  623. package/build/relations/ManyToOneReference.d.mts +6 -7
  624. package/build/relations/ManyToOneReference.d.mts.map +1 -1
  625. package/build/relations/ManyToOneReference.js +2 -2
  626. package/build/relations/ManyToOneReference.js.map +1 -1
  627. package/build/relations/OneToManyCollection.cjs +1 -1
  628. package/build/relations/OneToManyCollection.cjs.map +1 -1
  629. package/build/relations/OneToManyCollection.d.cts +2 -3
  630. package/build/relations/OneToManyCollection.d.cts.map +1 -1
  631. package/build/relations/OneToManyCollection.d.mts +2 -3
  632. package/build/relations/OneToManyCollection.d.mts.map +1 -1
  633. package/build/relations/OneToManyCollection.js +1 -1
  634. package/build/relations/OneToManyCollection.js.map +1 -1
  635. package/build/relations/OneToManyLargeCollection.cjs +1 -1
  636. package/build/relations/OneToManyLargeCollection.cjs.map +1 -1
  637. package/build/relations/OneToManyLargeCollection.d.cts +2 -3
  638. package/build/relations/OneToManyLargeCollection.d.cts.map +1 -1
  639. package/build/relations/OneToManyLargeCollection.d.mts +2 -3
  640. package/build/relations/OneToManyLargeCollection.d.mts.map +1 -1
  641. package/build/relations/OneToManyLargeCollection.js +1 -1
  642. package/build/relations/OneToManyLargeCollection.js.map +1 -1
  643. package/build/relations/OneToOneReference.cjs +2 -2
  644. package/build/relations/OneToOneReference.cjs.map +1 -1
  645. package/build/relations/OneToOneReference.d.cts +7 -7
  646. package/build/relations/OneToOneReference.d.cts.map +1 -1
  647. package/build/relations/OneToOneReference.d.mts +7 -7
  648. package/build/relations/OneToOneReference.d.mts.map +1 -1
  649. package/build/relations/OneToOneReference.js +2 -2
  650. package/build/relations/OneToOneReference.js.map +1 -1
  651. package/build/relations/PolymorphicReference.cjs +2 -2
  652. package/build/relations/PolymorphicReference.cjs.map +1 -1
  653. package/build/relations/PolymorphicReference.d.cts +4 -5
  654. package/build/relations/PolymorphicReference.d.cts.map +1 -1
  655. package/build/relations/PolymorphicReference.d.mts +4 -5
  656. package/build/relations/PolymorphicReference.d.mts.map +1 -1
  657. package/build/relations/PolymorphicReference.js +2 -2
  658. package/build/relations/PolymorphicReference.js.map +1 -1
  659. package/build/relations/PropertySymbols.d.cts +1 -2
  660. package/build/relations/PropertySymbols.d.cts.map +1 -1
  661. package/build/relations/PropertySymbols.d.mts +1 -2
  662. package/build/relations/PropertySymbols.d.mts.map +1 -1
  663. package/build/relations/ReactiveField.cjs +1 -1
  664. package/build/relations/ReactiveField.cjs.map +1 -1
  665. package/build/relations/ReactiveField.d.cts +4 -5
  666. package/build/relations/ReactiveField.d.cts.map +1 -1
  667. package/build/relations/ReactiveField.d.mts +4 -5
  668. package/build/relations/ReactiveField.d.mts.map +1 -1
  669. package/build/relations/ReactiveField.js +1 -1
  670. package/build/relations/ReactiveField.js.map +1 -1
  671. package/build/relations/ReactiveGetter.cjs +1 -1
  672. package/build/relations/ReactiveGetter.cjs.map +1 -1
  673. package/build/relations/ReactiveGetter.d.cts +4 -5
  674. package/build/relations/ReactiveGetter.d.cts.map +1 -1
  675. package/build/relations/ReactiveGetter.d.mts +4 -5
  676. package/build/relations/ReactiveGetter.d.mts.map +1 -1
  677. package/build/relations/ReactiveGetter.js +1 -1
  678. package/build/relations/ReactiveGetter.js.map +1 -1
  679. package/build/relations/ReactiveManyToMany.cjs +1 -1
  680. package/build/relations/ReactiveManyToMany.cjs.map +1 -1
  681. package/build/relations/ReactiveManyToMany.d.cts +4 -5
  682. package/build/relations/ReactiveManyToMany.d.cts.map +1 -1
  683. package/build/relations/ReactiveManyToMany.d.mts +4 -5
  684. package/build/relations/ReactiveManyToMany.d.mts.map +1 -1
  685. package/build/relations/ReactiveManyToMany.js +1 -1
  686. package/build/relations/ReactiveManyToMany.js.map +1 -1
  687. package/build/relations/ReactiveManyToManyOtherSide.cjs +1 -1
  688. package/build/relations/ReactiveManyToManyOtherSide.cjs.map +1 -1
  689. package/build/relations/ReactiveManyToManyOtherSide.d.cts +4 -5
  690. package/build/relations/ReactiveManyToManyOtherSide.d.cts.map +1 -1
  691. package/build/relations/ReactiveManyToManyOtherSide.d.mts +4 -5
  692. package/build/relations/ReactiveManyToManyOtherSide.d.mts.map +1 -1
  693. package/build/relations/ReactiveManyToManyOtherSide.js +1 -1
  694. package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
  695. package/build/relations/ReactiveReference.cjs +2 -2
  696. package/build/relations/ReactiveReference.cjs.map +1 -1
  697. package/build/relations/ReactiveReference.d.cts +5 -6
  698. package/build/relations/ReactiveReference.d.cts.map +1 -1
  699. package/build/relations/ReactiveReference.d.mts +5 -6
  700. package/build/relations/ReactiveReference.d.mts.map +1 -1
  701. package/build/relations/ReactiveReference.js +2 -2
  702. package/build/relations/ReactiveReference.js.map +1 -1
  703. package/build/relations/ReadOnlyCollection.d.cts +4 -5
  704. package/build/relations/ReadOnlyCollection.d.cts.map +1 -1
  705. package/build/relations/ReadOnlyCollection.d.mts +4 -5
  706. package/build/relations/ReadOnlyCollection.d.mts.map +1 -1
  707. package/build/relations/RecursiveCollection.cjs +1 -1
  708. package/build/relations/RecursiveCollection.cjs.map +1 -1
  709. package/build/relations/RecursiveCollection.d.cts +10 -10
  710. package/build/relations/RecursiveCollection.d.cts.map +1 -1
  711. package/build/relations/RecursiveCollection.d.mts +10 -10
  712. package/build/relations/RecursiveCollection.d.mts.map +1 -1
  713. package/build/relations/RecursiveCollection.js +1 -1
  714. package/build/relations/RecursiveCollection.js.map +1 -1
  715. package/build/relations/RecursiveCycleError.d.cts +2 -2
  716. package/build/relations/RecursiveCycleError.d.cts.map +1 -1
  717. package/build/relations/RecursiveCycleError.d.mts +2 -2
  718. package/build/relations/RecursiveCycleError.d.mts.map +1 -1
  719. package/build/relations/Reference.d.cts +5 -5
  720. package/build/relations/Reference.d.cts.map +1 -1
  721. package/build/relations/Reference.d.mts +5 -5
  722. package/build/relations/Reference.d.mts.map +1 -1
  723. package/build/relations/ReferenceSymbols.d.cts +1 -2
  724. package/build/relations/ReferenceSymbols.d.cts.map +1 -1
  725. package/build/relations/ReferenceSymbols.d.mts +1 -2
  726. package/build/relations/ReferenceSymbols.d.mts.map +1 -1
  727. package/build/relations/Relation.d.cts +3 -3
  728. package/build/relations/Relation.d.cts.map +1 -1
  729. package/build/relations/Relation.d.mts +3 -3
  730. package/build/relations/Relation.d.mts.map +1 -1
  731. package/build/relations/RelationSymbols.d.cts +2 -3
  732. package/build/relations/RelationSymbols.d.cts.map +1 -1
  733. package/build/relations/RelationSymbols.d.mts +2 -3
  734. package/build/relations/RelationSymbols.d.mts.map +1 -1
  735. package/build/relations/hasAsyncMethod.cjs +1 -1
  736. package/build/relations/hasAsyncMethod.cjs.map +1 -1
  737. package/build/relations/hasAsyncMethod.d.cts +6 -6
  738. package/build/relations/hasAsyncMethod.d.cts.map +1 -1
  739. package/build/relations/hasAsyncMethod.d.mts +6 -6
  740. package/build/relations/hasAsyncMethod.d.mts.map +1 -1
  741. package/build/relations/hasAsyncMethod.js +1 -1
  742. package/build/relations/hasAsyncMethod.js.map +1 -1
  743. package/build/relations/hasManyDerived.cjs +1 -1
  744. package/build/relations/hasManyDerived.d.cts +2 -2
  745. package/build/relations/hasManyDerived.d.cts.map +1 -1
  746. package/build/relations/hasManyDerived.d.mts +2 -2
  747. package/build/relations/hasManyDerived.d.mts.map +1 -1
  748. package/build/relations/hasManyDerived.js +1 -1
  749. package/build/relations/hasManyThrough.cjs +1 -1
  750. package/build/relations/hasManyThrough.d.cts +1 -2
  751. package/build/relations/hasManyThrough.d.cts.map +1 -1
  752. package/build/relations/hasManyThrough.d.mts +1 -2
  753. package/build/relations/hasManyThrough.d.mts.map +1 -1
  754. package/build/relations/hasManyThrough.js +1 -1
  755. package/build/relations/hasOneDerived.cjs +1 -1
  756. package/build/relations/hasOneDerived.d.cts +1 -2
  757. package/build/relations/hasOneDerived.d.cts.map +1 -1
  758. package/build/relations/hasOneDerived.d.mts +1 -2
  759. package/build/relations/hasOneDerived.d.mts.map +1 -1
  760. package/build/relations/hasOneDerived.js +1 -1
  761. package/build/relations/hasOneThrough.cjs +1 -1
  762. package/build/relations/hasOneThrough.d.cts +1 -2
  763. package/build/relations/hasOneThrough.d.cts.map +1 -1
  764. package/build/relations/hasOneThrough.d.mts +1 -2
  765. package/build/relations/hasOneThrough.d.mts.map +1 -1
  766. package/build/relations/hasOneThrough.js +1 -1
  767. package/build/relations/hasProperty.cjs +1 -1
  768. package/build/relations/hasProperty.cjs.map +1 -1
  769. package/build/relations/hasProperty.d.cts +8 -8
  770. package/build/relations/hasProperty.d.cts.map +1 -1
  771. package/build/relations/hasProperty.d.mts +8 -8
  772. package/build/relations/hasProperty.d.mts.map +1 -1
  773. package/build/relations/hasProperty.js +1 -1
  774. package/build/relations/hasProperty.js.map +1 -1
  775. package/build/relations/isCascadeDelete.d.cts +1 -2
  776. package/build/relations/isCascadeDelete.d.cts.map +1 -1
  777. package/build/relations/isCascadeDelete.d.mts +1 -2
  778. package/build/relations/isCascadeDelete.d.mts.map +1 -1
  779. package/build/resurrection.cjs +11 -1
  780. package/build/resurrection.cjs.map +1 -1
  781. package/build/resurrection.d.cts +5 -3
  782. package/build/resurrection.d.cts.map +1 -1
  783. package/build/resurrection.d.mts +5 -3
  784. package/build/resurrection.d.mts.map +1 -1
  785. package/build/resurrection.js +11 -2
  786. package/build/resurrection.js.map +1 -1
  787. package/build/rules.cjs +1 -1
  788. package/build/rules.d.cts +20 -20
  789. package/build/rules.d.cts.map +1 -1
  790. package/build/rules.d.mts +20 -20
  791. package/build/rules.d.mts.map +1 -1
  792. package/build/rules.js +1 -1
  793. package/build/runtimeConfig.d.cts +4 -5
  794. package/build/runtimeConfig.d.cts.map +1 -1
  795. package/build/runtimeConfig.d.mts +4 -5
  796. package/build/runtimeConfig.d.mts.map +1 -1
  797. package/build/serde/TypeInfo.d.cts +3 -4
  798. package/build/serde/TypeInfo.d.cts.map +1 -1
  799. package/build/serde/TypeInfo.d.mts +3 -4
  800. package/build/serde/TypeInfo.d.mts.map +1 -1
  801. package/build/serde/columns.cjs +3 -0
  802. package/build/serde/columns.cjs.map +1 -1
  803. package/build/serde/columns.d.cts +3 -3
  804. package/build/serde/columns.d.cts.map +1 -1
  805. package/build/serde/columns.d.mts +3 -3
  806. package/build/serde/columns.d.mts.map +1 -1
  807. package/build/serde/columns.js +3 -0
  808. package/build/serde/columns.js.map +1 -1
  809. package/build/serde/fieldSerde.cjs +3 -0
  810. package/build/serde/fieldSerde.cjs.map +1 -1
  811. package/build/serde/fieldSerde.d.cts +10 -9
  812. package/build/serde/fieldSerde.d.cts.map +1 -1
  813. package/build/serde/fieldSerde.d.mts +10 -9
  814. package/build/serde/fieldSerde.d.mts.map +1 -1
  815. package/build/serde/fieldSerde.js +3 -0
  816. package/build/serde/fieldSerde.js.map +1 -1
  817. package/build/serde/serde.cjs +60 -0
  818. package/build/serde/serde.cjs.map +1 -1
  819. package/build/serde/serde.d.cts +58 -19
  820. package/build/serde/serde.d.cts.map +1 -1
  821. package/build/serde/serde.d.mts +58 -19
  822. package/build/serde/serde.d.mts.map +1 -1
  823. package/build/serde/serde.js +60 -1
  824. package/build/serde/serde.js.map +1 -1
  825. package/build/serde/temporal.d.cts +5 -5
  826. package/build/serde/temporal.d.cts.map +1 -1
  827. package/build/serde/temporal.d.mts +5 -5
  828. package/build/serde/temporal.d.mts.map +1 -1
  829. package/build/serde/temporalMappers.cjs +8 -4
  830. package/build/serde/temporalMappers.cjs.map +1 -1
  831. package/build/serde/temporalMappers.d.cts +4 -5
  832. package/build/serde/temporalMappers.d.cts.map +1 -1
  833. package/build/serde/temporalMappers.d.mts +4 -5
  834. package/build/serde/temporalMappers.d.mts.map +1 -1
  835. package/build/serde/temporalMappers.js +8 -4
  836. package/build/serde/temporalMappers.js.map +1 -1
  837. package/build/transitions.cjs +89 -0
  838. package/build/transitions.cjs.map +1 -0
  839. package/build/transitions.d.cts +109 -0
  840. package/build/transitions.d.cts.map +1 -0
  841. package/build/transitions.d.mts +109 -0
  842. package/build/transitions.d.mts.map +1 -0
  843. package/build/transitions.js +84 -0
  844. package/build/transitions.js.map +1 -0
  845. package/build/trusted.d.cts +2 -3
  846. package/build/trusted.d.cts.map +1 -1
  847. package/build/trusted.d.mts +2 -3
  848. package/build/trusted.d.mts.map +1 -1
  849. package/build/typeMap.d.cts +17 -17
  850. package/build/typeMap.d.cts.map +1 -1
  851. package/build/typeMap.d.mts +17 -17
  852. package/build/typeMap.d.mts.map +1 -1
  853. package/build/upsert.cjs +1 -1
  854. package/build/upsert.d.cts +4 -4
  855. package/build/upsert.d.cts.map +1 -1
  856. package/build/upsert.d.mts +4 -4
  857. package/build/upsert.d.mts.map +1 -1
  858. package/build/upsert.js +1 -1
  859. package/build/utils.d.cts +27 -28
  860. package/build/utils.d.cts.map +1 -1
  861. package/build/utils.d.mts +27 -28
  862. package/build/utils.d.mts.map +1 -1
  863. package/package.json +6 -6
@@ -8,13 +8,13 @@ import { Entity, IdType } from "./Entity.cjs";
8
8
  *
9
9
  * This should be treated as an internal API and may change without notice.
10
10
  */
11
- declare function getInstanceData(entity: Entity): InstanceData;
11
+ export declare function getInstanceData(entity: Entity): InstanceData;
12
12
  /**
13
13
  * The base class for all entities.
14
14
  *
15
15
  * Currently, this just adds the `.load(lensFn)` method for declarative reference traversal.
16
16
  */
17
- declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
17
+ export declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
18
18
  static getInstanceData(entity: Entity): InstanceData;
19
19
  protected readonly __data: InstanceData;
20
20
  /** The single-arg constructor is our psuedo-public API that can only be called by the EntityManager. */
@@ -67,7 +67,6 @@ declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = I
67
67
  * The constructor logic for `BaseEntity` but exposed so that `newEntity` can use it too
68
68
  * on its `Object.create`-d instances.
69
69
  */
70
- declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
70
+ export declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
71
71
  //#endregion
72
- export { BaseEntity, baseEntityCstr, getInstanceData };
73
72
  //# sourceMappingURL=BaseEntity.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseEntity.d.cts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;iBAiBgB,gBAAgB,QAAQ,SAAS;;;;;;uBAS3B,WAAW,WAAW,eAAe,UAAU,SAAS,mBAAmB;SACjF,gBAAgB,QAAQ,SAAS;qBAI5B,QAAS;;EAG5B,YAAY,IAAI;MAaZ;;WAKK,IAAI;;eAGA,WAAW;;WAGf,UAAU;;eAGN,iBAAiB;;MAG1B;WAIK,IAAI;;;;WAKJ,WAAW;;;;WAKX,eAAe,gBAAgB;;;;;;;MAQpC;MAIA;MAIA;EAIJ;EAKA;MAKW,MAAM;;;;;;;;EAWV;GAIN,OAAO;;WAcS,iBAAiB;;;;;;iBA0BpB,eAAe,IAAI,eAAe,QAAQ,sBAAsB"}
1
+ {"version":3,"file":"BaseEntity.d.cts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;wBAiBgB,gBAAgB,QAAQ,SAAS;;;;;;8BAS3B,WAAW,WAAW,eAAe,UAAU,SAAS,mBAAmB;SACjF,gBAAgB,QAAQ,SAAS;qBAI5B,QAAS;;EAG5B,YAAY,IAAI;MAaZ;;WAKK,IAAI;;eAGA,WAAW;;WAGf,UAAU;;eAGN,iBAAiB;;MAG1B;WAIK,IAAI;;;;WAKJ,WAAW;;;;WAKX,eAAe,gBAAgB;;;;;;;MAQpC;MAIA;MAIA;EAIJ;EAKA;MAKW,MAAM;;;;;;;;EAWV;GAIN,OAAO;;WAcS,iBAAiB;;;;;;wBA0BpB,eAAe,IAAI,eAAe,QAAQ,sBAAsB"}
@@ -8,13 +8,13 @@ import { Entity, IdType } from "./Entity.mjs";
8
8
  *
9
9
  * This should be treated as an internal API and may change without notice.
10
10
  */
11
- declare function getInstanceData(entity: Entity): InstanceData;
11
+ export declare function getInstanceData(entity: Entity): InstanceData;
12
12
  /**
13
13
  * The base class for all entities.
14
14
  *
15
15
  * Currently, this just adds the `.load(lensFn)` method for declarative reference traversal.
16
16
  */
17
- declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
17
+ export declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
18
18
  static getInstanceData(entity: Entity): InstanceData;
19
19
  protected readonly __data: InstanceData;
20
20
  /** The single-arg constructor is our psuedo-public API that can only be called by the EntityManager. */
@@ -67,7 +67,6 @@ declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = I
67
67
  * The constructor logic for `BaseEntity` but exposed so that `newEntity` can use it too
68
68
  * on its `Object.create`-d instances.
69
69
  */
70
- declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
70
+ export declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
71
71
  //#endregion
72
- export { BaseEntity, baseEntityCstr, getInstanceData };
73
72
  //# sourceMappingURL=BaseEntity.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseEntity.d.mts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;iBAiBgB,gBAAgB,QAAQ,SAAS;;;;;;uBAS3B,WAAW,WAAW,eAAe,UAAU,SAAS,mBAAmB;SACjF,gBAAgB,QAAQ,SAAS;qBAI5B,QAAS;;EAG5B,YAAY,IAAI;MAaZ;;WAKK,IAAI;;eAGA,WAAW;;WAGf,UAAU;;eAGN,iBAAiB;;MAG1B;WAIK,IAAI;;;;WAKJ,WAAW;;;;WAKX,eAAe,gBAAgB;;;;;;;MAQpC;MAIA;MAIA;EAIJ;EAKA;MAKW,MAAM;;;;;;;;EAWV;GAIN,OAAO;;WAcS,iBAAiB;;;;;;iBA0BpB,eAAe,IAAI,eAAe,QAAQ,sBAAsB"}
1
+ {"version":3,"file":"BaseEntity.d.mts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;wBAiBgB,gBAAgB,QAAQ,SAAS;;;;;;8BAS3B,WAAW,WAAW,eAAe,UAAU,SAAS,mBAAmB;SACjF,gBAAgB,QAAQ,SAAS;qBAI5B,QAAS;;EAG5B,YAAY,IAAI;MAaZ;;WAKK,IAAI;;eAGA,WAAW;;WAGf,UAAU;;eAGN,iBAAiB;;MAG1B;WAIK,IAAI;;;;WAKJ,WAAW;;;;WAKX,eAAe,gBAAgB;;;;;;;MAQpC;MAIA;MAIA;EAIJ;EAKA;MAKW,MAAM;;;;;;;;EAWV;GAIN,OAAO;;WAcS,iBAAiB;;;;;;wBA0BpB,eAAe,IAAI,eAAe,QAAQ,sBAAsB"}
@@ -1,10 +1,10 @@
1
1
  import { EntityManager, TaggedId } from "./EntityManager.cjs";
2
2
  //#region src/Entity.d.ts
3
- declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
3
+ export declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
4
4
  /** All the types we support for entity `id` fields. */
5
- type IdType = number | string;
5
+ export type IdType = number | string;
6
6
  /** A marker/base interface for all of our entity types. */
7
- interface Entity {
7
+ export interface Entity {
8
8
  /** The entity id, either tagged or untagged; the per-application `Entity` will specialize appropriately. */
9
9
  id: IdType;
10
10
  idMaybe: IdType | undefined;
@@ -38,5 +38,4 @@ interface Entity {
38
38
  toTaggedString(): string;
39
39
  }
40
40
  //#endregion
41
- export { Entity, IdType, isEntity };
42
41
  //# sourceMappingURL=Entity.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Entity.d.cts","names":[],"sources":["../src/Entity.ts"],"mappings":";;iBAGgB,SAAS,uBAAuB,eAAe;;KAKnD;;UAGK;;EAEf,IAAI;EACJ,SAAS;;EAET,UAAU;EACV,eAAe;WACN,IAAI;WACJ;WACA;WACA;WACA,iBAAiB;EAC1B,IAAI;EACJ,WAAW;EACX,eAAe,gBAAgB;;;;;;;;;;EAU/B;;;;;;;EAOA"}
1
+ {"version":3,"file":"Entity.d.cts","names":[],"sources":["../src/Entity.ts"],"mappings":";;wBAGgB,SAAS,uBAAuB,eAAe;;YAKnD;;iBAGK;;EAEf,IAAI;EACJ,SAAS;;EAET,UAAU;EACV,eAAe;WACN,IAAI;WACJ;WACA;WACA;WACA,iBAAiB;EAC1B,IAAI;EACJ,WAAW;EACX,eAAe,gBAAgB;;;;;;;;;;EAU/B;;;;;;;EAOA"}
@@ -1,10 +1,10 @@
1
1
  import { EntityManager, TaggedId } from "./EntityManager.mjs";
2
2
  //#region src/Entity.d.ts
3
- declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
3
+ export declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
4
4
  /** All the types we support for entity `id` fields. */
5
- type IdType = number | string;
5
+ export type IdType = number | string;
6
6
  /** A marker/base interface for all of our entity types. */
7
- interface Entity {
7
+ export interface Entity {
8
8
  /** The entity id, either tagged or untagged; the per-application `Entity` will specialize appropriately. */
9
9
  id: IdType;
10
10
  idMaybe: IdType | undefined;
@@ -38,5 +38,4 @@ interface Entity {
38
38
  toTaggedString(): string;
39
39
  }
40
40
  //#endregion
41
- export { Entity, IdType, isEntity };
42
41
  //# sourceMappingURL=Entity.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Entity.d.mts","names":[],"sources":["../src/Entity.ts"],"mappings":";;iBAGgB,SAAS,uBAAuB,eAAe;;KAKnD;;UAGK;;EAEf,IAAI;EACJ,SAAS;;EAET,UAAU;EACV,eAAe;WACN,IAAI;WACJ;WACA;WACA;WACA,iBAAiB;EAC1B,IAAI;EACJ,WAAW;EACX,eAAe,gBAAgB;;;;;;;;;;EAU/B;;;;;;;EAOA"}
1
+ {"version":3,"file":"Entity.d.mts","names":[],"sources":["../src/Entity.ts"],"mappings":";;wBAGgB,SAAS,uBAAuB,eAAe;;YAKnD;;iBAGK;;EAEf,IAAI;EACJ,SAAS;;EAET,UAAU;EACV,eAAe;WACN,IAAI;WACJ;WACA;WACA;WACA,iBAAiB;EAC1B,IAAI;EACJ,WAAW;EACX,eAAe,gBAAgB;;;;;;;;;;EAU/B;;;;;;;EAOA"}
@@ -1,7 +1,7 @@
1
1
  //#region src/EntityFields.d.ts
2
2
  /** All the fields for an entity in the `FieldsOf` / `EntityField` format. */
3
- type EntityFields<T> = { [K in keyof T]: EntityField; };
4
- type EntityField = {
3
+ export type EntityFields<T> = { [K in keyof T]: EntityField; };
4
+ export type EntityField = {
5
5
  kind: "primitive";
6
6
  type: unknown;
7
7
  unique: boolean;
@@ -22,7 +22,7 @@ type EntityField = {
22
22
  nullable: never | unknown;
23
23
  };
24
24
  /** The subset of primitive, enum, and m2o fields from the `F` that are settable, i.e. not derived. */
25
- type SettableFields<F> = { [K in keyof F]: F[K] extends {
25
+ export type SettableFields<F> = { [K in keyof F]: F[K] extends {
26
26
  kind: "primitive";
27
27
  derived: false;
28
28
  } ? F[K] : F[K] extends {
@@ -32,5 +32,4 @@ type SettableFields<F> = { [K in keyof F]: F[K] extends {
32
32
  derived: false;
33
33
  } ? F[K] : never; };
34
34
  //#endregion
35
- export { EntityField, EntityFields, SettableFields };
36
35
  //# sourceMappingURL=EntityFields.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityFields.d.cts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;KACY,aAAa,QACtB,WAAW,IAAI;KAGN;EACN;EAAmB;EAAe;EAAiB;EAA6B;;EAChF;EAAc;EAAe;;EAC7B;EAAa;EAAe;EAA2B;;EACvD;EAAc;EAAe;;;KAGvB,eAAe,QACxB,WAAW,IAAI,EAAE;EAAa;EAAmB;IAC9C,EAAE,KACF,EAAE;EAAa;IACb,EAAE,KACF,EAAE;EAAa;EAAa;IAC1B,EAAE"}
1
+ {"version":3,"file":"EntityFields.d.cts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;YACY,aAAa,QACtB,WAAW,IAAI;YAGN;EACN;EAAmB;EAAe;EAAiB;EAA6B;;EAChF;EAAc;EAAe;;EAC7B;EAAa;EAAe;EAA2B;;EACvD;EAAc;EAAe;;;YAGvB,eAAe,QACxB,WAAW,IAAI,EAAE;EAAa;EAAmB;IAC9C,EAAE,KACF,EAAE;EAAa;IACb,EAAE,KACF,EAAE;EAAa;EAAa;IAC1B,EAAE"}
@@ -1,7 +1,7 @@
1
1
  //#region src/EntityFields.d.ts
2
2
  /** All the fields for an entity in the `FieldsOf` / `EntityField` format. */
3
- type EntityFields<T> = { [K in keyof T]: EntityField; };
4
- type EntityField = {
3
+ export type EntityFields<T> = { [K in keyof T]: EntityField; };
4
+ export type EntityField = {
5
5
  kind: "primitive";
6
6
  type: unknown;
7
7
  unique: boolean;
@@ -22,7 +22,7 @@ type EntityField = {
22
22
  nullable: never | unknown;
23
23
  };
24
24
  /** The subset of primitive, enum, and m2o fields from the `F` that are settable, i.e. not derived. */
25
- type SettableFields<F> = { [K in keyof F]: F[K] extends {
25
+ export type SettableFields<F> = { [K in keyof F]: F[K] extends {
26
26
  kind: "primitive";
27
27
  derived: false;
28
28
  } ? F[K] : F[K] extends {
@@ -32,5 +32,4 @@ type SettableFields<F> = { [K in keyof F]: F[K] extends {
32
32
  derived: false;
33
33
  } ? F[K] : never; };
34
34
  //#endregion
35
- export { EntityField, EntityFields, SettableFields };
36
35
  //# sourceMappingURL=EntityFields.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityFields.d.mts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;KACY,aAAa,QACtB,WAAW,IAAI;KAGN;EACN;EAAmB;EAAe;EAAiB;EAA6B;;EAChF;EAAc;EAAe;;EAC7B;EAAa;EAAe;EAA2B;;EACvD;EAAc;EAAe;;;KAGvB,eAAe,QACxB,WAAW,IAAI,EAAE;EAAa;EAAmB;IAC9C,EAAE,KACF,EAAE;EAAa;IACb,EAAE,KACF,EAAE;EAAa;EAAa;IAC1B,EAAE"}
1
+ {"version":3,"file":"EntityFields.d.mts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;YACY,aAAa,QACtB,WAAW,IAAI;YAGN;EACN;EAAmB;EAAe;EAAiB;EAA6B;;EAChF;EAAc;EAAe;;EAC7B;EAAa;EAAe;EAA2B;;EACvD;EAAc;EAAe;;;YAGvB,eAAe,QACxB,WAAW,IAAI,EAAE;EAAa;EAAmB;IAC9C,EAAE,KACF,EAAE;EAAa;IACb,EAAE,KACF,EAAE;EAAa;EAAa;IAC1B,EAAE"}
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
3
3
  const require_batchloaders_BatchLoader = require("./batchloaders/BatchLoader.cjs");
4
4
  require("./relations/Collection.cjs");
5
+ const require_newEntity = require("./newEntity.cjs");
5
6
  const require_relations_CustomCollection = require("./relations/CustomCollection.cjs");
6
7
  const require_relations_CustomReference = require("./relations/CustomReference.cjs");
7
8
  const require_normalizeHints = require("./normalizeHints.cjs");
@@ -14,7 +15,6 @@ const require_reactivity_reactiveHints = require("./reactivity/reactiveHints.cjs
14
15
  const require_loading_loadHints = require("./loading/loadHints.cjs");
15
16
  const require_relations_hasAsyncMethod = require("./relations/hasAsyncMethod.cjs");
16
17
  const require_relations_AsyncProperty = require("./relations/AsyncProperty.cjs");
17
- const require_fields = require("./fields.cjs");
18
18
  const require_keys = require("./keys.cjs");
19
19
  const require_RowData = require("./RowData.cjs");
20
20
  const require_relations_LazyField = require("./relations/LazyField.cjs");
@@ -30,11 +30,12 @@ const require_relations_OneToOneReference = require("./relations/OneToOneReferen
30
30
  const require_relations_PolymorphicReference = require("./relations/PolymorphicReference.cjs");
31
31
  require("./relations/index.cjs");
32
32
  const require_utils = require("./utils.cjs");
33
- const require_newEntity = require("./newEntity.cjs");
33
+ const require_fields = require("./fields.cjs");
34
+ const require_flush_ReadDrift = require("./flush/ReadDrift.cjs");
34
35
  require("./typeMap.cjs");
35
36
  const require_rules = require("./rules.cjs");
36
- const require_configure = require("./configure.cjs");
37
37
  const require_config = require("./config.cjs");
38
+ const require_configure = require("./configure.cjs");
38
39
  const require_EntityMetadata = require("./EntityMetadata.cjs");
39
40
  const require_trusted = require("./trusted.cjs");
40
41
  const require_defaults = require("./defaults.cjs");
@@ -109,6 +110,8 @@ var EntityManager = class EntityManager {
109
110
  #entitiesByTag = /* @__PURE__ */ new Map();
110
111
  #indexManager = new require_IndexManager.IndexManager();
111
112
  #isValidating = false;
113
+ /** The error that failed a previous `em.flush`, after which this EntityManager can't flush again. */
114
+ #flushError = void 0;
112
115
  #findRestricted = false;
113
116
  #pendingPercolate = /* @__PURE__ */ new Map();
114
117
  #preloadedRelations = /* @__PURE__ */ new Map();
@@ -135,6 +138,8 @@ var EntityManager = class EntityManager {
135
138
  beforeCommit: [],
136
139
  afterCommit: []
137
140
  };
141
+ #forceTransaction = false;
142
+ #readSet = /* @__PURE__ */ new Set();
138
143
  #preloader;
139
144
  #fieldLogger = require_logging_FieldLogger.noopFieldLogger;
140
145
  #isLoadedCache = new require_loading_IsLoadedCache.IsLoadedCache();
@@ -157,6 +162,7 @@ var EntityManager = class EntityManager {
157
162
  beforeCommit: [...opts.em.#hooks.beforeCommit],
158
163
  afterCommit: [...opts.em.#hooks.afterCommit]
159
164
  };
165
+ this.#forceTransaction = opts.em.#forceTransaction;
160
166
  opts.em.__api.pluginManager.cloneTo(pluginManager);
161
167
  }
162
168
  const em = this;
@@ -300,7 +306,7 @@ var EntityManager = class EntityManager {
300
306
  this.#assertFindAllowed("query");
301
307
  const em = this;
302
308
  return (async function query() {
303
- const plan = require_queries_sql_query.parseUserQuery(q);
309
+ const plan = require_queries_sql_query.parseRootQuery(q);
304
310
  if (options?.populate && plan.output.kind !== "entity") require_utils.fail("em.query populate requires an entity selection");
305
311
  const { rows } = await em.driver.executeQuery(em, plan.sql, plan.bindings);
306
312
  const result = plan.decodeRows(em, rows);
@@ -519,18 +525,22 @@ var EntityManager = class EntityManager {
519
525
  return require_upsert.upsert(this, type, input);
520
526
  }
521
527
  async clone(entityOrArray, opts) {
522
- const { deep = {}, skipIf, skip = {}, postClone } = opts ?? {};
528
+ const { deep = {}, skipIf, skip = {}, overrides, postClone } = opts ?? {};
523
529
  const todo = /* @__PURE__ */ new Set();
524
530
  const skipMap = /* @__PURE__ */ new WeakMap();
525
531
  await crawl(todo, skipMap, Array.isArray(entityOrArray) ? entityOrArray : [entityOrArray], deep, {
526
- skipIf,
532
+ skipIf: (entity) => invokeCloneCallback(skipIf, entity) ?? false,
527
533
  skip
528
534
  });
529
535
  const deferredRelations = [];
536
+ const overrideMap = /* @__PURE__ */ new WeakMap();
530
537
  const clones = [...todo].map((entity) => {
531
538
  const skip = skipMap.get(entity) ?? [];
539
+ const override = invokeCloneCallback(overrides, entity) ?? {};
540
+ overrideMap.set(entity, override);
532
541
  const meta = require_EntityMetadata.getMetadata(entity);
533
542
  const copy = Object.fromEntries(Object.values(meta.allFields).map((f) => {
543
+ if (Object.hasOwn(override, f.fieldName)) return [f.fieldName, override[f.fieldName]];
534
544
  if (skip.includes(f.fieldName)) return void 0;
535
545
  switch (f.kind) {
536
546
  case "primitive": if (!f.derived && !f.protected) return [f.fieldName, require_fields.getField(entity, f.fieldName)];
@@ -560,11 +570,15 @@ var EntityManager = class EntityManager {
560
570
  default: require_utils.assertNever(f);
561
571
  }
562
572
  }).filter(isDefined));
563
- return [entity, this.create(require_index.asConcreteCstr(meta.cstr), copy)];
573
+ return [entity, this.create(require_index.asConcreteCstr(meta.cstr), {
574
+ ...copy,
575
+ ...override
576
+ })];
564
577
  });
565
578
  const entityToClone = new Map(clones);
566
- clones.forEach(([, clone]) => {
579
+ clones.forEach(([original, clone]) => {
567
580
  require_index.getRelationEntries(clone).forEach(([fieldName, value]) => {
581
+ if (Object.hasOwn(overrideMap.get(original), fieldName)) return;
568
582
  if (value instanceof require_relations_ManyToOneReference.ManyToOneReferenceImpl || value instanceof require_relations_PolymorphicReference.PolymorphicReferenceImpl || value instanceof require_relations_ReactiveReference.ReactiveReferenceImpl) {
569
583
  const existingIdOrEntity = require_fields.getField(clone, fieldName);
570
584
  const existing = require_Entity.isEntity(existingIdOrEntity) ? existingIdOrEntity : this.getEntity(existingIdOrEntity);
@@ -575,7 +589,7 @@ var EntityManager = class EntityManager {
575
589
  deferredRelations.forEach(([source, fieldName, target]) => {
576
590
  entityToClone.get(source)[fieldName].set(entityToClone.get(target));
577
591
  });
578
- if (postClone) await Promise.all(clones.map(([original, clone]) => postClone(original, clone)));
592
+ if (postClone) await Promise.all(clones.map((pair) => invokeCloneCallback(postClone, ...pair)));
579
593
  return Array.isArray(entityOrArray) ? entityOrArray.filter((original) => entityToClone.has(original)).map((original) => entityToClone.get(original)) : clones[0] ? clones[0][1] : require_utils.fail("no entities were cloned given the provided options");
580
594
  }
581
595
  /**
@@ -866,6 +880,7 @@ var EntityManager = class EntityManager {
866
880
  }
867
881
  async #flush(flushOptions = {}) {
868
882
  if (this.mode === "read-only") throw new ReadOnlyError();
883
+ if (this.#flushError !== void 0) throw new FailedFlushError(this.#flushError);
869
884
  const { skipValidation = false } = flushOptions;
870
885
  this.#fl.startLock();
871
886
  const allFlushedEntities = /* @__PURE__ */ new Set();
@@ -990,9 +1005,11 @@ var EntityManager = class EntityManager {
990
1005
  await runValidation(entityTodos, joinRowTodos, !skipValidation);
991
1006
  this.#rm.throwIfAnySuppressedTypeErrors();
992
1007
  if (suppressedDefaultTypeErrors.length > 0) throw suppressedDefaultTypeErrors[0];
993
- if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0) {
1008
+ if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0 || this.#rm.hasPendingCommitTransitions() || this.#readSet.size > 0 || this.#forceTransaction) {
1009
+ const checkedReads = /* @__PURE__ */ new Set();
994
1010
  await this.driver.transaction(this, async () => {
995
1011
  do {
1012
+ if (this.#readSet.size > 0) await require_flush_ReadDrift.checkReadDrift(this, this.#readSet, allFlushedEntities, checkedReads);
996
1013
  if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0) {
997
1014
  await this.driver.flush(this, entityTodos, joinRowTodos);
998
1015
  collectCommitRuleTodos(entityTodos, joinRowTodos);
@@ -1021,6 +1038,8 @@ var EntityManager = class EntityManager {
1021
1038
  await runCommitValidation(commitRuleTodos, commitRuleJoinRowTodos);
1022
1039
  }
1023
1040
  await beforeCommit(this.ctx, allFlushedEntities);
1041
+ await this.#rm.runCommitTransitions();
1042
+ if (this.#readSet.size > 0) await require_flush_ReadDrift.checkReadDrift(this, this.#readSet, allFlushedEntities, checkedReads);
1024
1043
  if (this.mode === "in-memory-writes") throw new InMemoryRollbackError();
1025
1044
  });
1026
1045
  await afterCommit(this.ctx, allFlushedEntities);
@@ -1040,12 +1059,14 @@ var EntityManager = class EntityManager {
1040
1059
  this.#dataloaders = {};
1041
1060
  this.#batchLoaders = {};
1042
1061
  this.#preloadedRelations = /* @__PURE__ */ new Map();
1043
- this.#rm.clear();
1044
1062
  }
1045
1063
  for (const e of createdThenDeleted) require_BaseEntity.getInstanceData(e).fixupCreatedThenDeleted();
1046
1064
  this.#merging?.clear();
1065
+ this.#rm.clear();
1066
+ this.#readSet.clear();
1047
1067
  return [...allFlushedEntities].sort((a, b) => require_BaseEntity.getInstanceData(a).entityIndex - require_BaseEntity.getInstanceData(b).entityIndex);
1048
1068
  } catch (e) {
1069
+ if (!(e instanceof InMemoryRollbackError)) this.#flushError = e;
1049
1070
  if (e instanceof require_relations_RecursiveCycleError.RecursiveCycleError) {
1050
1071
  const entity = e.entities[0];
1051
1072
  for (const meta of require_EntityMetadata.getBaseAndSelfMetas(require_EntityMetadata.getMetadata(entity))) {
@@ -1202,6 +1223,15 @@ var EntityManager = class EntityManager {
1202
1223
  }
1203
1224
  return entities;
1204
1225
  }
1226
+ assertUnchanged(entityOrEntities) {
1227
+ const entities = require_Entity.isEntity(entityOrEntities) ? [entityOrEntities] : entityOrEntities;
1228
+ for (const entity of entities) {
1229
+ if (entity.em !== this) throw new Error("assertUnchanged requires entities from this EntityManager");
1230
+ if (entity.isNewEntity) continue;
1231
+ if (!require_EntityMetadata.getBaseMeta(require_EntityMetadata.getMetadata(entity)).timestampFields?.updatedAt) throw new Error(`assertUnchanged requires updatedAt on ${entity}`);
1232
+ this.#readSet.add(entity);
1233
+ }
1234
+ }
1205
1235
  touch(entityOrEntities) {
1206
1236
  for (const entity of require_utils.toArray(entityOrEntities)) require_BaseEntity.getInstanceData(entity).markTouched();
1207
1237
  }
@@ -1237,17 +1267,25 @@ var EntityManager = class EntityManager {
1237
1267
  }));
1238
1268
  await this.#rm.recalcPendingReactables("reactables");
1239
1269
  }
1240
- beforeBegin(fn) {
1270
+ /** Registers a hook to run before the transaction begins. */
1271
+ beforeBegin(fn, opts = {}) {
1241
1272
  this.#hooks.beforeBegin.push(fn);
1273
+ this.#forceTransaction ||= opts.forceTransaction ?? false;
1242
1274
  }
1243
- afterBegin(fn) {
1275
+ /** Registers a hook to run after the transaction begins. */
1276
+ afterBegin(fn, opts = {}) {
1244
1277
  this.#hooks.afterBegin.push(fn);
1278
+ this.#forceTransaction ||= opts.forceTransaction ?? false;
1245
1279
  }
1246
- beforeCommit(fn) {
1280
+ /** Registers a hook to run before the transaction commits. */
1281
+ beforeCommit(fn, opts = {}) {
1247
1282
  this.#hooks.beforeCommit.push(fn);
1283
+ this.#forceTransaction ||= opts.forceTransaction ?? false;
1248
1284
  }
1249
- afterCommit(fn) {
1285
+ /** Registers a hook to run after the transaction commits. */
1286
+ afterCommit(fn, opts = {}) {
1250
1287
  this.#hooks.afterCommit.push(fn);
1288
+ this.#forceTransaction ||= opts.forceTransaction ?? false;
1251
1289
  }
1252
1290
  /**
1253
1291
  * Returns an EntityManager-scoped (i.e. request scoped) data loader.
@@ -1326,6 +1364,7 @@ var EntityManager = class EntityManager {
1326
1364
  } else throw new Error("Unsupported override for setFieldLogging");
1327
1365
  }
1328
1366
  async [Symbol.asyncDispose]() {
1367
+ if (this.#flushError !== void 0) return;
1329
1368
  await this.flush();
1330
1369
  }
1331
1370
  /** Returns entities matching the filter using indexed search when available. */
@@ -1751,6 +1790,18 @@ function recalcSynchronousDerivedFields(todos) {
1751
1790
  }
1752
1791
  }
1753
1792
  }
1793
+ /** Invokes only the most specific handler, falling back to a base type when no concrete-type handler exists. */
1794
+ function invokeCloneCallback(callback, ...args) {
1795
+ if (typeof callback === "function") return callback(...args);
1796
+ if (!callback) return void 0;
1797
+ const handlers = callback;
1798
+ let meta = require_EntityMetadata.getMetadata(args[0]);
1799
+ while (meta) {
1800
+ const handler = Object.hasOwn(handlers, meta.type) ? handlers[meta.type] : void 0;
1801
+ if (handler) return handler(...args);
1802
+ meta = meta.baseType ? require_configure.getMetadataForType(meta.baseType) : void 0;
1803
+ }
1804
+ }
1754
1805
  /** Recursively crawls through `entity`, with the given populate `deep` hint, and adds anything found to `found`. */
1755
1806
  async function crawl(found, skipMap, entities, deep, opts = {}) {
1756
1807
  const { skipIf = () => false } = opts ?? {};
@@ -1801,7 +1852,7 @@ function maybeBumpUpdatedAt(rm, todos, now) {
1801
1852
  const { updatedAt } = todo.metadata.timestampFields ?? {};
1802
1853
  if (updatedAt) for (const e of todo.updates) {
1803
1854
  const orm = require_BaseEntity.getInstanceData(e);
1804
- orm.markFieldDirty(updatedAt, require_fields.getField(e, updatedAt));
1855
+ orm.markFieldDirty(updatedAt, require_fields.getField(e, updatedAt, true));
1805
1856
  const serde = todo.metadata.fields[updatedAt].serde;
1806
1857
  orm.data[updatedAt] = serde.mapFromNow(now);
1807
1858
  rm.queueDownstreamReactables(e, updatedAt);
@@ -1861,6 +1912,12 @@ function hasPaginationSettings(options) {
1861
1912
  }
1862
1913
  /** An error we throw to get knex to `ROLLBACK`, but then catch. */
1863
1914
  var InMemoryRollbackError = class extends Error {};
1915
+ /** An error thrown by `em.flush` after a previous `em.flush` on the same EntityManager failed. */
1916
+ var FailedFlushError = class extends Error {
1917
+ constructor(cause) {
1918
+ super("EntityManager cannot flush after a previous flush failed, use a new EntityManager", { cause });
1919
+ }
1920
+ };
1864
1921
  /** An error thrown when `em.mode === "read-only"` but entities are mutated/flushed. */
1865
1922
  var ReadOnlyError = class extends Error {
1866
1923
  constructor() {
@@ -1912,6 +1969,7 @@ function createRowFromEntityData(e, opts = {}) {
1912
1969
  }
1913
1970
  //#endregion
1914
1971
  exports.EntityManager = EntityManager;
1972
+ exports.FailedFlushError = FailedFlushError;
1915
1973
  exports.NotFoundError = NotFoundError;
1916
1974
  exports.ReadOnlyError = ReadOnlyError;
1917
1975
  exports.TooManyError = TooManyError;
@@ -1923,6 +1981,7 @@ exports.driverBeforeBegin = driverBeforeBegin;
1923
1981
  exports.driverBeforeCommit = driverBeforeCommit;
1924
1982
  exports.getDefaultEntityLimit = getDefaultEntityLimit;
1925
1983
  exports.getEmInternalApi = getEmInternalApi;
1984
+ exports.invokeRule = invokeRule;
1926
1985
  exports.isDefined = isDefined;
1927
1986
  exports.isId = isId;
1928
1987
  exports.isKey = isKey;