joist-core 2.4.0-next.4 → 2.4.0-next.41

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 (791) 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 +64 -20
  14. package/build/EntityManager.cjs.map +1 -1
  15. package/build/EntityManager.d.cts +86 -53
  16. package/build/EntityManager.d.cts.map +1 -1
  17. package/build/EntityManager.d.mts +86 -53
  18. package/build/EntityManager.d.mts.map +1 -1
  19. package/build/EntityManager.js +64 -22
  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 +39 -36
  24. package/build/EntityMetadata.d.cts.map +1 -1
  25. package/build/EntityMetadata.d.mts +39 -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.d.cts +2 -3
  76. package/build/batchloaders/oneToManyBatchLoader.d.cts.map +1 -1
  77. package/build/batchloaders/oneToManyBatchLoader.d.mts +2 -3
  78. package/build/batchloaders/oneToManyBatchLoader.d.mts.map +1 -1
  79. package/build/batchloaders/oneToOneBatchLoader.d.cts +2 -3
  80. package/build/batchloaders/oneToOneBatchLoader.d.cts.map +1 -1
  81. package/build/batchloaders/oneToOneBatchLoader.d.mts +2 -3
  82. package/build/batchloaders/oneToOneBatchLoader.d.mts.map +1 -1
  83. package/build/batchloaders/populateBatchLoader.cjs +2 -2
  84. package/build/batchloaders/populateBatchLoader.d.cts +2 -3
  85. package/build/batchloaders/populateBatchLoader.d.cts.map +1 -1
  86. package/build/batchloaders/populateBatchLoader.d.mts +2 -3
  87. package/build/batchloaders/populateBatchLoader.d.mts.map +1 -1
  88. package/build/batchloaders/populateBatchLoader.js +2 -2
  89. package/build/batchloaders/recursiveChildrenBatchLoader.cjs +1 -1
  90. package/build/batchloaders/recursiveChildrenBatchLoader.d.cts +2 -3
  91. package/build/batchloaders/recursiveChildrenBatchLoader.d.cts.map +1 -1
  92. package/build/batchloaders/recursiveChildrenBatchLoader.d.mts +2 -3
  93. package/build/batchloaders/recursiveChildrenBatchLoader.d.mts.map +1 -1
  94. package/build/batchloaders/recursiveChildrenBatchLoader.js +1 -1
  95. package/build/batchloaders/recursiveM2mBatchLoader.cjs +1 -1
  96. package/build/batchloaders/recursiveM2mBatchLoader.d.cts +2 -3
  97. package/build/batchloaders/recursiveM2mBatchLoader.d.cts.map +1 -1
  98. package/build/batchloaders/recursiveM2mBatchLoader.d.mts +2 -3
  99. package/build/batchloaders/recursiveM2mBatchLoader.d.mts.map +1 -1
  100. package/build/batchloaders/recursiveM2mBatchLoader.js +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.map +1 -1
  108. package/build/changes.d.cts +9 -10
  109. package/build/changes.d.cts.map +1 -1
  110. package/build/changes.d.mts +9 -10
  111. package/build/changes.d.mts.map +1 -1
  112. package/build/changes.js.map +1 -1
  113. package/build/config.cjs +75 -1
  114. package/build/config.cjs.map +1 -1
  115. package/build/config.d.cts +99 -17
  116. package/build/config.d.cts.map +1 -1
  117. package/build/config.d.mts +99 -17
  118. package/build/config.d.mts.map +1 -1
  119. package/build/config.js +75 -1
  120. package/build/config.js.map +1 -1
  121. package/build/configure.cjs +6 -2
  122. package/build/configure.cjs.map +1 -1
  123. package/build/configure.d.cts +8 -9
  124. package/build/configure.d.cts.map +1 -1
  125. package/build/configure.d.mts +8 -9
  126. package/build/configure.d.mts.map +1 -1
  127. package/build/configure.js +6 -2
  128. package/build/configure.js.map +1 -1
  129. package/build/dataloaders/fastWhereFilterHash.d.cts +1 -2
  130. package/build/dataloaders/fastWhereFilterHash.d.cts.map +1 -1
  131. package/build/dataloaders/fastWhereFilterHash.d.mts +1 -2
  132. package/build/dataloaders/fastWhereFilterHash.d.mts.map +1 -1
  133. package/build/dataloaders/findByUniqueDataLoader.d.cts +2 -3
  134. package/build/dataloaders/findByUniqueDataLoader.d.cts.map +1 -1
  135. package/build/dataloaders/findByUniqueDataLoader.d.mts +2 -3
  136. package/build/dataloaders/findByUniqueDataLoader.d.mts.map +1 -1
  137. package/build/dataloaders/findCountDataLoader.d.cts +4 -5
  138. package/build/dataloaders/findCountDataLoader.d.cts.map +1 -1
  139. package/build/dataloaders/findCountDataLoader.d.mts +4 -5
  140. package/build/dataloaders/findCountDataLoader.d.mts.map +1 -1
  141. package/build/dataloaders/findDataLoader.cjs +1 -1
  142. package/build/dataloaders/findDataLoader.d.cts +11 -12
  143. package/build/dataloaders/findDataLoader.d.cts.map +1 -1
  144. package/build/dataloaders/findDataLoader.d.mts +11 -12
  145. package/build/dataloaders/findDataLoader.d.mts.map +1 -1
  146. package/build/dataloaders/findDataLoader.js +1 -1
  147. package/build/dataloaders/findIdsDataLoader.d.cts +2 -3
  148. package/build/dataloaders/findIdsDataLoader.d.cts.map +1 -1
  149. package/build/dataloaders/findIdsDataLoader.d.mts +2 -3
  150. package/build/dataloaders/findIdsDataLoader.d.mts.map +1 -1
  151. package/build/dataloaders/findOrCreateDataLoader.cjs +6 -2
  152. package/build/dataloaders/findOrCreateDataLoader.cjs.map +1 -1
  153. package/build/dataloaders/findOrCreateDataLoader.d.cts +3 -3
  154. package/build/dataloaders/findOrCreateDataLoader.d.cts.map +1 -1
  155. package/build/dataloaders/findOrCreateDataLoader.d.mts +3 -3
  156. package/build/dataloaders/findOrCreateDataLoader.d.mts.map +1 -1
  157. package/build/dataloaders/findOrCreateDataLoader.js +7 -3
  158. package/build/dataloaders/findOrCreateDataLoader.js.map +1 -1
  159. package/build/dataloaders/findPaginatedDataLoader.cjs +1 -1
  160. package/build/dataloaders/findPaginatedDataLoader.d.cts +1 -2
  161. package/build/dataloaders/findPaginatedDataLoader.d.cts.map +1 -1
  162. package/build/dataloaders/findPaginatedDataLoader.d.mts +1 -2
  163. package/build/dataloaders/findPaginatedDataLoader.d.mts.map +1 -1
  164. package/build/dataloaders/findPaginatedDataLoader.js +1 -1
  165. package/build/dataloaders/lensDataLoader.d.cts +2 -3
  166. package/build/dataloaders/lensDataLoader.d.cts.map +1 -1
  167. package/build/dataloaders/lensDataLoader.d.mts +2 -3
  168. package/build/dataloaders/lensDataLoader.d.mts.map +1 -1
  169. package/build/dataloaders/manyToManyFindDataLoader.d.cts +2 -3
  170. package/build/dataloaders/manyToManyFindDataLoader.d.cts.map +1 -1
  171. package/build/dataloaders/manyToManyFindDataLoader.d.mts +2 -3
  172. package/build/dataloaders/manyToManyFindDataLoader.d.mts.map +1 -1
  173. package/build/dataloaders/oneToManyFindDataLoader.d.cts +2 -3
  174. package/build/dataloaders/oneToManyFindDataLoader.d.cts.map +1 -1
  175. package/build/dataloaders/oneToManyFindDataLoader.d.mts +2 -3
  176. package/build/dataloaders/oneToManyFindDataLoader.d.mts.map +1 -1
  177. package/build/defaults.cjs +2 -2
  178. package/build/defaults.cjs.map +1 -1
  179. package/build/defaults.d.cts +7 -7
  180. package/build/defaults.d.cts.map +1 -1
  181. package/build/defaults.d.mts +7 -7
  182. package/build/defaults.d.mts.map +1 -1
  183. package/build/defaults.js +2 -2
  184. package/build/defaults.js.map +1 -1
  185. package/build/drivers/Driver.d.cts +2 -3
  186. package/build/drivers/Driver.d.cts.map +1 -1
  187. package/build/drivers/Driver.d.mts +2 -3
  188. package/build/drivers/Driver.d.mts.map +1 -1
  189. package/build/drivers/EntityWriter.d.cts +7 -7
  190. package/build/drivers/EntityWriter.d.cts.map +1 -1
  191. package/build/drivers/EntityWriter.d.mts +7 -7
  192. package/build/drivers/EntityWriter.d.mts.map +1 -1
  193. package/build/drivers/IdAssigner.cjs.map +1 -1
  194. package/build/drivers/IdAssigner.d.cts +5 -5
  195. package/build/drivers/IdAssigner.d.cts.map +1 -1
  196. package/build/drivers/IdAssigner.d.mts +5 -5
  197. package/build/drivers/IdAssigner.d.mts.map +1 -1
  198. package/build/drivers/IdAssigner.js.map +1 -1
  199. package/build/drivers/driverApi.d.cts +2 -3
  200. package/build/drivers/driverApi.d.cts.map +1 -1
  201. package/build/drivers/driverApi.d.mts +2 -3
  202. package/build/drivers/driverApi.d.mts.map +1 -1
  203. package/build/fields.cjs +1 -0
  204. package/build/fields.cjs.map +1 -1
  205. package/build/fields.d.cts +6 -7
  206. package/build/fields.d.cts.map +1 -1
  207. package/build/fields.d.mts +6 -7
  208. package/build/fields.d.mts.map +1 -1
  209. package/build/fields.js +1 -0
  210. package/build/fields.js.map +1 -1
  211. package/build/flush/FlushLock.cjs.map +1 -1
  212. package/build/flush/FlushLock.d.cts +1 -2
  213. package/build/flush/FlushLock.d.cts.map +1 -1
  214. package/build/flush/FlushLock.d.mts +1 -2
  215. package/build/flush/FlushLock.d.mts.map +1 -1
  216. package/build/flush/FlushLock.js.map +1 -1
  217. package/build/flush/JoinRows.cjs.map +1 -1
  218. package/build/flush/JoinRows.d.cts +5 -6
  219. package/build/flush/JoinRows.d.cts.map +1 -1
  220. package/build/flush/JoinRows.d.mts +5 -6
  221. package/build/flush/JoinRows.d.mts.map +1 -1
  222. package/build/flush/JoinRows.js.map +1 -1
  223. package/build/flush/PendingChanges.d.cts +5 -6
  224. package/build/flush/PendingChanges.d.cts.map +1 -1
  225. package/build/flush/PendingChanges.d.mts +5 -6
  226. package/build/flush/PendingChanges.d.mts.map +1 -1
  227. package/build/flush/Todo.d.cts +5 -6
  228. package/build/flush/Todo.d.cts.map +1 -1
  229. package/build/flush/Todo.d.mts +5 -6
  230. package/build/flush/Todo.d.mts.map +1 -1
  231. package/build/getProperties.d.cts +3 -4
  232. package/build/getProperties.d.cts.map +1 -1
  233. package/build/getProperties.d.mts +3 -4
  234. package/build/getProperties.d.mts.map +1 -1
  235. package/build/index.cjs +14 -8
  236. package/build/index.cjs.map +1 -1
  237. package/build/index.d.cts +20 -19
  238. package/build/index.d.cts.map +1 -1
  239. package/build/index.d.mts +20 -19
  240. package/build/index.d.mts.map +1 -1
  241. package/build/index.js +14 -11
  242. package/build/index.js.map +1 -1
  243. package/build/json.cjs +3 -3
  244. package/build/json.d.cts +11 -11
  245. package/build/json.d.cts.map +1 -1
  246. package/build/json.d.mts +11 -11
  247. package/build/json.d.mts.map +1 -1
  248. package/build/json.js +3 -3
  249. package/build/keys.d.cts +27 -27
  250. package/build/keys.d.cts.map +1 -1
  251. package/build/keys.d.mts +27 -27
  252. package/build/keys.d.mts.map +1 -1
  253. package/build/loading/HintTree.d.cts +3 -4
  254. package/build/loading/HintTree.d.cts.map +1 -1
  255. package/build/loading/HintTree.d.mts +3 -4
  256. package/build/loading/HintTree.d.mts.map +1 -1
  257. package/build/loading/IsLoadedCache.cjs.map +1 -1
  258. package/build/loading/IsLoadedCache.d.cts +2 -3
  259. package/build/loading/IsLoadedCache.d.cts.map +1 -1
  260. package/build/loading/IsLoadedCache.d.mts +2 -3
  261. package/build/loading/IsLoadedCache.d.mts.map +1 -1
  262. package/build/loading/IsLoadedCache.js.map +1 -1
  263. package/build/loading/loadHints.cjs +1 -1
  264. package/build/loading/loadHints.d.cts +17 -17
  265. package/build/loading/loadHints.d.cts.map +1 -1
  266. package/build/loading/loadHints.d.mts +17 -17
  267. package/build/loading/loadHints.d.mts.map +1 -1
  268. package/build/loading/loadHints.js +1 -1
  269. package/build/loading/loadLens.d.cts +13 -13
  270. package/build/loading/loadLens.d.cts.map +1 -1
  271. package/build/loading/loadLens.d.mts +13 -13
  272. package/build/loading/loadLens.d.mts.map +1 -1
  273. package/build/loading/withLoaded.cjs +2 -2
  274. package/build/loading/withLoaded.d.cts +5 -6
  275. package/build/loading/withLoaded.d.cts.map +1 -1
  276. package/build/loading/withLoaded.d.mts +5 -6
  277. package/build/loading/withLoaded.d.mts.map +1 -1
  278. package/build/loading/withLoaded.js +2 -2
  279. package/build/logging/FactoryLogger.d.cts +3 -4
  280. package/build/logging/FactoryLogger.d.cts.map +1 -1
  281. package/build/logging/FactoryLogger.d.mts +3 -4
  282. package/build/logging/FactoryLogger.d.mts.map +1 -1
  283. package/build/logging/FieldLogger.cjs.map +1 -1
  284. package/build/logging/FieldLogger.d.cts +4 -5
  285. package/build/logging/FieldLogger.d.cts.map +1 -1
  286. package/build/logging/FieldLogger.d.mts +4 -5
  287. package/build/logging/FieldLogger.d.mts.map +1 -1
  288. package/build/logging/FieldLogger.js.map +1 -1
  289. package/build/logging/ReactionLogger.d.cts +7 -7
  290. package/build/logging/ReactionLogger.d.cts.map +1 -1
  291. package/build/logging/ReactionLogger.d.mts +7 -7
  292. package/build/logging/ReactionLogger.d.mts.map +1 -1
  293. package/build/newEntity.cjs.map +1 -1
  294. package/build/newEntity.d.cts +4 -5
  295. package/build/newEntity.d.cts.map +1 -1
  296. package/build/newEntity.d.mts +4 -5
  297. package/build/newEntity.d.mts.map +1 -1
  298. package/build/newEntity.js.map +1 -1
  299. package/build/newTestInstance.cjs +1 -0
  300. package/build/newTestInstance.cjs.map +1 -1
  301. package/build/newTestInstance.d.cts +21 -21
  302. package/build/newTestInstance.d.cts.map +1 -1
  303. package/build/newTestInstance.d.mts +21 -21
  304. package/build/newTestInstance.d.mts.map +1 -1
  305. package/build/newTestInstance.js +1 -0
  306. package/build/newTestInstance.js.map +1 -1
  307. package/build/normalizeHints.d.cts +7 -8
  308. package/build/normalizeHints.d.cts.map +1 -1
  309. package/build/normalizeHints.d.mts +7 -8
  310. package/build/normalizeHints.d.mts.map +1 -1
  311. package/build/nowUTC.d.cts +4 -5
  312. package/build/nowUTC.d.cts.map +1 -1
  313. package/build/nowUTC.d.mts +4 -5
  314. package/build/nowUTC.d.mts.map +1 -1
  315. package/build/plugins/ImmutableEntitiesPlugin.d.cts +1 -2
  316. package/build/plugins/ImmutableEntitiesPlugin.d.cts.map +1 -1
  317. package/build/plugins/ImmutableEntitiesPlugin.d.mts +1 -2
  318. package/build/plugins/ImmutableEntitiesPlugin.d.mts.map +1 -1
  319. package/build/plugins/PreloadPlugin.d.cts +3 -4
  320. package/build/plugins/PreloadPlugin.d.cts.map +1 -1
  321. package/build/plugins/PreloadPlugin.d.mts +3 -4
  322. package/build/plugins/PreloadPlugin.d.mts.map +1 -1
  323. package/build/preloading/JsonAggregatePreloader.d.cts +1 -2
  324. package/build/preloading/JsonAggregatePreloader.d.cts.map +1 -1
  325. package/build/preloading/JsonAggregatePreloader.d.mts +1 -2
  326. package/build/preloading/JsonAggregatePreloader.d.mts.map +1 -1
  327. package/build/preloading/canPreload.d.cts +1 -2
  328. package/build/preloading/canPreload.d.cts.map +1 -1
  329. package/build/preloading/canPreload.d.mts +1 -2
  330. package/build/preloading/canPreload.d.mts.map +1 -1
  331. package/build/preloading/partitionHint.cjs +1 -1
  332. package/build/preloading/partitionHint.d.cts +1 -2
  333. package/build/preloading/partitionHint.d.cts.map +1 -1
  334. package/build/preloading/partitionHint.d.mts +1 -2
  335. package/build/preloading/partitionHint.d.mts.map +1 -1
  336. package/build/preloading/partitionHint.js +1 -1
  337. package/build/queries/ConditionBuilder.d.cts +2 -2
  338. package/build/queries/ConditionBuilder.d.cts.map +1 -1
  339. package/build/queries/ConditionBuilder.d.mts +2 -2
  340. package/build/queries/ConditionBuilder.d.mts.map +1 -1
  341. package/build/queries/conditions.d.cts +11 -12
  342. package/build/queries/conditions.d.cts.map +1 -1
  343. package/build/queries/conditions.d.mts +11 -12
  344. package/build/queries/conditions.d.mts.map +1 -1
  345. package/build/queries/entityQueryUtils.d.cts +4 -5
  346. package/build/queries/entityQueryUtils.d.cts.map +1 -1
  347. package/build/queries/entityQueryUtils.d.mts +4 -5
  348. package/build/queries/entityQueryUtils.d.mts.map +1 -1
  349. package/build/queries/find/Aliases.d.cts +16 -16
  350. package/build/queries/find/Aliases.d.cts.map +1 -1
  351. package/build/queries/find/Aliases.d.mts +16 -16
  352. package/build/queries/find/Aliases.d.mts.map +1 -1
  353. package/build/queries/find/DeferredAlias.d.cts +5 -6
  354. package/build/queries/find/DeferredAlias.d.cts.map +1 -1
  355. package/build/queries/find/DeferredAlias.d.mts +5 -6
  356. package/build/queries/find/DeferredAlias.d.mts.map +1 -1
  357. package/build/queries/find/EntityFilter.d.cts +12 -13
  358. package/build/queries/find/EntityFilter.d.cts.map +1 -1
  359. package/build/queries/find/EntityFilter.d.mts +12 -13
  360. package/build/queries/find/EntityFilter.d.mts.map +1 -1
  361. package/build/queries/find/EntityGraphQLFilter.d.cts +8 -9
  362. package/build/queries/find/EntityGraphQLFilter.d.cts.map +1 -1
  363. package/build/queries/find/EntityGraphQLFilter.d.mts +8 -9
  364. package/build/queries/find/EntityGraphQLFilter.d.mts.map +1 -1
  365. package/build/queries/find/QueryParser.collectionJoins.d.cts +1 -2
  366. package/build/queries/find/QueryParser.collectionJoins.d.cts.map +1 -1
  367. package/build/queries/find/QueryParser.collectionJoins.d.mts +1 -2
  368. package/build/queries/find/QueryParser.collectionJoins.d.mts.map +1 -1
  369. package/build/queries/find/QueryParser.d.cts +18 -18
  370. package/build/queries/find/QueryParser.d.cts.map +1 -1
  371. package/build/queries/find/QueryParser.d.mts +18 -18
  372. package/build/queries/find/QueryParser.d.mts.map +1 -1
  373. package/build/queries/find/QueryParser.pruning.d.cts +2 -3
  374. package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
  375. package/build/queries/find/QueryParser.pruning.d.mts +2 -3
  376. package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
  377. package/build/queries/find/QueryVisitor.d.cts +4 -4
  378. package/build/queries/find/QueryVisitor.d.cts.map +1 -1
  379. package/build/queries/find/QueryVisitor.d.mts +4 -4
  380. package/build/queries/find/QueryVisitor.d.mts.map +1 -1
  381. package/build/queries/find/buildFindQuery.d.cts +3 -3
  382. package/build/queries/find/buildFindQuery.d.cts.map +1 -1
  383. package/build/queries/find/buildFindQuery.d.mts +3 -3
  384. package/build/queries/find/buildFindQuery.d.mts.map +1 -1
  385. package/build/queries/find/scopes.cjs.map +1 -1
  386. package/build/queries/find/scopes.d.cts +12 -13
  387. package/build/queries/find/scopes.d.cts.map +1 -1
  388. package/build/queries/find/scopes.d.mts +12 -13
  389. package/build/queries/find/scopes.d.mts.map +1 -1
  390. package/build/queries/find/scopes.js.map +1 -1
  391. package/build/queries/parsedConditions.d.cts +7 -8
  392. package/build/queries/parsedConditions.d.cts.map +1 -1
  393. package/build/queries/parsedConditions.d.mts +7 -8
  394. package/build/queries/parsedConditions.d.mts.map +1 -1
  395. package/build/queries/renderConditions.d.cts +3 -4
  396. package/build/queries/renderConditions.d.cts.map +1 -1
  397. package/build/queries/renderConditions.d.mts +3 -4
  398. package/build/queries/renderConditions.d.mts.map +1 -1
  399. package/build/queries/skipCondition.d.cts +1 -2
  400. package/build/queries/skipCondition.d.cts.map +1 -1
  401. package/build/queries/skipCondition.d.mts +1 -2
  402. package/build/queries/skipCondition.d.mts.map +1 -1
  403. package/build/queries/sql/AliasAssigner.cjs.map +1 -1
  404. package/build/queries/sql/AliasAssigner.d.cts +1 -2
  405. package/build/queries/sql/AliasAssigner.d.cts.map +1 -1
  406. package/build/queries/sql/AliasAssigner.d.mts +1 -2
  407. package/build/queries/sql/AliasAssigner.d.mts.map +1 -1
  408. package/build/queries/sql/AliasAssigner.js.map +1 -1
  409. package/build/queries/sql/Expr.cjs +38 -0
  410. package/build/queries/sql/Expr.cjs.map +1 -1
  411. package/build/queries/sql/Expr.d.cts +45 -27
  412. package/build/queries/sql/Expr.d.cts.map +1 -1
  413. package/build/queries/sql/Expr.d.mts +45 -27
  414. package/build/queries/sql/Expr.d.mts.map +1 -1
  415. package/build/queries/sql/Expr.js +38 -1
  416. package/build/queries/sql/Expr.js.map +1 -1
  417. package/build/queries/sql/JoinTree.d.cts +5 -5
  418. package/build/queries/sql/JoinTree.d.cts.map +1 -1
  419. package/build/queries/sql/JoinTree.d.mts +5 -5
  420. package/build/queries/sql/JoinTree.d.mts.map +1 -1
  421. package/build/queries/sql/Tables.cjs +9 -0
  422. package/build/queries/sql/Tables.cjs.map +1 -1
  423. package/build/queries/sql/Tables.d.cts +46 -39
  424. package/build/queries/sql/Tables.d.cts.map +1 -1
  425. package/build/queries/sql/Tables.d.mts +46 -39
  426. package/build/queries/sql/Tables.d.mts.map +1 -1
  427. package/build/queries/sql/Tables.js +10 -1
  428. package/build/queries/sql/Tables.js.map +1 -1
  429. package/build/queries/sql/custom.d.cts +14 -14
  430. package/build/queries/sql/custom.d.cts.map +1 -1
  431. package/build/queries/sql/custom.d.mts +14 -14
  432. package/build/queries/sql/custom.d.mts.map +1 -1
  433. package/build/queries/sql/execute.cjs +4 -9
  434. package/build/queries/sql/execute.cjs.map +1 -1
  435. package/build/queries/sql/execute.d.cts +45 -28
  436. package/build/queries/sql/execute.d.cts.map +1 -1
  437. package/build/queries/sql/execute.d.mts +45 -28
  438. package/build/queries/sql/execute.d.mts.map +1 -1
  439. package/build/queries/sql/execute.js +5 -10
  440. package/build/queries/sql/execute.js.map +1 -1
  441. package/build/queries/sql/expressions/arrayAgg.d.cts +5 -6
  442. package/build/queries/sql/expressions/arrayAgg.d.cts.map +1 -1
  443. package/build/queries/sql/expressions/arrayAgg.d.mts +5 -6
  444. package/build/queries/sql/expressions/arrayAgg.d.mts.map +1 -1
  445. package/build/queries/sql/expressions/case.d.cts +10 -10
  446. package/build/queries/sql/expressions/case.d.cts.map +1 -1
  447. package/build/queries/sql/expressions/case.d.mts +10 -10
  448. package/build/queries/sql/expressions/case.d.mts.map +1 -1
  449. package/build/queries/sql/expressions/coalesce.d.cts +5 -6
  450. package/build/queries/sql/expressions/coalesce.d.cts.map +1 -1
  451. package/build/queries/sql/expressions/coalesce.d.mts +5 -6
  452. package/build/queries/sql/expressions/coalesce.d.mts.map +1 -1
  453. package/build/queries/sql/expressions/codecs.d.cts +1 -2
  454. package/build/queries/sql/expressions/codecs.d.cts.map +1 -1
  455. package/build/queries/sql/expressions/codecs.d.mts +1 -2
  456. package/build/queries/sql/expressions/codecs.d.mts.map +1 -1
  457. package/build/queries/sql/expressions/expression.d.cts +6 -6
  458. package/build/queries/sql/expressions/expression.d.cts.map +1 -1
  459. package/build/queries/sql/expressions/expression.d.mts +6 -6
  460. package/build/queries/sql/expressions/expression.d.mts.map +1 -1
  461. package/build/queries/sql/expressions/greatest.d.cts +5 -6
  462. package/build/queries/sql/expressions/greatest.d.cts.map +1 -1
  463. package/build/queries/sql/expressions/greatest.d.mts +5 -6
  464. package/build/queries/sql/expressions/greatest.d.mts.map +1 -1
  465. package/build/queries/sql/expressions/least.d.cts +5 -6
  466. package/build/queries/sql/expressions/least.d.cts.map +1 -1
  467. package/build/queries/sql/expressions/least.d.mts +5 -6
  468. package/build/queries/sql/expressions/least.d.mts.map +1 -1
  469. package/build/queries/sql/expressions/nullIf.d.cts +5 -6
  470. package/build/queries/sql/expressions/nullIf.d.cts.map +1 -1
  471. package/build/queries/sql/expressions/nullIf.d.mts +5 -6
  472. package/build/queries/sql/expressions/nullIf.d.mts.map +1 -1
  473. package/build/queries/sql/expressions/parseExpression.d.cts +5 -6
  474. package/build/queries/sql/expressions/parseExpression.d.cts.map +1 -1
  475. package/build/queries/sql/expressions/parseExpression.d.mts +5 -6
  476. package/build/queries/sql/expressions/parseExpression.d.mts.map +1 -1
  477. package/build/queries/sql/expressions/types.d.cts +11 -11
  478. package/build/queries/sql/expressions/types.d.cts.map +1 -1
  479. package/build/queries/sql/expressions/types.d.mts +11 -11
  480. package/build/queries/sql/expressions/types.d.mts.map +1 -1
  481. package/build/queries/sql/keywords.d.cts +4 -5
  482. package/build/queries/sql/keywords.d.cts.map +1 -1
  483. package/build/queries/sql/keywords.d.mts +4 -5
  484. package/build/queries/sql/keywords.d.mts.map +1 -1
  485. package/build/queries/sql/query.cjs +59 -23
  486. package/build/queries/sql/query.cjs.map +1 -1
  487. package/build/queries/sql/query.d.cts +108 -77
  488. package/build/queries/sql/query.d.cts.map +1 -1
  489. package/build/queries/sql/query.d.mts +108 -77
  490. package/build/queries/sql/query.d.mts.map +1 -1
  491. package/build/queries/sql/query.js +58 -23
  492. package/build/queries/sql/query.js.map +1 -1
  493. package/build/queries/unnest.d.cts +2 -3
  494. package/build/queries/unnest.d.cts.map +1 -1
  495. package/build/queries/unnest.d.mts +2 -3
  496. package/build/queries/unnest.d.mts.map +1 -1
  497. package/build/queries/valueFilters.d.cts +5 -6
  498. package/build/queries/valueFilters.d.cts.map +1 -1
  499. package/build/queries/valueFilters.d.mts +5 -6
  500. package/build/queries/valueFilters.d.mts.map +1 -1
  501. package/build/reactivity/ReactionsManager.cjs +168 -2
  502. package/build/reactivity/ReactionsManager.cjs.map +1 -1
  503. package/build/reactivity/ReactionsManager.d.cts +56 -4
  504. package/build/reactivity/ReactionsManager.d.cts.map +1 -1
  505. package/build/reactivity/ReactionsManager.d.mts +56 -4
  506. package/build/reactivity/ReactionsManager.d.mts.map +1 -1
  507. package/build/reactivity/ReactionsManager.js +169 -3
  508. package/build/reactivity/ReactionsManager.js.map +1 -1
  509. package/build/reactivity/reactiveHints.cjs +3 -3
  510. package/build/reactivity/reactiveHints.cjs.map +1 -1
  511. package/build/reactivity/reactiveHints.d.cts +18 -18
  512. package/build/reactivity/reactiveHints.d.cts.map +1 -1
  513. package/build/reactivity/reactiveHints.d.mts +18 -18
  514. package/build/reactivity/reactiveHints.d.mts.map +1 -1
  515. package/build/reactivity/reactiveHints.js +3 -3
  516. package/build/reactivity/reactiveHints.js.map +1 -1
  517. package/build/relations/AbstractPropertyImpl.cjs.map +1 -1
  518. package/build/relations/AbstractPropertyImpl.d.cts +1 -2
  519. package/build/relations/AbstractPropertyImpl.d.cts.map +1 -1
  520. package/build/relations/AbstractPropertyImpl.d.mts +1 -2
  521. package/build/relations/AbstractPropertyImpl.d.mts.map +1 -1
  522. package/build/relations/AbstractPropertyImpl.js.map +1 -1
  523. package/build/relations/AbstractRelationImpl.d.cts +1 -2
  524. package/build/relations/AbstractRelationImpl.d.cts.map +1 -1
  525. package/build/relations/AbstractRelationImpl.d.mts +1 -2
  526. package/build/relations/AbstractRelationImpl.d.mts.map +1 -1
  527. package/build/relations/AsyncProperty.cjs.map +1 -1
  528. package/build/relations/AsyncProperty.d.cts +5 -6
  529. package/build/relations/AsyncProperty.d.cts.map +1 -1
  530. package/build/relations/AsyncProperty.d.mts +5 -6
  531. package/build/relations/AsyncProperty.d.mts.map +1 -1
  532. package/build/relations/AsyncProperty.js.map +1 -1
  533. package/build/relations/AsyncReactiveField.cjs +3 -3
  534. package/build/relations/AsyncReactiveField.cjs.map +1 -1
  535. package/build/relations/AsyncReactiveField.d.cts +4 -5
  536. package/build/relations/AsyncReactiveField.d.cts.map +1 -1
  537. package/build/relations/AsyncReactiveField.d.mts +4 -5
  538. package/build/relations/AsyncReactiveField.d.mts.map +1 -1
  539. package/build/relations/AsyncReactiveField.js +3 -3
  540. package/build/relations/AsyncReactiveField.js.map +1 -1
  541. package/build/relations/Collection.d.cts +4 -5
  542. package/build/relations/Collection.d.cts.map +1 -1
  543. package/build/relations/Collection.d.mts +4 -5
  544. package/build/relations/Collection.d.mts.map +1 -1
  545. package/build/relations/CustomCollection.cjs.map +1 -1
  546. package/build/relations/CustomCollection.d.cts +3 -4
  547. package/build/relations/CustomCollection.d.cts.map +1 -1
  548. package/build/relations/CustomCollection.d.mts +3 -4
  549. package/build/relations/CustomCollection.d.mts.map +1 -1
  550. package/build/relations/CustomCollection.js.map +1 -1
  551. package/build/relations/CustomReference.cjs.map +1 -1
  552. package/build/relations/CustomReference.d.cts +3 -4
  553. package/build/relations/CustomReference.d.cts.map +1 -1
  554. package/build/relations/CustomReference.d.mts +3 -4
  555. package/build/relations/CustomReference.d.mts.map +1 -1
  556. package/build/relations/CustomReference.js.map +1 -1
  557. package/build/relations/EnumCollection.cjs.map +1 -1
  558. package/build/relations/EnumCollection.d.cts +5 -5
  559. package/build/relations/EnumCollection.d.cts.map +1 -1
  560. package/build/relations/EnumCollection.d.mts +5 -5
  561. package/build/relations/EnumCollection.d.mts.map +1 -1
  562. package/build/relations/EnumCollection.js.map +1 -1
  563. package/build/relations/LargeCollection.d.cts +1 -2
  564. package/build/relations/LargeCollection.d.cts.map +1 -1
  565. package/build/relations/LargeCollection.d.mts +1 -2
  566. package/build/relations/LargeCollection.d.mts.map +1 -1
  567. package/build/relations/LazyField.cjs +14 -0
  568. package/build/relations/LazyField.cjs.map +1 -1
  569. package/build/relations/LazyField.d.cts +13 -8
  570. package/build/relations/LazyField.d.cts.map +1 -1
  571. package/build/relations/LazyField.d.mts +13 -8
  572. package/build/relations/LazyField.d.mts.map +1 -1
  573. package/build/relations/LazyField.js +14 -0
  574. package/build/relations/LazyField.js.map +1 -1
  575. package/build/relations/ManyToManyCollection.cjs.map +1 -1
  576. package/build/relations/ManyToManyCollection.d.cts +2 -3
  577. package/build/relations/ManyToManyCollection.d.cts.map +1 -1
  578. package/build/relations/ManyToManyCollection.d.mts +2 -3
  579. package/build/relations/ManyToManyCollection.d.mts.map +1 -1
  580. package/build/relations/ManyToManyCollection.js.map +1 -1
  581. package/build/relations/ManyToManyLargeCollection.d.cts +2 -3
  582. package/build/relations/ManyToManyLargeCollection.d.cts.map +1 -1
  583. package/build/relations/ManyToManyLargeCollection.d.mts +2 -3
  584. package/build/relations/ManyToManyLargeCollection.d.mts.map +1 -1
  585. package/build/relations/ManyToOneReference.cjs.map +1 -1
  586. package/build/relations/ManyToOneReference.d.cts +6 -7
  587. package/build/relations/ManyToOneReference.d.cts.map +1 -1
  588. package/build/relations/ManyToOneReference.d.mts +6 -7
  589. package/build/relations/ManyToOneReference.d.mts.map +1 -1
  590. package/build/relations/ManyToOneReference.js.map +1 -1
  591. package/build/relations/OneToManyCollection.cjs.map +1 -1
  592. package/build/relations/OneToManyCollection.d.cts +2 -3
  593. package/build/relations/OneToManyCollection.d.cts.map +1 -1
  594. package/build/relations/OneToManyCollection.d.mts +2 -3
  595. package/build/relations/OneToManyCollection.d.mts.map +1 -1
  596. package/build/relations/OneToManyCollection.js.map +1 -1
  597. package/build/relations/OneToManyLargeCollection.cjs.map +1 -1
  598. package/build/relations/OneToManyLargeCollection.d.cts +2 -3
  599. package/build/relations/OneToManyLargeCollection.d.cts.map +1 -1
  600. package/build/relations/OneToManyLargeCollection.d.mts +2 -3
  601. package/build/relations/OneToManyLargeCollection.d.mts.map +1 -1
  602. package/build/relations/OneToManyLargeCollection.js.map +1 -1
  603. package/build/relations/OneToOneReference.cjs.map +1 -1
  604. package/build/relations/OneToOneReference.d.cts +7 -7
  605. package/build/relations/OneToOneReference.d.cts.map +1 -1
  606. package/build/relations/OneToOneReference.d.mts +7 -7
  607. package/build/relations/OneToOneReference.d.mts.map +1 -1
  608. package/build/relations/OneToOneReference.js.map +1 -1
  609. package/build/relations/PolymorphicReference.cjs.map +1 -1
  610. package/build/relations/PolymorphicReference.d.cts +4 -5
  611. package/build/relations/PolymorphicReference.d.cts.map +1 -1
  612. package/build/relations/PolymorphicReference.d.mts +4 -5
  613. package/build/relations/PolymorphicReference.d.mts.map +1 -1
  614. package/build/relations/PolymorphicReference.js.map +1 -1
  615. package/build/relations/PropertySymbols.d.cts +1 -2
  616. package/build/relations/PropertySymbols.d.cts.map +1 -1
  617. package/build/relations/PropertySymbols.d.mts +1 -2
  618. package/build/relations/PropertySymbols.d.mts.map +1 -1
  619. package/build/relations/ReactiveField.cjs +2 -2
  620. package/build/relations/ReactiveField.cjs.map +1 -1
  621. package/build/relations/ReactiveField.d.cts +4 -5
  622. package/build/relations/ReactiveField.d.cts.map +1 -1
  623. package/build/relations/ReactiveField.d.mts +4 -5
  624. package/build/relations/ReactiveField.d.mts.map +1 -1
  625. package/build/relations/ReactiveField.js +2 -2
  626. package/build/relations/ReactiveField.js.map +1 -1
  627. package/build/relations/ReactiveGetter.cjs.map +1 -1
  628. package/build/relations/ReactiveGetter.d.cts +4 -5
  629. package/build/relations/ReactiveGetter.d.cts.map +1 -1
  630. package/build/relations/ReactiveGetter.d.mts +4 -5
  631. package/build/relations/ReactiveGetter.d.mts.map +1 -1
  632. package/build/relations/ReactiveGetter.js.map +1 -1
  633. package/build/relations/ReactiveManyToMany.cjs +1 -1
  634. package/build/relations/ReactiveManyToMany.cjs.map +1 -1
  635. package/build/relations/ReactiveManyToMany.d.cts +4 -5
  636. package/build/relations/ReactiveManyToMany.d.cts.map +1 -1
  637. package/build/relations/ReactiveManyToMany.d.mts +4 -5
  638. package/build/relations/ReactiveManyToMany.d.mts.map +1 -1
  639. package/build/relations/ReactiveManyToMany.js +1 -1
  640. package/build/relations/ReactiveManyToMany.js.map +1 -1
  641. package/build/relations/ReactiveManyToManyOtherSide.cjs.map +1 -1
  642. package/build/relations/ReactiveManyToManyOtherSide.d.cts +4 -5
  643. package/build/relations/ReactiveManyToManyOtherSide.d.cts.map +1 -1
  644. package/build/relations/ReactiveManyToManyOtherSide.d.mts +4 -5
  645. package/build/relations/ReactiveManyToManyOtherSide.d.mts.map +1 -1
  646. package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
  647. package/build/relations/ReactiveReference.cjs +1 -1
  648. package/build/relations/ReactiveReference.cjs.map +1 -1
  649. package/build/relations/ReactiveReference.d.cts +5 -6
  650. package/build/relations/ReactiveReference.d.cts.map +1 -1
  651. package/build/relations/ReactiveReference.d.mts +5 -6
  652. package/build/relations/ReactiveReference.d.mts.map +1 -1
  653. package/build/relations/ReactiveReference.js +1 -1
  654. package/build/relations/ReactiveReference.js.map +1 -1
  655. package/build/relations/ReadOnlyCollection.d.cts +4 -5
  656. package/build/relations/ReadOnlyCollection.d.cts.map +1 -1
  657. package/build/relations/ReadOnlyCollection.d.mts +4 -5
  658. package/build/relations/ReadOnlyCollection.d.mts.map +1 -1
  659. package/build/relations/RecursiveCollection.cjs +3 -3
  660. package/build/relations/RecursiveCollection.cjs.map +1 -1
  661. package/build/relations/RecursiveCollection.d.cts +10 -10
  662. package/build/relations/RecursiveCollection.d.cts.map +1 -1
  663. package/build/relations/RecursiveCollection.d.mts +10 -10
  664. package/build/relations/RecursiveCollection.d.mts.map +1 -1
  665. package/build/relations/RecursiveCollection.js +3 -3
  666. package/build/relations/RecursiveCollection.js.map +1 -1
  667. package/build/relations/RecursiveCycleError.d.cts +2 -2
  668. package/build/relations/RecursiveCycleError.d.cts.map +1 -1
  669. package/build/relations/RecursiveCycleError.d.mts +2 -2
  670. package/build/relations/RecursiveCycleError.d.mts.map +1 -1
  671. package/build/relations/Reference.d.cts +5 -5
  672. package/build/relations/Reference.d.cts.map +1 -1
  673. package/build/relations/Reference.d.mts +5 -5
  674. package/build/relations/Reference.d.mts.map +1 -1
  675. package/build/relations/ReferenceSymbols.d.cts +1 -2
  676. package/build/relations/ReferenceSymbols.d.cts.map +1 -1
  677. package/build/relations/ReferenceSymbols.d.mts +1 -2
  678. package/build/relations/ReferenceSymbols.d.mts.map +1 -1
  679. package/build/relations/Relation.d.cts +3 -3
  680. package/build/relations/Relation.d.cts.map +1 -1
  681. package/build/relations/Relation.d.mts +3 -3
  682. package/build/relations/Relation.d.mts.map +1 -1
  683. package/build/relations/RelationSymbols.d.cts +2 -3
  684. package/build/relations/RelationSymbols.d.cts.map +1 -1
  685. package/build/relations/RelationSymbols.d.mts +2 -3
  686. package/build/relations/RelationSymbols.d.mts.map +1 -1
  687. package/build/relations/hasAsyncMethod.cjs.map +1 -1
  688. package/build/relations/hasAsyncMethod.d.cts +6 -6
  689. package/build/relations/hasAsyncMethod.d.cts.map +1 -1
  690. package/build/relations/hasAsyncMethod.d.mts +6 -6
  691. package/build/relations/hasAsyncMethod.d.mts.map +1 -1
  692. package/build/relations/hasAsyncMethod.js.map +1 -1
  693. package/build/relations/hasManyDerived.d.cts +2 -2
  694. package/build/relations/hasManyDerived.d.cts.map +1 -1
  695. package/build/relations/hasManyDerived.d.mts +2 -2
  696. package/build/relations/hasManyDerived.d.mts.map +1 -1
  697. package/build/relations/hasManyThrough.d.cts +1 -2
  698. package/build/relations/hasManyThrough.d.cts.map +1 -1
  699. package/build/relations/hasManyThrough.d.mts +1 -2
  700. package/build/relations/hasManyThrough.d.mts.map +1 -1
  701. package/build/relations/hasOneDerived.d.cts +1 -2
  702. package/build/relations/hasOneDerived.d.cts.map +1 -1
  703. package/build/relations/hasOneDerived.d.mts +1 -2
  704. package/build/relations/hasOneDerived.d.mts.map +1 -1
  705. package/build/relations/hasOneThrough.d.cts +1 -2
  706. package/build/relations/hasOneThrough.d.cts.map +1 -1
  707. package/build/relations/hasOneThrough.d.mts +1 -2
  708. package/build/relations/hasOneThrough.d.mts.map +1 -1
  709. package/build/relations/hasProperty.cjs +2 -2
  710. package/build/relations/hasProperty.cjs.map +1 -1
  711. package/build/relations/hasProperty.d.cts +8 -8
  712. package/build/relations/hasProperty.d.cts.map +1 -1
  713. package/build/relations/hasProperty.d.mts +8 -8
  714. package/build/relations/hasProperty.d.mts.map +1 -1
  715. package/build/relations/hasProperty.js +2 -2
  716. package/build/relations/hasProperty.js.map +1 -1
  717. package/build/relations/index.cjs +5 -5
  718. package/build/relations/index.js +5 -5
  719. package/build/relations/isCascadeDelete.d.cts +1 -2
  720. package/build/relations/isCascadeDelete.d.cts.map +1 -1
  721. package/build/relations/isCascadeDelete.d.mts +1 -2
  722. package/build/relations/isCascadeDelete.d.mts.map +1 -1
  723. package/build/resurrection.cjs +11 -1
  724. package/build/resurrection.cjs.map +1 -1
  725. package/build/resurrection.d.cts +5 -3
  726. package/build/resurrection.d.cts.map +1 -1
  727. package/build/resurrection.d.mts +5 -3
  728. package/build/resurrection.d.mts.map +1 -1
  729. package/build/resurrection.js +11 -2
  730. package/build/resurrection.js.map +1 -1
  731. package/build/rules.d.cts +20 -20
  732. package/build/rules.d.cts.map +1 -1
  733. package/build/rules.d.mts +20 -20
  734. package/build/rules.d.mts.map +1 -1
  735. package/build/runtimeConfig.d.cts +4 -5
  736. package/build/runtimeConfig.d.cts.map +1 -1
  737. package/build/runtimeConfig.d.mts +4 -5
  738. package/build/runtimeConfig.d.mts.map +1 -1
  739. package/build/serde/TypeInfo.d.cts +3 -4
  740. package/build/serde/TypeInfo.d.cts.map +1 -1
  741. package/build/serde/TypeInfo.d.mts +3 -4
  742. package/build/serde/TypeInfo.d.mts.map +1 -1
  743. package/build/serde/columns.d.cts +2 -3
  744. package/build/serde/columns.d.cts.map +1 -1
  745. package/build/serde/columns.d.mts +2 -3
  746. package/build/serde/columns.d.mts.map +1 -1
  747. package/build/serde/fieldSerde.d.cts +9 -9
  748. package/build/serde/fieldSerde.d.cts.map +1 -1
  749. package/build/serde/fieldSerde.d.mts +9 -9
  750. package/build/serde/fieldSerde.d.mts.map +1 -1
  751. package/build/serde/serde.cjs +35 -0
  752. package/build/serde/serde.cjs.map +1 -1
  753. package/build/serde/serde.d.cts +37 -19
  754. package/build/serde/serde.d.cts.map +1 -1
  755. package/build/serde/serde.d.mts +37 -19
  756. package/build/serde/serde.d.mts.map +1 -1
  757. package/build/serde/serde.js +35 -1
  758. package/build/serde/serde.js.map +1 -1
  759. package/build/serde/temporal.d.cts +5 -5
  760. package/build/serde/temporal.d.cts.map +1 -1
  761. package/build/serde/temporal.d.mts +5 -5
  762. package/build/serde/temporal.d.mts.map +1 -1
  763. package/build/serde/temporalMappers.d.cts +4 -5
  764. package/build/serde/temporalMappers.d.cts.map +1 -1
  765. package/build/serde/temporalMappers.d.mts +4 -5
  766. package/build/serde/temporalMappers.d.mts.map +1 -1
  767. package/build/transitions.cjs +89 -0
  768. package/build/transitions.cjs.map +1 -0
  769. package/build/transitions.d.cts +109 -0
  770. package/build/transitions.d.cts.map +1 -0
  771. package/build/transitions.d.mts +109 -0
  772. package/build/transitions.d.mts.map +1 -0
  773. package/build/transitions.js +84 -0
  774. package/build/transitions.js.map +1 -0
  775. package/build/trusted.d.cts +2 -3
  776. package/build/trusted.d.cts.map +1 -1
  777. package/build/trusted.d.mts +2 -3
  778. package/build/trusted.d.mts.map +1 -1
  779. package/build/typeMap.d.cts +17 -17
  780. package/build/typeMap.d.cts.map +1 -1
  781. package/build/typeMap.d.mts +17 -17
  782. package/build/typeMap.d.mts.map +1 -1
  783. package/build/upsert.d.cts +4 -4
  784. package/build/upsert.d.cts.map +1 -1
  785. package/build/upsert.d.mts +4 -4
  786. package/build/upsert.d.mts.map +1 -1
  787. package/build/utils.d.cts +27 -28
  788. package/build/utils.d.cts.map +1 -1
  789. package/build/utils.d.mts +27 -28
  790. package/build/utils.d.mts.map +1 -1
  791. package/package.json +6 -6
