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.
- package/build/BaseEntity.d.cts +3 -4
- package/build/BaseEntity.d.cts.map +1 -1
- package/build/BaseEntity.d.mts +3 -4
- package/build/BaseEntity.d.mts.map +1 -1
- package/build/Entity.d.cts +3 -4
- package/build/Entity.d.cts.map +1 -1
- package/build/Entity.d.mts +3 -4
- package/build/Entity.d.mts.map +1 -1
- package/build/EntityFields.d.cts +3 -4
- package/build/EntityFields.d.cts.map +1 -1
- package/build/EntityFields.d.mts +3 -4
- package/build/EntityFields.d.mts.map +1 -1
- package/build/EntityManager.cjs +64 -20
- package/build/EntityManager.cjs.map +1 -1
- package/build/EntityManager.d.cts +86 -53
- package/build/EntityManager.d.cts.map +1 -1
- package/build/EntityManager.d.mts +86 -53
- package/build/EntityManager.d.mts.map +1 -1
- package/build/EntityManager.js +64 -22
- package/build/EntityManager.js.map +1 -1
- package/build/EntityMetadata.cjs +0 -1
- package/build/EntityMetadata.cjs.map +1 -1
- package/build/EntityMetadata.d.cts +39 -36
- package/build/EntityMetadata.d.cts.map +1 -1
- package/build/EntityMetadata.d.mts +39 -36
- package/build/EntityMetadata.d.mts.map +1 -1
- package/build/EntityMetadata.js +0 -1
- package/build/EntityMetadata.js.map +1 -1
- package/build/EnumMetadata.d.cts +1 -2
- package/build/EnumMetadata.d.cts.map +1 -1
- package/build/EnumMetadata.d.mts +1 -2
- package/build/EnumMetadata.d.mts.map +1 -1
- package/build/IndexManager.cjs +23 -5
- package/build/IndexManager.cjs.map +1 -1
- package/build/IndexManager.d.cts +2 -3
- package/build/IndexManager.d.cts.map +1 -1
- package/build/IndexManager.d.mts +2 -3
- package/build/IndexManager.d.mts.map +1 -1
- package/build/IndexManager.js +23 -5
- package/build/IndexManager.js.map +1 -1
- package/build/InstanceData.cjs.map +1 -1
- package/build/InstanceData.d.cts +1 -2
- package/build/InstanceData.d.cts.map +1 -1
- package/build/InstanceData.d.mts +1 -2
- package/build/InstanceData.d.mts.map +1 -1
- package/build/InstanceData.js.map +1 -1
- package/build/PluginManager.cjs.map +1 -1
- package/build/PluginManager.d.cts +4 -4
- package/build/PluginManager.d.cts.map +1 -1
- package/build/PluginManager.d.mts +4 -4
- package/build/PluginManager.d.mts.map +1 -1
- package/build/PluginManager.js.map +1 -1
- package/build/RowData.d.cts +3 -4
- package/build/RowData.d.cts.map +1 -1
- package/build/RowData.d.mts +3 -4
- package/build/RowData.d.mts.map +1 -1
- package/build/batchloaders/BatchLoader.cjs.map +1 -1
- package/build/batchloaders/BatchLoader.d.cts +1 -2
- package/build/batchloaders/BatchLoader.d.cts.map +1 -1
- package/build/batchloaders/BatchLoader.d.mts +1 -2
- package/build/batchloaders/BatchLoader.d.mts.map +1 -1
- package/build/batchloaders/BatchLoader.js.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.d.cts +2 -3
- package/build/batchloaders/enumCollectionBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.d.mts +2 -3
- package/build/batchloaders/enumCollectionBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/loadBatchLoader.d.cts +2 -3
- package/build/batchloaders/loadBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/loadBatchLoader.d.mts +2 -3
- package/build/batchloaders/loadBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.d.cts +2 -3
- package/build/batchloaders/manyToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.d.mts +2 -3
- package/build/batchloaders/manyToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.d.cts +2 -3
- package/build/batchloaders/oneToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.d.mts +2 -3
- package/build/batchloaders/oneToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.d.cts +2 -3
- package/build/batchloaders/oneToOneBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.d.mts +2 -3
- package/build/batchloaders/oneToOneBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/populateBatchLoader.cjs +2 -2
- package/build/batchloaders/populateBatchLoader.d.cts +2 -3
- package/build/batchloaders/populateBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/populateBatchLoader.d.mts +2 -3
- package/build/batchloaders/populateBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/populateBatchLoader.js +2 -2
- package/build/batchloaders/recursiveChildrenBatchLoader.cjs +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.js +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.cjs +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.js +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.cjs +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.js +1 -1
- package/build/changes.cjs.map +1 -1
- package/build/changes.d.cts +9 -10
- package/build/changes.d.cts.map +1 -1
- package/build/changes.d.mts +9 -10
- package/build/changes.d.mts.map +1 -1
- package/build/changes.js.map +1 -1
- package/build/config.cjs +75 -1
- package/build/config.cjs.map +1 -1
- package/build/config.d.cts +99 -17
- package/build/config.d.cts.map +1 -1
- package/build/config.d.mts +99 -17
- package/build/config.d.mts.map +1 -1
- package/build/config.js +75 -1
- package/build/config.js.map +1 -1
- package/build/configure.cjs +6 -2
- package/build/configure.cjs.map +1 -1
- package/build/configure.d.cts +8 -9
- package/build/configure.d.cts.map +1 -1
- package/build/configure.d.mts +8 -9
- package/build/configure.d.mts.map +1 -1
- package/build/configure.js +6 -2
- package/build/configure.js.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.d.cts +1 -2
- package/build/dataloaders/fastWhereFilterHash.d.cts.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.d.mts +1 -2
- package/build/dataloaders/fastWhereFilterHash.d.mts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.d.cts +2 -3
- package/build/dataloaders/findByUniqueDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.d.mts +2 -3
- package/build/dataloaders/findByUniqueDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findCountDataLoader.d.cts +4 -5
- package/build/dataloaders/findCountDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findCountDataLoader.d.mts +4 -5
- package/build/dataloaders/findCountDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findDataLoader.cjs +1 -1
- package/build/dataloaders/findDataLoader.d.cts +11 -12
- package/build/dataloaders/findDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findDataLoader.d.mts +11 -12
- package/build/dataloaders/findDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findDataLoader.js +1 -1
- package/build/dataloaders/findIdsDataLoader.d.cts +2 -3
- package/build/dataloaders/findIdsDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findIdsDataLoader.d.mts +2 -3
- package/build/dataloaders/findIdsDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.cjs +6 -2
- package/build/dataloaders/findOrCreateDataLoader.cjs.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.cts +3 -3
- package/build/dataloaders/findOrCreateDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.mts +3 -3
- package/build/dataloaders/findOrCreateDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.js +7 -3
- package/build/dataloaders/findOrCreateDataLoader.js.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.cjs +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.cts +1 -2
- package/build/dataloaders/findPaginatedDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.mts +1 -2
- package/build/dataloaders/findPaginatedDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.js +1 -1
- package/build/dataloaders/lensDataLoader.d.cts +2 -3
- package/build/dataloaders/lensDataLoader.d.cts.map +1 -1
- package/build/dataloaders/lensDataLoader.d.mts +2 -3
- package/build/dataloaders/lensDataLoader.d.mts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.cts +2 -3
- package/build/dataloaders/manyToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.mts +2 -3
- package/build/dataloaders/manyToManyFindDataLoader.d.mts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.cts +2 -3
- package/build/dataloaders/oneToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.mts +2 -3
- package/build/dataloaders/oneToManyFindDataLoader.d.mts.map +1 -1
- package/build/defaults.cjs +2 -2
- package/build/defaults.cjs.map +1 -1
- package/build/defaults.d.cts +7 -7
- package/build/defaults.d.cts.map +1 -1
- package/build/defaults.d.mts +7 -7
- package/build/defaults.d.mts.map +1 -1
- package/build/defaults.js +2 -2
- package/build/defaults.js.map +1 -1
- package/build/drivers/Driver.d.cts +2 -3
- package/build/drivers/Driver.d.cts.map +1 -1
- package/build/drivers/Driver.d.mts +2 -3
- package/build/drivers/Driver.d.mts.map +1 -1
- package/build/drivers/EntityWriter.d.cts +7 -7
- package/build/drivers/EntityWriter.d.cts.map +1 -1
- package/build/drivers/EntityWriter.d.mts +7 -7
- package/build/drivers/EntityWriter.d.mts.map +1 -1
- package/build/drivers/IdAssigner.cjs.map +1 -1
- package/build/drivers/IdAssigner.d.cts +5 -5
- package/build/drivers/IdAssigner.d.cts.map +1 -1
- package/build/drivers/IdAssigner.d.mts +5 -5
- package/build/drivers/IdAssigner.d.mts.map +1 -1
- package/build/drivers/IdAssigner.js.map +1 -1
- package/build/drivers/driverApi.d.cts +2 -3
- package/build/drivers/driverApi.d.cts.map +1 -1
- package/build/drivers/driverApi.d.mts +2 -3
- package/build/drivers/driverApi.d.mts.map +1 -1
- package/build/fields.cjs +1 -0
- package/build/fields.cjs.map +1 -1
- package/build/fields.d.cts +6 -7
- package/build/fields.d.cts.map +1 -1
- package/build/fields.d.mts +6 -7
- package/build/fields.d.mts.map +1 -1
- package/build/fields.js +1 -0
- package/build/fields.js.map +1 -1
- package/build/flush/FlushLock.cjs.map +1 -1
- package/build/flush/FlushLock.d.cts +1 -2
- package/build/flush/FlushLock.d.cts.map +1 -1
- package/build/flush/FlushLock.d.mts +1 -2
- package/build/flush/FlushLock.d.mts.map +1 -1
- package/build/flush/FlushLock.js.map +1 -1
- package/build/flush/JoinRows.cjs.map +1 -1
- package/build/flush/JoinRows.d.cts +5 -6
- package/build/flush/JoinRows.d.cts.map +1 -1
- package/build/flush/JoinRows.d.mts +5 -6
- package/build/flush/JoinRows.d.mts.map +1 -1
- package/build/flush/JoinRows.js.map +1 -1
- package/build/flush/PendingChanges.d.cts +5 -6
- package/build/flush/PendingChanges.d.cts.map +1 -1
- package/build/flush/PendingChanges.d.mts +5 -6
- package/build/flush/PendingChanges.d.mts.map +1 -1
- package/build/flush/Todo.d.cts +5 -6
- package/build/flush/Todo.d.cts.map +1 -1
- package/build/flush/Todo.d.mts +5 -6
- package/build/flush/Todo.d.mts.map +1 -1
- package/build/getProperties.d.cts +3 -4
- package/build/getProperties.d.cts.map +1 -1
- package/build/getProperties.d.mts +3 -4
- package/build/getProperties.d.mts.map +1 -1
- package/build/index.cjs +14 -8
- package/build/index.cjs.map +1 -1
- package/build/index.d.cts +20 -19
- package/build/index.d.cts.map +1 -1
- package/build/index.d.mts +20 -19
- package/build/index.d.mts.map +1 -1
- package/build/index.js +14 -11
- package/build/index.js.map +1 -1
- package/build/json.cjs +3 -3
- package/build/json.d.cts +11 -11
- package/build/json.d.cts.map +1 -1
- package/build/json.d.mts +11 -11
- package/build/json.d.mts.map +1 -1
- package/build/json.js +3 -3
- package/build/keys.d.cts +27 -27
- package/build/keys.d.cts.map +1 -1
- package/build/keys.d.mts +27 -27
- package/build/keys.d.mts.map +1 -1
- package/build/loading/HintTree.d.cts +3 -4
- package/build/loading/HintTree.d.cts.map +1 -1
- package/build/loading/HintTree.d.mts +3 -4
- package/build/loading/HintTree.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.cjs.map +1 -1
- package/build/loading/IsLoadedCache.d.cts +2 -3
- package/build/loading/IsLoadedCache.d.cts.map +1 -1
- package/build/loading/IsLoadedCache.d.mts +2 -3
- package/build/loading/IsLoadedCache.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.js.map +1 -1
- package/build/loading/loadHints.cjs +1 -1
- package/build/loading/loadHints.d.cts +17 -17
- package/build/loading/loadHints.d.cts.map +1 -1
- package/build/loading/loadHints.d.mts +17 -17
- package/build/loading/loadHints.d.mts.map +1 -1
- package/build/loading/loadHints.js +1 -1
- package/build/loading/loadLens.d.cts +13 -13
- package/build/loading/loadLens.d.cts.map +1 -1
- package/build/loading/loadLens.d.mts +13 -13
- package/build/loading/loadLens.d.mts.map +1 -1
- package/build/loading/withLoaded.cjs +2 -2
- package/build/loading/withLoaded.d.cts +5 -6
- package/build/loading/withLoaded.d.cts.map +1 -1
- package/build/loading/withLoaded.d.mts +5 -6
- package/build/loading/withLoaded.d.mts.map +1 -1
- package/build/loading/withLoaded.js +2 -2
- package/build/logging/FactoryLogger.d.cts +3 -4
- package/build/logging/FactoryLogger.d.cts.map +1 -1
- package/build/logging/FactoryLogger.d.mts +3 -4
- package/build/logging/FactoryLogger.d.mts.map +1 -1
- package/build/logging/FieldLogger.cjs.map +1 -1
- package/build/logging/FieldLogger.d.cts +4 -5
- package/build/logging/FieldLogger.d.cts.map +1 -1
- package/build/logging/FieldLogger.d.mts +4 -5
- package/build/logging/FieldLogger.d.mts.map +1 -1
- package/build/logging/FieldLogger.js.map +1 -1
- package/build/logging/ReactionLogger.d.cts +7 -7
- package/build/logging/ReactionLogger.d.cts.map +1 -1
- package/build/logging/ReactionLogger.d.mts +7 -7
- package/build/logging/ReactionLogger.d.mts.map +1 -1
- package/build/newEntity.cjs.map +1 -1
- package/build/newEntity.d.cts +4 -5
- package/build/newEntity.d.cts.map +1 -1
- package/build/newEntity.d.mts +4 -5
- package/build/newEntity.d.mts.map +1 -1
- package/build/newEntity.js.map +1 -1
- package/build/newTestInstance.cjs +1 -0
- package/build/newTestInstance.cjs.map +1 -1
- package/build/newTestInstance.d.cts +21 -21
- package/build/newTestInstance.d.cts.map +1 -1
- package/build/newTestInstance.d.mts +21 -21
- package/build/newTestInstance.d.mts.map +1 -1
- package/build/newTestInstance.js +1 -0
- package/build/newTestInstance.js.map +1 -1
- package/build/normalizeHints.d.cts +7 -8
- package/build/normalizeHints.d.cts.map +1 -1
- package/build/normalizeHints.d.mts +7 -8
- package/build/normalizeHints.d.mts.map +1 -1
- package/build/nowUTC.d.cts +4 -5
- package/build/nowUTC.d.cts.map +1 -1
- package/build/nowUTC.d.mts +4 -5
- package/build/nowUTC.d.mts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.cts +1 -2
- package/build/plugins/ImmutableEntitiesPlugin.d.cts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.mts +1 -2
- package/build/plugins/ImmutableEntitiesPlugin.d.mts.map +1 -1
- package/build/plugins/PreloadPlugin.d.cts +3 -4
- package/build/plugins/PreloadPlugin.d.cts.map +1 -1
- package/build/plugins/PreloadPlugin.d.mts +3 -4
- package/build/plugins/PreloadPlugin.d.mts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.d.cts +1 -2
- package/build/preloading/JsonAggregatePreloader.d.cts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.d.mts +1 -2
- package/build/preloading/JsonAggregatePreloader.d.mts.map +1 -1
- package/build/preloading/canPreload.d.cts +1 -2
- package/build/preloading/canPreload.d.cts.map +1 -1
- package/build/preloading/canPreload.d.mts +1 -2
- package/build/preloading/canPreload.d.mts.map +1 -1
- package/build/preloading/partitionHint.cjs +1 -1
- package/build/preloading/partitionHint.d.cts +1 -2
- package/build/preloading/partitionHint.d.cts.map +1 -1
- package/build/preloading/partitionHint.d.mts +1 -2
- package/build/preloading/partitionHint.d.mts.map +1 -1
- package/build/preloading/partitionHint.js +1 -1
- package/build/queries/ConditionBuilder.d.cts +2 -2
- package/build/queries/ConditionBuilder.d.cts.map +1 -1
- package/build/queries/ConditionBuilder.d.mts +2 -2
- package/build/queries/ConditionBuilder.d.mts.map +1 -1
- package/build/queries/conditions.d.cts +11 -12
- package/build/queries/conditions.d.cts.map +1 -1
- package/build/queries/conditions.d.mts +11 -12
- package/build/queries/conditions.d.mts.map +1 -1
- package/build/queries/entityQueryUtils.d.cts +4 -5
- package/build/queries/entityQueryUtils.d.cts.map +1 -1
- package/build/queries/entityQueryUtils.d.mts +4 -5
- package/build/queries/entityQueryUtils.d.mts.map +1 -1
- package/build/queries/find/Aliases.d.cts +16 -16
- package/build/queries/find/Aliases.d.cts.map +1 -1
- package/build/queries/find/Aliases.d.mts +16 -16
- package/build/queries/find/Aliases.d.mts.map +1 -1
- package/build/queries/find/DeferredAlias.d.cts +5 -6
- package/build/queries/find/DeferredAlias.d.cts.map +1 -1
- package/build/queries/find/DeferredAlias.d.mts +5 -6
- package/build/queries/find/DeferredAlias.d.mts.map +1 -1
- package/build/queries/find/EntityFilter.d.cts +12 -13
- package/build/queries/find/EntityFilter.d.cts.map +1 -1
- package/build/queries/find/EntityFilter.d.mts +12 -13
- package/build/queries/find/EntityFilter.d.mts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.d.cts +8 -9
- package/build/queries/find/EntityGraphQLFilter.d.cts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.d.mts +8 -9
- package/build/queries/find/EntityGraphQLFilter.d.mts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.cts +1 -2
- package/build/queries/find/QueryParser.collectionJoins.d.cts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.mts +1 -2
- package/build/queries/find/QueryParser.collectionJoins.d.mts.map +1 -1
- package/build/queries/find/QueryParser.d.cts +18 -18
- package/build/queries/find/QueryParser.d.cts.map +1 -1
- package/build/queries/find/QueryParser.d.mts +18 -18
- package/build/queries/find/QueryParser.d.mts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.cts +2 -3
- package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.mts +2 -3
- package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
- package/build/queries/find/QueryVisitor.d.cts +4 -4
- package/build/queries/find/QueryVisitor.d.cts.map +1 -1
- package/build/queries/find/QueryVisitor.d.mts +4 -4
- package/build/queries/find/QueryVisitor.d.mts.map +1 -1
- package/build/queries/find/buildFindQuery.d.cts +3 -3
- package/build/queries/find/buildFindQuery.d.cts.map +1 -1
- package/build/queries/find/buildFindQuery.d.mts +3 -3
- package/build/queries/find/buildFindQuery.d.mts.map +1 -1
- package/build/queries/find/scopes.cjs.map +1 -1
- package/build/queries/find/scopes.d.cts +12 -13
- package/build/queries/find/scopes.d.cts.map +1 -1
- package/build/queries/find/scopes.d.mts +12 -13
- package/build/queries/find/scopes.d.mts.map +1 -1
- package/build/queries/find/scopes.js.map +1 -1
- package/build/queries/parsedConditions.d.cts +7 -8
- package/build/queries/parsedConditions.d.cts.map +1 -1
- package/build/queries/parsedConditions.d.mts +7 -8
- package/build/queries/parsedConditions.d.mts.map +1 -1
- package/build/queries/renderConditions.d.cts +3 -4
- package/build/queries/renderConditions.d.cts.map +1 -1
- package/build/queries/renderConditions.d.mts +3 -4
- package/build/queries/renderConditions.d.mts.map +1 -1
- package/build/queries/skipCondition.d.cts +1 -2
- package/build/queries/skipCondition.d.cts.map +1 -1
- package/build/queries/skipCondition.d.mts +1 -2
- package/build/queries/skipCondition.d.mts.map +1 -1
- package/build/queries/sql/AliasAssigner.cjs.map +1 -1
- package/build/queries/sql/AliasAssigner.d.cts +1 -2
- package/build/queries/sql/AliasAssigner.d.cts.map +1 -1
- package/build/queries/sql/AliasAssigner.d.mts +1 -2
- package/build/queries/sql/AliasAssigner.d.mts.map +1 -1
- package/build/queries/sql/AliasAssigner.js.map +1 -1
- package/build/queries/sql/Expr.cjs +38 -0
- package/build/queries/sql/Expr.cjs.map +1 -1
- package/build/queries/sql/Expr.d.cts +45 -27
- package/build/queries/sql/Expr.d.cts.map +1 -1
- package/build/queries/sql/Expr.d.mts +45 -27
- package/build/queries/sql/Expr.d.mts.map +1 -1
- package/build/queries/sql/Expr.js +38 -1
- package/build/queries/sql/Expr.js.map +1 -1
- package/build/queries/sql/JoinTree.d.cts +5 -5
- package/build/queries/sql/JoinTree.d.cts.map +1 -1
- package/build/queries/sql/JoinTree.d.mts +5 -5
- package/build/queries/sql/JoinTree.d.mts.map +1 -1
- package/build/queries/sql/Tables.cjs +9 -0
- package/build/queries/sql/Tables.cjs.map +1 -1
- package/build/queries/sql/Tables.d.cts +46 -39
- package/build/queries/sql/Tables.d.cts.map +1 -1
- package/build/queries/sql/Tables.d.mts +46 -39
- package/build/queries/sql/Tables.d.mts.map +1 -1
- package/build/queries/sql/Tables.js +10 -1
- package/build/queries/sql/Tables.js.map +1 -1
- package/build/queries/sql/custom.d.cts +14 -14
- package/build/queries/sql/custom.d.cts.map +1 -1
- package/build/queries/sql/custom.d.mts +14 -14
- package/build/queries/sql/custom.d.mts.map +1 -1
- package/build/queries/sql/execute.cjs +4 -9
- package/build/queries/sql/execute.cjs.map +1 -1
- package/build/queries/sql/execute.d.cts +45 -28
- package/build/queries/sql/execute.d.cts.map +1 -1
- package/build/queries/sql/execute.d.mts +45 -28
- package/build/queries/sql/execute.d.mts.map +1 -1
- package/build/queries/sql/execute.js +5 -10
- package/build/queries/sql/execute.js.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.d.cts +5 -6
- package/build/queries/sql/expressions/arrayAgg.d.cts.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.d.mts +5 -6
- package/build/queries/sql/expressions/arrayAgg.d.mts.map +1 -1
- package/build/queries/sql/expressions/case.d.cts +10 -10
- package/build/queries/sql/expressions/case.d.cts.map +1 -1
- package/build/queries/sql/expressions/case.d.mts +10 -10
- package/build/queries/sql/expressions/case.d.mts.map +1 -1
- package/build/queries/sql/expressions/coalesce.d.cts +5 -6
- package/build/queries/sql/expressions/coalesce.d.cts.map +1 -1
- package/build/queries/sql/expressions/coalesce.d.mts +5 -6
- package/build/queries/sql/expressions/coalesce.d.mts.map +1 -1
- package/build/queries/sql/expressions/codecs.d.cts +1 -2
- package/build/queries/sql/expressions/codecs.d.cts.map +1 -1
- package/build/queries/sql/expressions/codecs.d.mts +1 -2
- package/build/queries/sql/expressions/codecs.d.mts.map +1 -1
- package/build/queries/sql/expressions/expression.d.cts +6 -6
- package/build/queries/sql/expressions/expression.d.cts.map +1 -1
- package/build/queries/sql/expressions/expression.d.mts +6 -6
- package/build/queries/sql/expressions/expression.d.mts.map +1 -1
- package/build/queries/sql/expressions/greatest.d.cts +5 -6
- package/build/queries/sql/expressions/greatest.d.cts.map +1 -1
- package/build/queries/sql/expressions/greatest.d.mts +5 -6
- package/build/queries/sql/expressions/greatest.d.mts.map +1 -1
- package/build/queries/sql/expressions/least.d.cts +5 -6
- package/build/queries/sql/expressions/least.d.cts.map +1 -1
- package/build/queries/sql/expressions/least.d.mts +5 -6
- package/build/queries/sql/expressions/least.d.mts.map +1 -1
- package/build/queries/sql/expressions/nullIf.d.cts +5 -6
- package/build/queries/sql/expressions/nullIf.d.cts.map +1 -1
- package/build/queries/sql/expressions/nullIf.d.mts +5 -6
- package/build/queries/sql/expressions/nullIf.d.mts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.d.cts +5 -6
- package/build/queries/sql/expressions/parseExpression.d.cts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.d.mts +5 -6
- package/build/queries/sql/expressions/parseExpression.d.mts.map +1 -1
- package/build/queries/sql/expressions/types.d.cts +11 -11
- package/build/queries/sql/expressions/types.d.cts.map +1 -1
- package/build/queries/sql/expressions/types.d.mts +11 -11
- package/build/queries/sql/expressions/types.d.mts.map +1 -1
- package/build/queries/sql/keywords.d.cts +4 -5
- package/build/queries/sql/keywords.d.cts.map +1 -1
- package/build/queries/sql/keywords.d.mts +4 -5
- package/build/queries/sql/keywords.d.mts.map +1 -1
- package/build/queries/sql/query.cjs +59 -23
- package/build/queries/sql/query.cjs.map +1 -1
- package/build/queries/sql/query.d.cts +108 -77
- package/build/queries/sql/query.d.cts.map +1 -1
- package/build/queries/sql/query.d.mts +108 -77
- package/build/queries/sql/query.d.mts.map +1 -1
- package/build/queries/sql/query.js +58 -23
- package/build/queries/sql/query.js.map +1 -1
- package/build/queries/unnest.d.cts +2 -3
- package/build/queries/unnest.d.cts.map +1 -1
- package/build/queries/unnest.d.mts +2 -3
- package/build/queries/unnest.d.mts.map +1 -1
- package/build/queries/valueFilters.d.cts +5 -6
- package/build/queries/valueFilters.d.cts.map +1 -1
- package/build/queries/valueFilters.d.mts +5 -6
- package/build/queries/valueFilters.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.cjs +168 -2
- package/build/reactivity/ReactionsManager.cjs.map +1 -1
- package/build/reactivity/ReactionsManager.d.cts +56 -4
- package/build/reactivity/ReactionsManager.d.cts.map +1 -1
- package/build/reactivity/ReactionsManager.d.mts +56 -4
- package/build/reactivity/ReactionsManager.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.js +169 -3
- package/build/reactivity/ReactionsManager.js.map +1 -1
- package/build/reactivity/reactiveHints.cjs +3 -3
- package/build/reactivity/reactiveHints.cjs.map +1 -1
- package/build/reactivity/reactiveHints.d.cts +18 -18
- package/build/reactivity/reactiveHints.d.cts.map +1 -1
- package/build/reactivity/reactiveHints.d.mts +18 -18
- package/build/reactivity/reactiveHints.d.mts.map +1 -1
- package/build/reactivity/reactiveHints.js +3 -3
- package/build/reactivity/reactiveHints.js.map +1 -1
- package/build/relations/AbstractPropertyImpl.cjs.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.cts +1 -2
- package/build/relations/AbstractPropertyImpl.d.cts.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.mts +1 -2
- package/build/relations/AbstractPropertyImpl.d.mts.map +1 -1
- package/build/relations/AbstractPropertyImpl.js.map +1 -1
- package/build/relations/AbstractRelationImpl.d.cts +1 -2
- package/build/relations/AbstractRelationImpl.d.cts.map +1 -1
- package/build/relations/AbstractRelationImpl.d.mts +1 -2
- package/build/relations/AbstractRelationImpl.d.mts.map +1 -1
- package/build/relations/AsyncProperty.cjs.map +1 -1
- package/build/relations/AsyncProperty.d.cts +5 -6
- package/build/relations/AsyncProperty.d.cts.map +1 -1
- package/build/relations/AsyncProperty.d.mts +5 -6
- package/build/relations/AsyncProperty.d.mts.map +1 -1
- package/build/relations/AsyncProperty.js.map +1 -1
- package/build/relations/AsyncReactiveField.cjs +3 -3
- package/build/relations/AsyncReactiveField.cjs.map +1 -1
- package/build/relations/AsyncReactiveField.d.cts +4 -5
- package/build/relations/AsyncReactiveField.d.cts.map +1 -1
- package/build/relations/AsyncReactiveField.d.mts +4 -5
- package/build/relations/AsyncReactiveField.d.mts.map +1 -1
- package/build/relations/AsyncReactiveField.js +3 -3
- package/build/relations/AsyncReactiveField.js.map +1 -1
- package/build/relations/Collection.d.cts +4 -5
- package/build/relations/Collection.d.cts.map +1 -1
- package/build/relations/Collection.d.mts +4 -5
- package/build/relations/Collection.d.mts.map +1 -1
- package/build/relations/CustomCollection.cjs.map +1 -1
- package/build/relations/CustomCollection.d.cts +3 -4
- package/build/relations/CustomCollection.d.cts.map +1 -1
- package/build/relations/CustomCollection.d.mts +3 -4
- package/build/relations/CustomCollection.d.mts.map +1 -1
- package/build/relations/CustomCollection.js.map +1 -1
- package/build/relations/CustomReference.cjs.map +1 -1
- package/build/relations/CustomReference.d.cts +3 -4
- package/build/relations/CustomReference.d.cts.map +1 -1
- package/build/relations/CustomReference.d.mts +3 -4
- package/build/relations/CustomReference.d.mts.map +1 -1
- package/build/relations/CustomReference.js.map +1 -1
- package/build/relations/EnumCollection.cjs.map +1 -1
- package/build/relations/EnumCollection.d.cts +5 -5
- package/build/relations/EnumCollection.d.cts.map +1 -1
- package/build/relations/EnumCollection.d.mts +5 -5
- package/build/relations/EnumCollection.d.mts.map +1 -1
- package/build/relations/EnumCollection.js.map +1 -1
- package/build/relations/LargeCollection.d.cts +1 -2
- package/build/relations/LargeCollection.d.cts.map +1 -1
- package/build/relations/LargeCollection.d.mts +1 -2
- package/build/relations/LargeCollection.d.mts.map +1 -1
- package/build/relations/LazyField.cjs +14 -0
- package/build/relations/LazyField.cjs.map +1 -1
- package/build/relations/LazyField.d.cts +13 -8
- package/build/relations/LazyField.d.cts.map +1 -1
- package/build/relations/LazyField.d.mts +13 -8
- package/build/relations/LazyField.d.mts.map +1 -1
- package/build/relations/LazyField.js +14 -0
- package/build/relations/LazyField.js.map +1 -1
- package/build/relations/ManyToManyCollection.cjs.map +1 -1
- package/build/relations/ManyToManyCollection.d.cts +2 -3
- package/build/relations/ManyToManyCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyCollection.d.mts +2 -3
- package/build/relations/ManyToManyCollection.d.mts.map +1 -1
- package/build/relations/ManyToManyCollection.js.map +1 -1
- package/build/relations/ManyToManyLargeCollection.d.cts +2 -3
- package/build/relations/ManyToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyLargeCollection.d.mts +2 -3
- package/build/relations/ManyToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/ManyToOneReference.cjs.map +1 -1
- package/build/relations/ManyToOneReference.d.cts +6 -7
- package/build/relations/ManyToOneReference.d.cts.map +1 -1
- package/build/relations/ManyToOneReference.d.mts +6 -7
- package/build/relations/ManyToOneReference.d.mts.map +1 -1
- package/build/relations/ManyToOneReference.js.map +1 -1
- package/build/relations/OneToManyCollection.cjs.map +1 -1
- package/build/relations/OneToManyCollection.d.cts +2 -3
- package/build/relations/OneToManyCollection.d.cts.map +1 -1
- package/build/relations/OneToManyCollection.d.mts +2 -3
- package/build/relations/OneToManyCollection.d.mts.map +1 -1
- package/build/relations/OneToManyCollection.js.map +1 -1
- package/build/relations/OneToManyLargeCollection.cjs.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.cts +2 -3
- package/build/relations/OneToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.mts +2 -3
- package/build/relations/OneToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/OneToManyLargeCollection.js.map +1 -1
- package/build/relations/OneToOneReference.cjs.map +1 -1
- package/build/relations/OneToOneReference.d.cts +7 -7
- package/build/relations/OneToOneReference.d.cts.map +1 -1
- package/build/relations/OneToOneReference.d.mts +7 -7
- package/build/relations/OneToOneReference.d.mts.map +1 -1
- package/build/relations/OneToOneReference.js.map +1 -1
- package/build/relations/PolymorphicReference.cjs.map +1 -1
- package/build/relations/PolymorphicReference.d.cts +4 -5
- package/build/relations/PolymorphicReference.d.cts.map +1 -1
- package/build/relations/PolymorphicReference.d.mts +4 -5
- package/build/relations/PolymorphicReference.d.mts.map +1 -1
- package/build/relations/PolymorphicReference.js.map +1 -1
- package/build/relations/PropertySymbols.d.cts +1 -2
- package/build/relations/PropertySymbols.d.cts.map +1 -1
- package/build/relations/PropertySymbols.d.mts +1 -2
- package/build/relations/PropertySymbols.d.mts.map +1 -1
- package/build/relations/ReactiveField.cjs +2 -2
- package/build/relations/ReactiveField.cjs.map +1 -1
- package/build/relations/ReactiveField.d.cts +4 -5
- package/build/relations/ReactiveField.d.cts.map +1 -1
- package/build/relations/ReactiveField.d.mts +4 -5
- package/build/relations/ReactiveField.d.mts.map +1 -1
- package/build/relations/ReactiveField.js +2 -2
- package/build/relations/ReactiveField.js.map +1 -1
- package/build/relations/ReactiveGetter.cjs.map +1 -1
- package/build/relations/ReactiveGetter.d.cts +4 -5
- package/build/relations/ReactiveGetter.d.cts.map +1 -1
- package/build/relations/ReactiveGetter.d.mts +4 -5
- package/build/relations/ReactiveGetter.d.mts.map +1 -1
- package/build/relations/ReactiveGetter.js.map +1 -1
- package/build/relations/ReactiveManyToMany.cjs +1 -1
- package/build/relations/ReactiveManyToMany.cjs.map +1 -1
- package/build/relations/ReactiveManyToMany.d.cts +4 -5
- package/build/relations/ReactiveManyToMany.d.cts.map +1 -1
- package/build/relations/ReactiveManyToMany.d.mts +4 -5
- package/build/relations/ReactiveManyToMany.d.mts.map +1 -1
- package/build/relations/ReactiveManyToMany.js +1 -1
- package/build/relations/ReactiveManyToMany.js.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.cjs.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.cts +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.d.cts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.mts +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.d.mts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
- package/build/relations/ReactiveReference.cjs +1 -1
- package/build/relations/ReactiveReference.cjs.map +1 -1
- package/build/relations/ReactiveReference.d.cts +5 -6
- package/build/relations/ReactiveReference.d.cts.map +1 -1
- package/build/relations/ReactiveReference.d.mts +5 -6
- package/build/relations/ReactiveReference.d.mts.map +1 -1
- package/build/relations/ReactiveReference.js +1 -1
- package/build/relations/ReactiveReference.js.map +1 -1
- package/build/relations/ReadOnlyCollection.d.cts +4 -5
- package/build/relations/ReadOnlyCollection.d.cts.map +1 -1
- package/build/relations/ReadOnlyCollection.d.mts +4 -5
- package/build/relations/ReadOnlyCollection.d.mts.map +1 -1
- package/build/relations/RecursiveCollection.cjs +3 -3
- package/build/relations/RecursiveCollection.cjs.map +1 -1
- package/build/relations/RecursiveCollection.d.cts +10 -10
- package/build/relations/RecursiveCollection.d.cts.map +1 -1
- package/build/relations/RecursiveCollection.d.mts +10 -10
- package/build/relations/RecursiveCollection.d.mts.map +1 -1
- package/build/relations/RecursiveCollection.js +3 -3
- package/build/relations/RecursiveCollection.js.map +1 -1
- package/build/relations/RecursiveCycleError.d.cts +2 -2
- package/build/relations/RecursiveCycleError.d.cts.map +1 -1
- package/build/relations/RecursiveCycleError.d.mts +2 -2
- package/build/relations/RecursiveCycleError.d.mts.map +1 -1
- package/build/relations/Reference.d.cts +5 -5
- package/build/relations/Reference.d.cts.map +1 -1
- package/build/relations/Reference.d.mts +5 -5
- package/build/relations/Reference.d.mts.map +1 -1
- package/build/relations/ReferenceSymbols.d.cts +1 -2
- package/build/relations/ReferenceSymbols.d.cts.map +1 -1
- package/build/relations/ReferenceSymbols.d.mts +1 -2
- package/build/relations/ReferenceSymbols.d.mts.map +1 -1
- package/build/relations/Relation.d.cts +3 -3
- package/build/relations/Relation.d.cts.map +1 -1
- package/build/relations/Relation.d.mts +3 -3
- package/build/relations/Relation.d.mts.map +1 -1
- package/build/relations/RelationSymbols.d.cts +2 -3
- package/build/relations/RelationSymbols.d.cts.map +1 -1
- package/build/relations/RelationSymbols.d.mts +2 -3
- package/build/relations/RelationSymbols.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.cjs.map +1 -1
- package/build/relations/hasAsyncMethod.d.cts +6 -6
- package/build/relations/hasAsyncMethod.d.cts.map +1 -1
- package/build/relations/hasAsyncMethod.d.mts +6 -6
- package/build/relations/hasAsyncMethod.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.js.map +1 -1
- package/build/relations/hasManyDerived.d.cts +2 -2
- package/build/relations/hasManyDerived.d.cts.map +1 -1
- package/build/relations/hasManyDerived.d.mts +2 -2
- package/build/relations/hasManyDerived.d.mts.map +1 -1
- package/build/relations/hasManyThrough.d.cts +1 -2
- package/build/relations/hasManyThrough.d.cts.map +1 -1
- package/build/relations/hasManyThrough.d.mts +1 -2
- package/build/relations/hasManyThrough.d.mts.map +1 -1
- package/build/relations/hasOneDerived.d.cts +1 -2
- package/build/relations/hasOneDerived.d.cts.map +1 -1
- package/build/relations/hasOneDerived.d.mts +1 -2
- package/build/relations/hasOneDerived.d.mts.map +1 -1
- package/build/relations/hasOneThrough.d.cts +1 -2
- package/build/relations/hasOneThrough.d.cts.map +1 -1
- package/build/relations/hasOneThrough.d.mts +1 -2
- package/build/relations/hasOneThrough.d.mts.map +1 -1
- package/build/relations/hasProperty.cjs +2 -2
- package/build/relations/hasProperty.cjs.map +1 -1
- package/build/relations/hasProperty.d.cts +8 -8
- package/build/relations/hasProperty.d.cts.map +1 -1
- package/build/relations/hasProperty.d.mts +8 -8
- package/build/relations/hasProperty.d.mts.map +1 -1
- package/build/relations/hasProperty.js +2 -2
- package/build/relations/hasProperty.js.map +1 -1
- package/build/relations/index.cjs +5 -5
- package/build/relations/index.js +5 -5
- package/build/relations/isCascadeDelete.d.cts +1 -2
- package/build/relations/isCascadeDelete.d.cts.map +1 -1
- package/build/relations/isCascadeDelete.d.mts +1 -2
- package/build/relations/isCascadeDelete.d.mts.map +1 -1
- package/build/resurrection.cjs +11 -1
- package/build/resurrection.cjs.map +1 -1
- package/build/resurrection.d.cts +5 -3
- package/build/resurrection.d.cts.map +1 -1
- package/build/resurrection.d.mts +5 -3
- package/build/resurrection.d.mts.map +1 -1
- package/build/resurrection.js +11 -2
- package/build/resurrection.js.map +1 -1
- package/build/rules.d.cts +20 -20
- package/build/rules.d.cts.map +1 -1
- package/build/rules.d.mts +20 -20
- package/build/rules.d.mts.map +1 -1
- package/build/runtimeConfig.d.cts +4 -5
- package/build/runtimeConfig.d.cts.map +1 -1
- package/build/runtimeConfig.d.mts +4 -5
- package/build/runtimeConfig.d.mts.map +1 -1
- package/build/serde/TypeInfo.d.cts +3 -4
- package/build/serde/TypeInfo.d.cts.map +1 -1
- package/build/serde/TypeInfo.d.mts +3 -4
- package/build/serde/TypeInfo.d.mts.map +1 -1
- package/build/serde/columns.d.cts +2 -3
- package/build/serde/columns.d.cts.map +1 -1
- package/build/serde/columns.d.mts +2 -3
- package/build/serde/columns.d.mts.map +1 -1
- package/build/serde/fieldSerde.d.cts +9 -9
- package/build/serde/fieldSerde.d.cts.map +1 -1
- package/build/serde/fieldSerde.d.mts +9 -9
- package/build/serde/fieldSerde.d.mts.map +1 -1
- package/build/serde/serde.cjs +35 -0
- package/build/serde/serde.cjs.map +1 -1
- package/build/serde/serde.d.cts +37 -19
- package/build/serde/serde.d.cts.map +1 -1
- package/build/serde/serde.d.mts +37 -19
- package/build/serde/serde.d.mts.map +1 -1
- package/build/serde/serde.js +35 -1
- package/build/serde/serde.js.map +1 -1
- package/build/serde/temporal.d.cts +5 -5
- package/build/serde/temporal.d.cts.map +1 -1
- package/build/serde/temporal.d.mts +5 -5
- package/build/serde/temporal.d.mts.map +1 -1
- package/build/serde/temporalMappers.d.cts +4 -5
- package/build/serde/temporalMappers.d.cts.map +1 -1
- package/build/serde/temporalMappers.d.mts +4 -5
- package/build/serde/temporalMappers.d.mts.map +1 -1
- package/build/transitions.cjs +89 -0
- package/build/transitions.cjs.map +1 -0
- package/build/transitions.d.cts +109 -0
- package/build/transitions.d.cts.map +1 -0
- package/build/transitions.d.mts +109 -0
- package/build/transitions.d.mts.map +1 -0
- package/build/transitions.js +84 -0
- package/build/transitions.js.map +1 -0
- package/build/trusted.d.cts +2 -3
- package/build/trusted.d.cts.map +1 -1
- package/build/trusted.d.mts +2 -3
- package/build/trusted.d.mts.map +1 -1
- package/build/typeMap.d.cts +17 -17
- package/build/typeMap.d.cts.map +1 -1
- package/build/typeMap.d.mts +17 -17
- package/build/typeMap.d.mts.map +1 -1
- package/build/upsert.d.cts +4 -4
- package/build/upsert.d.cts.map +1 -1
- package/build/upsert.d.mts +4 -4
- package/build/upsert.d.mts.map +1 -1
- package/build/utils.d.cts +27 -28
- package/build/utils.d.cts.map +1 -1
- package/build/utils.d.mts +27 -28
- package/build/utils.d.mts.map +1 -1
- package/package.json +6 -6
package/build/BaseEntity.d.cts
CHANGED
|
@@ -8,13 +8,13 @@ import { Entity, IdType } from "./Entity.cjs";
|
|
|
8
8
|
*
|
|
9
9
|
* This should be treated as an internal API and may change without notice.
|
|
10
10
|
*/
|
|
11
|
-
declare function getInstanceData(entity: Entity): InstanceData;
|
|
11
|
+
export declare function getInstanceData(entity: Entity): InstanceData;
|
|
12
12
|
/**
|
|
13
13
|
* The base class for all entities.
|
|
14
14
|
*
|
|
15
15
|
* Currently, this just adds the `.load(lensFn)` method for declarative reference traversal.
|
|
16
16
|
*/
|
|
17
|
-
declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
|
|
17
|
+
export declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
|
|
18
18
|
static getInstanceData(entity: Entity): InstanceData;
|
|
19
19
|
protected readonly __data: InstanceData;
|
|
20
20
|
/** The single-arg constructor is our psuedo-public API that can only be called by the EntityManager. */
|
|
@@ -67,7 +67,6 @@ declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = I
|
|
|
67
67
|
* The constructor logic for `BaseEntity` but exposed so that `newEntity` can use it too
|
|
68
68
|
* on its `Object.create`-d instances.
|
|
69
69
|
*/
|
|
70
|
-
declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
|
|
70
|
+
export declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
|
|
71
71
|
//#endregion
|
|
72
|
-
export { BaseEntity, baseEntityCstr, getInstanceData };
|
|
73
72
|
//# sourceMappingURL=BaseEntity.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEntity.d.cts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"BaseEntity.d.cts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;wBAiBgB,gBAAgB,QAAQ,SAAS;;;;;;8BAS3B,WAAW,WAAW,eAAe,UAAU,SAAS,mBAAmB;SACjF,gBAAgB,QAAQ,SAAS;qBAI5B,QAAS;;EAG5B,YAAY,IAAI;MAaZ;;WAKK,IAAI;;eAGA,WAAW;;WAGf,UAAU;;eAGN,iBAAiB;;MAG1B;WAIK,IAAI;;;;WAKJ,WAAW;;;;WAKX,eAAe,gBAAgB;;;;;;;MAQpC;MAIA;MAIA;EAIJ;EAKA;MAKW,MAAM;;;;;;;;EAWV;GAIN,OAAO;;WAcS,iBAAiB;;;;;;wBA0BpB,eAAe,IAAI,eAAe,QAAQ,sBAAsB"}
|
package/build/BaseEntity.d.mts
CHANGED
|
@@ -8,13 +8,13 @@ import { Entity, IdType } from "./Entity.mjs";
|
|
|
8
8
|
*
|
|
9
9
|
* This should be treated as an internal API and may change without notice.
|
|
10
10
|
*/
|
|
11
|
-
declare function getInstanceData(entity: Entity): InstanceData;
|
|
11
|
+
export declare function getInstanceData(entity: Entity): InstanceData;
|
|
12
12
|
/**
|
|
13
13
|
* The base class for all entities.
|
|
14
14
|
*
|
|
15
15
|
* Currently, this just adds the `.load(lensFn)` method for declarative reference traversal.
|
|
16
16
|
*/
|
|
17
|
-
declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
|
|
17
|
+
export declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = IdType> implements Entity {
|
|
18
18
|
static getInstanceData(entity: Entity): InstanceData;
|
|
19
19
|
protected readonly __data: InstanceData;
|
|
20
20
|
/** The single-arg constructor is our psuedo-public API that can only be called by the EntityManager. */
|
|
@@ -67,7 +67,6 @@ declare abstract class BaseEntity<EM extends EntityManager, I extends IdType = I
|
|
|
67
67
|
* The constructor logic for `BaseEntity` but exposed so that `newEntity` can use it too
|
|
68
68
|
* on its `Object.create`-d instances.
|
|
69
69
|
*/
|
|
70
|
-
declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
|
|
70
|
+
export declare function baseEntityCstr(em: EntityManager, entity: BaseEntity<any, any>, isNew: boolean): void;
|
|
71
71
|
//#endregion
|
|
72
|
-
export { BaseEntity, baseEntityCstr, getInstanceData };
|
|
73
72
|
//# sourceMappingURL=BaseEntity.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEntity.d.mts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"BaseEntity.d.mts","names":[],"sources":["../src/BaseEntity.ts"],"mappings":";;;;;;;;;;wBAiBgB,gBAAgB,QAAQ,SAAS;;;;;;8BAS3B,WAAW,WAAW,eAAe,UAAU,SAAS,mBAAmB;SACjF,gBAAgB,QAAQ,SAAS;qBAI5B,QAAS;;EAG5B,YAAY,IAAI;MAaZ;;WAKK,IAAI;;eAGA,WAAW;;WAGf,UAAU;;eAGN,iBAAiB;;MAG1B;WAIK,IAAI;;;;WAKJ,WAAW;;;;WAKX,eAAe,gBAAgB;;;;;;;MAQpC;MAIA;MAIA;EAIJ;EAKA;MAKW,MAAM;;;;;;;;EAWV;GAIN,OAAO;;WAcS,iBAAiB;;;;;;wBA0BpB,eAAe,IAAI,eAAe,QAAQ,sBAAsB"}
|
package/build/Entity.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EntityManager, TaggedId } from "./EntityManager.cjs";
|
|
2
2
|
//#region src/Entity.d.ts
|
|
3
|
-
declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
|
|
3
|
+
export declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
|
|
4
4
|
/** All the types we support for entity `id` fields. */
|
|
5
|
-
type IdType = number | string;
|
|
5
|
+
export type IdType = number | string;
|
|
6
6
|
/** A marker/base interface for all of our entity types. */
|
|
7
|
-
interface Entity {
|
|
7
|
+
export interface Entity {
|
|
8
8
|
/** The entity id, either tagged or untagged; the per-application `Entity` will specialize appropriately. */
|
|
9
9
|
id: IdType;
|
|
10
10
|
idMaybe: IdType | undefined;
|
|
@@ -38,5 +38,4 @@ interface Entity {
|
|
|
38
38
|
toTaggedString(): string;
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
|
-
export { Entity, IdType, isEntity };
|
|
42
41
|
//# sourceMappingURL=Entity.d.cts.map
|
package/build/Entity.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entity.d.cts","names":[],"sources":["../src/Entity.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Entity.d.cts","names":[],"sources":["../src/Entity.ts"],"mappings":";;wBAGgB,SAAS,uBAAuB,eAAe;;YAKnD;;iBAGK;;EAEf,IAAI;EACJ,SAAS;;EAET,UAAU;EACV,eAAe;WACN,IAAI;WACJ;WACA;WACA;WACA,iBAAiB;EAC1B,IAAI;EACJ,WAAW;EACX,eAAe,gBAAgB;;;;;;;;;;EAU/B;;;;;;;EAOA"}
|
package/build/Entity.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EntityManager, TaggedId } from "./EntityManager.mjs";
|
|
2
2
|
//#region src/Entity.d.ts
|
|
3
|
-
declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
|
|
3
|
+
export declare function isEntity(maybeEntity: unknown): maybeEntity is Entity;
|
|
4
4
|
/** All the types we support for entity `id` fields. */
|
|
5
|
-
type IdType = number | string;
|
|
5
|
+
export type IdType = number | string;
|
|
6
6
|
/** A marker/base interface for all of our entity types. */
|
|
7
|
-
interface Entity {
|
|
7
|
+
export interface Entity {
|
|
8
8
|
/** The entity id, either tagged or untagged; the per-application `Entity` will specialize appropriately. */
|
|
9
9
|
id: IdType;
|
|
10
10
|
idMaybe: IdType | undefined;
|
|
@@ -38,5 +38,4 @@ interface Entity {
|
|
|
38
38
|
toTaggedString(): string;
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
|
-
export { Entity, IdType, isEntity };
|
|
42
41
|
//# sourceMappingURL=Entity.d.mts.map
|
package/build/Entity.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entity.d.mts","names":[],"sources":["../src/Entity.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Entity.d.mts","names":[],"sources":["../src/Entity.ts"],"mappings":";;wBAGgB,SAAS,uBAAuB,eAAe;;YAKnD;;iBAGK;;EAEf,IAAI;EACJ,SAAS;;EAET,UAAU;EACV,eAAe;WACN,IAAI;WACJ;WACA;WACA;WACA,iBAAiB;EAC1B,IAAI;EACJ,WAAW;EACX,eAAe,gBAAgB;;;;;;;;;;EAU/B;;;;;;;EAOA"}
|
package/build/EntityFields.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/EntityFields.d.ts
|
|
2
2
|
/** All the fields for an entity in the `FieldsOf` / `EntityField` format. */
|
|
3
|
-
type EntityFields<T> = { [K in keyof T]: EntityField; };
|
|
4
|
-
type EntityField = {
|
|
3
|
+
export type EntityFields<T> = { [K in keyof T]: EntityField; };
|
|
4
|
+
export type EntityField = {
|
|
5
5
|
kind: "primitive";
|
|
6
6
|
type: unknown;
|
|
7
7
|
unique: boolean;
|
|
@@ -22,7 +22,7 @@ type EntityField = {
|
|
|
22
22
|
nullable: never | unknown;
|
|
23
23
|
};
|
|
24
24
|
/** The subset of primitive, enum, and m2o fields from the `F` that are settable, i.e. not derived. */
|
|
25
|
-
type SettableFields<F> = { [K in keyof F]: F[K] extends {
|
|
25
|
+
export type SettableFields<F> = { [K in keyof F]: F[K] extends {
|
|
26
26
|
kind: "primitive";
|
|
27
27
|
derived: false;
|
|
28
28
|
} ? F[K] : F[K] extends {
|
|
@@ -32,5 +32,4 @@ type SettableFields<F> = { [K in keyof F]: F[K] extends {
|
|
|
32
32
|
derived: false;
|
|
33
33
|
} ? F[K] : never; };
|
|
34
34
|
//#endregion
|
|
35
|
-
export { EntityField, EntityFields, SettableFields };
|
|
36
35
|
//# sourceMappingURL=EntityFields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFields.d.cts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"EntityFields.d.cts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;YACY,aAAa,QACtB,WAAW,IAAI;YAGN;EACN;EAAmB;EAAe;EAAiB;EAA6B;;EAChF;EAAc;EAAe;;EAC7B;EAAa;EAAe;EAA2B;;EACvD;EAAc;EAAe;;;YAGvB,eAAe,QACxB,WAAW,IAAI,EAAE;EAAa;EAAmB;IAC9C,EAAE,KACF,EAAE;EAAa;IACb,EAAE,KACF,EAAE;EAAa;EAAa;IAC1B,EAAE"}
|
package/build/EntityFields.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/EntityFields.d.ts
|
|
2
2
|
/** All the fields for an entity in the `FieldsOf` / `EntityField` format. */
|
|
3
|
-
type EntityFields<T> = { [K in keyof T]: EntityField; };
|
|
4
|
-
type EntityField = {
|
|
3
|
+
export type EntityFields<T> = { [K in keyof T]: EntityField; };
|
|
4
|
+
export type EntityField = {
|
|
5
5
|
kind: "primitive";
|
|
6
6
|
type: unknown;
|
|
7
7
|
unique: boolean;
|
|
@@ -22,7 +22,7 @@ type EntityField = {
|
|
|
22
22
|
nullable: never | unknown;
|
|
23
23
|
};
|
|
24
24
|
/** The subset of primitive, enum, and m2o fields from the `F` that are settable, i.e. not derived. */
|
|
25
|
-
type SettableFields<F> = { [K in keyof F]: F[K] extends {
|
|
25
|
+
export type SettableFields<F> = { [K in keyof F]: F[K] extends {
|
|
26
26
|
kind: "primitive";
|
|
27
27
|
derived: false;
|
|
28
28
|
} ? F[K] : F[K] extends {
|
|
@@ -32,5 +32,4 @@ type SettableFields<F> = { [K in keyof F]: F[K] extends {
|
|
|
32
32
|
derived: false;
|
|
33
33
|
} ? F[K] : never; };
|
|
34
34
|
//#endregion
|
|
35
|
-
export { EntityField, EntityFields, SettableFields };
|
|
36
35
|
//# sourceMappingURL=EntityFields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFields.d.mts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"EntityFields.d.mts","names":[],"sources":["../src/EntityFields.ts"],"mappings":";;YACY,aAAa,QACtB,WAAW,IAAI;YAGN;EACN;EAAmB;EAAe;EAAiB;EAA6B;;EAChF;EAAc;EAAe;;EAC7B;EAAa;EAAe;EAA2B;;EACvD;EAAc;EAAe;;;YAGvB,eAAe,QACxB,WAAW,IAAI,EAAE;EAAa;EAAmB;IAC9C,EAAE,KACF,EAAE;EAAa;IACb,EAAE,KACF,EAAE;EAAa;EAAa;IAC1B,EAAE"}
|
package/build/EntityManager.cjs
CHANGED
|
@@ -4,15 +4,9 @@ const require_batchloaders_BatchLoader = require("./batchloaders/BatchLoader.cjs
|
|
|
4
4
|
require("./relations/Collection.cjs");
|
|
5
5
|
const require_relations_CustomCollection = require("./relations/CustomCollection.cjs");
|
|
6
6
|
const require_relations_CustomReference = require("./relations/CustomReference.cjs");
|
|
7
|
-
const require_normalizeHints = require("./normalizeHints.cjs");
|
|
8
|
-
require("./batchloaders/recursiveChildrenBatchLoader.cjs");
|
|
9
|
-
require("./batchloaders/recursiveM2mBatchLoader.cjs");
|
|
10
|
-
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
7
|
const require_loading_loadHints = require("./loading/loadHints.cjs");
|
|
15
8
|
const require_relations_hasAsyncMethod = require("./relations/hasAsyncMethod.cjs");
|
|
9
|
+
const require_relations_RecursiveCycleError = require("./relations/RecursiveCycleError.cjs");
|
|
16
10
|
const require_relations_AsyncProperty = require("./relations/AsyncProperty.cjs");
|
|
17
11
|
const require_fields = require("./fields.cjs");
|
|
18
12
|
const require_keys = require("./keys.cjs");
|
|
@@ -28,13 +22,19 @@ require("./batchloaders/oneToOneBatchLoader.cjs");
|
|
|
28
22
|
const require_relations_ReactiveReference = require("./relations/ReactiveReference.cjs");
|
|
29
23
|
const require_relations_OneToOneReference = require("./relations/OneToOneReference.cjs");
|
|
30
24
|
const require_relations_PolymorphicReference = require("./relations/PolymorphicReference.cjs");
|
|
25
|
+
require("./batchloaders/recursiveChildrenBatchLoader.cjs");
|
|
26
|
+
require("./batchloaders/recursiveM2mBatchLoader.cjs");
|
|
27
|
+
require("./batchloaders/recursiveParentsBatchLoader.cjs");
|
|
28
|
+
require("./relations/RecursiveCollection.cjs");
|
|
31
29
|
require("./relations/index.cjs");
|
|
32
30
|
const require_utils = require("./utils.cjs");
|
|
33
31
|
const require_newEntity = require("./newEntity.cjs");
|
|
32
|
+
const require_normalizeHints = require("./normalizeHints.cjs");
|
|
33
|
+
const require_reactivity_reactiveHints = require("./reactivity/reactiveHints.cjs");
|
|
34
34
|
require("./typeMap.cjs");
|
|
35
35
|
const require_rules = require("./rules.cjs");
|
|
36
|
-
const require_configure = require("./configure.cjs");
|
|
37
36
|
const require_config = require("./config.cjs");
|
|
37
|
+
const require_configure = require("./configure.cjs");
|
|
38
38
|
const require_EntityMetadata = require("./EntityMetadata.cjs");
|
|
39
39
|
const require_trusted = require("./trusted.cjs");
|
|
40
40
|
const require_defaults = require("./defaults.cjs");
|
|
@@ -109,6 +109,8 @@ var EntityManager = class EntityManager {
|
|
|
109
109
|
#entitiesByTag = /* @__PURE__ */ new Map();
|
|
110
110
|
#indexManager = new require_IndexManager.IndexManager();
|
|
111
111
|
#isValidating = false;
|
|
112
|
+
/** The error that failed a previous `em.flush`, after which this EntityManager can't flush again. */
|
|
113
|
+
#flushError = void 0;
|
|
112
114
|
#findRestricted = false;
|
|
113
115
|
#pendingPercolate = /* @__PURE__ */ new Map();
|
|
114
116
|
#preloadedRelations = /* @__PURE__ */ new Map();
|
|
@@ -135,6 +137,7 @@ var EntityManager = class EntityManager {
|
|
|
135
137
|
beforeCommit: [],
|
|
136
138
|
afterCommit: []
|
|
137
139
|
};
|
|
140
|
+
#forceTransaction = false;
|
|
138
141
|
#preloader;
|
|
139
142
|
#fieldLogger = require_logging_FieldLogger.noopFieldLogger;
|
|
140
143
|
#isLoadedCache = new require_loading_IsLoadedCache.IsLoadedCache();
|
|
@@ -157,6 +160,7 @@ var EntityManager = class EntityManager {
|
|
|
157
160
|
beforeCommit: [...opts.em.#hooks.beforeCommit],
|
|
158
161
|
afterCommit: [...opts.em.#hooks.afterCommit]
|
|
159
162
|
};
|
|
163
|
+
this.#forceTransaction = opts.em.#forceTransaction;
|
|
160
164
|
opts.em.__api.pluginManager.cloneTo(pluginManager);
|
|
161
165
|
}
|
|
162
166
|
const em = this;
|
|
@@ -300,7 +304,7 @@ var EntityManager = class EntityManager {
|
|
|
300
304
|
this.#assertFindAllowed("query");
|
|
301
305
|
const em = this;
|
|
302
306
|
return (async function query() {
|
|
303
|
-
const plan = require_queries_sql_query.
|
|
307
|
+
const plan = require_queries_sql_query.parseRootQuery(q);
|
|
304
308
|
if (options?.populate && plan.output.kind !== "entity") require_utils.fail("em.query populate requires an entity selection");
|
|
305
309
|
const { rows } = await em.driver.executeQuery(em, plan.sql, plan.bindings);
|
|
306
310
|
const result = plan.decodeRows(em, rows);
|
|
@@ -519,18 +523,22 @@ var EntityManager = class EntityManager {
|
|
|
519
523
|
return require_upsert.upsert(this, type, input);
|
|
520
524
|
}
|
|
521
525
|
async clone(entityOrArray, opts) {
|
|
522
|
-
const { deep = {}, skipIf, skip = {}, postClone } = opts ?? {};
|
|
526
|
+
const { deep = {}, skipIf, skip = {}, overrides, postClone } = opts ?? {};
|
|
523
527
|
const todo = /* @__PURE__ */ new Set();
|
|
524
528
|
const skipMap = /* @__PURE__ */ new WeakMap();
|
|
525
529
|
await crawl(todo, skipMap, Array.isArray(entityOrArray) ? entityOrArray : [entityOrArray], deep, {
|
|
526
|
-
skipIf,
|
|
530
|
+
skipIf: (entity) => invokeCloneCallback(skipIf, entity) ?? false,
|
|
527
531
|
skip
|
|
528
532
|
});
|
|
529
533
|
const deferredRelations = [];
|
|
534
|
+
const overrideMap = /* @__PURE__ */ new WeakMap();
|
|
530
535
|
const clones = [...todo].map((entity) => {
|
|
531
536
|
const skip = skipMap.get(entity) ?? [];
|
|
537
|
+
const override = invokeCloneCallback(overrides, entity) ?? {};
|
|
538
|
+
overrideMap.set(entity, override);
|
|
532
539
|
const meta = require_EntityMetadata.getMetadata(entity);
|
|
533
540
|
const copy = Object.fromEntries(Object.values(meta.allFields).map((f) => {
|
|
541
|
+
if (Object.hasOwn(override, f.fieldName)) return [f.fieldName, override[f.fieldName]];
|
|
534
542
|
if (skip.includes(f.fieldName)) return void 0;
|
|
535
543
|
switch (f.kind) {
|
|
536
544
|
case "primitive": if (!f.derived && !f.protected) return [f.fieldName, require_fields.getField(entity, f.fieldName)];
|
|
@@ -560,11 +568,15 @@ var EntityManager = class EntityManager {
|
|
|
560
568
|
default: require_utils.assertNever(f);
|
|
561
569
|
}
|
|
562
570
|
}).filter(isDefined));
|
|
563
|
-
return [entity, this.create(require_index.asConcreteCstr(meta.cstr),
|
|
571
|
+
return [entity, this.create(require_index.asConcreteCstr(meta.cstr), {
|
|
572
|
+
...copy,
|
|
573
|
+
...override
|
|
574
|
+
})];
|
|
564
575
|
});
|
|
565
576
|
const entityToClone = new Map(clones);
|
|
566
|
-
clones.forEach(([, clone]) => {
|
|
577
|
+
clones.forEach(([original, clone]) => {
|
|
567
578
|
require_index.getRelationEntries(clone).forEach(([fieldName, value]) => {
|
|
579
|
+
if (Object.hasOwn(overrideMap.get(original), fieldName)) return;
|
|
568
580
|
if (value instanceof require_relations_ManyToOneReference.ManyToOneReferenceImpl || value instanceof require_relations_PolymorphicReference.PolymorphicReferenceImpl || value instanceof require_relations_ReactiveReference.ReactiveReferenceImpl) {
|
|
569
581
|
const existingIdOrEntity = require_fields.getField(clone, fieldName);
|
|
570
582
|
const existing = require_Entity.isEntity(existingIdOrEntity) ? existingIdOrEntity : this.getEntity(existingIdOrEntity);
|
|
@@ -575,7 +587,7 @@ var EntityManager = class EntityManager {
|
|
|
575
587
|
deferredRelations.forEach(([source, fieldName, target]) => {
|
|
576
588
|
entityToClone.get(source)[fieldName].set(entityToClone.get(target));
|
|
577
589
|
});
|
|
578
|
-
if (postClone) await Promise.all(clones.map((
|
|
590
|
+
if (postClone) await Promise.all(clones.map((pair) => invokeCloneCallback(postClone, ...pair)));
|
|
579
591
|
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
592
|
}
|
|
581
593
|
/**
|
|
@@ -866,6 +878,7 @@ var EntityManager = class EntityManager {
|
|
|
866
878
|
}
|
|
867
879
|
async #flush(flushOptions = {}) {
|
|
868
880
|
if (this.mode === "read-only") throw new ReadOnlyError();
|
|
881
|
+
if (this.#flushError !== void 0) throw new FailedFlushError(this.#flushError);
|
|
869
882
|
const { skipValidation = false } = flushOptions;
|
|
870
883
|
this.#fl.startLock();
|
|
871
884
|
const allFlushedEntities = /* @__PURE__ */ new Set();
|
|
@@ -990,7 +1003,7 @@ var EntityManager = class EntityManager {
|
|
|
990
1003
|
await runValidation(entityTodos, joinRowTodos, !skipValidation);
|
|
991
1004
|
this.#rm.throwIfAnySuppressedTypeErrors();
|
|
992
1005
|
if (suppressedDefaultTypeErrors.length > 0) throw suppressedDefaultTypeErrors[0];
|
|
993
|
-
if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0) {
|
|
1006
|
+
if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0 || this.#rm.hasPendingCommitTransitions() || this.#forceTransaction) {
|
|
994
1007
|
await this.driver.transaction(this, async () => {
|
|
995
1008
|
do {
|
|
996
1009
|
if (Object.keys(entityTodos).length > 0 || Object.keys(joinRowTodos).length > 0) {
|
|
@@ -1021,6 +1034,7 @@ var EntityManager = class EntityManager {
|
|
|
1021
1034
|
await runCommitValidation(commitRuleTodos, commitRuleJoinRowTodos);
|
|
1022
1035
|
}
|
|
1023
1036
|
await beforeCommit(this.ctx, allFlushedEntities);
|
|
1037
|
+
await this.#rm.runCommitTransitions();
|
|
1024
1038
|
if (this.mode === "in-memory-writes") throw new InMemoryRollbackError();
|
|
1025
1039
|
});
|
|
1026
1040
|
await afterCommit(this.ctx, allFlushedEntities);
|
|
@@ -1040,12 +1054,13 @@ var EntityManager = class EntityManager {
|
|
|
1040
1054
|
this.#dataloaders = {};
|
|
1041
1055
|
this.#batchLoaders = {};
|
|
1042
1056
|
this.#preloadedRelations = /* @__PURE__ */ new Map();
|
|
1043
|
-
this.#rm.clear();
|
|
1044
1057
|
}
|
|
1045
1058
|
for (const e of createdThenDeleted) require_BaseEntity.getInstanceData(e).fixupCreatedThenDeleted();
|
|
1046
1059
|
this.#merging?.clear();
|
|
1060
|
+
this.#rm.clear();
|
|
1047
1061
|
return [...allFlushedEntities].sort((a, b) => require_BaseEntity.getInstanceData(a).entityIndex - require_BaseEntity.getInstanceData(b).entityIndex);
|
|
1048
1062
|
} catch (e) {
|
|
1063
|
+
if (!(e instanceof InMemoryRollbackError)) this.#flushError = e;
|
|
1049
1064
|
if (e instanceof require_relations_RecursiveCycleError.RecursiveCycleError) {
|
|
1050
1065
|
const entity = e.entities[0];
|
|
1051
1066
|
for (const meta of require_EntityMetadata.getBaseAndSelfMetas(require_EntityMetadata.getMetadata(entity))) {
|
|
@@ -1237,17 +1252,25 @@ var EntityManager = class EntityManager {
|
|
|
1237
1252
|
}));
|
|
1238
1253
|
await this.#rm.recalcPendingReactables("reactables");
|
|
1239
1254
|
}
|
|
1240
|
-
|
|
1255
|
+
/** Registers a hook to run before the transaction begins. */
|
|
1256
|
+
beforeBegin(fn, opts = {}) {
|
|
1241
1257
|
this.#hooks.beforeBegin.push(fn);
|
|
1258
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1242
1259
|
}
|
|
1243
|
-
|
|
1260
|
+
/** Registers a hook to run after the transaction begins. */
|
|
1261
|
+
afterBegin(fn, opts = {}) {
|
|
1244
1262
|
this.#hooks.afterBegin.push(fn);
|
|
1263
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1245
1264
|
}
|
|
1246
|
-
|
|
1265
|
+
/** Registers a hook to run before the transaction commits. */
|
|
1266
|
+
beforeCommit(fn, opts = {}) {
|
|
1247
1267
|
this.#hooks.beforeCommit.push(fn);
|
|
1268
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1248
1269
|
}
|
|
1249
|
-
|
|
1270
|
+
/** Registers a hook to run after the transaction commits. */
|
|
1271
|
+
afterCommit(fn, opts = {}) {
|
|
1250
1272
|
this.#hooks.afterCommit.push(fn);
|
|
1273
|
+
this.#forceTransaction ||= opts.forceTransaction ?? false;
|
|
1251
1274
|
}
|
|
1252
1275
|
/**
|
|
1253
1276
|
* Returns an EntityManager-scoped (i.e. request scoped) data loader.
|
|
@@ -1326,6 +1349,7 @@ var EntityManager = class EntityManager {
|
|
|
1326
1349
|
} else throw new Error("Unsupported override for setFieldLogging");
|
|
1327
1350
|
}
|
|
1328
1351
|
async [Symbol.asyncDispose]() {
|
|
1352
|
+
if (this.#flushError !== void 0) return;
|
|
1329
1353
|
await this.flush();
|
|
1330
1354
|
}
|
|
1331
1355
|
/** Returns entities matching the filter using indexed search when available. */
|
|
@@ -1751,6 +1775,18 @@ function recalcSynchronousDerivedFields(todos) {
|
|
|
1751
1775
|
}
|
|
1752
1776
|
}
|
|
1753
1777
|
}
|
|
1778
|
+
/** Invokes only the most specific handler, falling back to a base type when no concrete-type handler exists. */
|
|
1779
|
+
function invokeCloneCallback(callback, ...args) {
|
|
1780
|
+
if (typeof callback === "function") return callback(...args);
|
|
1781
|
+
if (!callback) return void 0;
|
|
1782
|
+
const handlers = callback;
|
|
1783
|
+
let meta = require_EntityMetadata.getMetadata(args[0]);
|
|
1784
|
+
while (meta) {
|
|
1785
|
+
const handler = Object.hasOwn(handlers, meta.type) ? handlers[meta.type] : void 0;
|
|
1786
|
+
if (handler) return handler(...args);
|
|
1787
|
+
meta = meta.baseType ? require_configure.getMetadataForType(meta.baseType) : void 0;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1754
1790
|
/** Recursively crawls through `entity`, with the given populate `deep` hint, and adds anything found to `found`. */
|
|
1755
1791
|
async function crawl(found, skipMap, entities, deep, opts = {}) {
|
|
1756
1792
|
const { skipIf = () => false } = opts ?? {};
|
|
@@ -1861,6 +1897,12 @@ function hasPaginationSettings(options) {
|
|
|
1861
1897
|
}
|
|
1862
1898
|
/** An error we throw to get knex to `ROLLBACK`, but then catch. */
|
|
1863
1899
|
var InMemoryRollbackError = class extends Error {};
|
|
1900
|
+
/** An error thrown by `em.flush` after a previous `em.flush` on the same EntityManager failed. */
|
|
1901
|
+
var FailedFlushError = class extends Error {
|
|
1902
|
+
constructor(cause) {
|
|
1903
|
+
super("EntityManager cannot flush after a previous flush failed, use a new EntityManager", { cause });
|
|
1904
|
+
}
|
|
1905
|
+
};
|
|
1864
1906
|
/** An error thrown when `em.mode === "read-only"` but entities are mutated/flushed. */
|
|
1865
1907
|
var ReadOnlyError = class extends Error {
|
|
1866
1908
|
constructor() {
|
|
@@ -1912,6 +1954,7 @@ function createRowFromEntityData(e, opts = {}) {
|
|
|
1912
1954
|
}
|
|
1913
1955
|
//#endregion
|
|
1914
1956
|
exports.EntityManager = EntityManager;
|
|
1957
|
+
exports.FailedFlushError = FailedFlushError;
|
|
1915
1958
|
exports.NotFoundError = NotFoundError;
|
|
1916
1959
|
exports.ReadOnlyError = ReadOnlyError;
|
|
1917
1960
|
exports.TooManyError = TooManyError;
|
|
@@ -1923,6 +1966,7 @@ exports.driverBeforeBegin = driverBeforeBegin;
|
|
|
1923
1966
|
exports.driverBeforeCommit = driverBeforeCommit;
|
|
1924
1967
|
exports.getDefaultEntityLimit = getDefaultEntityLimit;
|
|
1925
1968
|
exports.getEmInternalApi = getEmInternalApi;
|
|
1969
|
+
exports.invokeRule = invokeRule;
|
|
1926
1970
|
exports.isDefined = isDefined;
|
|
1927
1971
|
exports.isId = isId;
|
|
1928
1972
|
exports.isKey = isKey;
|