joist-core 2.4.0 → 2.5.0-next.10
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.
- package/build/BaseEntity.cjs +9 -3
- package/build/BaseEntity.cjs.map +1 -1
- package/build/BaseEntity.d.cts +7 -8
- package/build/BaseEntity.d.cts.map +1 -1
- package/build/BaseEntity.d.mts +7 -8
- package/build/BaseEntity.d.mts.map +1 -1
- package/build/BaseEntity.js +9 -3
- package/build/BaseEntity.js.map +1 -1
- package/build/Entity.cjs +2 -3
- package/build/Entity.d.cts +3 -6
- package/build/Entity.d.cts.map +1 -1
- package/build/Entity.d.mts +3 -6
- package/build/Entity.d.mts.map +1 -1
- package/build/Entity.js +2 -3
- package/build/EntityFields.d.cts +3 -6
- package/build/EntityFields.d.cts.map +1 -1
- package/build/EntityFields.d.mts +3 -6
- package/build/EntityFields.d.mts.map +1 -1
- package/build/EntityManager.cjs +150 -68
- package/build/EntityManager.cjs.map +1 -1
- package/build/EntityManager.d.cts +126 -83
- package/build/EntityManager.d.cts.map +1 -1
- package/build/EntityManager.d.mts +126 -83
- package/build/EntityManager.d.mts.map +1 -1
- package/build/EntityManager.js +149 -69
- package/build/EntityManager.js.map +1 -1
- package/build/EntityMetadata.cjs +3 -5
- package/build/EntityMetadata.cjs.map +1 -1
- package/build/EntityMetadata.d.cts +54 -41
- package/build/EntityMetadata.d.cts.map +1 -1
- package/build/EntityMetadata.d.mts +54 -41
- package/build/EntityMetadata.d.mts.map +1 -1
- package/build/EntityMetadata.js +3 -5
- package/build/EntityMetadata.js.map +1 -1
- package/build/EnumMetadata.d.cts +1 -4
- package/build/EnumMetadata.d.cts.map +1 -1
- package/build/EnumMetadata.d.mts +1 -4
- package/build/EnumMetadata.d.mts.map +1 -1
- package/build/IndexManager.cjs +28 -9
- package/build/IndexManager.cjs.map +1 -1
- package/build/IndexManager.d.cts +3 -6
- package/build/IndexManager.d.cts.map +1 -1
- package/build/IndexManager.d.mts +3 -6
- package/build/IndexManager.d.mts.map +1 -1
- package/build/IndexManager.js +28 -9
- package/build/IndexManager.js.map +1 -1
- package/build/InstanceData.cjs +9 -5
- package/build/InstanceData.cjs.map +1 -1
- package/build/InstanceData.d.cts +9 -7
- package/build/InstanceData.d.cts.map +1 -1
- package/build/InstanceData.d.mts +9 -7
- package/build/InstanceData.d.mts.map +1 -1
- package/build/InstanceData.js +9 -5
- package/build/InstanceData.js.map +1 -1
- package/build/PluginManager.cjs +3 -4
- package/build/PluginManager.cjs.map +1 -1
- package/build/PluginManager.d.cts +11 -10
- package/build/PluginManager.d.cts.map +1 -1
- package/build/PluginManager.d.mts +11 -10
- package/build/PluginManager.d.mts.map +1 -1
- package/build/PluginManager.js +3 -4
- package/build/PluginManager.js.map +1 -1
- package/build/RowData.cjs +1 -2
- package/build/RowData.d.cts +3 -6
- package/build/RowData.d.cts.map +1 -1
- package/build/RowData.d.mts +3 -6
- package/build/RowData.d.mts.map +1 -1
- package/build/RowData.js +1 -2
- package/build/_virtual/_rolldown/runtime.cjs +1 -2
- package/build/batchloaders/BatchLoader.cjs +1 -2
- package/build/batchloaders/BatchLoader.cjs.map +1 -1
- package/build/batchloaders/BatchLoader.d.cts +1 -4
- package/build/batchloaders/BatchLoader.d.cts.map +1 -1
- package/build/batchloaders/BatchLoader.d.mts +1 -4
- package/build/batchloaders/BatchLoader.d.mts.map +1 -1
- package/build/batchloaders/BatchLoader.js +1 -2
- package/build/batchloaders/BatchLoader.js.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.cjs +3 -4
- package/build/batchloaders/enumCollectionBatchLoader.d.cts +3 -6
- package/build/batchloaders/enumCollectionBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.d.mts +3 -6
- package/build/batchloaders/enumCollectionBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.js +3 -4
- package/build/batchloaders/loadBatchLoader.cjs +5 -6
- package/build/batchloaders/loadBatchLoader.d.cts +4 -7
- package/build/batchloaders/loadBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/loadBatchLoader.d.mts +4 -7
- package/build/batchloaders/loadBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/loadBatchLoader.js +5 -6
- package/build/batchloaders/manyToManyBatchLoader.cjs +4 -5
- package/build/batchloaders/manyToManyBatchLoader.d.cts +3 -6
- package/build/batchloaders/manyToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.d.mts +3 -6
- package/build/batchloaders/manyToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.js +4 -5
- package/build/batchloaders/oneToManyBatchLoader.cjs +5 -6
- package/build/batchloaders/oneToManyBatchLoader.d.cts +4 -7
- package/build/batchloaders/oneToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.d.mts +4 -7
- package/build/batchloaders/oneToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.js +5 -6
- package/build/batchloaders/oneToOneBatchLoader.cjs +6 -7
- package/build/batchloaders/oneToOneBatchLoader.d.cts +4 -7
- package/build/batchloaders/oneToOneBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.d.mts +4 -7
- package/build/batchloaders/oneToOneBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.js +6 -7
- package/build/batchloaders/populateBatchLoader.cjs +11 -12
- package/build/batchloaders/populateBatchLoader.d.cts +4 -7
- package/build/batchloaders/populateBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/populateBatchLoader.d.mts +4 -7
- package/build/batchloaders/populateBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/populateBatchLoader.js +11 -12
- package/build/batchloaders/recursiveChildrenBatchLoader.cjs +7 -8
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts +4 -7
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts +4 -7
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.js +7 -8
- package/build/batchloaders/recursiveM2mBatchLoader.cjs +5 -6
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts +4 -7
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts +4 -7
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.js +5 -6
- package/build/batchloaders/recursiveParentsBatchLoader.cjs +7 -8
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts +4 -7
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts +4 -7
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.js +7 -8
- package/build/changes.cjs +8 -9
- package/build/changes.cjs.map +1 -1
- package/build/changes.d.cts +12 -15
- package/build/changes.d.cts.map +1 -1
- package/build/changes.d.mts +12 -15
- package/build/changes.d.mts.map +1 -1
- package/build/changes.js +8 -9
- package/build/changes.js.map +1 -1
- package/build/config.cjs +171 -33
- package/build/config.cjs.map +1 -1
- package/build/config.d.cts +115 -25
- package/build/config.d.cts.map +1 -1
- package/build/config.d.mts +115 -25
- package/build/config.d.mts.map +1 -1
- package/build/config.js +171 -33
- package/build/config.js.map +1 -1
- package/build/configure.cjs +40 -11
- package/build/configure.cjs.map +1 -1
- package/build/configure.d.cts +11 -14
- package/build/configure.d.cts.map +1 -1
- package/build/configure.d.mts +11 -14
- package/build/configure.d.mts.map +1 -1
- package/build/configure.js +40 -11
- package/build/configure.js.map +1 -1
- package/build/dataloaders/buildCandidateBatchQuery.cjs +499 -0
- package/build/dataloaders/buildCandidateBatchQuery.cjs.map +1 -0
- package/build/dataloaders/buildCandidateBatchQuery.d.cts +57 -0
- package/build/dataloaders/buildCandidateBatchQuery.d.cts.map +1 -0
- package/build/dataloaders/buildCandidateBatchQuery.d.mts +57 -0
- package/build/dataloaders/buildCandidateBatchQuery.d.mts.map +1 -0
- package/build/dataloaders/buildCandidateBatchQuery.js +498 -0
- package/build/dataloaders/buildCandidateBatchQuery.js.map +1 -0
- package/build/dataloaders/collectFindArguments.cjs +48 -0
- package/build/dataloaders/collectFindArguments.cjs.map +1 -0
- package/build/dataloaders/collectFindArguments.d.cts +31 -0
- package/build/dataloaders/collectFindArguments.d.cts.map +1 -0
- package/build/dataloaders/collectFindArguments.d.mts +31 -0
- package/build/dataloaders/collectFindArguments.d.mts.map +1 -0
- package/build/dataloaders/collectFindArguments.js +47 -0
- package/build/dataloaders/collectFindArguments.js.map +1 -0
- package/build/dataloaders/fastWhereFilterHash.cjs +3 -4
- package/build/dataloaders/fastWhereFilterHash.d.cts +1 -4
- package/build/dataloaders/fastWhereFilterHash.d.cts.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.d.mts +1 -4
- package/build/dataloaders/fastWhereFilterHash.d.mts.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.js +3 -4
- package/build/dataloaders/findByUniqueDataLoader.cjs +2 -3
- package/build/dataloaders/findByUniqueDataLoader.d.cts +4 -7
- package/build/dataloaders/findByUniqueDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.d.mts +4 -7
- package/build/dataloaders/findByUniqueDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.js +2 -3
- package/build/dataloaders/findCountDataLoader.cjs +8 -9
- package/build/dataloaders/findCountDataLoader.d.cts +7 -10
- package/build/dataloaders/findCountDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findCountDataLoader.d.mts +7 -10
- package/build/dataloaders/findCountDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findCountDataLoader.js +8 -9
- package/build/dataloaders/findDataLoader.cjs +48 -77
- package/build/dataloaders/findDataLoader.cjs.map +1 -1
- package/build/dataloaders/findDataLoader.d.cts +16 -19
- package/build/dataloaders/findDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findDataLoader.d.mts +16 -19
- package/build/dataloaders/findDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findDataLoader.js +48 -77
- package/build/dataloaders/findDataLoader.js.map +1 -1
- package/build/dataloaders/findIdsDataLoader.cjs +6 -7
- package/build/dataloaders/findIdsDataLoader.d.cts +4 -7
- package/build/dataloaders/findIdsDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findIdsDataLoader.d.mts +4 -7
- package/build/dataloaders/findIdsDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findIdsDataLoader.js +6 -7
- package/build/dataloaders/findOrCreateDataLoader.cjs +12 -9
- package/build/dataloaders/findOrCreateDataLoader.cjs.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.cts +5 -7
- package/build/dataloaders/findOrCreateDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.mts +5 -7
- package/build/dataloaders/findOrCreateDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.js +12 -9
- package/build/dataloaders/findOrCreateDataLoader.js.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.cjs +16 -19
- package/build/dataloaders/findPaginatedDataLoader.cjs.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.cts +4 -7
- package/build/dataloaders/findPaginatedDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.mts +4 -7
- package/build/dataloaders/findPaginatedDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.js +16 -19
- package/build/dataloaders/findPaginatedDataLoader.js.map +1 -1
- package/build/dataloaders/lensDataLoader.cjs +5 -6
- package/build/dataloaders/lensDataLoader.d.cts +3 -6
- package/build/dataloaders/lensDataLoader.d.cts.map +1 -1
- package/build/dataloaders/lensDataLoader.d.mts +3 -6
- package/build/dataloaders/lensDataLoader.d.mts.map +1 -1
- package/build/dataloaders/lensDataLoader.js +5 -6
- package/build/dataloaders/manyToManyFindDataLoader.cjs +1 -2
- package/build/dataloaders/manyToManyFindDataLoader.d.cts +4 -7
- package/build/dataloaders/manyToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.mts +4 -7
- package/build/dataloaders/manyToManyFindDataLoader.d.mts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.js +1 -2
- package/build/dataloaders/oneToManyFindDataLoader.cjs +1 -2
- package/build/dataloaders/oneToManyFindDataLoader.d.cts +4 -7
- package/build/dataloaders/oneToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.mts +4 -7
- package/build/dataloaders/oneToManyFindDataLoader.d.mts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.js +1 -2
- package/build/defaults.cjs +7 -8
- package/build/defaults.cjs.map +1 -1
- package/build/defaults.d.cts +9 -11
- package/build/defaults.d.cts.map +1 -1
- package/build/defaults.d.mts +9 -11
- package/build/defaults.d.mts.map +1 -1
- package/build/defaults.js +7 -8
- package/build/defaults.js.map +1 -1
- package/build/drivers/Driver.cjs +1 -1
- package/build/drivers/Driver.d.cts +4 -7
- package/build/drivers/Driver.d.cts.map +1 -1
- package/build/drivers/Driver.d.mts +4 -7
- package/build/drivers/Driver.d.mts.map +1 -1
- package/build/drivers/Driver.js +1 -1
- package/build/drivers/EntityWriter.cjs +8 -8
- package/build/drivers/EntityWriter.cjs.map +1 -1
- package/build/drivers/EntityWriter.d.cts +20 -10
- package/build/drivers/EntityWriter.d.cts.map +1 -1
- package/build/drivers/EntityWriter.d.mts +20 -10
- package/build/drivers/EntityWriter.d.mts.map +1 -1
- package/build/drivers/EntityWriter.js +8 -8
- package/build/drivers/EntityWriter.js.map +1 -1
- package/build/drivers/IdAssigner.cjs +7 -4
- package/build/drivers/IdAssigner.cjs.map +1 -1
- package/build/drivers/IdAssigner.d.cts +6 -7
- package/build/drivers/IdAssigner.d.cts.map +1 -1
- package/build/drivers/IdAssigner.d.mts +6 -7
- package/build/drivers/IdAssigner.d.mts.map +1 -1
- package/build/drivers/IdAssigner.js +7 -4
- package/build/drivers/IdAssigner.js.map +1 -1
- package/build/drivers/driverApi.cjs +4 -5
- package/build/drivers/driverApi.d.cts +4 -7
- package/build/drivers/driverApi.d.cts.map +1 -1
- package/build/drivers/driverApi.d.mts +4 -7
- package/build/drivers/driverApi.d.mts.map +1 -1
- package/build/drivers/driverApi.js +4 -5
- package/build/drivers/index.d.cts +1 -1
- package/build/drivers/index.d.mts +1 -1
- package/build/fields.cjs +81 -23
- package/build/fields.cjs.map +1 -1
- package/build/fields.d.cts +12 -13
- package/build/fields.d.cts.map +1 -1
- package/build/fields.d.mts +12 -13
- package/build/fields.d.mts.map +1 -1
- package/build/fields.js +81 -23
- package/build/fields.js.map +1 -1
- package/build/flush/FlushLock.cjs +1 -2
- package/build/flush/FlushLock.cjs.map +1 -1
- package/build/flush/FlushLock.d.cts +1 -4
- package/build/flush/FlushLock.d.cts.map +1 -1
- package/build/flush/FlushLock.d.mts +1 -4
- package/build/flush/FlushLock.d.mts.map +1 -1
- package/build/flush/FlushLock.js +1 -2
- package/build/flush/FlushLock.js.map +1 -1
- package/build/flush/JoinRows.cjs +3 -4
- package/build/flush/JoinRows.cjs.map +1 -1
- package/build/flush/JoinRows.d.cts +7 -10
- package/build/flush/JoinRows.d.cts.map +1 -1
- package/build/flush/JoinRows.d.mts +7 -10
- package/build/flush/JoinRows.d.mts.map +1 -1
- package/build/flush/JoinRows.js +3 -4
- package/build/flush/JoinRows.js.map +1 -1
- package/build/flush/PendingChanges.d.cts +5 -8
- package/build/flush/PendingChanges.d.cts.map +1 -1
- package/build/flush/PendingChanges.d.mts +5 -8
- package/build/flush/PendingChanges.d.mts.map +1 -1
- package/build/flush/ReadDrift.cjs +89 -0
- package/build/flush/ReadDrift.cjs.map +1 -0
- package/build/flush/ReadDrift.d.cts +23 -0
- package/build/flush/ReadDrift.d.cts.map +1 -0
- package/build/flush/ReadDrift.d.mts +23 -0
- package/build/flush/ReadDrift.d.mts.map +1 -0
- package/build/flush/ReadDrift.js +86 -0
- package/build/flush/ReadDrift.js.map +1 -0
- package/build/flush/Todo.cjs +3 -4
- package/build/flush/Todo.d.cts +7 -10
- package/build/flush/Todo.d.cts.map +1 -1
- package/build/flush/Todo.d.mts +7 -10
- package/build/flush/Todo.d.mts.map +1 -1
- package/build/flush/Todo.js +3 -4
- package/build/getProperties.cjs +4 -5
- package/build/getProperties.d.cts +3 -6
- package/build/getProperties.d.cts.map +1 -1
- package/build/getProperties.d.mts +3 -6
- package/build/getProperties.d.mts.map +1 -1
- package/build/getProperties.js +4 -5
- package/build/index.cjs +71 -57
- package/build/index.cjs.map +1 -1
- package/build/index.d.cts +68 -66
- package/build/index.d.cts.map +1 -1
- package/build/index.d.mts +68 -66
- package/build/index.d.mts.map +1 -1
- package/build/index.js +66 -58
- package/build/index.js.map +1 -1
- package/build/json.cjs +8 -9
- package/build/json.d.cts +13 -15
- package/build/json.d.cts.map +1 -1
- package/build/json.d.mts +13 -15
- package/build/json.d.mts.map +1 -1
- package/build/json.js +8 -9
- package/build/k.cjs +1 -2
- package/build/k.js +1 -2
- package/build/keys.cjs +5 -6
- package/build/keys.d.cts +30 -32
- package/build/keys.d.cts.map +1 -1
- package/build/keys.d.mts +30 -32
- package/build/keys.d.mts.map +1 -1
- package/build/keys.js +5 -6
- package/build/loading/HintTree.cjs +1 -2
- package/build/loading/HintTree.d.cts +5 -8
- package/build/loading/HintTree.d.cts.map +1 -1
- package/build/loading/HintTree.d.mts +5 -8
- package/build/loading/HintTree.d.mts.map +1 -1
- package/build/loading/HintTree.js +1 -2
- package/build/loading/IsLoadedCache.cjs +3 -4
- package/build/loading/IsLoadedCache.cjs.map +1 -1
- package/build/loading/IsLoadedCache.d.cts +3 -6
- package/build/loading/IsLoadedCache.d.cts.map +1 -1
- package/build/loading/IsLoadedCache.d.mts +3 -6
- package/build/loading/IsLoadedCache.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.js +3 -4
- package/build/loading/IsLoadedCache.js.map +1 -1
- package/build/loading/loadHints.cjs +1 -2
- package/build/loading/loadHints.d.cts +21 -23
- package/build/loading/loadHints.d.cts.map +1 -1
- package/build/loading/loadHints.d.mts +21 -23
- package/build/loading/loadHints.d.mts.map +1 -1
- package/build/loading/loadHints.js +1 -2
- package/build/loading/loadLens.cjs +6 -7
- package/build/loading/loadLens.d.cts +15 -17
- package/build/loading/loadLens.d.cts.map +1 -1
- package/build/loading/loadLens.d.mts +15 -17
- package/build/loading/loadLens.d.mts.map +1 -1
- package/build/loading/loadLens.js +6 -7
- package/build/loading/withLoaded.cjs +1 -2
- package/build/loading/withLoaded.d.cts +7 -10
- package/build/loading/withLoaded.d.cts.map +1 -1
- package/build/loading/withLoaded.d.mts +7 -10
- package/build/loading/withLoaded.d.mts.map +1 -1
- package/build/loading/withLoaded.js +1 -2
- package/build/logging/FactoryLogger.cjs +3 -4
- package/build/logging/FactoryLogger.cjs.map +1 -1
- package/build/logging/FactoryLogger.d.cts +4 -7
- package/build/logging/FactoryLogger.d.cts.map +1 -1
- package/build/logging/FactoryLogger.d.mts +4 -7
- package/build/logging/FactoryLogger.d.mts.map +1 -1
- package/build/logging/FactoryLogger.js +4 -5
- package/build/logging/FactoryLogger.js.map +1 -1
- package/build/logging/FieldLogger.cjs +1 -2
- package/build/logging/FieldLogger.cjs.map +1 -1
- package/build/logging/FieldLogger.d.cts +4 -7
- package/build/logging/FieldLogger.d.cts.map +1 -1
- package/build/logging/FieldLogger.d.mts +4 -7
- package/build/logging/FieldLogger.d.mts.map +1 -1
- package/build/logging/FieldLogger.js +1 -2
- package/build/logging/FieldLogger.js.map +1 -1
- package/build/logging/ReactionLogger.cjs +3 -4
- package/build/logging/ReactionLogger.d.cts +10 -12
- package/build/logging/ReactionLogger.d.cts.map +1 -1
- package/build/logging/ReactionLogger.d.mts +10 -12
- package/build/logging/ReactionLogger.d.mts.map +1 -1
- package/build/logging/ReactionLogger.js +3 -4
- package/build/metrics/EntityMetrics.cjs +80 -0
- package/build/metrics/EntityMetrics.cjs.map +1 -0
- package/build/metrics/EntityMetrics.d.cts +53 -0
- package/build/metrics/EntityMetrics.d.cts.map +1 -0
- package/build/metrics/EntityMetrics.d.mts +53 -0
- package/build/metrics/EntityMetrics.d.mts.map +1 -0
- package/build/metrics/EntityMetrics.js +78 -0
- package/build/metrics/EntityMetrics.js.map +1 -0
- package/build/newEntity.cjs +6 -7
- package/build/newEntity.cjs.map +1 -1
- package/build/newEntity.d.cts +6 -9
- package/build/newEntity.d.cts.map +1 -1
- package/build/newEntity.d.mts +6 -9
- package/build/newEntity.d.mts.map +1 -1
- package/build/newEntity.js +6 -7
- package/build/newEntity.js.map +1 -1
- package/build/newTestInstance.cjs +10 -10
- package/build/newTestInstance.cjs.map +1 -1
- package/build/newTestInstance.d.cts +24 -26
- package/build/newTestInstance.d.cts.map +1 -1
- package/build/newTestInstance.d.mts +24 -26
- package/build/newTestInstance.d.mts.map +1 -1
- package/build/newTestInstance.js +10 -10
- package/build/newTestInstance.js.map +1 -1
- package/build/normalizeHints.cjs +1 -2
- package/build/normalizeHints.d.cts +8 -11
- package/build/normalizeHints.d.cts.map +1 -1
- package/build/normalizeHints.d.mts +8 -11
- package/build/normalizeHints.d.mts.map +1 -1
- package/build/normalizeHints.js +1 -2
- package/build/nowUTC.cjs +1 -2
- package/build/nowUTC.d.cts +4 -7
- package/build/nowUTC.d.cts.map +1 -1
- package/build/nowUTC.d.mts +4 -7
- package/build/nowUTC.d.mts.map +1 -1
- package/build/nowUTC.js +1 -2
- package/build/plugins/ImmutableEntitiesPlugin.cjs +3 -4
- package/build/plugins/ImmutableEntitiesPlugin.d.cts +2 -5
- package/build/plugins/ImmutableEntitiesPlugin.d.cts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.mts +2 -5
- package/build/plugins/ImmutableEntitiesPlugin.d.mts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.js +3 -4
- package/build/plugins/PreloadPlugin.cjs +1 -1
- package/build/plugins/PreloadPlugin.d.cts +7 -10
- package/build/plugins/PreloadPlugin.d.cts.map +1 -1
- package/build/plugins/PreloadPlugin.d.mts +7 -10
- package/build/plugins/PreloadPlugin.d.mts.map +1 -1
- package/build/plugins/PreloadPlugin.js +1 -1
- package/build/preloading/JsonAggregatePreloader.cjs +9 -10
- package/build/preloading/JsonAggregatePreloader.d.cts +4 -7
- package/build/preloading/JsonAggregatePreloader.d.cts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.d.mts +4 -7
- package/build/preloading/JsonAggregatePreloader.d.mts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.js +9 -10
- package/build/preloading/canPreload.cjs +1 -2
- package/build/preloading/canPreload.d.cts +1 -4
- package/build/preloading/canPreload.d.cts.map +1 -1
- package/build/preloading/canPreload.d.mts +1 -4
- package/build/preloading/canPreload.d.mts.map +1 -1
- package/build/preloading/canPreload.js +1 -2
- package/build/preloading/partitionHint.cjs +5 -6
- package/build/preloading/partitionHint.d.cts +2 -5
- package/build/preloading/partitionHint.d.cts.map +1 -1
- package/build/preloading/partitionHint.d.mts +2 -5
- package/build/preloading/partitionHint.d.mts.map +1 -1
- package/build/preloading/partitionHint.js +5 -6
- package/build/queries/ConditionBuilder.cjs +2 -3
- package/build/queries/ConditionBuilder.d.cts +3 -5
- package/build/queries/ConditionBuilder.d.cts.map +1 -1
- package/build/queries/ConditionBuilder.d.mts +3 -5
- package/build/queries/ConditionBuilder.d.mts.map +1 -1
- package/build/queries/ConditionBuilder.js +2 -3
- package/build/queries/conditions.cjs +1 -2
- package/build/queries/conditions.d.cts +11 -14
- package/build/queries/conditions.d.cts.map +1 -1
- package/build/queries/conditions.d.mts +11 -14
- package/build/queries/conditions.d.mts.map +1 -1
- package/build/queries/conditions.js +1 -2
- package/build/queries/entityQueryUtils.cjs +2 -3
- package/build/queries/entityQueryUtils.d.cts +5 -8
- package/build/queries/entityQueryUtils.d.cts.map +1 -1
- package/build/queries/entityQueryUtils.d.mts +5 -8
- package/build/queries/entityQueryUtils.d.mts.map +1 -1
- package/build/queries/entityQueryUtils.js +2 -3
- package/build/queries/find/Aliases.cjs +4 -5
- package/build/queries/find/Aliases.d.cts +21 -23
- package/build/queries/find/Aliases.d.cts.map +1 -1
- package/build/queries/find/Aliases.d.mts +21 -23
- package/build/queries/find/Aliases.d.mts.map +1 -1
- package/build/queries/find/Aliases.js +4 -5
- package/build/queries/find/DeferredAlias.cjs +1 -2
- package/build/queries/find/DeferredAlias.d.cts +7 -10
- package/build/queries/find/DeferredAlias.d.cts.map +1 -1
- package/build/queries/find/DeferredAlias.d.mts +7 -10
- package/build/queries/find/DeferredAlias.d.mts.map +1 -1
- package/build/queries/find/DeferredAlias.js +1 -2
- package/build/queries/find/EntityFilter.cjs +1 -2
- package/build/queries/find/EntityFilter.d.cts +15 -18
- package/build/queries/find/EntityFilter.d.cts.map +1 -1
- package/build/queries/find/EntityFilter.d.mts +15 -18
- package/build/queries/find/EntityFilter.d.mts.map +1 -1
- package/build/queries/find/EntityFilter.js +1 -2
- package/build/queries/find/EntityGraphQLFilter.cjs +1 -2
- package/build/queries/find/EntityGraphQLFilter.d.cts +10 -13
- package/build/queries/find/EntityGraphQLFilter.d.cts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.d.mts +10 -13
- package/build/queries/find/EntityGraphQLFilter.d.mts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.js +1 -2
- package/build/queries/find/QueryParser.cjs +27 -17
- package/build/queries/find/QueryParser.cjs.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.cjs +3 -3
- package/build/queries/find/QueryParser.collectionJoins.cjs.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.cts +1 -4
- package/build/queries/find/QueryParser.collectionJoins.d.cts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.mts +1 -4
- package/build/queries/find/QueryParser.collectionJoins.d.mts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.js +3 -3
- package/build/queries/find/QueryParser.collectionJoins.js.map +1 -1
- package/build/queries/find/QueryParser.d.cts +43 -22
- package/build/queries/find/QueryParser.d.cts.map +1 -1
- package/build/queries/find/QueryParser.d.mts +43 -22
- package/build/queries/find/QueryParser.d.mts.map +1 -1
- package/build/queries/find/QueryParser.js +27 -17
- package/build/queries/find/QueryParser.js.map +1 -1
- package/build/queries/find/QueryParser.pruning.cjs +52 -4
- package/build/queries/find/QueryParser.pruning.cjs.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.cts +15 -5
- package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.mts +15 -5
- package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
- package/build/queries/find/QueryParser.pruning.js +52 -4
- package/build/queries/find/QueryParser.pruning.js.map +1 -1
- package/build/queries/find/QueryVisitor.cjs +1 -2
- package/build/queries/find/QueryVisitor.d.cts +4 -6
- package/build/queries/find/QueryVisitor.d.cts.map +1 -1
- package/build/queries/find/QueryVisitor.d.mts +4 -6
- package/build/queries/find/QueryVisitor.d.mts.map +1 -1
- package/build/queries/find/QueryVisitor.js +1 -2
- package/build/queries/find/buildFindQuery.cjs +5 -6
- package/build/queries/find/buildFindQuery.cjs.map +1 -1
- package/build/queries/find/buildFindQuery.d.cts +3 -5
- package/build/queries/find/buildFindQuery.d.cts.map +1 -1
- package/build/queries/find/buildFindQuery.d.mts +3 -5
- package/build/queries/find/buildFindQuery.d.mts.map +1 -1
- package/build/queries/find/buildFindQuery.js +5 -6
- package/build/queries/find/buildFindQuery.js.map +1 -1
- package/build/queries/find/scopes.cjs +1 -2
- package/build/queries/find/scopes.cjs.map +1 -1
- package/build/queries/find/scopes.d.cts +17 -20
- package/build/queries/find/scopes.d.cts.map +1 -1
- package/build/queries/find/scopes.d.mts +17 -20
- package/build/queries/find/scopes.d.mts.map +1 -1
- package/build/queries/find/scopes.js +1 -2
- package/build/queries/find/scopes.js.map +1 -1
- package/build/queries/parsedConditions.cjs +1 -2
- package/build/queries/parsedConditions.d.cts +7 -10
- package/build/queries/parsedConditions.d.cts.map +1 -1
- package/build/queries/parsedConditions.d.mts +7 -10
- package/build/queries/parsedConditions.d.mts.map +1 -1
- package/build/queries/parsedConditions.js +1 -2
- package/build/queries/renderConditions.cjs +3 -4
- package/build/queries/renderConditions.d.cts +3 -6
- package/build/queries/renderConditions.d.cts.map +1 -1
- package/build/queries/renderConditions.d.mts +3 -6
- package/build/queries/renderConditions.d.mts.map +1 -1
- package/build/queries/renderConditions.js +3 -4
- package/build/queries/skipCondition.cjs +1 -2
- package/build/queries/skipCondition.d.cts +1 -4
- package/build/queries/skipCondition.d.cts.map +1 -1
- package/build/queries/skipCondition.d.mts +1 -4
- package/build/queries/skipCondition.d.mts.map +1 -1
- package/build/queries/skipCondition.js +1 -2
- package/build/queries/sql/AliasAssigner.cjs +1 -2
- package/build/queries/sql/AliasAssigner.cjs.map +1 -1
- package/build/queries/sql/AliasAssigner.d.cts +1 -4
- package/build/queries/sql/AliasAssigner.d.cts.map +1 -1
- package/build/queries/sql/AliasAssigner.d.mts +1 -4
- package/build/queries/sql/AliasAssigner.d.mts.map +1 -1
- package/build/queries/sql/AliasAssigner.js +1 -2
- package/build/queries/sql/AliasAssigner.js.map +1 -1
- package/build/queries/sql/Expr.cjs +41 -4
- package/build/queries/sql/Expr.cjs.map +1 -1
- package/build/queries/sql/Expr.d.cts +47 -31
- package/build/queries/sql/Expr.d.cts.map +1 -1
- package/build/queries/sql/Expr.d.mts +47 -31
- package/build/queries/sql/Expr.d.mts.map +1 -1
- package/build/queries/sql/Expr.js +41 -5
- package/build/queries/sql/Expr.js.map +1 -1
- package/build/queries/sql/JoinTree.cjs +3 -4
- package/build/queries/sql/JoinTree.d.cts +10 -12
- package/build/queries/sql/JoinTree.d.cts.map +1 -1
- package/build/queries/sql/JoinTree.d.mts +10 -12
- package/build/queries/sql/JoinTree.d.mts.map +1 -1
- package/build/queries/sql/JoinTree.js +3 -4
- package/build/queries/sql/Tables.cjs +17 -9
- package/build/queries/sql/Tables.cjs.map +1 -1
- package/build/queries/sql/Tables.d.cts +51 -46
- package/build/queries/sql/Tables.d.cts.map +1 -1
- package/build/queries/sql/Tables.d.mts +51 -46
- package/build/queries/sql/Tables.d.mts.map +1 -1
- package/build/queries/sql/Tables.js +17 -9
- package/build/queries/sql/Tables.js.map +1 -1
- package/build/queries/sql/custom.cjs +1 -2
- package/build/queries/sql/custom.d.cts +16 -18
- package/build/queries/sql/custom.d.cts.map +1 -1
- package/build/queries/sql/custom.d.mts +16 -18
- package/build/queries/sql/custom.d.mts.map +1 -1
- package/build/queries/sql/custom.js +1 -2
- package/build/queries/sql/execute.cjs +74 -96
- package/build/queries/sql/execute.cjs.map +1 -1
- package/build/queries/sql/execute.d.cts +54 -39
- package/build/queries/sql/execute.d.cts.map +1 -1
- package/build/queries/sql/execute.d.mts +54 -39
- package/build/queries/sql/execute.d.mts.map +1 -1
- package/build/queries/sql/execute.js +75 -97
- package/build/queries/sql/execute.js.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.cjs +2 -3
- package/build/queries/sql/expressions/arrayAgg.d.cts +6 -9
- package/build/queries/sql/expressions/arrayAgg.d.cts.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.d.mts +6 -9
- package/build/queries/sql/expressions/arrayAgg.d.mts.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.js +2 -3
- package/build/queries/sql/expressions/case.cjs +2 -3
- package/build/queries/sql/expressions/case.d.cts +11 -13
- package/build/queries/sql/expressions/case.d.cts.map +1 -1
- package/build/queries/sql/expressions/case.d.mts +11 -13
- package/build/queries/sql/expressions/case.d.mts.map +1 -1
- package/build/queries/sql/expressions/case.js +2 -3
- package/build/queries/sql/expressions/coalesce.cjs +2 -3
- package/build/queries/sql/expressions/coalesce.d.cts +6 -9
- package/build/queries/sql/expressions/coalesce.d.cts.map +1 -1
- package/build/queries/sql/expressions/coalesce.d.mts +6 -9
- package/build/queries/sql/expressions/coalesce.d.mts.map +1 -1
- package/build/queries/sql/expressions/coalesce.js +2 -3
- package/build/queries/sql/expressions/codecs.cjs +2 -3
- package/build/queries/sql/expressions/codecs.d.cts +1 -4
- package/build/queries/sql/expressions/codecs.d.cts.map +1 -1
- package/build/queries/sql/expressions/codecs.d.mts +1 -4
- package/build/queries/sql/expressions/codecs.d.mts.map +1 -1
- package/build/queries/sql/expressions/codecs.js +2 -3
- package/build/queries/sql/expressions/expression.cjs +4 -5
- package/build/queries/sql/expressions/expression.d.cts +8 -10
- package/build/queries/sql/expressions/expression.d.cts.map +1 -1
- package/build/queries/sql/expressions/expression.d.mts +8 -10
- package/build/queries/sql/expressions/expression.d.mts.map +1 -1
- package/build/queries/sql/expressions/expression.js +4 -5
- package/build/queries/sql/expressions/greatest.cjs +2 -3
- package/build/queries/sql/expressions/greatest.d.cts +6 -9
- package/build/queries/sql/expressions/greatest.d.cts.map +1 -1
- package/build/queries/sql/expressions/greatest.d.mts +6 -9
- package/build/queries/sql/expressions/greatest.d.mts.map +1 -1
- package/build/queries/sql/expressions/greatest.js +2 -3
- package/build/queries/sql/expressions/least.cjs +2 -3
- package/build/queries/sql/expressions/least.d.cts +6 -9
- package/build/queries/sql/expressions/least.d.cts.map +1 -1
- package/build/queries/sql/expressions/least.d.mts +6 -9
- package/build/queries/sql/expressions/least.d.mts.map +1 -1
- package/build/queries/sql/expressions/least.js +2 -3
- package/build/queries/sql/expressions/nullIf.cjs +2 -3
- package/build/queries/sql/expressions/nullIf.d.cts +6 -9
- package/build/queries/sql/expressions/nullIf.d.cts.map +1 -1
- package/build/queries/sql/expressions/nullIf.d.mts +6 -9
- package/build/queries/sql/expressions/nullIf.d.mts.map +1 -1
- package/build/queries/sql/expressions/nullIf.js +2 -3
- package/build/queries/sql/expressions/parseExpression.cjs +3 -4
- package/build/queries/sql/expressions/parseExpression.d.cts +5 -8
- package/build/queries/sql/expressions/parseExpression.d.cts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.d.mts +5 -8
- package/build/queries/sql/expressions/parseExpression.d.mts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.js +3 -4
- package/build/queries/sql/expressions/types.d.cts +12 -14
- package/build/queries/sql/expressions/types.d.cts.map +1 -1
- package/build/queries/sql/expressions/types.d.mts +12 -14
- package/build/queries/sql/expressions/types.d.mts.map +1 -1
- package/build/queries/sql/keywords.cjs +1 -2
- package/build/queries/sql/keywords.d.cts +4 -7
- package/build/queries/sql/keywords.d.cts.map +1 -1
- package/build/queries/sql/keywords.d.mts +4 -7
- package/build/queries/sql/keywords.d.mts.map +1 -1
- package/build/queries/sql/keywords.js +1 -2
- package/build/queries/sql/query.cjs +86 -40
- package/build/queries/sql/query.cjs.map +1 -1
- package/build/queries/sql/query.d.cts +125 -84
- package/build/queries/sql/query.d.cts.map +1 -1
- package/build/queries/sql/query.d.mts +125 -84
- package/build/queries/sql/query.d.mts.map +1 -1
- package/build/queries/sql/query.js +84 -40
- package/build/queries/sql/query.js.map +1 -1
- package/build/queries/unnest.cjs +5 -7
- package/build/queries/unnest.cjs.map +1 -1
- package/build/queries/unnest.d.cts +3 -6
- package/build/queries/unnest.d.cts.map +1 -1
- package/build/queries/unnest.d.mts +3 -6
- package/build/queries/unnest.d.mts.map +1 -1
- package/build/queries/unnest.js +5 -7
- package/build/queries/unnest.js.map +1 -1
- package/build/queries/valueFilters.cjs +3 -4
- package/build/queries/valueFilters.d.cts +7 -10
- package/build/queries/valueFilters.d.cts.map +1 -1
- package/build/queries/valueFilters.d.mts +7 -10
- package/build/queries/valueFilters.d.mts.map +1 -1
- package/build/queries/valueFilters.js +3 -4
- package/build/reactivity/ReactionsManager.cjs +176 -8
- package/build/reactivity/ReactionsManager.cjs.map +1 -1
- package/build/reactivity/ReactionsManager.d.cts +58 -8
- package/build/reactivity/ReactionsManager.d.cts.map +1 -1
- package/build/reactivity/ReactionsManager.d.mts +58 -8
- package/build/reactivity/ReactionsManager.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.js +176 -8
- package/build/reactivity/ReactionsManager.js.map +1 -1
- package/build/reactivity/reactiveHints.cjs +16 -11
- package/build/reactivity/reactiveHints.cjs.map +1 -1
- package/build/reactivity/reactiveHints.d.cts +26 -27
- package/build/reactivity/reactiveHints.d.cts.map +1 -1
- package/build/reactivity/reactiveHints.d.mts +26 -27
- package/build/reactivity/reactiveHints.d.mts.map +1 -1
- package/build/reactivity/reactiveHints.js +16 -11
- package/build/reactivity/reactiveHints.js.map +1 -1
- package/build/relations/AbstractPropertyImpl.cjs +1 -2
- package/build/relations/AbstractPropertyImpl.cjs.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.cts +1 -4
- package/build/relations/AbstractPropertyImpl.d.cts.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.mts +1 -4
- package/build/relations/AbstractPropertyImpl.d.mts.map +1 -1
- package/build/relations/AbstractPropertyImpl.js +1 -2
- package/build/relations/AbstractPropertyImpl.js.map +1 -1
- package/build/relations/AbstractRelationImpl.cjs +1 -2
- package/build/relations/AbstractRelationImpl.d.cts +1 -4
- package/build/relations/AbstractRelationImpl.d.cts.map +1 -1
- package/build/relations/AbstractRelationImpl.d.mts +1 -4
- package/build/relations/AbstractRelationImpl.d.mts.map +1 -1
- package/build/relations/AbstractRelationImpl.js +1 -2
- package/build/relations/AsyncProperty.cjs +4 -5
- package/build/relations/AsyncProperty.cjs.map +1 -1
- package/build/relations/AsyncProperty.d.cts +7 -10
- package/build/relations/AsyncProperty.d.cts.map +1 -1
- package/build/relations/AsyncProperty.d.mts +7 -10
- package/build/relations/AsyncProperty.d.mts.map +1 -1
- package/build/relations/AsyncProperty.js +4 -5
- package/build/relations/AsyncProperty.js.map +1 -1
- package/build/relations/AsyncReactiveField.cjs +30 -13
- package/build/relations/AsyncReactiveField.cjs.map +1 -1
- package/build/relations/AsyncReactiveField.d.cts +11 -12
- package/build/relations/AsyncReactiveField.d.cts.map +1 -1
- package/build/relations/AsyncReactiveField.d.mts +11 -12
- package/build/relations/AsyncReactiveField.d.mts.map +1 -1
- package/build/relations/AsyncReactiveField.js +30 -13
- package/build/relations/AsyncReactiveField.js.map +1 -1
- package/build/relations/Collection.cjs +3 -4
- package/build/relations/Collection.d.cts +6 -9
- package/build/relations/Collection.d.cts.map +1 -1
- package/build/relations/Collection.d.mts +6 -9
- package/build/relations/Collection.d.mts.map +1 -1
- package/build/relations/Collection.js +3 -4
- package/build/relations/CustomCollection.cjs +6 -7
- package/build/relations/CustomCollection.cjs.map +1 -1
- package/build/relations/CustomCollection.d.cts +7 -10
- package/build/relations/CustomCollection.d.cts.map +1 -1
- package/build/relations/CustomCollection.d.mts +7 -10
- package/build/relations/CustomCollection.d.mts.map +1 -1
- package/build/relations/CustomCollection.js +6 -7
- package/build/relations/CustomCollection.js.map +1 -1
- package/build/relations/CustomReference.cjs +9 -10
- package/build/relations/CustomReference.cjs.map +1 -1
- package/build/relations/CustomReference.d.cts +9 -12
- package/build/relations/CustomReference.d.cts.map +1 -1
- package/build/relations/CustomReference.d.mts +9 -12
- package/build/relations/CustomReference.d.mts.map +1 -1
- package/build/relations/CustomReference.js +9 -10
- package/build/relations/CustomReference.js.map +1 -1
- package/build/relations/EnumCollection.cjs +5 -6
- package/build/relations/EnumCollection.cjs.map +1 -1
- package/build/relations/EnumCollection.d.cts +8 -10
- package/build/relations/EnumCollection.d.cts.map +1 -1
- package/build/relations/EnumCollection.d.mts +8 -10
- package/build/relations/EnumCollection.d.mts.map +1 -1
- package/build/relations/EnumCollection.js +5 -6
- package/build/relations/EnumCollection.js.map +1 -1
- package/build/relations/LargeCollection.cjs +2 -2
- package/build/relations/LargeCollection.d.cts +3 -6
- package/build/relations/LargeCollection.d.cts.map +1 -1
- package/build/relations/LargeCollection.d.mts +3 -6
- package/build/relations/LargeCollection.d.mts.map +1 -1
- package/build/relations/LargeCollection.js +2 -2
- package/build/relations/LazyField.cjs +23 -10
- package/build/relations/LazyField.cjs.map +1 -1
- package/build/relations/LazyField.d.cts +15 -12
- package/build/relations/LazyField.d.cts.map +1 -1
- package/build/relations/LazyField.d.mts +15 -12
- package/build/relations/LazyField.d.mts.map +1 -1
- package/build/relations/LazyField.js +23 -10
- package/build/relations/LazyField.js.map +1 -1
- package/build/relations/ManyToManyCollection.cjs +7 -8
- package/build/relations/ManyToManyCollection.cjs.map +1 -1
- package/build/relations/ManyToManyCollection.d.cts +4 -7
- package/build/relations/ManyToManyCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyCollection.d.mts +4 -7
- package/build/relations/ManyToManyCollection.d.mts.map +1 -1
- package/build/relations/ManyToManyCollection.js +7 -8
- package/build/relations/ManyToManyCollection.js.map +1 -1
- package/build/relations/ManyToManyLargeCollection.cjs +8 -9
- package/build/relations/ManyToManyLargeCollection.d.cts +6 -9
- package/build/relations/ManyToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyLargeCollection.d.mts +6 -9
- package/build/relations/ManyToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/ManyToManyLargeCollection.js +8 -9
- package/build/relations/ManyToOneReference.cjs +11 -12
- package/build/relations/ManyToOneReference.cjs.map +1 -1
- package/build/relations/ManyToOneReference.d.cts +12 -15
- package/build/relations/ManyToOneReference.d.cts.map +1 -1
- package/build/relations/ManyToOneReference.d.mts +12 -15
- package/build/relations/ManyToOneReference.d.mts.map +1 -1
- package/build/relations/ManyToOneReference.js +11 -12
- package/build/relations/ManyToOneReference.js.map +1 -1
- package/build/relations/OneToManyCollection.cjs +8 -9
- package/build/relations/OneToManyCollection.cjs.map +1 -1
- package/build/relations/OneToManyCollection.d.cts +5 -8
- package/build/relations/OneToManyCollection.d.cts.map +1 -1
- package/build/relations/OneToManyCollection.d.mts +5 -8
- package/build/relations/OneToManyCollection.d.mts.map +1 -1
- package/build/relations/OneToManyCollection.js +8 -9
- package/build/relations/OneToManyCollection.js.map +1 -1
- package/build/relations/OneToManyLargeCollection.cjs +7 -8
- package/build/relations/OneToManyLargeCollection.cjs.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.cts +6 -9
- package/build/relations/OneToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.mts +6 -9
- package/build/relations/OneToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/OneToManyLargeCollection.js +7 -8
- package/build/relations/OneToManyLargeCollection.js.map +1 -1
- package/build/relations/OneToOneReference.cjs +10 -11
- package/build/relations/OneToOneReference.cjs.map +1 -1
- package/build/relations/OneToOneReference.d.cts +12 -14
- package/build/relations/OneToOneReference.d.cts.map +1 -1
- package/build/relations/OneToOneReference.d.mts +12 -14
- package/build/relations/OneToOneReference.d.mts.map +1 -1
- package/build/relations/OneToOneReference.js +10 -11
- package/build/relations/OneToOneReference.js.map +1 -1
- package/build/relations/PolymorphicReference.cjs +13 -14
- package/build/relations/PolymorphicReference.cjs.map +1 -1
- package/build/relations/PolymorphicReference.d.cts +9 -12
- package/build/relations/PolymorphicReference.d.cts.map +1 -1
- package/build/relations/PolymorphicReference.d.mts +9 -12
- package/build/relations/PolymorphicReference.d.mts.map +1 -1
- package/build/relations/PolymorphicReference.js +13 -14
- package/build/relations/PolymorphicReference.js.map +1 -1
- package/build/relations/PropertySymbols.cjs +1 -2
- package/build/relations/PropertySymbols.d.cts +1 -4
- package/build/relations/PropertySymbols.d.cts.map +1 -1
- package/build/relations/PropertySymbols.d.mts +1 -4
- package/build/relations/PropertySymbols.d.mts.map +1 -1
- package/build/relations/PropertySymbols.js +1 -2
- package/build/relations/ReactiveField.cjs +35 -15
- package/build/relations/ReactiveField.cjs.map +1 -1
- package/build/relations/ReactiveField.d.cts +14 -12
- package/build/relations/ReactiveField.d.cts.map +1 -1
- package/build/relations/ReactiveField.d.mts +14 -12
- package/build/relations/ReactiveField.d.mts.map +1 -1
- package/build/relations/ReactiveField.js +35 -15
- package/build/relations/ReactiveField.js.map +1 -1
- package/build/relations/ReactiveGetter.cjs +3 -4
- package/build/relations/ReactiveGetter.cjs.map +1 -1
- package/build/relations/ReactiveGetter.d.cts +6 -9
- package/build/relations/ReactiveGetter.d.cts.map +1 -1
- package/build/relations/ReactiveGetter.d.mts +6 -9
- package/build/relations/ReactiveGetter.d.mts.map +1 -1
- package/build/relations/ReactiveGetter.js +3 -4
- package/build/relations/ReactiveGetter.js.map +1 -1
- package/build/relations/ReactiveManyToMany.cjs +22 -15
- package/build/relations/ReactiveManyToMany.cjs.map +1 -1
- package/build/relations/ReactiveManyToMany.d.cts +8 -11
- package/build/relations/ReactiveManyToMany.d.cts.map +1 -1
- package/build/relations/ReactiveManyToMany.d.mts +8 -11
- package/build/relations/ReactiveManyToMany.d.mts.map +1 -1
- package/build/relations/ReactiveManyToMany.js +22 -15
- package/build/relations/ReactiveManyToMany.js.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.cjs +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.cjs.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.cts +8 -11
- package/build/relations/ReactiveManyToManyOtherSide.d.cts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.mts +8 -11
- package/build/relations/ReactiveManyToManyOtherSide.d.mts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.js +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
- package/build/relations/ReactiveReference.cjs +12 -13
- package/build/relations/ReactiveReference.cjs.map +1 -1
- package/build/relations/ReactiveReference.d.cts +12 -15
- package/build/relations/ReactiveReference.d.cts.map +1 -1
- package/build/relations/ReactiveReference.d.mts +12 -15
- package/build/relations/ReactiveReference.d.mts.map +1 -1
- package/build/relations/ReactiveReference.js +12 -13
- package/build/relations/ReactiveReference.js.map +1 -1
- package/build/relations/ReadOnlyCollection.cjs +3 -4
- package/build/relations/ReadOnlyCollection.d.cts +5 -8
- package/build/relations/ReadOnlyCollection.d.cts.map +1 -1
- package/build/relations/ReadOnlyCollection.d.mts +5 -8
- package/build/relations/ReadOnlyCollection.d.mts.map +1 -1
- package/build/relations/ReadOnlyCollection.js +3 -4
- package/build/relations/RecursiveCollection.cjs +5 -6
- package/build/relations/RecursiveCollection.cjs.map +1 -1
- package/build/relations/RecursiveCollection.d.cts +13 -15
- package/build/relations/RecursiveCollection.d.cts.map +1 -1
- package/build/relations/RecursiveCollection.d.mts +13 -15
- package/build/relations/RecursiveCollection.d.mts.map +1 -1
- package/build/relations/RecursiveCollection.js +5 -6
- package/build/relations/RecursiveCollection.js.map +1 -1
- package/build/relations/RecursiveCycleError.cjs +1 -2
- package/build/relations/RecursiveCycleError.d.cts +2 -4
- package/build/relations/RecursiveCycleError.d.cts.map +1 -1
- package/build/relations/RecursiveCycleError.d.mts +2 -4
- package/build/relations/RecursiveCycleError.d.mts.map +1 -1
- package/build/relations/RecursiveCycleError.js +1 -2
- package/build/relations/Reference.cjs +4 -5
- package/build/relations/Reference.d.cts +8 -10
- package/build/relations/Reference.d.cts.map +1 -1
- package/build/relations/Reference.d.mts +8 -10
- package/build/relations/Reference.d.mts.map +1 -1
- package/build/relations/Reference.js +4 -5
- package/build/relations/ReferenceSymbols.cjs +1 -2
- package/build/relations/ReferenceSymbols.d.cts +1 -4
- package/build/relations/ReferenceSymbols.d.cts.map +1 -1
- package/build/relations/ReferenceSymbols.d.mts +1 -4
- package/build/relations/ReferenceSymbols.d.mts.map +1 -1
- package/build/relations/ReferenceSymbols.js +1 -2
- package/build/relations/Relation.cjs +3 -4
- package/build/relations/Relation.d.cts +4 -6
- package/build/relations/Relation.d.cts.map +1 -1
- package/build/relations/Relation.d.mts +4 -6
- package/build/relations/Relation.d.mts.map +1 -1
- package/build/relations/Relation.js +3 -4
- package/build/relations/RelationSymbols.cjs +1 -2
- package/build/relations/RelationSymbols.d.cts +2 -5
- package/build/relations/RelationSymbols.d.cts.map +1 -1
- package/build/relations/RelationSymbols.d.mts +2 -5
- package/build/relations/RelationSymbols.d.mts.map +1 -1
- package/build/relations/RelationSymbols.js +1 -2
- package/build/relations/hasAsyncMethod.cjs +25 -7
- package/build/relations/hasAsyncMethod.cjs.map +1 -1
- package/build/relations/hasAsyncMethod.d.cts +10 -11
- package/build/relations/hasAsyncMethod.d.cts.map +1 -1
- package/build/relations/hasAsyncMethod.d.mts +10 -11
- package/build/relations/hasAsyncMethod.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.js +25 -8
- package/build/relations/hasAsyncMethod.js.map +1 -1
- package/build/relations/hasManyDerived.cjs +4 -5
- package/build/relations/hasManyDerived.d.cts +4 -6
- package/build/relations/hasManyDerived.d.cts.map +1 -1
- package/build/relations/hasManyDerived.d.mts +4 -6
- package/build/relations/hasManyDerived.d.mts.map +1 -1
- package/build/relations/hasManyDerived.js +4 -5
- package/build/relations/hasManyThrough.cjs +3 -4
- package/build/relations/hasManyThrough.d.cts +1 -4
- package/build/relations/hasManyThrough.d.cts.map +1 -1
- package/build/relations/hasManyThrough.d.mts +1 -4
- package/build/relations/hasManyThrough.d.mts.map +1 -1
- package/build/relations/hasManyThrough.js +3 -4
- package/build/relations/hasOneDerived.cjs +5 -6
- package/build/relations/hasOneDerived.d.cts +3 -6
- package/build/relations/hasOneDerived.d.cts.map +1 -1
- package/build/relations/hasOneDerived.d.mts +3 -6
- package/build/relations/hasOneDerived.d.mts.map +1 -1
- package/build/relations/hasOneDerived.js +5 -6
- package/build/relations/hasOneThrough.cjs +3 -4
- package/build/relations/hasOneThrough.d.cts +1 -4
- package/build/relations/hasOneThrough.d.cts.map +1 -1
- package/build/relations/hasOneThrough.d.mts +1 -4
- package/build/relations/hasOneThrough.d.mts.map +1 -1
- package/build/relations/hasOneThrough.js +3 -4
- package/build/relations/hasProperty.cjs +6 -7
- package/build/relations/hasProperty.cjs.map +1 -1
- package/build/relations/hasProperty.d.cts +10 -12
- package/build/relations/hasProperty.d.cts.map +1 -1
- package/build/relations/hasProperty.d.mts +10 -12
- package/build/relations/hasProperty.d.mts.map +1 -1
- package/build/relations/hasProperty.js +6 -7
- package/build/relations/hasProperty.js.map +1 -1
- package/build/relations/hasReactiveAsyncMethod.cjs +86 -0
- package/build/relations/hasReactiveAsyncMethod.cjs.map +1 -0
- package/build/relations/hasReactiveAsyncMethod.d.cts +30 -0
- package/build/relations/hasReactiveAsyncMethod.d.cts.map +1 -0
- package/build/relations/hasReactiveAsyncMethod.d.mts +30 -0
- package/build/relations/hasReactiveAsyncMethod.d.mts.map +1 -0
- package/build/relations/hasReactiveAsyncMethod.js +84 -0
- package/build/relations/hasReactiveAsyncMethod.js.map +1 -0
- package/build/relations/index.cjs +10 -8
- package/build/relations/index.d.cts +5 -4
- package/build/relations/index.d.mts +5 -4
- package/build/relations/index.js +10 -9
- package/build/relations/isCascadeDelete.cjs +1 -2
- package/build/relations/isCascadeDelete.d.cts +1 -4
- package/build/relations/isCascadeDelete.d.cts.map +1 -1
- package/build/relations/isCascadeDelete.d.mts +1 -4
- package/build/relations/isCascadeDelete.d.mts.map +1 -1
- package/build/relations/isCascadeDelete.js +1 -2
- package/build/resurrection.cjs +15 -6
- package/build/resurrection.cjs.map +1 -1
- package/build/resurrection.d.cts +6 -6
- package/build/resurrection.d.cts.map +1 -1
- package/build/resurrection.d.mts +6 -6
- package/build/resurrection.d.mts.map +1 -1
- package/build/resurrection.js +15 -7
- package/build/resurrection.js.map +1 -1
- package/build/rules.cjs +6 -7
- package/build/rules.cjs.map +1 -1
- package/build/rules.d.cts +28 -25
- package/build/rules.d.cts.map +1 -1
- package/build/rules.d.mts +28 -25
- package/build/rules.d.mts.map +1 -1
- package/build/rules.js +6 -7
- package/build/rules.js.map +1 -1
- package/build/runtimeConfig.cjs +1 -2
- package/build/runtimeConfig.d.cts +4 -7
- package/build/runtimeConfig.d.cts.map +1 -1
- package/build/runtimeConfig.d.mts +4 -7
- package/build/runtimeConfig.d.mts.map +1 -1
- package/build/runtimeConfig.js +1 -2
- package/build/serde/TypeInfo.cjs +1 -2
- package/build/serde/TypeInfo.d.cts +3 -6
- package/build/serde/TypeInfo.d.cts.map +1 -1
- package/build/serde/TypeInfo.d.mts +3 -6
- package/build/serde/TypeInfo.d.mts.map +1 -1
- package/build/serde/TypeInfo.js +1 -2
- package/build/serde/columns.cjs +4 -2
- package/build/serde/columns.cjs.map +1 -1
- package/build/serde/columns.d.cts +5 -7
- package/build/serde/columns.d.cts.map +1 -1
- package/build/serde/columns.d.mts +5 -7
- package/build/serde/columns.d.mts.map +1 -1
- package/build/serde/columns.js +4 -2
- package/build/serde/columns.js.map +1 -1
- package/build/serde/fieldSerde.cjs +7 -5
- package/build/serde/fieldSerde.cjs.map +1 -1
- package/build/serde/fieldSerde.d.cts +14 -15
- package/build/serde/fieldSerde.d.cts.map +1 -1
- package/build/serde/fieldSerde.d.mts +14 -15
- package/build/serde/fieldSerde.d.mts.map +1 -1
- package/build/serde/fieldSerde.js +7 -5
- package/build/serde/fieldSerde.js.map +1 -1
- package/build/serde/serde.cjs +64 -5
- package/build/serde/serde.cjs.map +1 -1
- package/build/serde/serde.d.cts +58 -21
- package/build/serde/serde.d.cts.map +1 -1
- package/build/serde/serde.d.mts +58 -21
- package/build/serde/serde.d.mts.map +1 -1
- package/build/serde/serde.js +64 -6
- package/build/serde/serde.js.map +1 -1
- package/build/serde/temporal.cjs +8 -14
- package/build/serde/temporal.cjs.map +1 -1
- package/build/serde/temporal.d.cts +6 -8
- package/build/serde/temporal.d.cts.map +1 -1
- package/build/serde/temporal.d.mts +6 -8
- package/build/serde/temporal.d.mts.map +1 -1
- package/build/serde/temporal.js +8 -14
- package/build/serde/temporal.js.map +1 -1
- package/build/serde/temporalMappers.cjs +9 -6
- package/build/serde/temporalMappers.cjs.map +1 -1
- package/build/serde/temporalMappers.d.cts +5 -8
- package/build/serde/temporalMappers.d.cts.map +1 -1
- package/build/serde/temporalMappers.d.mts +5 -8
- package/build/serde/temporalMappers.d.mts.map +1 -1
- package/build/serde/temporalMappers.js +9 -6
- package/build/serde/temporalMappers.js.map +1 -1
- package/build/transitions.cjs +90 -0
- package/build/transitions.cjs.map +1 -0
- package/build/transitions.d.cts +113 -0
- package/build/transitions.d.cts.map +1 -0
- package/build/transitions.d.mts +113 -0
- package/build/transitions.d.mts.map +1 -0
- package/build/transitions.js +85 -0
- package/build/transitions.js.map +1 -0
- package/build/trusted.cjs +1 -2
- package/build/trusted.cjs.map +1 -1
- package/build/trusted.d.cts +2 -5
- package/build/trusted.d.cts.map +1 -1
- package/build/trusted.d.mts +2 -5
- package/build/trusted.d.mts.map +1 -1
- package/build/trusted.js +1 -2
- package/build/typeMap.cjs +1 -1
- package/build/typeMap.d.cts +18 -20
- package/build/typeMap.d.cts.map +1 -1
- package/build/typeMap.d.mts +18 -20
- package/build/typeMap.d.mts.map +1 -1
- package/build/typeMap.js +1 -1
- package/build/upsert.cjs +7 -8
- package/build/upsert.d.cts +7 -9
- package/build/upsert.d.cts.map +1 -1
- package/build/upsert.d.mts +7 -9
- package/build/upsert.d.mts.map +1 -1
- package/build/upsert.js +7 -8
- package/build/utils.cjs +3 -4
- package/build/utils.d.cts +29 -32
- package/build/utils.d.cts.map +1 -1
- package/build/utils.d.mts +29 -32
- package/build/utils.d.mts.map +1 -1
- package/build/utils.js +3 -4
- package/package.json +6 -6
package/build/EntityManager.cjs
CHANGED
|
@@ -1,78 +1,79 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_BaseEntity = require("./BaseEntity.cjs");
|
|
3
4
|
const require_batchloaders_BatchLoader = require("./batchloaders/BatchLoader.cjs");
|
|
4
|
-
require("./
|
|
5
|
+
require("./batchloaders/enumCollectionBatchLoader.cjs");
|
|
5
6
|
const require_relations_CustomCollection = require("./relations/CustomCollection.cjs");
|
|
6
7
|
const require_relations_CustomReference = require("./relations/CustomReference.cjs");
|
|
7
8
|
const require_normalizeHints = require("./normalizeHints.cjs");
|
|
9
|
+
const require_batchloaders_loadBatchLoader = require("./batchloaders/loadBatchLoader.cjs");
|
|
10
|
+
require("./batchloaders/manyToManyBatchLoader.cjs");
|
|
11
|
+
require("./batchloaders/oneToManyBatchLoader.cjs");
|
|
12
|
+
const require_relations_RecursiveCycleError = require("./relations/RecursiveCycleError.cjs");
|
|
13
|
+
require("./batchloaders/oneToOneBatchLoader.cjs");
|
|
14
|
+
const require_batchloaders_populateBatchLoader = require("./batchloaders/populateBatchLoader.cjs");
|
|
8
15
|
require("./batchloaders/recursiveChildrenBatchLoader.cjs");
|
|
9
16
|
require("./batchloaders/recursiveM2mBatchLoader.cjs");
|
|
10
17
|
require("./batchloaders/recursiveParentsBatchLoader.cjs");
|
|
11
|
-
const require_relations_RecursiveCycleError = require("./relations/RecursiveCycleError.cjs");
|
|
12
|
-
require("./relations/RecursiveCollection.cjs");
|
|
13
|
-
const require_reactivity_reactiveHints = require("./reactivity/reactiveHints.cjs");
|
|
14
|
-
const require_loading_loadHints = require("./loading/loadHints.cjs");
|
|
15
|
-
const require_relations_hasAsyncMethod = require("./relations/hasAsyncMethod.cjs");
|
|
16
|
-
const require_relations_AsyncProperty = require("./relations/AsyncProperty.cjs");
|
|
17
|
-
const require_fields = require("./fields.cjs");
|
|
18
18
|
const require_keys = require("./keys.cjs");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
19
|
+
const require_config = require("./config.cjs");
|
|
20
|
+
const require_configure = require("./configure.cjs");
|
|
21
21
|
const require_relations_Reference = require("./relations/Reference.cjs");
|
|
22
|
-
require("./
|
|
23
|
-
require("./
|
|
24
|
-
const
|
|
22
|
+
const require_dataloaders_findByUniqueDataLoader = require("./dataloaders/findByUniqueDataLoader.cjs");
|
|
23
|
+
const require_dataloaders_findCountDataLoader = require("./dataloaders/findCountDataLoader.cjs");
|
|
24
|
+
const require_dataloaders_findDataLoader = require("./dataloaders/findDataLoader.cjs");
|
|
25
25
|
const require_relations_OneToManyCollection = require("./relations/OneToManyCollection.cjs");
|
|
26
26
|
const require_relations_ManyToOneReference = require("./relations/ManyToOneReference.cjs");
|
|
27
|
-
require("./
|
|
27
|
+
const require_dataloaders_findIdsDataLoader = require("./dataloaders/findIdsDataLoader.cjs");
|
|
28
28
|
const require_relations_ReactiveReference = require("./relations/ReactiveReference.cjs");
|
|
29
29
|
const require_relations_OneToOneReference = require("./relations/OneToOneReference.cjs");
|
|
30
30
|
const require_relations_PolymorphicReference = require("./relations/PolymorphicReference.cjs");
|
|
31
|
-
require("./
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
require("./
|
|
31
|
+
const require_dataloaders_findOrCreateDataLoader = require("./dataloaders/findOrCreateDataLoader.cjs");
|
|
32
|
+
const require_dataloaders_findPaginatedDataLoader = require("./dataloaders/findPaginatedDataLoader.cjs");
|
|
33
|
+
require("./dataloaders/lensDataLoader.cjs");
|
|
34
|
+
const require_defaults = require("./defaults.cjs");
|
|
35
|
+
require("./drivers/index.cjs");
|
|
35
36
|
const require_rules = require("./rules.cjs");
|
|
36
|
-
const
|
|
37
|
-
const
|
|
37
|
+
const require_Entity = require("./Entity.cjs");
|
|
38
|
+
const require_fields = require("./fields.cjs");
|
|
38
39
|
const require_EntityMetadata = require("./EntityMetadata.cjs");
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
require("./
|
|
40
|
+
const require_flush_FlushLock = require("./flush/FlushLock.cjs");
|
|
41
|
+
const require_flush_JoinRows = require("./flush/JoinRows.cjs");
|
|
42
|
+
const require_flush_ReadDrift = require("./flush/ReadDrift.cjs");
|
|
42
43
|
const require_loading_loadLens = require("./loading/loadLens.cjs");
|
|
43
|
-
require("./
|
|
44
|
-
const
|
|
44
|
+
const require_flush_Todo = require("./flush/Todo.cjs");
|
|
45
|
+
const require_index = require("./index.cjs");
|
|
45
46
|
const require_queries_find_EntityFilter = require("./queries/find/EntityFilter.cjs");
|
|
46
|
-
const
|
|
47
|
-
const
|
|
47
|
+
const require_IndexManager = require("./IndexManager.cjs");
|
|
48
|
+
const require_loading_IsLoadedCache = require("./loading/IsLoadedCache.cjs");
|
|
48
49
|
const require_queries_find_QueryParser_collectionJoins = require("./queries/find/QueryParser.collectionJoins.cjs");
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
require("./drivers/index.cjs");
|
|
50
|
+
const require_loading_loadHints = require("./loading/loadHints.cjs");
|
|
51
|
+
require("./logging/FactoryLogger.cjs");
|
|
52
52
|
const require_logging_FieldLogger = require("./logging/FieldLogger.cjs");
|
|
53
53
|
const require_logging_ReactionLogger = require("./logging/ReactionLogger.cjs");
|
|
54
|
+
const require_newEntity = require("./newEntity.cjs");
|
|
55
|
+
const require_newTestInstance = require("./newTestInstance.cjs");
|
|
56
|
+
const require_PluginManager = require("./PluginManager.cjs");
|
|
54
57
|
require("./plugins/PreloadPlugin.cjs");
|
|
55
|
-
const
|
|
56
|
-
const require_upsert = require("./upsert.cjs");
|
|
57
|
-
const require_index = require("./index.cjs");
|
|
58
|
-
require("./batchloaders/enumCollectionBatchLoader.cjs");
|
|
59
|
-
const require_batchloaders_loadBatchLoader = require("./batchloaders/loadBatchLoader.cjs");
|
|
60
|
-
const require_batchloaders_populateBatchLoader = require("./batchloaders/populateBatchLoader.cjs");
|
|
61
|
-
const require_dataloaders_findByUniqueDataLoader = require("./dataloaders/findByUniqueDataLoader.cjs");
|
|
62
|
-
const require_dataloaders_findCountDataLoader = require("./dataloaders/findCountDataLoader.cjs");
|
|
63
|
-
const require_dataloaders_findIdsDataLoader = require("./dataloaders/findIdsDataLoader.cjs");
|
|
64
|
-
const require_dataloaders_findOrCreateDataLoader = require("./dataloaders/findOrCreateDataLoader.cjs");
|
|
65
|
-
const require_dataloaders_findPaginatedDataLoader = require("./dataloaders/findPaginatedDataLoader.cjs");
|
|
66
|
-
const require_flush_FlushLock = require("./flush/FlushLock.cjs");
|
|
67
|
-
const require_IndexManager = require("./IndexManager.cjs");
|
|
68
|
-
const require_loading_IsLoadedCache = require("./loading/IsLoadedCache.cjs");
|
|
58
|
+
const require_queries_find_scopes = require("./queries/find/scopes.cjs");
|
|
69
59
|
const require_queries_sql_execute = require("./queries/sql/execute.cjs");
|
|
60
|
+
const require_queries_sql_query = require("./queries/sql/query.cjs");
|
|
70
61
|
const require_reactivity_ReactionsManager = require("./reactivity/ReactionsManager.cjs");
|
|
71
|
-
const
|
|
72
|
-
const
|
|
62
|
+
const require_reactivity_reactiveHints = require("./reactivity/reactiveHints.cjs");
|
|
63
|
+
const require_relations_AsyncProperty = require("./relations/AsyncProperty.cjs");
|
|
64
|
+
require("./relations/Collection.cjs");
|
|
65
|
+
const require_relations_hasAsyncMethod = require("./relations/hasAsyncMethod.cjs");
|
|
66
|
+
require("./relations/index.cjs");
|
|
67
|
+
const require_relations_LazyField = require("./relations/LazyField.cjs");
|
|
68
|
+
require("./relations/RecursiveCollection.cjs");
|
|
69
|
+
const require_RowData = require("./RowData.cjs");
|
|
70
|
+
const require_trusted = require("./trusted.cjs");
|
|
71
|
+
require("./typeMap.cjs");
|
|
72
|
+
const require_upsert = require("./upsert.cjs");
|
|
73
|
+
const require_utils = require("./utils.cjs");
|
|
73
74
|
let dataloader = require("dataloader");
|
|
74
75
|
dataloader = require_runtime.__toESM(dataloader, 1);
|
|
75
|
-
|
|
76
|
+
// src/EntityManager.ts
|
|
76
77
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
77
78
|
function isId(value) {
|
|
78
79
|
return value && typeof value === "string";
|
|
@@ -109,6 +110,8 @@ var EntityManager = class EntityManager {
|
|
|
109
110
|
#entitiesByTag = /* @__PURE__ */ new Map();
|
|
110
111
|
#indexManager = new require_IndexManager.IndexManager();
|
|
111
112
|
#isValidating = false;
|
|
113
|
+
/** The error that failed a previous `em.flush`, after which this EntityManager can't flush again. */
|
|
114
|
+
#flushError = void 0;
|
|
112
115
|
#findRestricted = false;
|
|
113
116
|
#pendingPercolate = /* @__PURE__ */ new Map();
|
|
114
117
|
#preloadedRelations = /* @__PURE__ */ new Map();
|
|
@@ -135,8 +138,11 @@ var EntityManager = class EntityManager {
|
|
|
135
138
|
beforeCommit: [],
|
|
136
139
|
afterCommit: []
|
|
137
140
|
};
|
|
141
|
+
#forceTransaction = false;
|
|
142
|
+
#readSet = /* @__PURE__ */ new Set();
|
|
138
143
|
#preloader;
|
|
139
144
|
#fieldLogger = require_logging_FieldLogger.noopFieldLogger;
|
|
145
|
+
#metrics;
|
|
140
146
|
#isLoadedCache = new require_loading_IsLoadedCache.IsLoadedCache();
|
|
141
147
|
#merging;
|
|
142
148
|
/** Track `a#1`, `a#2`, etc indexes for `em.create`-d entities. */
|
|
@@ -157,6 +163,7 @@ var EntityManager = class EntityManager {
|
|
|
157
163
|
beforeCommit: [...opts.em.#hooks.beforeCommit],
|
|
158
164
|
afterCommit: [...opts.em.#hooks.afterCommit]
|
|
159
165
|
};
|
|
166
|
+
this.#forceTransaction = opts.em.#forceTransaction;
|
|
160
167
|
opts.em.__api.pluginManager.cloneTo(pluginManager);
|
|
161
168
|
}
|
|
162
169
|
const em = this;
|
|
@@ -211,6 +218,9 @@ var EntityManager = class EntityManager {
|
|
|
211
218
|
get fieldLogger() {
|
|
212
219
|
return em.#fieldLogger;
|
|
213
220
|
},
|
|
221
|
+
get metrics() {
|
|
222
|
+
return em.#metrics;
|
|
223
|
+
},
|
|
214
224
|
clearDataloaders() {
|
|
215
225
|
em.#dataloaders = {};
|
|
216
226
|
em.#batchLoaders = {};
|
|
@@ -300,7 +310,7 @@ var EntityManager = class EntityManager {
|
|
|
300
310
|
this.#assertFindAllowed("query");
|
|
301
311
|
const em = this;
|
|
302
312
|
return (async function query() {
|
|
303
|
-
const plan = require_queries_sql_query.
|
|
313
|
+
const plan = require_queries_sql_query.parseRootQuery(q);
|
|
304
314
|
if (options?.populate && plan.output.kind !== "entity") require_utils.fail("em.query populate requires an entity selection");
|
|
305
315
|
const { rows } = await em.driver.executeQuery(em, plan.sql, plan.bindings);
|
|
306
316
|
const result = plan.decodeRows(em, rows);
|
|
@@ -519,18 +529,22 @@ var EntityManager = class EntityManager {
|
|
|
519
529
|
return require_upsert.upsert(this, type, input);
|
|
520
530
|
}
|
|
521
531
|
async clone(entityOrArray, opts) {
|
|
522
|
-
const { deep = {}, skipIf, skip = {}, postClone } = opts ?? {};
|
|
532
|
+
const { deep = {}, skipIf, skip = {}, overrides, postClone } = opts ?? {};
|
|
523
533
|
const todo = /* @__PURE__ */ new Set();
|
|
524
534
|
const skipMap = /* @__PURE__ */ new WeakMap();
|
|
525
535
|
await crawl(todo, skipMap, Array.isArray(entityOrArray) ? entityOrArray : [entityOrArray], deep, {
|
|
526
|
-
skipIf,
|
|
536
|
+
skipIf: (entity) => invokeCloneCallback(skipIf, entity) ?? false,
|
|
527
537
|
skip
|
|
528
538
|
});
|
|
529
539
|
const deferredRelations = [];
|
|
540
|
+
const overrideMap = /* @__PURE__ */ new WeakMap();
|
|
530
541
|
const clones = [...todo].map((entity) => {
|
|
531
542
|
const skip = skipMap.get(entity) ?? [];
|
|
543
|
+
const override = invokeCloneCallback(overrides, entity) ?? {};
|
|
544
|
+
overrideMap.set(entity, override);
|
|
532
545
|
const meta = require_EntityMetadata.getMetadata(entity);
|
|
533
546
|
const copy = Object.fromEntries(Object.values(meta.allFields).map((f) => {
|
|
547
|
+
if (Object.hasOwn(override, f.fieldName)) return [f.fieldName, override[f.fieldName]];
|
|
534
548
|
if (skip.includes(f.fieldName)) return void 0;
|
|
535
549
|
switch (f.kind) {
|
|
536
550
|
case "primitive": if (!f.derived && !f.protected) return [f.fieldName, require_fields.getField(entity, f.fieldName)];
|
|
@@ -560,11 +574,15 @@ var EntityManager = class EntityManager {
|
|
|
560
574
|
default: require_utils.assertNever(f);
|
|
561
575
|
}
|
|
562
576
|
}).filter(isDefined));
|
|
563
|
-
return [entity, this.create(require_index.asConcreteCstr(meta.cstr),
|
|
577
|
+
return [entity, this.create(require_index.asConcreteCstr(meta.cstr), {
|
|
578
|
+
...copy,
|
|
579
|
+
...override
|
|
580
|
+
})];
|
|
564
581
|
});
|
|
565
582
|
const entityToClone = new Map(clones);
|
|
566
|
-
clones.forEach(([, clone]) => {
|
|
583
|
+
clones.forEach(([original, clone]) => {
|
|
567
584
|
require_index.getRelationEntries(clone).forEach(([fieldName, value]) => {
|
|
585
|
+
if (Object.hasOwn(overrideMap.get(original), fieldName)) return;
|
|
568
586
|
if (value instanceof require_relations_ManyToOneReference.ManyToOneReferenceImpl || value instanceof require_relations_PolymorphicReference.PolymorphicReferenceImpl || value instanceof require_relations_ReactiveReference.ReactiveReferenceImpl) {
|
|
569
587
|
const existingIdOrEntity = require_fields.getField(clone, fieldName);
|
|
570
588
|
const existing = require_Entity.isEntity(existingIdOrEntity) ? existingIdOrEntity : this.getEntity(existingIdOrEntity);
|
|
@@ -575,7 +593,7 @@ var EntityManager = class EntityManager {
|
|
|
575
593
|
deferredRelations.forEach(([source, fieldName, target]) => {
|
|
576
594
|
entityToClone.get(source)[fieldName].set(entityToClone.get(target));
|
|
577
595
|
});
|
|
578
|
-
if (postClone) await Promise.all(clones.map((
|
|
596
|
+
if (postClone) await Promise.all(clones.map((pair) => invokeCloneCallback(postClone, ...pair)));
|
|
579
597
|
return Array.isArray(entityOrArray) ? entityOrArray.filter((original) => entityToClone.has(original)).map((original) => entityToClone.get(original)) : clones[0] ? clones[0][1] : require_utils.fail("no entities were cloned given the provided options");
|
|
580
598
|
}
|
|
581
599
|
/**
|
|
@@ -866,6 +884,7 @@ var EntityManager = class EntityManager {
|
|
|
866
884
|
}
|
|
867
885
|
async #flush(flushOptions = {}) {
|
|
868
886
|
if (this.mode === "read-only") throw new ReadOnlyError();
|
|
887
|
+
if (this.#flushError !== void 0) throw new FailedFlushError(this.#flushError);
|
|
869
888
|
const { skipValidation = false } = flushOptions;
|
|
870
889
|
this.#fl.startLock();
|
|
871
890
|
const allFlushedEntities = /* @__PURE__ */ new Set();
|
|
@@ -948,7 +967,7 @@ var EntityManager = class EntityManager {
|
|
|
948
967
|
this.#preloadedRelations = /* @__PURE__ */ new Map();
|
|
949
968
|
try {
|
|
950
969
|
this.#isValidating = true;
|
|
951
|
-
await validateSimpleRules(entityTodos, (
|
|
970
|
+
await validateSimpleRules(entityTodos, (meta) => meta.simpleCommitRules);
|
|
952
971
|
await validateReactiveRules(this, this.#rm.logger, entityTodos, joinRowTodos, (meta) => meta.reactiveCommitRules);
|
|
953
972
|
} finally {
|
|
954
973
|
this.#isValidating = false;
|
|
@@ -990,9 +1009,11 @@ var EntityManager = class EntityManager {
|
|
|
990
1009
|
await runValidation(entityTodos, joinRowTodos, !skipValidation);
|
|
991
1010
|
this.#rm.throwIfAnySuppressedTypeErrors();
|
|
992
1011
|
if (suppressedDefaultTypeErrors.length > 0) throw suppressedDefaultTypeErrors[0];
|
|
993
|
-
if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0) {
|
|
1012
|
+
if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0 || this.#rm.hasPendingCommitTransitions() || this.#readSet.size > 0 || this.#forceTransaction) {
|
|
1013
|
+
const checkedReads = /* @__PURE__ */ new Set();
|
|
994
1014
|
await this.driver.transaction(this, async () => {
|
|
995
1015
|
do {
|
|
1016
|
+
if (this.#readSet.size > 0) await require_flush_ReadDrift.checkReadDrift(this, this.#readSet, allFlushedEntities, checkedReads);
|
|
996
1017
|
if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0) {
|
|
997
1018
|
await this.driver.flush(this, entityTodos, joinRowTodos);
|
|
998
1019
|
collectCommitRuleTodos(entityTodos, joinRowTodos);
|
|
@@ -1021,6 +1042,8 @@ var EntityManager = class EntityManager {
|
|
|
1021
1042
|
await runCommitValidation(commitRuleTodos, commitRuleJoinRowTodos);
|
|
1022
1043
|
}
|
|
1023
1044
|
await beforeCommit(this.ctx, allFlushedEntities);
|
|
1045
|
+
await this.#rm.runCommitTransitions();
|
|
1046
|
+
if (this.#readSet.size > 0) await require_flush_ReadDrift.checkReadDrift(this, this.#readSet, allFlushedEntities, checkedReads);
|
|
1024
1047
|
if (this.mode === "in-memory-writes") throw new InMemoryRollbackError();
|
|
1025
1048
|
});
|
|
1026
1049
|
await afterCommit(this.ctx, allFlushedEntities);
|
|
@@ -1028,6 +1051,7 @@ var EntityManager = class EntityManager {
|
|
|
1028
1051
|
const instanceData = require_BaseEntity.getInstanceData(e);
|
|
1029
1052
|
if (e.isNewEntity && !e.isDeletedEntity) this.#entitiesById.set(e.idTagged, e);
|
|
1030
1053
|
instanceData.resetAfterFlushed();
|
|
1054
|
+
if (e.isDeletedEntity) this.#readSet.delete(e);
|
|
1031
1055
|
const { relations } = instanceData;
|
|
1032
1056
|
if (relations) {
|
|
1033
1057
|
for (const rel of Object.values(relations)) if (rel instanceof require_relations_AsyncProperty.AsyncPropertyImpl || rel instanceof require_relations_LazyField.LazyFieldImpl) rel.resetAfterFlush();
|
|
@@ -1040,12 +1064,16 @@ var EntityManager = class EntityManager {
|
|
|
1040
1064
|
this.#dataloaders = {};
|
|
1041
1065
|
this.#batchLoaders = {};
|
|
1042
1066
|
this.#preloadedRelations = /* @__PURE__ */ new Map();
|
|
1043
|
-
this.#rm.clear();
|
|
1044
1067
|
}
|
|
1045
|
-
for (const e of createdThenDeleted)
|
|
1068
|
+
for (const e of createdThenDeleted) {
|
|
1069
|
+
require_BaseEntity.getInstanceData(e).fixupCreatedThenDeleted();
|
|
1070
|
+
this.#readSet.delete(e);
|
|
1071
|
+
}
|
|
1046
1072
|
this.#merging?.clear();
|
|
1073
|
+
this.#rm.clear();
|
|
1047
1074
|
return [...allFlushedEntities].sort((a, b) => require_BaseEntity.getInstanceData(a).entityIndex - require_BaseEntity.getInstanceData(b).entityIndex);
|
|
1048
1075
|
} catch (e) {
|
|
1076
|
+
if (!(e instanceof InMemoryRollbackError)) this.#flushError = e;
|
|
1049
1077
|
if (e instanceof require_relations_RecursiveCycleError.RecursiveCycleError) {
|
|
1050
1078
|
const entity = e.entities[0];
|
|
1051
1079
|
for (const meta of require_EntityMetadata.getBaseAndSelfMetas(require_EntityMetadata.getMetadata(entity))) {
|
|
@@ -1202,6 +1230,15 @@ var EntityManager = class EntityManager {
|
|
|
1202
1230
|
}
|
|
1203
1231
|
return entities;
|
|
1204
1232
|
}
|
|
1233
|
+
assertUnchanged(entityOrEntities) {
|
|
1234
|
+
const entities = require_Entity.isEntity(entityOrEntities) ? [entityOrEntities] : entityOrEntities;
|
|
1235
|
+
for (const entity of entities) {
|
|
1236
|
+
if (this.#readSet.has(entity)) continue;
|
|
1237
|
+
if (entity.em !== this) throw new Error("assertUnchanged requires entities from this EntityManager");
|
|
1238
|
+
if (!require_EntityMetadata.getBaseMeta(require_EntityMetadata.getMetadata(entity)).timestampFields?.updatedAt) throw new Error(`assertUnchanged requires updatedAt on ${entity}`);
|
|
1239
|
+
this.#readSet.add(entity);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1205
1242
|
touch(entityOrEntities) {
|
|
1206
1243
|
for (const entity of require_utils.toArray(entityOrEntities)) require_BaseEntity.getInstanceData(entity).markTouched();
|
|
1207
1244
|
}
|
|
@@ -1237,17 +1274,25 @@ var EntityManager = class EntityManager {
|
|
|
1237
1274
|
}));
|
|
1238
1275
|
await this.#rm.recalcPendingReactables("reactables");
|
|
1239
1276
|
}
|
|
1240
|
-
|
|
1277
|
+
/** Registers a hook to run before the transaction begins. */
|
|
1278
|
+
beforeBegin(fn, opts = {}) {
|
|
1241
1279
|
this.#hooks.beforeBegin.push(fn);
|
|
1280
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1242
1281
|
}
|
|
1243
|
-
|
|
1282
|
+
/** Registers a hook to run after the transaction begins. */
|
|
1283
|
+
afterBegin(fn, opts = {}) {
|
|
1244
1284
|
this.#hooks.afterBegin.push(fn);
|
|
1285
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1245
1286
|
}
|
|
1246
|
-
|
|
1287
|
+
/** Registers a hook to run before the transaction commits. */
|
|
1288
|
+
beforeCommit(fn, opts = {}) {
|
|
1247
1289
|
this.#hooks.beforeCommit.push(fn);
|
|
1290
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1248
1291
|
}
|
|
1249
|
-
|
|
1292
|
+
/** Registers a hook to run after the transaction commits. */
|
|
1293
|
+
afterCommit(fn, opts = {}) {
|
|
1250
1294
|
this.#hooks.afterCommit.push(fn);
|
|
1295
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1251
1296
|
}
|
|
1252
1297
|
/**
|
|
1253
1298
|
* Returns an EntityManager-scoped (i.e. request scoped) data loader.
|
|
@@ -1298,6 +1343,10 @@ var EntityManager = class EntityManager {
|
|
|
1298
1343
|
}
|
|
1299
1344
|
await Promise.all(relationsToCleanup.map((r) => r.cleanupOnEntityDeleted()));
|
|
1300
1345
|
}
|
|
1346
|
+
/** Attaches request-owned metrics, or disables collection without resetting the collector. */
|
|
1347
|
+
setMetrics(metrics) {
|
|
1348
|
+
this.#metrics = metrics;
|
|
1349
|
+
}
|
|
1301
1350
|
setReactionLogging(arg) {
|
|
1302
1351
|
this.#rm.setLogger(typeof arg === "boolean" ? arg ? new require_logging_ReactionLogger.ReactionLogger() : void 0 : arg);
|
|
1303
1352
|
}
|
|
@@ -1326,6 +1375,7 @@ var EntityManager = class EntityManager {
|
|
|
1326
1375
|
} else throw new Error("Unsupported override for setFieldLogging");
|
|
1327
1376
|
}
|
|
1328
1377
|
async [Symbol.asyncDispose]() {
|
|
1378
|
+
if (this.#flushError !== void 0) return;
|
|
1329
1379
|
await this.flush();
|
|
1330
1380
|
}
|
|
1331
1381
|
/** Returns entities matching the filter using indexed search when available. */
|
|
@@ -1627,16 +1677,13 @@ async function validateReactiveRules(em, logger, todos, joinRowTodos, getRules =
|
|
|
1627
1677
|
const errors = require_utils.failIfAnyRejected(await Promise.allSettled(p3)).flat();
|
|
1628
1678
|
if (errors.length > 0) throw new require_rules.ValidationErrors(errors);
|
|
1629
1679
|
}
|
|
1630
|
-
async function validateSimpleRules(todos, getRules = (
|
|
1680
|
+
async function validateSimpleRules(todos, getRules = (meta) => meta.simpleRules) {
|
|
1631
1681
|
let p = void 0;
|
|
1632
1682
|
for (const todoKey in todos) {
|
|
1633
1683
|
const { inserts, updates } = todos[todoKey];
|
|
1634
1684
|
for (const entities of [inserts, updates]) for (const entity of entities) {
|
|
1635
1685
|
if (entity.isDeletedEntity) continue;
|
|
1636
|
-
for (const
|
|
1637
|
-
if (rule.hint !== void 0) continue;
|
|
1638
|
-
(p ??= []).push(invokeRule(entity, rule.fn));
|
|
1639
|
-
}
|
|
1686
|
+
for (const rule of getRules(require_EntityMetadata.getMetadata(entity))) (p ??= []).push(invokeSimpleRule(entity, rule));
|
|
1640
1687
|
}
|
|
1641
1688
|
}
|
|
1642
1689
|
if (!p) return;
|
|
@@ -1647,6 +1694,22 @@ async function validateSimpleRules(todos, getRules = (config) => config.rules) {
|
|
|
1647
1694
|
async function invokeRule(entity, fn) {
|
|
1648
1695
|
return coerceError(entity, await fn(entity));
|
|
1649
1696
|
}
|
|
1697
|
+
/** Evaluates a non-reactive validation or commit rule using its required registration name. */
|
|
1698
|
+
async function invokeSimpleRule(entity, rule) {
|
|
1699
|
+
const { fn } = rule;
|
|
1700
|
+
const metrics = getEmInternalApi(entity.em).metrics;
|
|
1701
|
+
if (!metrics) return coerceError(entity, await fn(entity));
|
|
1702
|
+
const totals = metrics.start(rule.evaluation);
|
|
1703
|
+
const started = performance.now();
|
|
1704
|
+
let value;
|
|
1705
|
+
try {
|
|
1706
|
+
value = fn(entity);
|
|
1707
|
+
} catch (error) {
|
|
1708
|
+
metrics.finish(totals, started);
|
|
1709
|
+
throw error;
|
|
1710
|
+
}
|
|
1711
|
+
return coerceError(entity, await metrics.finish(totals, started, value));
|
|
1712
|
+
}
|
|
1650
1713
|
function driverBeforeBegin(em, txn) {
|
|
1651
1714
|
return Promise.all(getEmInternalApi(em).hooks.beforeBegin.map((fn) => fn(em, txn)));
|
|
1652
1715
|
}
|
|
@@ -1751,6 +1814,18 @@ function recalcSynchronousDerivedFields(todos) {
|
|
|
1751
1814
|
}
|
|
1752
1815
|
}
|
|
1753
1816
|
}
|
|
1817
|
+
/** Invokes only the most specific handler, falling back to a base type when no concrete-type handler exists. */
|
|
1818
|
+
function invokeCloneCallback(callback, ...args) {
|
|
1819
|
+
if (typeof callback === "function") return callback(...args);
|
|
1820
|
+
if (!callback) return void 0;
|
|
1821
|
+
const handlers = callback;
|
|
1822
|
+
let meta = require_EntityMetadata.getMetadata(args[0]);
|
|
1823
|
+
while (meta) {
|
|
1824
|
+
const handler = Object.hasOwn(handlers, meta.type) ? handlers[meta.type] : void 0;
|
|
1825
|
+
if (handler) return handler(...args);
|
|
1826
|
+
meta = meta.baseType ? require_configure.getMetadataForType(meta.baseType) : void 0;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1754
1829
|
/** Recursively crawls through `entity`, with the given populate `deep` hint, and adds anything found to `found`. */
|
|
1755
1830
|
async function crawl(found, skipMap, entities, deep, opts = {}) {
|
|
1756
1831
|
const { skipIf = () => false } = opts ?? {};
|
|
@@ -1801,7 +1876,7 @@ function maybeBumpUpdatedAt(rm, todos, now) {
|
|
|
1801
1876
|
const { updatedAt } = todo.metadata.timestampFields ?? {};
|
|
1802
1877
|
if (updatedAt) for (const e of todo.updates) {
|
|
1803
1878
|
const orm = require_BaseEntity.getInstanceData(e);
|
|
1804
|
-
orm.markFieldDirty(updatedAt, require_fields.getField(e, updatedAt));
|
|
1879
|
+
orm.markFieldDirty(updatedAt, require_fields.getField(e, updatedAt, true));
|
|
1805
1880
|
const serde = todo.metadata.fields[updatedAt].serde;
|
|
1806
1881
|
orm.data[updatedAt] = serde.mapFromNow(now);
|
|
1807
1882
|
rm.queueDownstreamReactables(e, updatedAt);
|
|
@@ -1861,6 +1936,12 @@ function hasPaginationSettings(options) {
|
|
|
1861
1936
|
}
|
|
1862
1937
|
/** An error we throw to get knex to `ROLLBACK`, but then catch. */
|
|
1863
1938
|
var InMemoryRollbackError = class extends Error {};
|
|
1939
|
+
/** An error thrown by `em.flush` after a previous `em.flush` on the same EntityManager failed. */
|
|
1940
|
+
var FailedFlushError = class extends Error {
|
|
1941
|
+
constructor(cause) {
|
|
1942
|
+
super("EntityManager cannot flush after a previous flush failed, use a new EntityManager", { cause });
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1864
1945
|
/** An error thrown when `em.mode === "read-only"` but entities are mutated/flushed. */
|
|
1865
1946
|
var ReadOnlyError = class extends Error {
|
|
1866
1947
|
constructor() {
|
|
@@ -1910,8 +1991,8 @@ function createRowFromEntityData(e, opts = {}) {
|
|
|
1910
1991
|
}
|
|
1911
1992
|
return row;
|
|
1912
1993
|
}
|
|
1913
|
-
//#endregion
|
|
1914
1994
|
exports.EntityManager = EntityManager;
|
|
1995
|
+
exports.FailedFlushError = FailedFlushError;
|
|
1915
1996
|
exports.NotFoundError = NotFoundError;
|
|
1916
1997
|
exports.ReadOnlyError = ReadOnlyError;
|
|
1917
1998
|
exports.TooManyError = TooManyError;
|
|
@@ -1923,6 +2004,7 @@ exports.driverBeforeBegin = driverBeforeBegin;
|
|
|
1923
2004
|
exports.driverBeforeCommit = driverBeforeCommit;
|
|
1924
2005
|
exports.getDefaultEntityLimit = getDefaultEntityLimit;
|
|
1925
2006
|
exports.getEmInternalApi = getEmInternalApi;
|
|
2007
|
+
exports.invokeRule = invokeRule;
|
|
1926
2008
|
exports.isDefined = isDefined;
|
|
1927
2009
|
exports.isId = isId;
|
|
1928
2010
|
exports.isKey = isKey;
|