@@ -62,12 +62,12 @@ declare const emsSymbol: unique symbol;
62
62
  * Plugins can implement any of the PluginMethods to intercept entity operations
63
63
  * and are automatically registered with the EntityManager when added via PluginManager.
64
64
  */
65
- declare abstract class Plugin {
65
+ export declare abstract class Plugin {
66
66
  [emsSymbol]: WeakRef<EntityManager>[];
67
67
  maybeCloneForNewEm(): this | undefined;
68
68
  get ems(): readonly EntityManager[];
69
69
  }
70
- interface Plugin extends PluginMethods {}
70
+ export interface Plugin extends PluginMethods {}
71
71
  /**
72
72
  * Manages plugin lifecycle and dispatches plugin callbacks to registered plugins.
73
73
  *
@@ -75,7 +75,7 @@ interface Plugin extends PluginMethods {}
75
75
  * for callbacks that have at least one registered plugin, making unused plugin hooks
76
76
  * zero-cost at runtime.
77
77
  */
78
- declare class PluginManager implements Required<PluginMethods> {
78
+ export declare class PluginManager implements Required<PluginMethods> {
79
79
  #private;
80
80
  readonly em: EntityManager;
81
81
  constructor(em: EntityManager);
@@ -108,5 +108,5 @@ declare class PluginManager implements Required<PluginMethods> {
108
108
  afterWrite(entityTodos: Record<string, Todo>, joinRowTodos: Record<string, JoinRowTodo>): void;
109
109
  }
110
110
  //#endregion
111
- export { Plugin, PluginManager };
111
+ export {};
112
112
  //# sourceMappingURL=PluginManager.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginManager.d.cts","names":[],"sources":["../src/PluginManager.ts"],"mappings":";;;;;;;UAOU;;;;;;;EAOR,gBAAgB,QAAQ,QAAQ;;;;;;;;EAQhC,gBAAgB,QAAQ,QAAQ,eAAe;;;;;;;;;EAS/C,YACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;;;;;;;;;;;;;;EAgBJ,WAAW,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAEjE,gBAAgB,mBAAmB,WAAW;EAE9C,eAAe,mBAAmB,WAAW;EAE7C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe;;cAWvE;;;;;;;uBAOgB;GAGnB,YAAY,QAAQ;EAErB;MAII,gBAAgB;;UASL,eAAe;;;;;;;;cASnB,yBAAyB,SAAS;;WAGjB,IAAI;EAAhC,YAA4B,IAAI;;EAGhC,QAAQ,cAAc;;;;;;;;;EAYtB,UAAU,QAAQ;MAkCd,oBAAoB;EAIxB,QAAQ,OAAO;EAWf,eAAe,QAAQ,QAAQ;EAC/B,eAAe,QAAQ,QAAQ,eAAe;EAC9C,WACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;EAGJ,UAAU,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAChE,eAAe,mBAAmB,WAAW;EAC7C,cAAc,mBAAmB,WAAW;EAC5C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe"}
1
+ {"version":3,"file":"PluginManager.d.cts","names":[],"sources":["../src/PluginManager.ts"],"mappings":";;;;;;;UAOU;;;;;;;EAOR,gBAAgB,QAAQ,QAAQ;;;;;;;;EAQhC,gBAAgB,QAAQ,QAAQ,eAAe;;;;;;;;;EAS/C,YACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;;;;;;;;;;;;;;EAgBJ,WAAW,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAEjE,gBAAgB,mBAAmB,WAAW;EAE9C,eAAe,mBAAmB,WAAW;EAE7C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe;;cAWvE;;;;;;;8BAOgB;GAGnB,YAAY,QAAQ;EAErB;MAII,gBAAgB;;iBASL,eAAe;;;;;;;;qBASnB,yBAAyB,SAAS;;WAGjB,IAAI;EAAhC,YAA4B,IAAI;;EAGhC,QAAQ,cAAc;;;;;;;;;EAYtB,UAAU,QAAQ;MAkCd,oBAAoB;EAIxB,QAAQ,OAAO;EAWf,eAAe,QAAQ,QAAQ;EAC/B,eAAe,QAAQ,QAAQ,eAAe;EAC9C,WACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;EAGJ,UAAU,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAChE,eAAe,mBAAmB,WAAW;EAC7C,cAAc,mBAAmB,WAAW;EAC5C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe"}
@@ -62,12 +62,12 @@ declare const emsSymbol: unique symbol;
62
62
  * Plugins can implement any of the PluginMethods to intercept entity operations
63
63
  * and are automatically registered with the EntityManager when added via PluginManager.
64
64
  */
65
- declare abstract class Plugin {
65
+ export declare abstract class Plugin {
66
66
  [emsSymbol]: WeakRef<EntityManager>[];
67
67
  maybeCloneForNewEm(): this | undefined;
68
68
  get ems(): readonly EntityManager[];
69
69
  }
70
- interface Plugin extends PluginMethods {}
70
+ export interface Plugin extends PluginMethods {}
71
71
  /**
72
72
  * Manages plugin lifecycle and dispatches plugin callbacks to registered plugins.
73
73
  *
@@ -75,7 +75,7 @@ interface Plugin extends PluginMethods {}
75
75
  * for callbacks that have at least one registered plugin, making unused plugin hooks
76
76
  * zero-cost at runtime.
77
77
  */
78
- declare class PluginManager implements Required<PluginMethods> {
78
+ export declare class PluginManager implements Required<PluginMethods> {
79
79
  #private;
80
80
  readonly em: EntityManager;
81
81
  constructor(em: EntityManager);
@@ -108,5 +108,5 @@ declare class PluginManager implements Required<PluginMethods> {
108
108
  afterWrite(entityTodos: Record<string, Todo>, joinRowTodos: Record<string, JoinRowTodo>): void;
109
109
  }
110
110
  //#endregion
111
- export { Plugin, PluginManager };
111
+ export {};
112
112
  //# sourceMappingURL=PluginManager.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginManager.d.mts","names":[],"sources":["../src/PluginManager.ts"],"mappings":";;;;;;;UAOU;;;;;;;EAOR,gBAAgB,QAAQ,QAAQ;;;;;;;;EAQhC,gBAAgB,QAAQ,QAAQ,eAAe;;;;;;;;;EAS/C,YACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;;;;;;;;;;;;;;EAgBJ,WAAW,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAEjE,gBAAgB,mBAAmB,WAAW;EAE9C,eAAe,mBAAmB,WAAW;EAE7C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe;;cAWvE;;;;;;;uBAOgB;GAGnB,YAAY,QAAQ;EAErB;MAII,gBAAgB;;UASL,eAAe;;;;;;;;cASnB,yBAAyB,SAAS;;WAGjB,IAAI;EAAhC,YAA4B,IAAI;;EAGhC,QAAQ,cAAc;;;;;;;;;EAYtB,UAAU,QAAQ;MAkCd,oBAAoB;EAIxB,QAAQ,OAAO;EAWf,eAAe,QAAQ,QAAQ;EAC/B,eAAe,QAAQ,QAAQ,eAAe;EAC9C,WACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;EAGJ,UAAU,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAChE,eAAe,mBAAmB,WAAW;EAC7C,cAAc,mBAAmB,WAAW;EAC5C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe"}
1
+ {"version":3,"file":"PluginManager.d.mts","names":[],"sources":["../src/PluginManager.ts"],"mappings":";;;;;;;UAOU;;;;;;;EAOR,gBAAgB,QAAQ,QAAQ;;;;;;;;EAQhC,gBAAgB,QAAQ,QAAQ,eAAe;;;;;;;;;EAS/C,YACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;;;;;;;;;;;;;;EAgBJ,WAAW,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAEjE,gBAAgB,mBAAmB,WAAW;EAE9C,eAAe,mBAAmB,WAAW;EAE7C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe;;cAWvE;;;;;;;8BAOgB;GAGnB,YAAY,QAAQ;EAErB;MAII,gBAAgB;;iBASL,eAAe;;;;;;;;qBASnB,yBAAyB,SAAS;;WAGjB,IAAI;EAAhC,YAA4B,IAAI;;EAGhC,QAAQ,cAAc;;;;;;;;;EAYtB,UAAU,QAAQ;MAkCd,oBAAoB;EAIxB,QAAQ,OAAO;EAWf,eAAe,QAAQ,QAAQ;EAC/B,eAAe,QAAQ,QAAQ,eAAe;EAC9C,WACE,MAAM,gBACN,WAAW,eACX,OAAO,iBACP;IACE;IACA;IACA;IACA;IACA;IACA;;EAGJ,UAAU,MAAM,gBAAgB,WAAW,eAAe,MAAM;EAChE,eAAe,mBAAmB,WAAW;EAC7C,cAAc,mBAAmB,WAAW;EAC5C,WAAW,aAAa,eAAe,OAAO,cAAc,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"PluginManager.js","names":["#pluginsByCallback","#plugins"],"sources":["../src/PluginManager.ts"],"sourcesContent":["import { type Entity } from \"src/Entity.ts\";\nimport { type EntityManager, type FindOperation, isDefined } from \"src/EntityManager.ts\";\nimport { type EntityMetadata } from \"src/EntityMetadata.ts\";\nimport type { JoinRowTodo, Todo } from \"src/flush/Todo.ts\";\nimport type { ParsedFindQuery } from \"src/queries/find/QueryParser.ts\";\nimport { type RowData } from \"src/RowData.ts\";\n\ninterface PluginMethods {\n /**\n * Called before a field value is retrieved from an entity via getField.\n *\n * @param entity The entity instance being accessed\n * @param field The field name being retrieved\n */\n beforeGetField?(entity: Entity, field: string): void;\n /**\n * Called before a field value is set on an entity via setField.\n *\n * @param entity The entity instance being modified\n * @param field The field name being set\n * @param newValue The new value being assigned to the field\n */\n beforeSetField?(entity: Entity, field: string, newValue: any): void;\n /**\n * Called before a find operation is executed.\n *\n * @param meta Metadata for the entity type being queried\n * @param operation The type of find operation being performed\n * @param query The parsed query conditions\n * @param settings Query settings including limit and offset\n */\n beforeFind?(\n meta: EntityMetadata,\n operation: FindOperation,\n query: ParsedFindQuery,\n settings: {\n limit?: number;\n offset?: number;\n allowMultipleLeftJoins?: boolean;\n optimizeJoinsToExists?: boolean;\n pruneJoins?: boolean;\n keepAliases?: string[];\n },\n ): void;\n /**\n * Called after a find operation has been executed to observe the raw database rows.\n *\n * The result is an observation-only {@link RowData} view — i.e. `rows.rowCount` for metrics,\n * `rows.get(i, columnName)` for specific cells, or `rows.toRows()` to materialize POJO rows.\n * For lazy results, cells decode on access, so a hook that only counts rows costs nothing;\n * materializing via `toRows()` decodes every cell of every row. Mutating materialized rows is\n * unsupported and is not guaranteed to affect entity hydration.\n *\n * @param meta Metadata for the entity type that was queried\n * @param operation The type of find operation that was performed\n * @param rows A read-only view of the raw database rows returned from the query\n */\n afterFind?(meta: EntityMetadata, operation: FindOperation, rows: RowData): void;\n\n beforeValidate?(entities: readonly Entity[]): Promise<void> | void;\n\n afterValidate?(entities: readonly Entity[]): Promise<void> | void;\n\n afterWrite(entityTodos: Record<string, Todo>, joinRowTodos: Record<string, JoinRowTodo>): void;\n}\n\nconst syncPluginMethods = [\n \"beforeGetField\",\n \"beforeSetField\",\n \"beforeFind\",\n \"afterFind\",\n \"afterWrite\",\n] as const satisfies readonly (keyof PluginMethods)[];\nconst asyncPluginMethods = [\"beforeValidate\", \"afterValidate\"] as const satisfies readonly (keyof PluginMethods)[];\nconst emsSymbol = Symbol(\"ems\");\n/**\n * Base class for plugins that hook into entity lifecycle events.\n *\n * Plugins can implement any of the PluginMethods to intercept entity operations\n * and are automatically registered with the EntityManager when added via PluginManager.\n */\nexport abstract class Plugin {\n // We need to store the EntityManager references in a WeakRef array so that they can be garbage collected. If we\n // didn't do this, then multiple EMs with the same plugin instance could keep each other from being garbage collected.\n [emsSymbol]: WeakRef<EntityManager>[] = [];\n\n maybeCloneForNewEm(): this | undefined {\n return undefined;\n }\n\n get ems(): readonly EntityManager[] {\n return this[emsSymbol]\n .values()\n .map((wr) => wr.deref())\n .filter(isDefined)\n .toArray();\n }\n}\n\nexport interface Plugin extends PluginMethods {}\n\n/**\n * Manages plugin lifecycle and dispatches plugin callbacks to registered plugins.\n *\n * The PluginManager optimizes callback dispatch by only creating dispatcher methods\n * for callbacks that have at least one registered plugin, making unused plugin hooks\n * zero-cost at runtime.\n */\nexport class PluginManager implements Required<PluginMethods> {\n #plugins = new Set<Plugin>();\n readonly #pluginsByCallback: Partial<Record<keyof Plugin, Plugin[]>> = {};\n constructor(public readonly em: EntityManager) {}\n\n /** Returns whether any registered plugin implements `method`, i.e. so callers can skip building its args. */\n hasHook(method: keyof PluginMethods): boolean {\n return this.#pluginsByCallback[method] !== undefined;\n }\n\n /**\n * Registers a plugin with this EntityManager.\n *\n * Dynamically creates dispatcher methods for any plugin callbacks implemented by this plugin,\n * enabling lazy initialization of only the hooks that are actually used.\n *\n * @throws Error if the plugin is already registered with another EntityManager\n */\n addPlugin(plugin: Plugin) {\n if (this.#plugins.has(plugin)) return; // if we're already added, then we can just early exit\n this.#plugins.add(plugin);\n plugin[emsSymbol].push(new WeakRef(this.em));\n for (const method of syncPluginMethods) {\n if (method in plugin) {\n (this.#pluginsByCallback[method] ??= []).push(plugin);\n // As a performance optimization, we only create the actual implementation for each method on the plugin manager\n // once we have at least one plugin using that method. This is to make it so any unused plugin methods are\n // effectively no-ops when called from within the em.\n if (!Object.hasOwn(this, method)) {\n this[method] = function (this: PluginManager, ...args: any[]) {\n for (const plugin of this.#pluginsByCallback[method]!) {\n (plugin[method] as (...args: any[]) => unknown)(...args);\n }\n };\n }\n }\n }\n for (const method of asyncPluginMethods) {\n if (method in plugin) {\n (this.#pluginsByCallback[method] ??= []).push(plugin);\n // Validate-phase plugin hooks are intentionally awaited without making hot-path hooks async.\n if (!Object.hasOwn(this, method)) {\n this[method] = async function (this: PluginManager, ...args: any[]) {\n for (const plugin of this.#pluginsByCallback[method]!) {\n await (plugin[method] as (...args: any[]) => Promise<void> | void)(...args);\n }\n };\n }\n }\n }\n }\n\n get plugins(): readonly Plugin[] {\n return [...this.#plugins];\n }\n\n cloneTo(other: PluginManager) {\n this.#plugins\n .values()\n .map((plugin) => plugin.maybeCloneForNewEm())\n .filter(isDefined)\n .forEach((plugin) => other.addPlugin(plugin));\n }\n\n // Defined as no-op functions initially instead of using optional chaining for performance reasons, see:\n // https://adventures.nodeland.dev/archive/noop-functions-vs-optional-chaining-a-performance/\n\n beforeGetField(entity: Entity, field: string): void {}\n beforeSetField(entity: Entity, field: string, newValue: any): void {}\n beforeFind(\n meta: EntityMetadata,\n operation: FindOperation,\n query: ParsedFindQuery,\n settings: {\n limit?: number;\n offset?: number;\n allowMultipleLeftJoins?: boolean;\n optimizeJoinsToExists?: boolean;\n pruneJoins?: boolean;\n keepAliases?: string[];\n },\n ): void {}\n afterFind(meta: EntityMetadata, operation: FindOperation, rows: RowData) {}\n beforeValidate(entities: readonly Entity[]): Promise<void> | void {}\n afterValidate(entities: readonly Entity[]): Promise<void> | void {}\n afterWrite(entityTodos: Record<string, Todo>, joinRowTodos: Record<string, JoinRowTodo>): void {}\n}\n"],"mappings":";;;;AAkEA,MAAM,oBAAoB;CACxB;CACA;CACA;CACA;CACA;AACF;AACA,MAAM,qBAAqB,CAAC,kBAAkB,eAAe;AAC7D,MAAM,YAAY,OAAO,KAAK;;;;;;;AAO9B,IAAsB,SAAtB,MAA6B;CAG3B,CAAC,aAAuC,CAAC;CAEzC,qBAAuC,CAEvC;CAEA,IAAI,MAAgC;EAClC,OAAO,KAAK,UAAU,CACnB,OAAO,CAAC,CACR,KAAK,OAAO,GAAG,MAAM,CAAC,CAAC,CACvB,OAAO,SAAS,CAAC,CACjB,QAAQ;CACb;AACF;;;;;;;;AAWA,IAAa,gBAAb,MAA8D;CAGhC;CAF5B,2BAAW,IAAI,IAAY;CAC3B,qBAAuE,CAAC;CACxE,YAAY,IAAmC;EAAnB,KAAA,KAAA;CAAoB;;CAGhD,QAAQ,QAAsC;EAC5C,OAAO,KAAKA,mBAAmB,YAAY,KAAA;CAC7C;;;;;;;;;CAUA,UAAU,QAAgB;EACxB,IAAI,KAAKC,SAAS,IAAI,MAAM,GAAG;EAC/B,KAAKA,SAAS,IAAI,MAAM;EACxB,OAAO,UAAU,CAAC,KAAK,IAAI,QAAQ,KAAK,EAAE,CAAC;EAC3C,KAAK,MAAM,UAAU,mBACnB,IAAI,UAAU,QAAQ;GACpB,CAAC,KAAKD,mBAAmB,YAAY,CAAC,EAAA,CAAG,KAAK,MAAM;GAIpD,IAAI,CAAC,OAAO,OAAO,MAAM,MAAM,GAC7B,KAAK,UAAU,SAA+B,GAAG,MAAa;IAC5D,KAAK,MAAM,UAAU,KAAKA,mBAAmB,SAC3C,OAAQ,OAAO,CAAiC,GAAG,IAAI;GAE3D;EAEJ;EAEF,KAAK,MAAM,UAAU,oBACnB,IAAI,UAAU,QAAQ;GACpB,CAAC,KAAKA,mBAAmB,YAAY,CAAC,EAAA,CAAG,KAAK,MAAM;GAEpD,IAAI,CAAC,OAAO,OAAO,MAAM,MAAM,GAC7B,KAAK,UAAU,eAAqC,GAAG,MAAa;IAClE,KAAK,MAAM,UAAU,KAAKA,mBAAmB,SAC3C,MAAO,OAAO,OAAO,CAA8C,GAAG,IAAI;GAE9E;EAEJ;CAEJ;CAEA,IAAI,UAA6B;EAC/B,OAAO,CAAC,GAAG,KAAKC,QAAQ;CAC1B;CAEA,QAAQ,OAAsB;EAC5B,KAAKA,SACF,OAAO,CAAC,CACR,KAAK,WAAW,OAAO,mBAAmB,CAAC,CAAC,CAC5C,OAAO,SAAS,CAAC,CACjB,SAAS,WAAW,MAAM,UAAU,MAAM,CAAC;CAChD;CAKA,eAAe,QAAgB,OAAqB,CAAC;CACrD,eAAe,QAAgB,OAAe,UAAqB,CAAC;CACpE,WACE,MACA,WACA,OACA,UAQM,CAAC;CACT,UAAU,MAAsB,WAA0B,MAAe,CAAC;CAC1E,eAAe,UAAmD,CAAC;CACnE,cAAc,UAAmD,CAAC;CAClE,WAAW,aAAmC,cAAiD,CAAC;AAClG"}
1
+ {"version":3,"file":"PluginManager.js","names":[],"sources":["../src/PluginManager.ts"],"sourcesContent":["import { type Entity } from \"src/Entity.ts\";\nimport { type EntityManager, type FindOperation, isDefined } from \"src/EntityManager.ts\";\nimport { type EntityMetadata } from \"src/EntityMetadata.ts\";\nimport type { JoinRowTodo, Todo } from \"src/flush/Todo.ts\";\nimport type { ParsedFindQuery } from \"src/queries/find/QueryParser.ts\";\nimport { type RowData } from \"src/RowData.ts\";\n\ninterface PluginMethods {\n /**\n * Called before a field value is retrieved from an entity via getField.\n *\n * @param entity The entity instance being accessed\n * @param field The field name being retrieved\n */\n beforeGetField?(entity: Entity, field: string): void;\n /**\n * Called before a field value is set on an entity via setField.\n *\n * @param entity The entity instance being modified\n * @param field The field name being set\n * @param newValue The new value being assigned to the field\n */\n beforeSetField?(entity: Entity, field: string, newValue: any): void;\n /**\n * Called before a find operation is executed.\n *\n * @param meta Metadata for the entity type being queried\n * @param operation The type of find operation being performed\n * @param query The parsed query conditions\n * @param settings Query settings including limit and offset\n */\n beforeFind?(\n meta: EntityMetadata,\n operation: FindOperation,\n query: ParsedFindQuery,\n settings: {\n limit?: number;\n offset?: number;\n allowMultipleLeftJoins?: boolean;\n optimizeJoinsToExists?: boolean;\n pruneJoins?: boolean;\n keepAliases?: string[];\n },\n ): void;\n /**\n * Called after a find operation has been executed to observe the raw database rows.\n *\n * The result is an observation-only {@link RowData} view — i.e. `rows.rowCount` for metrics,\n * `rows.get(i, columnName)` for specific cells, or `rows.toRows()` to materialize POJO rows.\n * For lazy results, cells decode on access, so a hook that only counts rows costs nothing;\n * materializing via `toRows()` decodes every cell of every row. Mutating materialized rows is\n * unsupported and is not guaranteed to affect entity hydration.\n *\n * @param meta Metadata for the entity type that was queried\n * @param operation The type of find operation that was performed\n * @param rows A read-only view of the raw database rows returned from the query\n */\n afterFind?(meta: EntityMetadata, operation: FindOperation, rows: RowData): void;\n\n beforeValidate?(entities: readonly Entity[]): Promise<void> | void;\n\n afterValidate?(entities: readonly Entity[]): Promise<void> | void;\n\n afterWrite(entityTodos: Record<string, Todo>, joinRowTodos: Record<string, JoinRowTodo>): void;\n}\n\nconst syncPluginMethods = [\n \"beforeGetField\",\n \"beforeSetField\",\n \"beforeFind\",\n \"afterFind\",\n \"afterWrite\",\n] as const satisfies readonly (keyof PluginMethods)[];\nconst asyncPluginMethods = [\"beforeValidate\", \"afterValidate\"] as const satisfies readonly (keyof PluginMethods)[];\nconst emsSymbol = Symbol(\"ems\");\n/**\n * Base class for plugins that hook into entity lifecycle events.\n *\n * Plugins can implement any of the PluginMethods to intercept entity operations\n * and are automatically registered with the EntityManager when added via PluginManager.\n */\nexport abstract class Plugin {\n // We need to store the EntityManager references in a WeakRef array so that they can be garbage collected. If we\n // didn't do this, then multiple EMs with the same plugin instance could keep each other from being garbage collected.\n [emsSymbol]: WeakRef<EntityManager>[] = [];\n\n maybeCloneForNewEm(): this | undefined {\n return undefined;\n }\n\n get ems(): readonly EntityManager[] {\n return this[emsSymbol]\n .values()\n .map((wr) => wr.deref())\n .filter(isDefined)\n .toArray();\n }\n}\n\nexport interface Plugin extends PluginMethods {}\n\n/**\n * Manages plugin lifecycle and dispatches plugin callbacks to registered plugins.\n *\n * The PluginManager optimizes callback dispatch by only creating dispatcher methods\n * for callbacks that have at least one registered plugin, making unused plugin hooks\n * zero-cost at runtime.\n */\nexport class PluginManager implements Required<PluginMethods> {\n #plugins = new Set<Plugin>();\n readonly #pluginsByCallback: Partial<Record<keyof Plugin, Plugin[]>> = {};\n constructor(public readonly em: EntityManager) {}\n\n /** Returns whether any registered plugin implements `method`, i.e. so callers can skip building its args. */\n hasHook(method: keyof PluginMethods): boolean {\n return this.#pluginsByCallback[method] !== undefined;\n }\n\n /**\n * Registers a plugin with this EntityManager.\n *\n * Dynamically creates dispatcher methods for any plugin callbacks implemented by this plugin,\n * enabling lazy initialization of only the hooks that are actually used.\n *\n * @throws Error if the plugin is already registered with another EntityManager\n */\n addPlugin(plugin: Plugin) {\n if (this.#plugins.has(plugin)) return; // if we're already added, then we can just early exit\n this.#plugins.add(plugin);\n plugin[emsSymbol].push(new WeakRef(this.em));\n for (const method of syncPluginMethods) {\n if (method in plugin) {\n (this.#pluginsByCallback[method] ??= []).push(plugin);\n // As a performance optimization, we only create the actual implementation for each method on the plugin manager\n // once we have at least one plugin using that method. This is to make it so any unused plugin methods are\n // effectively no-ops when called from within the em.\n if (!Object.hasOwn(this, method)) {\n this[method] = function (this: PluginManager, ...args: any[]) {\n for (const plugin of this.#pluginsByCallback[method]!) {\n (plugin[method] as (...args: any[]) => unknown)(...args);\n }\n };\n }\n }\n }\n for (const method of asyncPluginMethods) {\n if (method in plugin) {\n (this.#pluginsByCallback[method] ??= []).push(plugin);\n // Validate-phase plugin hooks are intentionally awaited without making hot-path hooks async.\n if (!Object.hasOwn(this, method)) {\n this[method] = async function (this: PluginManager, ...args: any[]) {\n for (const plugin of this.#pluginsByCallback[method]!) {\n await (plugin[method] as (...args: any[]) => Promise<void> | void)(...args);\n }\n };\n }\n }\n }\n }\n\n get plugins(): readonly Plugin[] {\n return [...this.#plugins];\n }\n\n cloneTo(other: PluginManager) {\n this.#plugins\n .values()\n .map((plugin) => plugin.maybeCloneForNewEm())\n .filter(isDefined)\n .forEach((plugin) => other.addPlugin(plugin));\n }\n\n // Defined as no-op functions initially instead of using optional chaining for performance reasons, see:\n // https://adventures.nodeland.dev/archive/noop-functions-vs-optional-chaining-a-performance/\n\n beforeGetField(entity: Entity, field: string): void {}\n beforeSetField(entity: Entity, field: string, newValue: any): void {}\n beforeFind(\n meta: EntityMetadata,\n operation: FindOperation,\n query: ParsedFindQuery,\n settings: {\n limit?: number;\n offset?: number;\n allowMultipleLeftJoins?: boolean;\n optimizeJoinsToExists?: boolean;\n pruneJoins?: boolean;\n keepAliases?: string[];\n },\n ): void {}\n afterFind(meta: EntityMetadata, operation: FindOperation, rows: RowData) {}\n beforeValidate(entities: readonly Entity[]): Promise<void> | void {}\n afterValidate(entities: readonly Entity[]): Promise<void> | void {}\n afterWrite(entityTodos: Record<string, Todo>, joinRowTodos: Record<string, JoinRowTodo>): void {}\n}\n"],"mappings":";;;;AAkEA,MAAM,oBAAoB;CACxB;CACA;CACA;CACA;CACA;AACF;AACA,MAAM,qBAAqB,CAAC,kBAAkB,eAAe;AAC7D,MAAM,YAAY,OAAO,KAAK;;;;;;;AAO9B,IAAsB,SAAtB,MAA6B;CAG3B,CAAC,aAAuC,CAAC;CAEzC,qBAAuC,CAEvC;CAEA,IAAI,MAAgC;EAClC,OAAO,KAAK,UAAU,CACnB,OAAO,CAAC,CACR,KAAK,OAAO,GAAG,MAAM,CAAC,CAAC,CACvB,OAAO,SAAS,CAAC,CACjB,QAAQ;CACb;AACF;;;;;;;;AAWA,IAAa,gBAAb,MAA8D;CAGhC;CAF5B,2BAAW,IAAI,IAAY;CAC3B,qBAAuE,CAAC;CACxE,YAAY,IAAmC;EAAnB,KAAA,KAAA;CAAoB;;CAGhD,QAAQ,QAAsC;EAC5C,OAAO,KAAK,mBAAmB,YAAY,KAAA;CAC7C;;;;;;;;;CAUA,UAAU,QAAgB;EACxB,IAAI,KAAK,SAAS,IAAI,MAAM,GAAG;EAC/B,KAAK,SAAS,IAAI,MAAM;EACxB,OAAO,UAAU,CAAC,KAAK,IAAI,QAAQ,KAAK,EAAE,CAAC;EAC3C,KAAK,MAAM,UAAU,mBACnB,IAAI,UAAU,QAAQ;GACpB,CAAC,KAAK,mBAAmB,YAAY,CAAC,EAAA,CAAG,KAAK,MAAM;GAIpD,IAAI,CAAC,OAAO,OAAO,MAAM,MAAM,GAC7B,KAAK,UAAU,SAA+B,GAAG,MAAa;IAC5D,KAAK,MAAM,UAAU,KAAK,mBAAmB,SAC3C,OAAQ,OAAO,CAAiC,GAAG,IAAI;GAE3D;EAEJ;EAEF,KAAK,MAAM,UAAU,oBACnB,IAAI,UAAU,QAAQ;GACpB,CAAC,KAAK,mBAAmB,YAAY,CAAC,EAAA,CAAG,KAAK,MAAM;GAEpD,IAAI,CAAC,OAAO,OAAO,MAAM,MAAM,GAC7B,KAAK,UAAU,eAAqC,GAAG,MAAa;IAClE,KAAK,MAAM,UAAU,KAAK,mBAAmB,SAC3C,MAAO,OAAO,OAAO,CAA8C,GAAG,IAAI;GAE9E;EAEJ;CAEJ;CAEA,IAAI,UAA6B;EAC/B,OAAO,CAAC,GAAG,KAAK,QAAQ;CAC1B;CAEA,QAAQ,OAAsB;EAC5B,KAAK,SACF,OAAO,CAAC,CACR,KAAK,WAAW,OAAO,mBAAmB,CAAC,CAAC,CAC5C,OAAO,SAAS,CAAC,CACjB,SAAS,WAAW,MAAM,UAAU,MAAM,CAAC;CAChD;CAKA,eAAe,QAAgB,OAAqB,CAAC;CACrD,eAAe,QAAgB,OAAe,UAAqB,CAAC;CACpE,WACE,MACA,WACA,OACA,UAQM,CAAC;CACT,UAAU,MAAsB,WAA0B,MAAe,CAAC;CAC1E,eAAe,UAAmD,CAAC;CACnE,cAAc,UAAmD,CAAC;CAClE,WAAW,aAAmC,cAAiD,CAAC;AAClG"}
@@ -20,7 +20,7 @@
20
20
  * parsers produce (numbers for `int4`, parsed objects for `jsonb`, strings for
21
21
  * deferred temporals); the field serdes then convert them to domain values.
22
22
  */
23
- interface RowData {
23
+ export interface RowData {
24
24
  /** The number of rows in this query result. */
25
25
  readonly rowCount: number;
26
26
  /** Returns the driver-level column value for a row, i.e. `rowData.get(0, "first_name")`. */
@@ -38,7 +38,7 @@ interface RowData {
38
38
  finalize?(): void;
39
39
  }
40
40
  /** Wraps classic materialized POJO rows, i.e. from node-pg results or hand-built test rows. */
41
- declare class PojoRowData implements RowData {
41
+ export declare class PojoRowData implements RowData {
42
42
  private rows;
43
43
  constructor(rows: readonly any[]);
44
44
  get rowCount(): number;
@@ -47,7 +47,6 @@ declare class PojoRowData implements RowData {
47
47
  toRows(): any[];
48
48
  }
49
49
  /** A shared `RowData` for new entities, which have no database row yet (all columns undefined). */
50
- declare const emptyRowData: RowData;
50
+ export declare const emptyRowData: RowData;
51
51
  //#endregion
52
- export { PojoRowData, RowData, emptyRowData };
53
52
  //# sourceMappingURL=RowData.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RowData.d.cts","names":[],"sources":["../src/RowData.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;UAqBiB;;WAEN;;EAET,IAAI,kBAAkB;;EAEtB,MAAM;;EAEN;;EAEA,QAAQ;;;;;EAKR;;;cAIW,uBAAuB;UACd;EAApB,YAAoB;MAEhB;EAIJ,IAAI,kBAAkB;EAItB,MAAM;EAIN;;;cAMW,cAAc"}
1
+ {"version":3,"file":"RowData.d.cts","names":[],"sources":["../src/RowData.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAqBiB;;WAEN;;EAET,IAAI,kBAAkB;;EAEtB,MAAM;;EAEN;;EAEA,QAAQ;;;;;EAKR;;;qBAIW,uBAAuB;UACd;EAApB,YAAoB;MAEhB;EAIJ,IAAI,kBAAkB;EAItB,MAAM;EAIN;;;qBAMW,cAAc"}
@@ -20,7 +20,7 @@
20
20
  * parsers produce (numbers for `int4`, parsed objects for `jsonb`, strings for
21
21
  * deferred temporals); the field serdes then convert them to domain values.
22
22
  */
23
- interface RowData {
23
+ export interface RowData {
24
24
  /** The number of rows in this query result. */
25
25
  readonly rowCount: number;
26
26
  /** Returns the driver-level column value for a row, i.e. `rowData.get(0, "first_name")`. */
@@ -38,7 +38,7 @@ interface RowData {
38
38
  finalize?(): void;
39
39
  }
40
40
  /** Wraps classic materialized POJO rows, i.e. from node-pg results or hand-built test rows. */
41
- declare class PojoRowData implements RowData {
41
+ export declare class PojoRowData implements RowData {
42
42
  private rows;
43
43
  constructor(rows: readonly any[]);
44
44
  get rowCount(): number;
@@ -47,7 +47,6 @@ declare class PojoRowData implements RowData {
47
47
  toRows(): any[];
48
48
  }
49
49
  /** A shared `RowData` for new entities, which have no database row yet (all columns undefined). */
50
- declare const emptyRowData: RowData;
50
+ export declare const emptyRowData: RowData;
51
51
  //#endregion
52
- export { PojoRowData, RowData, emptyRowData };
53
52
  //# sourceMappingURL=RowData.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RowData.d.mts","names":[],"sources":["../src/RowData.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;UAqBiB;;WAEN;;EAET,IAAI,kBAAkB;;EAEtB,MAAM;;EAEN;;EAEA,QAAQ;;;;;EAKR;;;cAIW,uBAAuB;UACd;EAApB,YAAoB;MAEhB;EAIJ,IAAI,kBAAkB;EAItB,MAAM;EAIN;;;cAMW,cAAc"}
1
+ {"version":3,"file":"RowData.d.mts","names":[],"sources":["../src/RowData.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAqBiB;;WAEN;;EAET,IAAI,kBAAkB;;EAEtB,MAAM;;EAEN;;EAEA,QAAQ;;;;;EAKR;;;qBAIW,uBAAuB;UACd;EAApB,YAAoB;MAEhB;EAIJ,IAAI,kBAAkB;EAItB,MAAM;EAIN;;;qBAMW,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"BatchLoader.cjs","names":["#batchFn","#ensureBatch","#pending","#batchPromise"],"sources":["../../src/batchloaders/BatchLoader.ts"],"sourcesContent":["/**\n * Like DataLoader, but all callers in the same tick share a single Promise<void>.\n *\n * The batch function writes results into a side channel (e.g. setPreloadedRelation\n * or em.hydrate), so there's no per-key return value — just one shared promise\n * that signals \"the batch is done\".\n */\nexport class BatchLoader<K> {\n #batchFn: (keys: K[]) => Promise<void>;\n #pending: K[] | undefined;\n #batchPromise: Promise<void> | undefined;\n\n constructor(batchFn: (keys: K[]) => Promise<void>) {\n this.#batchFn = batchFn;\n }\n\n load(key: K): Promise<void> {\n this.#ensureBatch();\n this.#pending!.push(key);\n return this.#batchPromise!;\n }\n\n loadAll(keys: K[]): Promise<void> {\n this.#ensureBatch();\n // Avoid `push(...keys)`: spread passes each key as a separate function argument, exceeding the\n // JS engine's argument-count limit on large arrays and throwing `RangeError: Maximum call stack\n // size exceeded`. Trips on real-world m2m fan-outs (e.g. ~250k join rows).\n const pending = this.#pending!;\n const start = pending.length;\n pending.length += keys.length;\n for (let i = 0; i < keys.length; i++) {\n pending[start + i] = keys[i];\n }\n return this.#batchPromise!;\n }\n\n #ensureBatch(): void {\n if (!this.#pending) {\n this.#pending = [];\n this.#batchPromise = new Promise<void>((resolve, reject) => {\n enqueuePostPromiseJob(() => {\n const keys = this.#pending!;\n this.#pending = undefined;\n this.#batchPromise = undefined;\n this.#batchFn(keys).then(resolve, reject);\n });\n });\n }\n }\n}\n\nconst resolvedPromise = Promise.resolve();\n\n// Matches DataLoader's enqueuePostPromiseJob scheduling:\n// https://github.com/graphql/dataloader/blob/main/src/index.js#L214\nconst enqueuePostPromiseJob =\n typeof process === \"object\" && typeof process.nextTick === \"function\"\n ? (fn: () => void) => resolvedPromise.then(() => process.nextTick(fn))\n : (fn: () => void) => setTimeout(fn);\n"],"mappings":";;;;;;;;;AAOA,IAAa,cAAb,MAA4B;CAC1B;CACA;CACA;CAEA,YAAY,SAAuC;EACjD,KAAKA,WAAW;CAClB;CAEA,KAAK,KAAuB;EAC1B,KAAKC,aAAa;EAClB,KAAKC,SAAU,KAAK,GAAG;EACvB,OAAO,KAAKC;CACd;CAEA,QAAQ,MAA0B;EAChC,KAAKF,aAAa;EAIlB,MAAM,UAAU,KAAKC;EACrB,MAAM,QAAQ,QAAQ;EACtB,QAAQ,UAAU,KAAK;EACvB,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAC/B,QAAQ,QAAQ,KAAK,KAAK;EAE5B,OAAO,KAAKC;CACd;CAEA,eAAqB;EACnB,IAAI,CAAC,KAAKD,UAAU;GAClB,KAAKA,WAAW,CAAC;GACjB,KAAKC,gBAAgB,IAAI,SAAe,SAAS,WAAW;IAC1D,4BAA4B;KAC1B,MAAM,OAAO,KAAKD;KAClB,KAAKA,WAAW,KAAA;KAChB,KAAKC,gBAAgB,KAAA;KACrB,KAAKH,SAAS,IAAI,CAAC,CAAC,KAAK,SAAS,MAAM;IAC1C,CAAC;GACH,CAAC;EACH;CACF;AACF;AAEA,MAAM,kBAAkB,QAAQ,QAAQ;AAIxC,MAAM,wBACJ,OAAO,YAAY,YAAY,OAAO,QAAQ,aAAa,cACtD,OAAmB,gBAAgB,WAAW,QAAQ,SAAS,EAAE,CAAC,KAClE,OAAmB,WAAW,EAAE"}
1
+ {"version":3,"file":"BatchLoader.cjs","names":[],"sources":["../../src/batchloaders/BatchLoader.ts"],"sourcesContent":["/**\n * Like DataLoader, but all callers in the same tick share a single Promise<void>.\n *\n * The batch function writes results into a side channel (e.g. setPreloadedRelation\n * or em.hydrate), so there's no per-key return value — just one shared promise\n * that signals \"the batch is done\".\n */\nexport class BatchLoader<K> {\n #batchFn: (keys: K[]) => Promise<void>;\n #pending: K[] | undefined;\n #batchPromise: Promise<void> | undefined;\n\n constructor(batchFn: (keys: K[]) => Promise<void>) {\n this.#batchFn = batchFn;\n }\n\n load(key: K): Promise<void> {\n this.#ensureBatch();\n this.#pending!.push(key);\n return this.#batchPromise!;\n }\n\n loadAll(keys: K[]): Promise<void> {\n this.#ensureBatch();\n // Avoid `push(...keys)`: spread passes each key as a separate function argument, exceeding the\n // JS engine's argument-count limit on large arrays and throwing `RangeError: Maximum call stack\n // size exceeded`. Trips on real-world m2m fan-outs (e.g. ~250k join rows).\n const pending = this.#pending!;\n const start = pending.length;\n pending.length += keys.length;\n for (let i = 0; i < keys.length; i++) {\n pending[start + i] = keys[i];\n }\n return this.#batchPromise!;\n }\n\n #ensureBatch(): void {\n if (!this.#pending) {\n this.#pending = [];\n this.#batchPromise = new Promise<void>((resolve, reject) => {\n enqueuePostPromiseJob(() => {\n const keys = this.#pending!;\n this.#pending = undefined;\n this.#batchPromise = undefined;\n this.#batchFn(keys).then(resolve, reject);\n });\n });\n }\n }\n}\n\nconst resolvedPromise = Promise.resolve();\n\n// Matches DataLoader's enqueuePostPromiseJob scheduling:\n// https://github.com/graphql/dataloader/blob/main/src/index.js#L214\nconst enqueuePostPromiseJob =\n typeof process === \"object\" && typeof process.nextTick === \"function\"\n ? (fn: () => void) => resolvedPromise.then(() => process.nextTick(fn))\n : (fn: () => void) => setTimeout(fn);\n"],"mappings":";;;;;;;;;AAOA,IAAa,cAAb,MAA4B;CAC1B;CACA;CACA;CAEA,YAAY,SAAuC;EACjD,KAAK,WAAW;CAClB;CAEA,KAAK,KAAuB;EAC1B,KAAK,aAAa;EAClB,KAAK,SAAU,KAAK,GAAG;EACvB,OAAO,KAAK;CACd;CAEA,QAAQ,MAA0B;EAChC,KAAK,aAAa;EAIlB,MAAM,UAAU,KAAK;EACrB,MAAM,QAAQ,QAAQ;EACtB,QAAQ,UAAU,KAAK;EACvB,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAC/B,QAAQ,QAAQ,KAAK,KAAK;EAE5B,OAAO,KAAK;CACd;CAEA,eAAqB;EACnB,IAAI,CAAC,KAAK,UAAU;GAClB,KAAK,WAAW,CAAC;GACjB,KAAK,gBAAgB,IAAI,SAAe,SAAS,WAAW;IAC1D,4BAA4B;KAC1B,MAAM,OAAO,KAAK;KAClB,KAAK,WAAW,KAAA;KAChB,KAAK,gBAAgB,KAAA;KACrB,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,SAAS,MAAM;IAC1C,CAAC;GACH,CAAC;EACH;CACF;AACF;AAEA,MAAM,kBAAkB,QAAQ,QAAQ;AAIxC,MAAM,wBACJ,OAAO,YAAY,YAAY,OAAO,QAAQ,aAAa,cACtD,OAAmB,gBAAgB,WAAW,QAAQ,SAAS,EAAE,CAAC,KAClE,OAAmB,WAAW,EAAE"}
@@ -6,12 +6,11 @@
6
6
  * or em.hydrate), so there's no per-key return value — just one shared promise
7
7
  * that signals "the batch is done".
8
8
  */
9
- declare class BatchLoader<K> {
9
+ export declare class BatchLoader<K> {
10
10
  #private;
11
11
  constructor(batchFn: (keys: K[]) => Promise<void>);
12
12
  load(key: K): Promise<void>;
13
13
  loadAll(keys: K[]): Promise<void>;
14
14
  }
15
15
  //#endregion
16
- export { BatchLoader };
17
16
  //# sourceMappingURL=BatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/BatchLoader.ts"],"mappings":";;;;;;;;cAOa,YAAY;;EAKvB,YAAY,UAAU,MAAM,QAAQ;EAIpC,KAAK,KAAK,IAAI;EAMd,QAAQ,MAAM,MAAM"}
1
+ {"version":3,"file":"BatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/BatchLoader.ts"],"mappings":";;;;;;;;qBAOa,YAAY;;EAKvB,YAAY,UAAU,MAAM,QAAQ;EAIpC,KAAK,KAAK,IAAI;EAMd,QAAQ,MAAM,MAAM"}
@@ -6,12 +6,11 @@
6
6
  * or em.hydrate), so there's no per-key return value — just one shared promise
7
7
  * that signals "the batch is done".
8
8
  */
9
- declare class BatchLoader<K> {
9
+ export declare class BatchLoader<K> {
10
10
  #private;
11
11
  constructor(batchFn: (keys: K[]) => Promise<void>);
12
12
  load(key: K): Promise<void>;
13
13
  loadAll(keys: K[]): Promise<void>;
14
14
  }
15
15
  //#endregion
16
- export { BatchLoader };
17
16
  //# sourceMappingURL=BatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/BatchLoader.ts"],"mappings":";;;;;;;;cAOa,YAAY;;EAKvB,YAAY,UAAU,MAAM,QAAQ;EAIpC,KAAK,KAAK,IAAI;EAMd,QAAQ,MAAM,MAAM"}
1
+ {"version":3,"file":"BatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/BatchLoader.ts"],"mappings":";;;;;;;;qBAOa,YAAY;;EAKvB,YAAY,UAAU,MAAM,QAAQ;EAIpC,KAAK,KAAK,IAAI;EAMd,QAAQ,MAAM,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"BatchLoader.js","names":["#batchFn","#ensureBatch","#pending","#batchPromise"],"sources":["../../src/batchloaders/BatchLoader.ts"],"sourcesContent":["/**\n * Like DataLoader, but all callers in the same tick share a single Promise<void>.\n *\n * The batch function writes results into a side channel (e.g. setPreloadedRelation\n * or em.hydrate), so there's no per-key return value — just one shared promise\n * that signals \"the batch is done\".\n */\nexport class BatchLoader<K> {\n #batchFn: (keys: K[]) => Promise<void>;\n #pending: K[] | undefined;\n #batchPromise: Promise<void> | undefined;\n\n constructor(batchFn: (keys: K[]) => Promise<void>) {\n this.#batchFn = batchFn;\n }\n\n load(key: K): Promise<void> {\n this.#ensureBatch();\n this.#pending!.push(key);\n return this.#batchPromise!;\n }\n\n loadAll(keys: K[]): Promise<void> {\n this.#ensureBatch();\n // Avoid `push(...keys)`: spread passes each key as a separate function argument, exceeding the\n // JS engine's argument-count limit on large arrays and throwing `RangeError: Maximum call stack\n // size exceeded`. Trips on real-world m2m fan-outs (e.g. ~250k join rows).\n const pending = this.#pending!;\n const start = pending.length;\n pending.length += keys.length;\n for (let i = 0; i < keys.length; i++) {\n pending[start + i] = keys[i];\n }\n return this.#batchPromise!;\n }\n\n #ensureBatch(): void {\n if (!this.#pending) {\n this.#pending = [];\n this.#batchPromise = new Promise<void>((resolve, reject) => {\n enqueuePostPromiseJob(() => {\n const keys = this.#pending!;\n this.#pending = undefined;\n this.#batchPromise = undefined;\n this.#batchFn(keys).then(resolve, reject);\n });\n });\n }\n }\n}\n\nconst resolvedPromise = Promise.resolve();\n\n// Matches DataLoader's enqueuePostPromiseJob scheduling:\n// https://github.com/graphql/dataloader/blob/main/src/index.js#L214\nconst enqueuePostPromiseJob =\n typeof process === \"object\" && typeof process.nextTick === \"function\"\n ? (fn: () => void) => resolvedPromise.then(() => process.nextTick(fn))\n : (fn: () => void) => setTimeout(fn);\n"],"mappings":";;;;;;;;AAOA,IAAa,cAAb,MAA4B;CAC1B;CACA;CACA;CAEA,YAAY,SAAuC;EACjD,KAAKA,WAAW;CAClB;CAEA,KAAK,KAAuB;EAC1B,KAAKC,aAAa;EAClB,KAAKC,SAAU,KAAK,GAAG;EACvB,OAAO,KAAKC;CACd;CAEA,QAAQ,MAA0B;EAChC,KAAKF,aAAa;EAIlB,MAAM,UAAU,KAAKC;EACrB,MAAM,QAAQ,QAAQ;EACtB,QAAQ,UAAU,KAAK;EACvB,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAC/B,QAAQ,QAAQ,KAAK,KAAK;EAE5B,OAAO,KAAKC;CACd;CAEA,eAAqB;EACnB,IAAI,CAAC,KAAKD,UAAU;GAClB,KAAKA,WAAW,CAAC;GACjB,KAAKC,gBAAgB,IAAI,SAAe,SAAS,WAAW;IAC1D,4BAA4B;KAC1B,MAAM,OAAO,KAAKD;KAClB,KAAKA,WAAW,KAAA;KAChB,KAAKC,gBAAgB,KAAA;KACrB,KAAKH,SAAS,IAAI,CAAC,CAAC,KAAK,SAAS,MAAM;IAC1C,CAAC;GACH,CAAC;EACH;CACF;AACF;AAEA,MAAM,kBAAkB,QAAQ,QAAQ;AAIxC,MAAM,wBACJ,OAAO,YAAY,YAAY,OAAO,QAAQ,aAAa,cACtD,OAAmB,gBAAgB,WAAW,QAAQ,SAAS,EAAE,CAAC,KAClE,OAAmB,WAAW,EAAE"}
1
+ {"version":3,"file":"BatchLoader.js","names":[],"sources":["../../src/batchloaders/BatchLoader.ts"],"sourcesContent":["/**\n * Like DataLoader, but all callers in the same tick share a single Promise<void>.\n *\n * The batch function writes results into a side channel (e.g. setPreloadedRelation\n * or em.hydrate), so there's no per-key return value — just one shared promise\n * that signals \"the batch is done\".\n */\nexport class BatchLoader<K> {\n #batchFn: (keys: K[]) => Promise<void>;\n #pending: K[] | undefined;\n #batchPromise: Promise<void> | undefined;\n\n constructor(batchFn: (keys: K[]) => Promise<void>) {\n this.#batchFn = batchFn;\n }\n\n load(key: K): Promise<void> {\n this.#ensureBatch();\n this.#pending!.push(key);\n return this.#batchPromise!;\n }\n\n loadAll(keys: K[]): Promise<void> {\n this.#ensureBatch();\n // Avoid `push(...keys)`: spread passes each key as a separate function argument, exceeding the\n // JS engine's argument-count limit on large arrays and throwing `RangeError: Maximum call stack\n // size exceeded`. Trips on real-world m2m fan-outs (e.g. ~250k join rows).\n const pending = this.#pending!;\n const start = pending.length;\n pending.length += keys.length;\n for (let i = 0; i < keys.length; i++) {\n pending[start + i] = keys[i];\n }\n return this.#batchPromise!;\n }\n\n #ensureBatch(): void {\n if (!this.#pending) {\n this.#pending = [];\n this.#batchPromise = new Promise<void>((resolve, reject) => {\n enqueuePostPromiseJob(() => {\n const keys = this.#pending!;\n this.#pending = undefined;\n this.#batchPromise = undefined;\n this.#batchFn(keys).then(resolve, reject);\n });\n });\n }\n }\n}\n\nconst resolvedPromise = Promise.resolve();\n\n// Matches DataLoader's enqueuePostPromiseJob scheduling:\n// https://github.com/graphql/dataloader/blob/main/src/index.js#L214\nconst enqueuePostPromiseJob =\n typeof process === \"object\" && typeof process.nextTick === \"function\"\n ? (fn: () => void) => resolvedPromise.then(() => process.nextTick(fn))\n : (fn: () => void) => setTimeout(fn);\n"],"mappings":";;;;;;;;AAOA,IAAa,cAAb,MAA4B;CAC1B;CACA;CACA;CAEA,YAAY,SAAuC;EACjD,KAAK,WAAW;CAClB;CAEA,KAAK,KAAuB;EAC1B,KAAK,aAAa;EAClB,KAAK,SAAU,KAAK,GAAG;EACvB,OAAO,KAAK;CACd;CAEA,QAAQ,MAA0B;EAChC,KAAK,aAAa;EAIlB,MAAM,UAAU,KAAK;EACrB,MAAM,QAAQ,QAAQ;EACtB,QAAQ,UAAU,KAAK;EACvB,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAC/B,QAAQ,QAAQ,KAAK,KAAK;EAE5B,OAAO,KAAK;CACd;CAEA,eAAqB;EACnB,IAAI,CAAC,KAAK,UAAU;GAClB,KAAK,WAAW,CAAC;GACjB,KAAK,gBAAgB,IAAI,SAAe,SAAS,WAAW;IAC1D,4BAA4B;KAC1B,MAAM,OAAO,KAAK;KAClB,KAAK,WAAW,KAAA;KAChB,KAAK,gBAAgB,KAAA;KACrB,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,SAAS,MAAM;IAC1C,CAAC;GACH,CAAC;EACH;CACF;AACF;AAEA,MAAM,kBAAkB,QAAQ,QAAQ;AAIxC,MAAM,wBACJ,OAAO,YAAY,YAAY,OAAO,QAAQ,aAAa,cACtD,OAAmB,gBAAgB,WAAW,QAAQ,SAAS,EAAE,CAAC,KAClE,OAAmB,WAAW,EAAE"}
@@ -3,9 +3,8 @@ import { ManyToManyLike } from "../flush/JoinRows.cjs";
3
3
  import "../index.cjs";
4
4
  import { EntityManager } from "../EntityManager.cjs";
5
5
  //#region src/batchloaders/enumCollectionBatchLoader.d.ts
6
- declare const enumCollectionLoadOperation = "enum-collection-load";
6
+ export declare const enumCollectionLoadOperation = "enum-collection-load";
7
7
  /** Batches `EnumCollection.load` calls via BatchLoader; keys are the owning entities' tagged ids. */
8
- declare function enumCollectionBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
8
+ export declare function enumCollectionBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
9
9
  //#endregion
10
- export { enumCollectionBatchLoader, enumCollectionLoadOperation };
11
10
  //# sourceMappingURL=enumCollectionBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enumCollectionBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/enumCollectionBatchLoader.ts"],"mappings":";;;;;cAKa;;iBAGG,0BAA0B,IAAI,eAAe,YAAY,iBAAiB"}
1
+ {"version":3,"file":"enumCollectionBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/enumCollectionBatchLoader.ts"],"mappings":";;;;;qBAKa;;wBAGG,0BAA0B,IAAI,eAAe,YAAY,iBAAiB"}
@@ -3,9 +3,8 @@ import { ManyToManyLike } from "../flush/JoinRows.mjs";
3
3
  import "../index.mjs";
4
4
  import { EntityManager } from "../EntityManager.mjs";
5
5
  //#region src/batchloaders/enumCollectionBatchLoader.d.ts
6
- declare const enumCollectionLoadOperation = "enum-collection-load";
6
+ export declare const enumCollectionLoadOperation = "enum-collection-load";
7
7
  /** Batches `EnumCollection.load` calls via BatchLoader; keys are the owning entities' tagged ids. */
8
- declare function enumCollectionBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
8
+ export declare function enumCollectionBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
9
9
  //#endregion
10
- export { enumCollectionBatchLoader, enumCollectionLoadOperation };
11
10
  //# sourceMappingURL=enumCollectionBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enumCollectionBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/enumCollectionBatchLoader.ts"],"mappings":";;;;;cAKa;;iBAGG,0BAA0B,IAAI,eAAe,YAAY,iBAAiB"}
1
+ {"version":3,"file":"enumCollectionBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/enumCollectionBatchLoader.ts"],"mappings":";;;;;qBAKa;;wBAGG,0BAA0B,IAAI,eAAe,YAAY,iBAAiB"}
@@ -3,7 +3,7 @@ import { LoadHint } from "../loading/loadHints.cjs";
3
3
  import { EntityMetadata } from "../EntityMetadata.cjs";
4
4
  import { EntityManager } from "../EntityManager.cjs";
5
5
  //#region src/batchloaders/loadBatchLoader.d.ts
6
- declare const loadOperation = "load";
6
+ export declare const loadOperation = "load";
7
7
  /**
8
8
  * Batches em.load-style fetches, writing to identity map (via hydrate) instead of returning values.
9
9
  * After the batch resolves, callers retrieve their entity from `em.findExistingInstance`.
@@ -11,10 +11,9 @@ declare const loadOperation = "load";
11
11
  * Accepts tuples of `{ taggedId, hint }` so the preloader can inject join-based
12
12
  * preloading into the same SELECT that fetches the entities.
13
13
  */
14
- declare function loadBatchLoader(em: EntityManager, meta: EntityMetadata, overwriteExisting?: boolean): BatchLoader<{
14
+ export declare function loadBatchLoader(em: EntityManager, meta: EntityMetadata, overwriteExisting?: boolean): BatchLoader<{
15
15
  taggedId: string;
16
16
  hint: LoadHint<any> | undefined;
17
17
  }>;
18
18
  //#endregion
19
- export { loadBatchLoader, loadOperation };
20
19
  //# sourceMappingURL=loadBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/loadBatchLoader.ts"],"mappings":";;;;;cAWa;;;;;;;;iBASG,gBACd,IAAI,eACJ,MAAM,gBACN,8BACC;EAAc;EAAkB,MAAM"}
1
+ {"version":3,"file":"loadBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/loadBatchLoader.ts"],"mappings":";;;;;qBAWa;;;;;;;;wBASG,gBACd,IAAI,eACJ,MAAM,gBACN,8BACC;EAAc;EAAkB,MAAM"}
@@ -3,7 +3,7 @@ import { LoadHint } from "../loading/loadHints.mjs";
3
3
  import { EntityMetadata } from "../EntityMetadata.mjs";
4
4
  import { EntityManager } from "../EntityManager.mjs";
5
5
  //#region src/batchloaders/loadBatchLoader.d.ts
6
- declare const loadOperation = "load";
6
+ export declare const loadOperation = "load";
7
7
  /**
8
8
  * Batches em.load-style fetches, writing to identity map (via hydrate) instead of returning values.
9
9
  * After the batch resolves, callers retrieve their entity from `em.findExistingInstance`.
@@ -11,10 +11,9 @@ declare const loadOperation = "load";
11
11
  * Accepts tuples of `{ taggedId, hint }` so the preloader can inject join-based
12
12
  * preloading into the same SELECT that fetches the entities.
13
13
  */
14
- declare function loadBatchLoader(em: EntityManager, meta: EntityMetadata, overwriteExisting?: boolean): BatchLoader<{
14
+ export declare function loadBatchLoader(em: EntityManager, meta: EntityMetadata, overwriteExisting?: boolean): BatchLoader<{
15
15
  taggedId: string;
16
16
  hint: LoadHint<any> | undefined;
17
17
  }>;
18
18
  //#endregion
19
- export { loadBatchLoader, loadOperation };
20
19
  //# sourceMappingURL=loadBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/loadBatchLoader.ts"],"mappings":";;;;;cAWa;;;;;;;;iBASG,gBACd,IAAI,eACJ,MAAM,gBACN,8BACC;EAAc;EAAkB,MAAM"}
1
+ {"version":3,"file":"loadBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/loadBatchLoader.ts"],"mappings":";;;;;qBAWa;;;;;;;;wBASG,gBACd,IAAI,eACJ,MAAM,gBACN,8BACC;EAAc;EAAkB,MAAM"}
@@ -3,9 +3,8 @@ import { ManyToManyLike } from "../flush/JoinRows.cjs";
3
3
  import "../index.cjs";
4
4
  import { EntityManager } from "../EntityManager.cjs";
5
5
  //#region src/batchloaders/manyToManyBatchLoader.d.ts
6
- declare const manyToManyLoadOperation = "m2m-load";
6
+ export declare const manyToManyLoadOperation = "m2m-load";
7
7
  /** Batches m2m.packages/core/src/relations/ReactiveManyToMany.tsload calls via BatchLoader. */
8
- declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
8
+ export declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
9
9
  //#endregion
10
- export { manyToManyBatchLoader, manyToManyLoadOperation };
11
10
  //# sourceMappingURL=manyToManyBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manyToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;cAMa;;iBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
1
+ {"version":3,"file":"manyToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;qBAMa;;wBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
@@ -3,9 +3,8 @@ import { ManyToManyLike } from "../flush/JoinRows.mjs";
3
3
  import "../index.mjs";
4
4
  import { EntityManager } from "../EntityManager.mjs";
5
5
  //#region src/batchloaders/manyToManyBatchLoader.d.ts
6
- declare const manyToManyLoadOperation = "m2m-load";
6
+ export declare const manyToManyLoadOperation = "m2m-load";
7
7
  /** Batches m2m.packages/core/src/relations/ReactiveManyToMany.tsload calls via BatchLoader. */
8
- declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
8
+ export declare function manyToManyBatchLoader(em: EntityManager, collection: ManyToManyLike): BatchLoader<string>;
9
9
  //#endregion
10
- export { manyToManyBatchLoader, manyToManyLoadOperation };
11
10
  //# sourceMappingURL=manyToManyBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manyToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;cAMa;;iBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
1
+ {"version":3,"file":"manyToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/manyToManyBatchLoader.ts"],"mappings":";;;;;qBAMa;;wBAGG,sBAAsB,IAAI,eAAe,YAAY,iBAAiB"}
@@ -4,8 +4,7 @@ import "../index.cjs";
4
4
  import { EntityManager } from "../EntityManager.cjs";
5
5
  import { Entity } from "../Entity.cjs";
6
6
  //#region src/batchloaders/oneToManyBatchLoader.d.ts
7
- declare const oneToManyLoadOperation = "o2m-load";
8
- declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
7
+ export declare const oneToManyLoadOperation = "o2m-load";
8
+ export declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
9
9
  //#endregion
10
- export { oneToManyBatchLoader, oneToManyLoadOperation };
11
10
  //# sourceMappingURL=oneToManyBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;cAea;iBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
1
+ {"version":3,"file":"oneToManyBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;qBAea;wBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
@@ -4,8 +4,7 @@ import "../index.mjs";
4
4
  import { EntityManager } from "../EntityManager.mjs";
5
5
  import { Entity } from "../Entity.mjs";
6
6
  //#region src/batchloaders/oneToManyBatchLoader.d.ts
7
- declare const oneToManyLoadOperation = "o2m-load";
8
- declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
7
+ export declare const oneToManyLoadOperation = "o2m-load";
8
+ export declare function oneToManyBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: OneToManyCollection<T, U>): BatchLoader<string>;
9
9
  //#endregion
10
- export { oneToManyBatchLoader, oneToManyLoadOperation };
11
10
  //# sourceMappingURL=oneToManyBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;cAea;iBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
1
+ {"version":3,"file":"oneToManyBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToManyBatchLoader.ts"],"mappings":";;;;;;qBAea;wBAEG,qBAAqB,UAAU,QAAQ,UAAU,QAC/D,IAAI,eACJ,YAAY,oBAAoB,GAAG,KAClC"}
@@ -3,8 +3,7 @@ import { OneToOneReferenceImpl } from "../relations/OneToOneReference.cjs";
3
3
  import { EntityManager } from "../EntityManager.cjs";
4
4
  import { Entity } from "../Entity.cjs";
5
5
  //#region src/batchloaders/oneToOneBatchLoader.d.ts
6
- declare const oneToOneLoadOperation = "o2o-load";
7
- declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
6
+ export declare const oneToOneLoadOperation = "o2o-load";
7
+ export declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
8
8
  //#endregion
9
- export { oneToOneBatchLoader, oneToOneLoadOperation };
10
9
  //# sourceMappingURL=oneToOneBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToOneBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;cAea;iBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
1
+ {"version":3,"file":"oneToOneBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;qBAea;wBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
@@ -3,8 +3,7 @@ import { OneToOneReferenceImpl } from "../relations/OneToOneReference.mjs";
3
3
  import { EntityManager } from "../EntityManager.mjs";
4
4
  import { Entity } from "../Entity.mjs";
5
5
  //#region src/batchloaders/oneToOneBatchLoader.d.ts
6
- declare const oneToOneLoadOperation = "o2o-load";
7
- declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
6
+ export declare const oneToOneLoadOperation = "o2o-load";
7
+ export declare function oneToOneBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, reference: OneToOneReferenceImpl<T, U>): BatchLoader<string>;
8
8
  //#endregion
9
- export { oneToOneBatchLoader, oneToOneLoadOperation };
10
9
  //# sourceMappingURL=oneToOneBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneToOneBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;cAea;iBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
1
+ {"version":3,"file":"oneToOneBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/oneToOneBatchLoader.ts"],"mappings":";;;;;qBAea;wBAEG,oBAAoB,UAAU,QAAQ,UAAU,QAC9D,IAAI,eACJ,WAAW,sBAAsB,GAAG,KACnC"}
@@ -1,7 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./BatchLoader.cjs");
3
- const require_normalizeHints = require("../normalizeHints.cjs");
4
- const require_reactivity_reactiveHints = require("../reactivity/reactiveHints.cjs");
5
3
  const require_keys = require("../keys.cjs");
6
4
  const require_queries_sql_keywords = require("../queries/sql/keywords.cjs");
7
5
  const require_batchloaders_manyToManyBatchLoader = require("./manyToManyBatchLoader.cjs");
@@ -10,6 +8,8 @@ const require_queries_find_QueryParser = require("../queries/find/QueryParser.cj
10
8
  const require_batchloaders_oneToOneBatchLoader = require("./oneToOneBatchLoader.cjs");
11
9
  const require_relations_ReactiveField = require("../relations/ReactiveField.cjs");
12
10
  const require_utils = require("../utils.cjs");
11
+ const require_normalizeHints = require("../normalizeHints.cjs");
12
+ const require_reactivity_reactiveHints = require("../reactivity/reactiveHints.cjs");
13
13
  require("../EntityMetadata.cjs");
14
14
  const require_queries_sql_AliasAssigner = require("../queries/sql/AliasAssigner.cjs");
15
15
  const require_loading_HintTree = require("../loading/HintTree.cjs");
@@ -5,13 +5,12 @@ import "../index.cjs";
5
5
  import { EntityManager } from "../EntityManager.cjs";
6
6
  import { Entity } from "../Entity.cjs";
7
7
  //#region src/batchloaders/populateBatchLoader.d.ts
8
- declare const populateOperation = "populate";
9
- declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
8
+ export declare const populateOperation = "populate";
9
+ export declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
10
10
  forceReload?: boolean;
11
11
  }): BatchLoader<{
12
12
  entity: Entity;
13
13
  hint: LoadHint<any>;
14
14
  }>;
15
15
  //#endregion
16
- export { populateBatchLoader, populateOperation };
17
16
  //# sourceMappingURL=populateBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"populateBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;cAwBa;iBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
1
+ {"version":3,"file":"populateBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;qBAwBa;wBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
@@ -5,13 +5,12 @@ import "../index.mjs";
5
5
  import { EntityManager } from "../EntityManager.mjs";
6
6
  import { Entity } from "../Entity.mjs";
7
7
  //#region src/batchloaders/populateBatchLoader.d.ts
8
- declare const populateOperation = "populate";
9
- declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
8
+ export declare const populateOperation = "populate";
9
+ export declare function populateBatchLoader(em: EntityManager, meta: EntityMetadata, hint: LoadHint<any>, mode: "preload" | "intermixed", opts?: {
10
10
  forceReload?: boolean;
11
11
  }): BatchLoader<{
12
12
  entity: Entity;
13
13
  hint: LoadHint<any>;
14
14
  }>;
15
15
  //#endregion
16
- export { populateBatchLoader, populateOperation };
17
16
  //# sourceMappingURL=populateBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"populateBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;cAwBa;iBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
1
+ {"version":3,"file":"populateBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/populateBatchLoader.ts"],"mappings":";;;;;;;qBAwBa;wBAEG,oBACd,IAAI,eACJ,MAAM,gBACN,MAAM,eACN,gCACA;EAAQ;IACP;EAAc,QAAQ;EAAQ,MAAM"}
@@ -1,6 +1,4 @@
1
1
  import "./BatchLoader.js";
2
- import { hintKey } from "../normalizeHints.js";
3
- import { getRelationFromMaybePolyKey, isPolyHint } from "../reactivity/reactiveHints.js";
4
2
  import { keyToNumber } from "../keys.js";
5
3
  import { kqDot } from "../queries/sql/keywords.js";
6
4
  import { manyToManyBatchLoader } from "./manyToManyBatchLoader.js";
@@ -9,6 +7,8 @@ import { addTablePerClassJoinsAndClassTag } from "../queries/find/QueryParser.js
9
7
  import { oneToOneBatchLoader } from "./oneToOneBatchLoader.js";
10
8
  import { ReactiveFieldImpl } from "../relations/ReactiveField.js";
11
9
  import { indexBy, toArray } from "../utils.js";
10
+ import { hintKey } from "../normalizeHints.js";
11
+ import { getRelationFromMaybePolyKey, isPolyHint } from "../reactivity/reactiveHints.js";
12
12
  import "../EntityMetadata.js";
13
13
  import { AliasAssigner } from "../queries/sql/AliasAssigner.js";
14
14
  import { buildHintTree } from "../loading/HintTree.js";
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./BatchLoader.cjs");
3
3
  const require_relations_Collection = require("../relations/Collection.cjs");
4
- require("../relations/RecursiveCollection.cjs");
5
4
  const require_fields = require("../fields.cjs");
6
5
  const require_keys = require("../keys.cjs");
7
6
  const require_queries_sql_keywords = require("../queries/sql/keywords.cjs");
8
7
  const require_queries_find_QueryParser = require("../queries/find/QueryParser.cjs");
9
8
  const require_relations_OneToOneReference = require("../relations/OneToOneReference.cjs");
9
+ require("../relations/RecursiveCollection.cjs");
10
10
  const require_utils = require("../utils.cjs");
11
11
  const require_configure = require("../configure.cjs");
12
12
  require("../index.cjs");
@@ -3,8 +3,7 @@ import { RecursiveChildrenCollectionImpl } from "../relations/RecursiveCollectio
3
3
  import { EntityManager } from "../EntityManager.cjs";
4
4
  import { Entity } from "../Entity.cjs";
5
5
  //#region src/batchloaders/recursiveChildrenBatchLoader.d.ts
6
- declare const recursiveChildrenOperation = "o2m-recursive";
7
- declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveChildrenOperation = "o2m-recursive";
7
+ export declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveChildrenBatchLoader, recursiveChildrenOperation };
10
9
  //# sourceMappingURL=recursiveChildrenBatchLoader.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveChildrenBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;cAoBa;iBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}
1
+ {"version":3,"file":"recursiveChildrenBatchLoader.d.cts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;qBAoBa;wBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}
@@ -3,8 +3,7 @@ import { RecursiveChildrenCollectionImpl } from "../relations/RecursiveCollectio
3
3
  import { EntityManager } from "../EntityManager.mjs";
4
4
  import { Entity } from "../Entity.mjs";
5
5
  //#region src/batchloaders/recursiveChildrenBatchLoader.d.ts
6
- declare const recursiveChildrenOperation = "o2m-recursive";
7
- declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
6
+ export declare const recursiveChildrenOperation = "o2m-recursive";
7
+ export declare function recursiveChildrenBatchLoader<T extends Entity, U extends Entity>(em: EntityManager, collection: RecursiveChildrenCollectionImpl<T, U>): BatchLoader<Entity>;
8
8
  //#endregion
9
- export { recursiveChildrenBatchLoader, recursiveChildrenOperation };
10
9
  //# sourceMappingURL=recursiveChildrenBatchLoader.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recursiveChildrenBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;cAoBa;iBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}
1
+ {"version":3,"file":"recursiveChildrenBatchLoader.d.mts","names":[],"sources":["../../src/batchloaders/recursiveChildrenBatchLoader.ts"],"mappings":";;;;;qBAoBa;wBAEG,6BAA6B,UAAU,QAAQ,UAAU,QACvE,IAAI,eACJ,YAAY,gCAAgC,GAAG,KAC9C,YAAY"}