@contember/binding 2.0.0-alpha.15 → 2.0.0-alpha.17
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/dist/development/index.cjs +13 -116
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +3 -106
- package/dist/development/index.js.map +1 -1
- package/dist/production/index.cjs +13 -116
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +3 -106
- package/dist/production/index.js.map +1 -1
- package/dist/types/index.d.ts +3 -11
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -10
- package/src/index.ts +3 -14
- package/src/tsconfig.json +3 -1
- package/dist/development/src/BindingError.cjs +0 -10
- package/dist/development/src/BindingError.cjs.map +0 -1
- package/dist/development/src/BindingError.js +0 -10
- package/dist/development/src/BindingError.js.map +0 -1
- package/dist/development/src/accessorTree/NormalizedPersistedData.cjs +0 -10
- package/dist/development/src/accessorTree/NormalizedPersistedData.cjs.map +0 -1
- package/dist/development/src/accessorTree/NormalizedPersistedData.js +0 -10
- package/dist/development/src/accessorTree/NormalizedPersistedData.js.map +0 -1
- package/dist/development/src/accessorTree/RuntimeId.cjs +0 -61
- package/dist/development/src/accessorTree/RuntimeId.cjs.map +0 -1
- package/dist/development/src/accessorTree/RuntimeId.js +0 -61
- package/dist/development/src/accessorTree/RuntimeId.js.map +0 -1
- package/dist/development/src/accessors/EntityAccessor.cjs +0 -179
- package/dist/development/src/accessors/EntityAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/EntityAccessor.js +0 -179
- package/dist/development/src/accessors/EntityAccessor.js.map +0 -1
- package/dist/development/src/accessors/EntityListAccessor.cjs +0 -108
- package/dist/development/src/accessors/EntityListAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/EntityListAccessor.js +0 -108
- package/dist/development/src/accessors/EntityListAccessor.js.map +0 -1
- package/dist/development/src/accessors/ErrorAccessor.cjs +0 -16
- package/dist/development/src/accessors/ErrorAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/ErrorAccessor.js +0 -16
- package/dist/development/src/accessors/ErrorAccessor.js.map +0 -1
- package/dist/development/src/accessors/FieldAccessor.cjs +0 -62
- package/dist/development/src/accessors/FieldAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/FieldAccessor.js +0 -62
- package/dist/development/src/accessors/FieldAccessor.js.map +0 -1
- package/dist/development/src/accessors/TreeRootAccessor.cjs +0 -14
- package/dist/development/src/accessors/TreeRootAccessor.cjs.map +0 -1
- package/dist/development/src/accessors/TreeRootAccessor.js +0 -14
- package/dist/development/src/accessors/TreeRootAccessor.js.map +0 -1
- package/dist/development/src/bindingTypes.cjs +0 -9
- package/dist/development/src/bindingTypes.cjs.map +0 -1
- package/dist/development/src/bindingTypes.js +0 -9
- package/dist/development/src/bindingTypes.js.map +0 -1
- package/dist/development/src/core/AccessorErrorManager.cjs +0 -204
- package/dist/development/src/core/AccessorErrorManager.cjs.map +0 -1
- package/dist/development/src/core/AccessorErrorManager.js +0 -204
- package/dist/development/src/core/AccessorErrorManager.js.map +0 -1
- package/dist/development/src/core/Config.cjs +0 -29
- package/dist/development/src/core/Config.cjs.map +0 -1
- package/dist/development/src/core/Config.js +0 -29
- package/dist/development/src/core/Config.js.map +0 -1
- package/dist/development/src/core/DataBinding.cjs +0 -348
- package/dist/development/src/core/DataBinding.cjs.map +0 -1
- package/dist/development/src/core/DataBinding.js +0 -348
- package/dist/development/src/core/DataBinding.js.map +0 -1
- package/dist/development/src/core/DirtinessTracker.cjs +0 -26
- package/dist/development/src/core/DirtinessTracker.cjs.map +0 -1
- package/dist/development/src/core/DirtinessTracker.js +0 -26
- package/dist/development/src/core/DirtinessTracker.js.map +0 -1
- package/dist/development/src/core/ErrorsPreprocessor.cjs +0 -180
- package/dist/development/src/core/ErrorsPreprocessor.cjs.map +0 -1
- package/dist/development/src/core/ErrorsPreprocessor.js +0 -180
- package/dist/development/src/core/ErrorsPreprocessor.js.map +0 -1
- package/dist/development/src/core/EventManager.cjs +0 -434
- package/dist/development/src/core/EventManager.cjs.map +0 -1
- package/dist/development/src/core/EventManager.js +0 -434
- package/dist/development/src/core/EventManager.js.map +0 -1
- package/dist/development/src/core/MarkerComparator.cjs +0 -79
- package/dist/development/src/core/MarkerComparator.cjs.map +0 -1
- package/dist/development/src/core/MarkerComparator.js +0 -79
- package/dist/development/src/core/MarkerComparator.js.map +0 -1
- package/dist/development/src/core/MarkerMerger.cjs +0 -256
- package/dist/development/src/core/MarkerMerger.cjs.map +0 -1
- package/dist/development/src/core/MarkerMerger.js +0 -256
- package/dist/development/src/core/MarkerMerger.js.map +0 -1
- package/dist/development/src/core/MutationGenerator.cjs +0 -662
- package/dist/development/src/core/MutationGenerator.cjs.map +0 -1
- package/dist/development/src/core/MutationGenerator.js +0 -662
- package/dist/development/src/core/MutationGenerator.js.map +0 -1
- package/dist/development/src/core/QueryGenerator.cjs +0 -113
- package/dist/development/src/core/QueryGenerator.cjs.map +0 -1
- package/dist/development/src/core/QueryGenerator.js +0 -113
- package/dist/development/src/core/QueryGenerator.js.map +0 -1
- package/dist/development/src/core/RealmKeyGenerator.cjs +0 -42
- package/dist/development/src/core/RealmKeyGenerator.cjs.map +0 -1
- package/dist/development/src/core/RealmKeyGenerator.js +0 -42
- package/dist/development/src/core/RealmKeyGenerator.js.map +0 -1
- package/dist/development/src/core/RequestResponseNormalizer.cjs +0 -128
- package/dist/development/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/development/src/core/RequestResponseNormalizer.js +0 -128
- package/dist/development/src/core/RequestResponseNormalizer.js.map +0 -1
- package/dist/development/src/core/StateInitializer.cjs +0 -387
- package/dist/development/src/core/StateInitializer.cjs.map +0 -1
- package/dist/development/src/core/StateInitializer.js +0 -387
- package/dist/development/src/core/StateInitializer.js.map +0 -1
- package/dist/development/src/core/TreeAugmenter.cjs +0 -213
- package/dist/development/src/core/TreeAugmenter.cjs.map +0 -1
- package/dist/development/src/core/TreeAugmenter.js +0 -213
- package/dist/development/src/core/TreeAugmenter.js.map +0 -1
- package/dist/development/src/core/TreeFilterGenerator.cjs +0 -82
- package/dist/development/src/core/TreeFilterGenerator.cjs.map +0 -1
- package/dist/development/src/core/TreeFilterGenerator.js +0 -82
- package/dist/development/src/core/TreeFilterGenerator.js.map +0 -1
- package/dist/development/src/core/TreeParameterMerger.cjs +0 -304
- package/dist/development/src/core/TreeParameterMerger.cjs.map +0 -1
- package/dist/development/src/core/TreeParameterMerger.js +0 -304
- package/dist/development/src/core/TreeParameterMerger.js.map +0 -1
- package/dist/development/src/core/TreeStore.cjs +0 -176
- package/dist/development/src/core/TreeStore.cjs.map +0 -1
- package/dist/development/src/core/TreeStore.js +0 -176
- package/dist/development/src/core/TreeStore.js.map +0 -1
- package/dist/development/src/core/VariableInputTransformer.cjs +0 -24
- package/dist/development/src/core/VariableInputTransformer.cjs.map +0 -1
- package/dist/development/src/core/VariableInputTransformer.js +0 -24
- package/dist/development/src/core/VariableInputTransformer.js.map +0 -1
- package/dist/development/src/core/exceptions/ErrorLocator.cjs +0 -59
- package/dist/development/src/core/exceptions/ErrorLocator.cjs.map +0 -1
- package/dist/development/src/core/exceptions/ErrorLocator.js +0 -59
- package/dist/development/src/core/exceptions/ErrorLocator.js.map +0 -1
- package/dist/development/src/core/exceptions/LocalizedBindingError.cjs +0 -14
- package/dist/development/src/core/exceptions/LocalizedBindingError.cjs.map +0 -1
- package/dist/development/src/core/exceptions/LocalizedBindingError.js +0 -14
- package/dist/development/src/core/exceptions/LocalizedBindingError.js.map +0 -1
- package/dist/development/src/core/exceptions/MarkerSugarer.cjs +0 -56
- package/dist/development/src/core/exceptions/MarkerSugarer.cjs.map +0 -1
- package/dist/development/src/core/exceptions/MarkerSugarer.js +0 -56
- package/dist/development/src/core/exceptions/MarkerSugarer.js.map +0 -1
- package/dist/development/src/core/exceptions/TreeParameterSugarer.cjs +0 -33
- package/dist/development/src/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
- package/dist/development/src/core/exceptions/TreeParameterSugarer.js +0 -33
- package/dist/development/src/core/exceptions/TreeParameterSugarer.js.map +0 -1
- package/dist/development/src/core/factories/createBatchUpdatesOptions.cjs +0 -20
- package/dist/development/src/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
- package/dist/development/src/core/factories/createBatchUpdatesOptions.js +0 -20
- package/dist/development/src/core/factories/createBatchUpdatesOptions.js.map +0 -1
- package/dist/development/src/core/operations/EntityOperations.cjs +0 -232
- package/dist/development/src/core/operations/EntityOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/EntityOperations.js +0 -232
- package/dist/development/src/core/operations/EntityOperations.js.map +0 -1
- package/dist/development/src/core/operations/FieldOperations.cjs +0 -96
- package/dist/development/src/core/operations/FieldOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/FieldOperations.js +0 -96
- package/dist/development/src/core/operations/FieldOperations.js.map +0 -1
- package/dist/development/src/core/operations/ListOperations.cjs +0 -159
- package/dist/development/src/core/operations/ListOperations.cjs.map +0 -1
- package/dist/development/src/core/operations/ListOperations.js +0 -159
- package/dist/development/src/core/operations/ListOperations.js.map +0 -1
- package/dist/development/src/core/operations/OperationsHelpers.cjs +0 -85
- package/dist/development/src/core/operations/OperationsHelpers.cjs.map +0 -1
- package/dist/development/src/core/operations/OperationsHelpers.js +0 -85
- package/dist/development/src/core/operations/OperationsHelpers.js.map +0 -1
- package/dist/development/src/core/requestAliases/MutationAlias.cjs +0 -14
- package/dist/development/src/core/requestAliases/MutationAlias.cjs.map +0 -1
- package/dist/development/src/core/requestAliases/MutationAlias.js +0 -14
- package/dist/development/src/core/requestAliases/MutationAlias.js.map +0 -1
- package/dist/development/src/core/schema/Schema.cjs +0 -39
- package/dist/development/src/core/schema/Schema.cjs.map +0 -1
- package/dist/development/src/core/schema/Schema.js +0 -39
- package/dist/development/src/core/schema/Schema.js.map +0 -1
- package/dist/development/src/core/schema/SchemaLoader.cjs +0 -25
- package/dist/development/src/core/schema/SchemaLoader.cjs.map +0 -1
- package/dist/development/src/core/schema/SchemaLoader.js +0 -25
- package/dist/development/src/core/schema/SchemaLoader.js.map +0 -1
- package/dist/development/src/core/schema/SchemaPreprocessor.cjs +0 -38
- package/dist/development/src/core/schema/SchemaPreprocessor.cjs.map +0 -1
- package/dist/development/src/core/schema/SchemaPreprocessor.js +0 -38
- package/dist/development/src/core/schema/SchemaPreprocessor.js.map +0 -1
- package/dist/development/src/core/state/StateIterator.cjs +0 -100
- package/dist/development/src/core/state/StateIterator.cjs.map +0 -1
- package/dist/development/src/core/state/StateIterator.js +0 -100
- package/dist/development/src/core/state/StateIterator.js.map +0 -1
- package/dist/development/src/core/state/getEntityMarker.cjs +0 -5
- package/dist/development/src/core/state/getEntityMarker.cjs.map +0 -1
- package/dist/development/src/core/state/getEntityMarker.js +0 -5
- package/dist/development/src/core/state/getEntityMarker.js.map +0 -1
- package/dist/development/src/core/utils/createQueryBuilder.cjs +0 -32
- package/dist/development/src/core/utils/createQueryBuilder.cjs.map +0 -1
- package/dist/development/src/core/utils/createQueryBuilder.js +0 -32
- package/dist/development/src/core/utils/createQueryBuilder.js.map +0 -1
- package/dist/development/src/core/utils/getCombinedSignal.cjs +0 -33
- package/dist/development/src/core/utils/getCombinedSignal.cjs.map +0 -1
- package/dist/development/src/core/utils/getCombinedSignal.js +0 -33
- package/dist/development/src/core/utils/getCombinedSignal.js.map +0 -1
- package/dist/development/src/dao/Environment.cjs +0 -213
- package/dist/development/src/dao/Environment.cjs.map +0 -1
- package/dist/development/src/dao/Environment.js +0 -213
- package/dist/development/src/dao/Environment.js.map +0 -1
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.cjs +0 -89
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.cjs.map +0 -1
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.js +0 -89
- package/dist/development/src/dao/TreeNodeEnvironmentFactory.js.map +0 -1
- package/dist/development/src/dao/VariableFieldValue.cjs +0 -9
- package/dist/development/src/dao/VariableFieldValue.cjs.map +0 -1
- package/dist/development/src/dao/VariableFieldValue.js +0 -9
- package/dist/development/src/dao/VariableFieldValue.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.cjs +0 -14
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.js +0 -14
- package/dist/development/src/fieldHelpers/helpers/FieldHelper.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
- package/dist/development/src/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
- package/dist/development/src/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
- package/dist/development/src/markers/EntityFieldMarkersContainer.cjs +0 -41
- package/dist/development/src/markers/EntityFieldMarkersContainer.cjs.map +0 -1
- package/dist/development/src/markers/EntityFieldMarkersContainer.js +0 -41
- package/dist/development/src/markers/EntityFieldMarkersContainer.js.map +0 -1
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.cjs +0 -11
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.cjs.map +0 -1
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.js +0 -11
- package/dist/development/src/markers/EntityFieldsWithHoistablesMarker.js.map +0 -1
- package/dist/development/src/markers/EntityListSubTreeMarker.cjs +0 -20
- package/dist/development/src/markers/EntityListSubTreeMarker.cjs.map +0 -1
- package/dist/development/src/markers/EntityListSubTreeMarker.js +0 -20
- package/dist/development/src/markers/EntityListSubTreeMarker.js.map +0 -1
- package/dist/development/src/markers/EntitySubTreeMarker.cjs +0 -20
- package/dist/development/src/markers/EntitySubTreeMarker.cjs.map +0 -1
- package/dist/development/src/markers/EntitySubTreeMarker.js +0 -20
- package/dist/development/src/markers/EntitySubTreeMarker.js.map +0 -1
- package/dist/development/src/markers/FieldMarker.cjs +0 -17
- package/dist/development/src/markers/FieldMarker.cjs.map +0 -1
- package/dist/development/src/markers/FieldMarker.js +0 -17
- package/dist/development/src/markers/FieldMarker.js.map +0 -1
- package/dist/development/src/markers/HasManyRelationMarker.cjs +0 -26
- package/dist/development/src/markers/HasManyRelationMarker.cjs.map +0 -1
- package/dist/development/src/markers/HasManyRelationMarker.js +0 -26
- package/dist/development/src/markers/HasManyRelationMarker.js.map +0 -1
- package/dist/development/src/markers/HasOneRelationMarker.cjs +0 -20
- package/dist/development/src/markers/HasOneRelationMarker.cjs.map +0 -1
- package/dist/development/src/markers/HasOneRelationMarker.js +0 -20
- package/dist/development/src/markers/HasOneRelationMarker.js.map +0 -1
- package/dist/development/src/markers/MarkerTreeRoot.cjs +0 -10
- package/dist/development/src/markers/MarkerTreeRoot.cjs.map +0 -1
- package/dist/development/src/markers/MarkerTreeRoot.js +0 -10
- package/dist/development/src/markers/MarkerTreeRoot.js.map +0 -1
- package/dist/development/src/markers/ParentEntityMarker.cjs +0 -10
- package/dist/development/src/markers/ParentEntityMarker.cjs.map +0 -1
- package/dist/development/src/markers/ParentEntityMarker.js +0 -10
- package/dist/development/src/markers/ParentEntityMarker.js.map +0 -1
- package/dist/development/src/markers/PlaceholderGenerator.cjs +0 -23
- package/dist/development/src/markers/PlaceholderGenerator.cjs.map +0 -1
- package/dist/development/src/markers/PlaceholderGenerator.js +0 -23
- package/dist/development/src/markers/PlaceholderGenerator.js.map +0 -1
- package/dist/development/src/markers/PlaceholderParametersGenerator.cjs +0 -62
- package/dist/development/src/markers/PlaceholderParametersGenerator.cjs.map +0 -1
- package/dist/development/src/markers/PlaceholderParametersGenerator.js +0 -62
- package/dist/development/src/markers/PlaceholderParametersGenerator.js.map +0 -1
- package/dist/development/src/queryLanguage/CacheStore.cjs +0 -44
- package/dist/development/src/queryLanguage/CacheStore.cjs.map +0 -1
- package/dist/development/src/queryLanguage/CacheStore.js +0 -44
- package/dist/development/src/queryLanguage/CacheStore.js.map +0 -1
- package/dist/development/src/queryLanguage/MarkerFactory.cjs +0 -200
- package/dist/development/src/queryLanguage/MarkerFactory.cjs.map +0 -1
- package/dist/development/src/queryLanguage/MarkerFactory.js +0 -200
- package/dist/development/src/queryLanguage/MarkerFactory.js.map +0 -1
- package/dist/development/src/queryLanguage/Parser.cjs +0 -724
- package/dist/development/src/queryLanguage/Parser.cjs.map +0 -1
- package/dist/development/src/queryLanguage/Parser.js +0 -724
- package/dist/development/src/queryLanguage/Parser.js.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguage.cjs +0 -543
- package/dist/development/src/queryLanguage/QueryLanguage.cjs.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguage.js +0 -543
- package/dist/development/src/queryLanguage/QueryLanguage.js.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguageError.cjs +0 -6
- package/dist/development/src/queryLanguage/QueryLanguageError.cjs.map +0 -1
- package/dist/development/src/queryLanguage/QueryLanguageError.js +0 -6
- package/dist/development/src/queryLanguage/QueryLanguageError.js.map +0 -1
- package/dist/development/src/queryLanguage/tokenList.cjs +0 -151
- package/dist/development/src/queryLanguage/tokenList.cjs.map +0 -1
- package/dist/development/src/queryLanguage/tokenList.js +0 -152
- package/dist/development/src/queryLanguage/tokenList.js.map +0 -1
- package/dist/development/src/structures/BijectiveIndexedMap.cjs +0 -117
- package/dist/development/src/structures/BijectiveIndexedMap.cjs.map +0 -1
- package/dist/development/src/structures/BijectiveIndexedMap.js +0 -117
- package/dist/development/src/structures/BijectiveIndexedMap.js.map +0 -1
- package/dist/development/src/structures/LRUCache.cjs +0 -32
- package/dist/development/src/structures/LRUCache.cjs.map +0 -1
- package/dist/development/src/structures/LRUCache.js +0 -32
- package/dist/development/src/structures/LRUCache.js.map +0 -1
- package/dist/development/src/structures/WeakIdCache.cjs +0 -30
- package/dist/development/src/structures/WeakIdCache.cjs.map +0 -1
- package/dist/development/src/structures/WeakIdCache.js +0 -30
- package/dist/development/src/structures/WeakIdCache.js.map +0 -1
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.cjs +0 -22
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +0 -1
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.js +0 -22
- package/dist/development/src/treeParameterHelpers/wrapFilterInHasOnes.js.map +0 -1
- package/dist/development/src/treeParameters/EntityCreationParameters.cjs +0 -8
- package/dist/development/src/treeParameters/EntityCreationParameters.cjs.map +0 -1
- package/dist/development/src/treeParameters/EntityCreationParameters.js +0 -8
- package/dist/development/src/treeParameters/EntityCreationParameters.js.map +0 -1
- package/dist/development/src/treeParameters/EntityListPreferences.cjs +0 -7
- package/dist/development/src/treeParameters/EntityListPreferences.cjs.map +0 -1
- package/dist/development/src/treeParameters/EntityListPreferences.js +0 -7
- package/dist/development/src/treeParameters/EntityListPreferences.js.map +0 -1
- package/dist/development/src/treeParameters/EventListenersStore.cjs +0 -70
- package/dist/development/src/treeParameters/EventListenersStore.cjs.map +0 -1
- package/dist/development/src/treeParameters/EventListenersStore.js +0 -70
- package/dist/development/src/treeParameters/EventListenersStore.js.map +0 -1
- package/dist/development/src/treeParameters/LeafField.cjs +0 -7
- package/dist/development/src/treeParameters/LeafField.cjs.map +0 -1
- package/dist/development/src/treeParameters/LeafField.js +0 -7
- package/dist/development/src/treeParameters/LeafField.js.map +0 -1
- package/dist/development/src/treeParameters/QualifiedEntityParameters.cjs +0 -7
- package/dist/development/src/treeParameters/QualifiedEntityParameters.cjs.map +0 -1
- package/dist/development/src/treeParameters/QualifiedEntityParameters.js +0 -7
- package/dist/development/src/treeParameters/QualifiedEntityParameters.js.map +0 -1
- package/dist/development/src/treeParameters/Relation.cjs +0 -7
- package/dist/development/src/treeParameters/Relation.cjs.map +0 -1
- package/dist/development/src/treeParameters/Relation.js +0 -7
- package/dist/development/src/treeParameters/Relation.js.map +0 -1
- package/dist/development/src/utils/Hashing.cjs +0 -22
- package/dist/development/src/utils/Hashing.cjs.map +0 -1
- package/dist/development/src/utils/Hashing.js +0 -22
- package/dist/development/src/utils/Hashing.js.map +0 -1
- package/dist/development/src/utils/TreeNodeUtils.cjs +0 -77
- package/dist/development/src/utils/TreeNodeUtils.cjs.map +0 -1
- package/dist/development/src/utils/TreeNodeUtils.js +0 -77
- package/dist/development/src/utils/TreeNodeUtils.js.map +0 -1
- package/dist/development/src/utils/assert.cjs +0 -10
- package/dist/development/src/utils/assert.cjs.map +0 -1
- package/dist/development/src/utils/assert.js +0 -10
- package/dist/development/src/utils/assert.js.map +0 -1
- package/dist/development/src/utils/assertNever.cjs +0 -10
- package/dist/development/src/utils/assertNever.cjs.map +0 -1
- package/dist/development/src/utils/assertNever.js +0 -10
- package/dist/development/src/utils/assertNever.js.map +0 -1
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.js +0 -7
- package/dist/development/src/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
- package/dist/development/src/utils/isEmptyObject.cjs +0 -12
- package/dist/development/src/utils/isEmptyObject.cjs.map +0 -1
- package/dist/development/src/utils/isEmptyObject.js +0 -12
- package/dist/development/src/utils/isEmptyObject.js.map +0 -1
- package/dist/development/src/utils/ucfirst.cjs +0 -5
- package/dist/development/src/utils/ucfirst.cjs.map +0 -1
- package/dist/development/src/utils/ucfirst.js +0 -5
- package/dist/development/src/utils/ucfirst.js.map +0 -1
- package/dist/production/src/BindingError.cjs +0 -10
- package/dist/production/src/BindingError.cjs.map +0 -1
- package/dist/production/src/BindingError.js +0 -10
- package/dist/production/src/BindingError.js.map +0 -1
- package/dist/production/src/accessorTree/NormalizedPersistedData.cjs +0 -10
- package/dist/production/src/accessorTree/NormalizedPersistedData.cjs.map +0 -1
- package/dist/production/src/accessorTree/NormalizedPersistedData.js +0 -10
- package/dist/production/src/accessorTree/NormalizedPersistedData.js.map +0 -1
- package/dist/production/src/accessorTree/RuntimeId.cjs +0 -61
- package/dist/production/src/accessorTree/RuntimeId.cjs.map +0 -1
- package/dist/production/src/accessorTree/RuntimeId.js +0 -61
- package/dist/production/src/accessorTree/RuntimeId.js.map +0 -1
- package/dist/production/src/accessors/EntityAccessor.cjs +0 -179
- package/dist/production/src/accessors/EntityAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/EntityAccessor.js +0 -179
- package/dist/production/src/accessors/EntityAccessor.js.map +0 -1
- package/dist/production/src/accessors/EntityListAccessor.cjs +0 -108
- package/dist/production/src/accessors/EntityListAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/EntityListAccessor.js +0 -108
- package/dist/production/src/accessors/EntityListAccessor.js.map +0 -1
- package/dist/production/src/accessors/ErrorAccessor.cjs +0 -16
- package/dist/production/src/accessors/ErrorAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/ErrorAccessor.js +0 -16
- package/dist/production/src/accessors/ErrorAccessor.js.map +0 -1
- package/dist/production/src/accessors/FieldAccessor.cjs +0 -62
- package/dist/production/src/accessors/FieldAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/FieldAccessor.js +0 -62
- package/dist/production/src/accessors/FieldAccessor.js.map +0 -1
- package/dist/production/src/accessors/TreeRootAccessor.cjs +0 -14
- package/dist/production/src/accessors/TreeRootAccessor.cjs.map +0 -1
- package/dist/production/src/accessors/TreeRootAccessor.js +0 -14
- package/dist/production/src/accessors/TreeRootAccessor.js.map +0 -1
- package/dist/production/src/bindingTypes.cjs +0 -9
- package/dist/production/src/bindingTypes.cjs.map +0 -1
- package/dist/production/src/bindingTypes.js +0 -9
- package/dist/production/src/bindingTypes.js.map +0 -1
- package/dist/production/src/core/AccessorErrorManager.cjs +0 -204
- package/dist/production/src/core/AccessorErrorManager.cjs.map +0 -1
- package/dist/production/src/core/AccessorErrorManager.js +0 -204
- package/dist/production/src/core/AccessorErrorManager.js.map +0 -1
- package/dist/production/src/core/Config.cjs +0 -29
- package/dist/production/src/core/Config.cjs.map +0 -1
- package/dist/production/src/core/Config.js +0 -29
- package/dist/production/src/core/Config.js.map +0 -1
- package/dist/production/src/core/DataBinding.cjs +0 -348
- package/dist/production/src/core/DataBinding.cjs.map +0 -1
- package/dist/production/src/core/DataBinding.js +0 -348
- package/dist/production/src/core/DataBinding.js.map +0 -1
- package/dist/production/src/core/DirtinessTracker.cjs +0 -26
- package/dist/production/src/core/DirtinessTracker.cjs.map +0 -1
- package/dist/production/src/core/DirtinessTracker.js +0 -26
- package/dist/production/src/core/DirtinessTracker.js.map +0 -1
- package/dist/production/src/core/ErrorsPreprocessor.cjs +0 -180
- package/dist/production/src/core/ErrorsPreprocessor.cjs.map +0 -1
- package/dist/production/src/core/ErrorsPreprocessor.js +0 -180
- package/dist/production/src/core/ErrorsPreprocessor.js.map +0 -1
- package/dist/production/src/core/EventManager.cjs +0 -408
- package/dist/production/src/core/EventManager.cjs.map +0 -1
- package/dist/production/src/core/EventManager.js +0 -408
- package/dist/production/src/core/EventManager.js.map +0 -1
- package/dist/production/src/core/MarkerComparator.cjs +0 -79
- package/dist/production/src/core/MarkerComparator.cjs.map +0 -1
- package/dist/production/src/core/MarkerComparator.js +0 -79
- package/dist/production/src/core/MarkerComparator.js.map +0 -1
- package/dist/production/src/core/MarkerMerger.cjs +0 -256
- package/dist/production/src/core/MarkerMerger.cjs.map +0 -1
- package/dist/production/src/core/MarkerMerger.js +0 -256
- package/dist/production/src/core/MarkerMerger.js.map +0 -1
- package/dist/production/src/core/MutationGenerator.cjs +0 -662
- package/dist/production/src/core/MutationGenerator.cjs.map +0 -1
- package/dist/production/src/core/MutationGenerator.js +0 -662
- package/dist/production/src/core/MutationGenerator.js.map +0 -1
- package/dist/production/src/core/QueryGenerator.cjs +0 -113
- package/dist/production/src/core/QueryGenerator.cjs.map +0 -1
- package/dist/production/src/core/QueryGenerator.js +0 -113
- package/dist/production/src/core/QueryGenerator.js.map +0 -1
- package/dist/production/src/core/RealmKeyGenerator.cjs +0 -42
- package/dist/production/src/core/RealmKeyGenerator.cjs.map +0 -1
- package/dist/production/src/core/RealmKeyGenerator.js +0 -42
- package/dist/production/src/core/RealmKeyGenerator.js.map +0 -1
- package/dist/production/src/core/RequestResponseNormalizer.cjs +0 -128
- package/dist/production/src/core/RequestResponseNormalizer.cjs.map +0 -1
- package/dist/production/src/core/RequestResponseNormalizer.js +0 -128
- package/dist/production/src/core/RequestResponseNormalizer.js.map +0 -1
- package/dist/production/src/core/StateInitializer.cjs +0 -387
- package/dist/production/src/core/StateInitializer.cjs.map +0 -1
- package/dist/production/src/core/StateInitializer.js +0 -387
- package/dist/production/src/core/StateInitializer.js.map +0 -1
- package/dist/production/src/core/TreeAugmenter.cjs +0 -213
- package/dist/production/src/core/TreeAugmenter.cjs.map +0 -1
- package/dist/production/src/core/TreeAugmenter.js +0 -213
- package/dist/production/src/core/TreeAugmenter.js.map +0 -1
- package/dist/production/src/core/TreeFilterGenerator.cjs +0 -82
- package/dist/production/src/core/TreeFilterGenerator.cjs.map +0 -1
- package/dist/production/src/core/TreeFilterGenerator.js +0 -82
- package/dist/production/src/core/TreeFilterGenerator.js.map +0 -1
- package/dist/production/src/core/TreeParameterMerger.cjs +0 -304
- package/dist/production/src/core/TreeParameterMerger.cjs.map +0 -1
- package/dist/production/src/core/TreeParameterMerger.js +0 -304
- package/dist/production/src/core/TreeParameterMerger.js.map +0 -1
- package/dist/production/src/core/TreeStore.cjs +0 -176
- package/dist/production/src/core/TreeStore.cjs.map +0 -1
- package/dist/production/src/core/TreeStore.js +0 -176
- package/dist/production/src/core/TreeStore.js.map +0 -1
- package/dist/production/src/core/VariableInputTransformer.cjs +0 -24
- package/dist/production/src/core/VariableInputTransformer.cjs.map +0 -1
- package/dist/production/src/core/VariableInputTransformer.js +0 -24
- package/dist/production/src/core/VariableInputTransformer.js.map +0 -1
- package/dist/production/src/core/exceptions/ErrorLocator.cjs +0 -59
- package/dist/production/src/core/exceptions/ErrorLocator.cjs.map +0 -1
- package/dist/production/src/core/exceptions/ErrorLocator.js +0 -59
- package/dist/production/src/core/exceptions/ErrorLocator.js.map +0 -1
- package/dist/production/src/core/exceptions/LocalizedBindingError.cjs +0 -14
- package/dist/production/src/core/exceptions/LocalizedBindingError.cjs.map +0 -1
- package/dist/production/src/core/exceptions/LocalizedBindingError.js +0 -14
- package/dist/production/src/core/exceptions/LocalizedBindingError.js.map +0 -1
- package/dist/production/src/core/exceptions/MarkerSugarer.cjs +0 -56
- package/dist/production/src/core/exceptions/MarkerSugarer.cjs.map +0 -1
- package/dist/production/src/core/exceptions/MarkerSugarer.js +0 -56
- package/dist/production/src/core/exceptions/MarkerSugarer.js.map +0 -1
- package/dist/production/src/core/exceptions/TreeParameterSugarer.cjs +0 -33
- package/dist/production/src/core/exceptions/TreeParameterSugarer.cjs.map +0 -1
- package/dist/production/src/core/exceptions/TreeParameterSugarer.js +0 -33
- package/dist/production/src/core/exceptions/TreeParameterSugarer.js.map +0 -1
- package/dist/production/src/core/factories/createBatchUpdatesOptions.cjs +0 -20
- package/dist/production/src/core/factories/createBatchUpdatesOptions.cjs.map +0 -1
- package/dist/production/src/core/factories/createBatchUpdatesOptions.js +0 -20
- package/dist/production/src/core/factories/createBatchUpdatesOptions.js.map +0 -1
- package/dist/production/src/core/operations/EntityOperations.cjs +0 -232
- package/dist/production/src/core/operations/EntityOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/EntityOperations.js +0 -232
- package/dist/production/src/core/operations/EntityOperations.js.map +0 -1
- package/dist/production/src/core/operations/FieldOperations.cjs +0 -77
- package/dist/production/src/core/operations/FieldOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/FieldOperations.js +0 -77
- package/dist/production/src/core/operations/FieldOperations.js.map +0 -1
- package/dist/production/src/core/operations/ListOperations.cjs +0 -159
- package/dist/production/src/core/operations/ListOperations.cjs.map +0 -1
- package/dist/production/src/core/operations/ListOperations.js +0 -159
- package/dist/production/src/core/operations/ListOperations.js.map +0 -1
- package/dist/production/src/core/operations/OperationsHelpers.cjs +0 -85
- package/dist/production/src/core/operations/OperationsHelpers.cjs.map +0 -1
- package/dist/production/src/core/operations/OperationsHelpers.js +0 -85
- package/dist/production/src/core/operations/OperationsHelpers.js.map +0 -1
- package/dist/production/src/core/requestAliases/MutationAlias.cjs +0 -14
- package/dist/production/src/core/requestAliases/MutationAlias.cjs.map +0 -1
- package/dist/production/src/core/requestAliases/MutationAlias.js +0 -14
- package/dist/production/src/core/requestAliases/MutationAlias.js.map +0 -1
- package/dist/production/src/core/schema/Schema.cjs +0 -39
- package/dist/production/src/core/schema/Schema.cjs.map +0 -1
- package/dist/production/src/core/schema/Schema.js +0 -39
- package/dist/production/src/core/schema/Schema.js.map +0 -1
- package/dist/production/src/core/schema/SchemaLoader.cjs +0 -25
- package/dist/production/src/core/schema/SchemaLoader.cjs.map +0 -1
- package/dist/production/src/core/schema/SchemaLoader.js +0 -25
- package/dist/production/src/core/schema/SchemaLoader.js.map +0 -1
- package/dist/production/src/core/schema/SchemaPreprocessor.cjs +0 -38
- package/dist/production/src/core/schema/SchemaPreprocessor.cjs.map +0 -1
- package/dist/production/src/core/schema/SchemaPreprocessor.js +0 -38
- package/dist/production/src/core/schema/SchemaPreprocessor.js.map +0 -1
- package/dist/production/src/core/state/StateIterator.cjs +0 -100
- package/dist/production/src/core/state/StateIterator.cjs.map +0 -1
- package/dist/production/src/core/state/StateIterator.js +0 -100
- package/dist/production/src/core/state/StateIterator.js.map +0 -1
- package/dist/production/src/core/state/getEntityMarker.cjs +0 -5
- package/dist/production/src/core/state/getEntityMarker.cjs.map +0 -1
- package/dist/production/src/core/state/getEntityMarker.js +0 -5
- package/dist/production/src/core/state/getEntityMarker.js.map +0 -1
- package/dist/production/src/core/utils/createQueryBuilder.cjs +0 -32
- package/dist/production/src/core/utils/createQueryBuilder.cjs.map +0 -1
- package/dist/production/src/core/utils/createQueryBuilder.js +0 -32
- package/dist/production/src/core/utils/createQueryBuilder.js.map +0 -1
- package/dist/production/src/core/utils/getCombinedSignal.cjs +0 -33
- package/dist/production/src/core/utils/getCombinedSignal.cjs.map +0 -1
- package/dist/production/src/core/utils/getCombinedSignal.js +0 -33
- package/dist/production/src/core/utils/getCombinedSignal.js.map +0 -1
- package/dist/production/src/dao/Environment.cjs +0 -213
- package/dist/production/src/dao/Environment.cjs.map +0 -1
- package/dist/production/src/dao/Environment.js +0 -213
- package/dist/production/src/dao/Environment.js.map +0 -1
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.cjs +0 -89
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.cjs.map +0 -1
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.js +0 -89
- package/dist/production/src/dao/TreeNodeEnvironmentFactory.js.map +0 -1
- package/dist/production/src/dao/VariableFieldValue.cjs +0 -9
- package/dist/production/src/dao/VariableFieldValue.cjs.map +0 -1
- package/dist/production/src/dao/VariableFieldValue.js +0 -9
- package/dist/production/src/dao/VariableFieldValue.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.cjs +0 -14
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.js +0 -14
- package/dist/production/src/fieldHelpers/helpers/FieldHelper.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.cjs +0 -18
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.js +0 -18
- package/dist/production/src/fieldHelpers/helpers/TemporalFieldHelper.js.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.cjs +0 -16
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.cjs.map +0 -1
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.js +0 -16
- package/dist/production/src/fieldHelpers/helpers/UuidFieldHelper.js.map +0 -1
- package/dist/production/src/markers/EntityFieldMarkersContainer.cjs +0 -41
- package/dist/production/src/markers/EntityFieldMarkersContainer.cjs.map +0 -1
- package/dist/production/src/markers/EntityFieldMarkersContainer.js +0 -41
- package/dist/production/src/markers/EntityFieldMarkersContainer.js.map +0 -1
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.cjs +0 -11
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.cjs.map +0 -1
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.js +0 -11
- package/dist/production/src/markers/EntityFieldsWithHoistablesMarker.js.map +0 -1
- package/dist/production/src/markers/EntityListSubTreeMarker.cjs +0 -20
- package/dist/production/src/markers/EntityListSubTreeMarker.cjs.map +0 -1
- package/dist/production/src/markers/EntityListSubTreeMarker.js +0 -20
- package/dist/production/src/markers/EntityListSubTreeMarker.js.map +0 -1
- package/dist/production/src/markers/EntitySubTreeMarker.cjs +0 -20
- package/dist/production/src/markers/EntitySubTreeMarker.cjs.map +0 -1
- package/dist/production/src/markers/EntitySubTreeMarker.js +0 -20
- package/dist/production/src/markers/EntitySubTreeMarker.js.map +0 -1
- package/dist/production/src/markers/FieldMarker.cjs +0 -17
- package/dist/production/src/markers/FieldMarker.cjs.map +0 -1
- package/dist/production/src/markers/FieldMarker.js +0 -17
- package/dist/production/src/markers/FieldMarker.js.map +0 -1
- package/dist/production/src/markers/HasManyRelationMarker.cjs +0 -20
- package/dist/production/src/markers/HasManyRelationMarker.cjs.map +0 -1
- package/dist/production/src/markers/HasManyRelationMarker.js +0 -20
- package/dist/production/src/markers/HasManyRelationMarker.js.map +0 -1
- package/dist/production/src/markers/HasOneRelationMarker.cjs +0 -20
- package/dist/production/src/markers/HasOneRelationMarker.cjs.map +0 -1
- package/dist/production/src/markers/HasOneRelationMarker.js +0 -20
- package/dist/production/src/markers/HasOneRelationMarker.js.map +0 -1
- package/dist/production/src/markers/MarkerTreeRoot.cjs +0 -10
- package/dist/production/src/markers/MarkerTreeRoot.cjs.map +0 -1
- package/dist/production/src/markers/MarkerTreeRoot.js +0 -10
- package/dist/production/src/markers/MarkerTreeRoot.js.map +0 -1
- package/dist/production/src/markers/ParentEntityMarker.cjs +0 -10
- package/dist/production/src/markers/ParentEntityMarker.cjs.map +0 -1
- package/dist/production/src/markers/ParentEntityMarker.js +0 -10
- package/dist/production/src/markers/ParentEntityMarker.js.map +0 -1
- package/dist/production/src/markers/PlaceholderGenerator.cjs +0 -23
- package/dist/production/src/markers/PlaceholderGenerator.cjs.map +0 -1
- package/dist/production/src/markers/PlaceholderGenerator.js +0 -23
- package/dist/production/src/markers/PlaceholderGenerator.js.map +0 -1
- package/dist/production/src/markers/PlaceholderParametersGenerator.cjs +0 -62
- package/dist/production/src/markers/PlaceholderParametersGenerator.cjs.map +0 -1
- package/dist/production/src/markers/PlaceholderParametersGenerator.js +0 -62
- package/dist/production/src/markers/PlaceholderParametersGenerator.js.map +0 -1
- package/dist/production/src/queryLanguage/CacheStore.cjs +0 -44
- package/dist/production/src/queryLanguage/CacheStore.cjs.map +0 -1
- package/dist/production/src/queryLanguage/CacheStore.js +0 -44
- package/dist/production/src/queryLanguage/CacheStore.js.map +0 -1
- package/dist/production/src/queryLanguage/MarkerFactory.cjs +0 -200
- package/dist/production/src/queryLanguage/MarkerFactory.cjs.map +0 -1
- package/dist/production/src/queryLanguage/MarkerFactory.js +0 -200
- package/dist/production/src/queryLanguage/MarkerFactory.js.map +0 -1
- package/dist/production/src/queryLanguage/Parser.cjs +0 -721
- package/dist/production/src/queryLanguage/Parser.cjs.map +0 -1
- package/dist/production/src/queryLanguage/Parser.js +0 -721
- package/dist/production/src/queryLanguage/Parser.js.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguage.cjs +0 -540
- package/dist/production/src/queryLanguage/QueryLanguage.cjs.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguage.js +0 -540
- package/dist/production/src/queryLanguage/QueryLanguage.js.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguageError.cjs +0 -6
- package/dist/production/src/queryLanguage/QueryLanguageError.cjs.map +0 -1
- package/dist/production/src/queryLanguage/QueryLanguageError.js +0 -6
- package/dist/production/src/queryLanguage/QueryLanguageError.js.map +0 -1
- package/dist/production/src/queryLanguage/tokenList.cjs +0 -151
- package/dist/production/src/queryLanguage/tokenList.cjs.map +0 -1
- package/dist/production/src/queryLanguage/tokenList.js +0 -152
- package/dist/production/src/queryLanguage/tokenList.js.map +0 -1
- package/dist/production/src/structures/BijectiveIndexedMap.cjs +0 -117
- package/dist/production/src/structures/BijectiveIndexedMap.cjs.map +0 -1
- package/dist/production/src/structures/BijectiveIndexedMap.js +0 -117
- package/dist/production/src/structures/BijectiveIndexedMap.js.map +0 -1
- package/dist/production/src/structures/LRUCache.cjs +0 -32
- package/dist/production/src/structures/LRUCache.cjs.map +0 -1
- package/dist/production/src/structures/LRUCache.js +0 -32
- package/dist/production/src/structures/LRUCache.js.map +0 -1
- package/dist/production/src/structures/WeakIdCache.cjs +0 -30
- package/dist/production/src/structures/WeakIdCache.cjs.map +0 -1
- package/dist/production/src/structures/WeakIdCache.js +0 -30
- package/dist/production/src/structures/WeakIdCache.js.map +0 -1
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.cjs +0 -22
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +0 -1
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.js +0 -22
- package/dist/production/src/treeParameterHelpers/wrapFilterInHasOnes.js.map +0 -1
- package/dist/production/src/treeParameters/EntityCreationParameters.cjs +0 -8
- package/dist/production/src/treeParameters/EntityCreationParameters.cjs.map +0 -1
- package/dist/production/src/treeParameters/EntityCreationParameters.js +0 -8
- package/dist/production/src/treeParameters/EntityCreationParameters.js.map +0 -1
- package/dist/production/src/treeParameters/EntityListPreferences.cjs +0 -7
- package/dist/production/src/treeParameters/EntityListPreferences.cjs.map +0 -1
- package/dist/production/src/treeParameters/EntityListPreferences.js +0 -7
- package/dist/production/src/treeParameters/EntityListPreferences.js.map +0 -1
- package/dist/production/src/treeParameters/EventListenersStore.cjs +0 -70
- package/dist/production/src/treeParameters/EventListenersStore.cjs.map +0 -1
- package/dist/production/src/treeParameters/EventListenersStore.js +0 -70
- package/dist/production/src/treeParameters/EventListenersStore.js.map +0 -1
- package/dist/production/src/treeParameters/LeafField.cjs +0 -7
- package/dist/production/src/treeParameters/LeafField.cjs.map +0 -1
- package/dist/production/src/treeParameters/LeafField.js +0 -7
- package/dist/production/src/treeParameters/LeafField.js.map +0 -1
- package/dist/production/src/treeParameters/QualifiedEntityParameters.cjs +0 -7
- package/dist/production/src/treeParameters/QualifiedEntityParameters.cjs.map +0 -1
- package/dist/production/src/treeParameters/QualifiedEntityParameters.js +0 -7
- package/dist/production/src/treeParameters/QualifiedEntityParameters.js.map +0 -1
- package/dist/production/src/treeParameters/Relation.cjs +0 -7
- package/dist/production/src/treeParameters/Relation.cjs.map +0 -1
- package/dist/production/src/treeParameters/Relation.js +0 -7
- package/dist/production/src/treeParameters/Relation.js.map +0 -1
- package/dist/production/src/utils/Hashing.cjs +0 -22
- package/dist/production/src/utils/Hashing.cjs.map +0 -1
- package/dist/production/src/utils/Hashing.js +0 -22
- package/dist/production/src/utils/Hashing.js.map +0 -1
- package/dist/production/src/utils/TreeNodeUtils.cjs +0 -77
- package/dist/production/src/utils/TreeNodeUtils.cjs.map +0 -1
- package/dist/production/src/utils/TreeNodeUtils.js +0 -77
- package/dist/production/src/utils/TreeNodeUtils.js.map +0 -1
- package/dist/production/src/utils/assert.cjs +0 -10
- package/dist/production/src/utils/assert.cjs.map +0 -1
- package/dist/production/src/utils/assert.js +0 -10
- package/dist/production/src/utils/assert.js.map +0 -1
- package/dist/production/src/utils/assertNever.cjs +0 -10
- package/dist/production/src/utils/assertNever.cjs.map +0 -1
- package/dist/production/src/utils/assertNever.js +0 -10
- package/dist/production/src/utils/assertNever.js.map +0 -1
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.cjs +0 -7
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.cjs.map +0 -1
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.js +0 -7
- package/dist/production/src/utils/generateEnumerabilityPreventingEntropy.js.map +0 -1
- package/dist/production/src/utils/isEmptyObject.cjs +0 -12
- package/dist/production/src/utils/isEmptyObject.cjs.map +0 -1
- package/dist/production/src/utils/isEmptyObject.js +0 -12
- package/dist/production/src/utils/isEmptyObject.js.map +0 -1
- package/dist/production/src/utils/ucfirst.cjs +0 -5
- package/dist/production/src/utils/ucfirst.cjs.map +0 -1
- package/dist/production/src/utils/ucfirst.js +0 -5
- package/dist/production/src/utils/ucfirst.js.map +0 -1
- package/dist/types/BindingError.d.ts +0 -4
- package/dist/types/BindingError.d.ts.map +0 -1
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +0 -13
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +0 -1
- package/dist/types/accessorTree/PersistResult.d.ts +0 -23
- package/dist/types/accessorTree/PersistResult.d.ts.map +0 -1
- package/dist/types/accessorTree/QueryRequestResponse.d.ts +0 -20
- package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +0 -1
- package/dist/types/accessorTree/RuntimeId.d.ts +0 -35
- package/dist/types/accessorTree/RuntimeId.d.ts.map +0 -1
- package/dist/types/accessorTree/index.d.ts +0 -5
- package/dist/types/accessorTree/index.d.ts.map +0 -1
- package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts +0 -8
- package/dist/types/accessors/AsyncBatchUpdatesOptions.d.ts.map +0 -1
- package/dist/types/accessors/BatchUpdatesOptions.d.ts +0 -9
- package/dist/types/accessors/BatchUpdatesOptions.d.ts.map +0 -1
- package/dist/types/accessors/BindingConfig.d.ts +0 -6
- package/dist/types/accessors/BindingConfig.d.ts.map +0 -1
- package/dist/types/accessors/BindingOperations.d.ts +0 -12
- package/dist/types/accessors/BindingOperations.d.ts.map +0 -1
- package/dist/types/accessors/EntityAccessor.d.ts +0 -95
- package/dist/types/accessors/EntityAccessor.d.ts.map +0 -1
- package/dist/types/accessors/EntityListAccessor.d.ts +0 -88
- package/dist/types/accessors/EntityListAccessor.d.ts.map +0 -1
- package/dist/types/accessors/ErrorAccessor.d.ts +0 -29
- package/dist/types/accessors/ErrorAccessor.d.ts.map +0 -1
- package/dist/types/accessors/Errorable.d.ts +0 -5
- package/dist/types/accessors/Errorable.d.ts.map +0 -1
- package/dist/types/accessors/ExtendTree.d.ts +0 -9
- package/dist/types/accessors/ExtendTree.d.ts.map +0 -1
- package/dist/types/accessors/FieldAccessor.d.ts +0 -57
- package/dist/types/accessors/FieldAccessor.d.ts.map +0 -1
- package/dist/types/accessors/GetEntityByKey.d.ts +0 -3
- package/dist/types/accessors/GetEntityByKey.d.ts.map +0 -1
- package/dist/types/accessors/GetEntityListSubTree.d.ts +0 -5
- package/dist/types/accessors/GetEntityListSubTree.d.ts.map +0 -1
- package/dist/types/accessors/GetEntitySubTree.d.ts +0 -5
- package/dist/types/accessors/GetEntitySubTree.d.ts.map +0 -1
- package/dist/types/accessors/Persist.d.ts +0 -10
- package/dist/types/accessors/Persist.d.ts.map +0 -1
- package/dist/types/accessors/PersistErrorOptions.d.ts +0 -8
- package/dist/types/accessors/PersistErrorOptions.d.ts.map +0 -1
- package/dist/types/accessors/PersistSuccessOptions.d.ts +0 -5
- package/dist/types/accessors/PersistSuccessOptions.d.ts.map +0 -1
- package/dist/types/accessors/TreeRootAccessor.d.ts +0 -11
- package/dist/types/accessors/TreeRootAccessor.d.ts.map +0 -1
- package/dist/types/accessors/index.d.ts +0 -18
- package/dist/types/accessors/index.d.ts.map +0 -1
- package/dist/types/bindingTypes.d.ts +0 -4
- package/dist/types/bindingTypes.d.ts.map +0 -1
- package/dist/types/core/AccessorErrorManager.d.ts +0 -25
- package/dist/types/core/AccessorErrorManager.d.ts.map +0 -1
- package/dist/types/core/Config.d.ts +0 -9
- package/dist/types/core/Config.d.ts.map +0 -1
- package/dist/types/core/DataBinding.d.ts +0 -50
- package/dist/types/core/DataBinding.d.ts.map +0 -1
- package/dist/types/core/DirtinessTracker.d.ts +0 -9
- package/dist/types/core/DirtinessTracker.d.ts.map +0 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts +0 -35
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +0 -1
- package/dist/types/core/EventManager.d.ts +0 -57
- package/dist/types/core/EventManager.d.ts.map +0 -1
- package/dist/types/core/MarkerComparator.d.ts +0 -8
- package/dist/types/core/MarkerComparator.d.ts.map +0 -1
- package/dist/types/core/MarkerMerger.d.ts +0 -22
- package/dist/types/core/MarkerMerger.d.ts.map +0 -1
- package/dist/types/core/MutationGenerator.d.ts +0 -46
- package/dist/types/core/MutationGenerator.d.ts.map +0 -1
- package/dist/types/core/QueryGenerator.d.ts +0 -12
- package/dist/types/core/QueryGenerator.d.ts.map +0 -1
- package/dist/types/core/RealmKeyGenerator.d.ts +0 -11
- package/dist/types/core/RealmKeyGenerator.d.ts.map +0 -1
- package/dist/types/core/RequestResponseNormalizer.d.ts +0 -10
- package/dist/types/core/RequestResponseNormalizer.d.ts.map +0 -1
- package/dist/types/core/StateInitializer.d.ts +0 -34
- package/dist/types/core/StateInitializer.d.ts.map +0 -1
- package/dist/types/core/TreeAugmenter.d.ts +0 -22
- package/dist/types/core/TreeAugmenter.d.ts.map +0 -1
- package/dist/types/core/TreeFilterGenerator.d.ts +0 -13
- package/dist/types/core/TreeFilterGenerator.d.ts.map +0 -1
- package/dist/types/core/TreeParameterMerger.d.ts +0 -20
- package/dist/types/core/TreeParameterMerger.d.ts.map +0 -1
- package/dist/types/core/TreeStore.d.ts +0 -32
- package/dist/types/core/TreeStore.d.ts.map +0 -1
- package/dist/types/core/UpdateMetadata.d.ts +0 -4
- package/dist/types/core/UpdateMetadata.d.ts.map +0 -1
- package/dist/types/core/VariableInputTransformer.d.ts +0 -7
- package/dist/types/core/VariableInputTransformer.d.ts.map +0 -1
- package/dist/types/core/exceptions/ErrorLocator.d.ts +0 -8
- package/dist/types/core/exceptions/ErrorLocator.d.ts.map +0 -1
- package/dist/types/core/exceptions/LocalizedBindingError.d.ts +0 -9
- package/dist/types/core/exceptions/LocalizedBindingError.d.ts.map +0 -1
- package/dist/types/core/exceptions/MarkerSugarer.d.ts +0 -10
- package/dist/types/core/exceptions/MarkerSugarer.d.ts.map +0 -1
- package/dist/types/core/exceptions/RawMarkerPath.d.ts +0 -3
- package/dist/types/core/exceptions/RawMarkerPath.d.ts.map +0 -1
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts +0 -11
- package/dist/types/core/exceptions/TreeParameterSugarer.d.ts.map +0 -1
- package/dist/types/core/exceptions/index.d.ts +0 -6
- package/dist/types/core/exceptions/index.d.ts.map +0 -1
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts +0 -5
- package/dist/types/core/factories/createBatchUpdatesOptions.d.ts.map +0 -1
- package/dist/types/core/factories/index.d.ts +0 -2
- package/dist/types/core/factories/index.d.ts.map +0 -1
- package/dist/types/core/index.d.ts +0 -14
- package/dist/types/core/index.d.ts.map +0 -1
- package/dist/types/core/operations/EntityOperations.d.ts +0 -26
- package/dist/types/core/operations/EntityOperations.d.ts.map +0 -1
- package/dist/types/core/operations/FieldOperations.d.ts +0 -22
- package/dist/types/core/operations/FieldOperations.d.ts.map +0 -1
- package/dist/types/core/operations/ListOperations.d.ts +0 -33
- package/dist/types/core/operations/ListOperations.d.ts.map +0 -1
- package/dist/types/core/operations/OperationsHelpers.d.ts +0 -14
- package/dist/types/core/operations/OperationsHelpers.d.ts.map +0 -1
- package/dist/types/core/operations/index.d.ts +0 -4
- package/dist/types/core/operations/index.d.ts.map +0 -1
- package/dist/types/core/requestAliases/MutationAlias.d.ts +0 -6
- package/dist/types/core/requestAliases/MutationAlias.d.ts.map +0 -1
- package/dist/types/core/requestAliases/index.d.ts +0 -2
- package/dist/types/core/requestAliases/index.d.ts.map +0 -1
- package/dist/types/core/schema/RawSchema.d.ts +0 -7
- package/dist/types/core/schema/RawSchema.d.ts.map +0 -1
- package/dist/types/core/schema/RawSchemaEntity.d.ts +0 -13
- package/dist/types/core/schema/RawSchemaEntity.d.ts.map +0 -1
- package/dist/types/core/schema/RawSchemaEnum.d.ts +0 -6
- package/dist/types/core/schema/RawSchemaEnum.d.ts.map +0 -1
- package/dist/types/core/schema/Schema.d.ts +0 -21
- package/dist/types/core/schema/Schema.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaColumn.d.ts +0 -12
- package/dist/types/core/schema/SchemaColumn.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaColumnType.d.ts +0 -3
- package/dist/types/core/schema/SchemaColumnType.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaEntities.d.ts +0 -4
- package/dist/types/core/schema/SchemaEntities.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaEntity.d.ts +0 -10
- package/dist/types/core/schema/SchemaEntity.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaEnums.d.ts +0 -4
- package/dist/types/core/schema/SchemaEnums.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaField.d.ts +0 -4
- package/dist/types/core/schema/SchemaField.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaFields.d.ts +0 -4
- package/dist/types/core/schema/SchemaFields.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaLoader.d.ts +0 -8
- package/dist/types/core/schema/SchemaLoader.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaPreprocessor.d.ts +0 -9
- package/dist/types/core/schema/SchemaPreprocessor.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaRelation.d.ts +0 -24
- package/dist/types/core/schema/SchemaRelation.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaRelationOrderBy.d.ts +0 -5
- package/dist/types/core/schema/SchemaRelationOrderBy.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaStore.d.ts +0 -7
- package/dist/types/core/schema/SchemaStore.d.ts.map +0 -1
- package/dist/types/core/schema/SchemaUniqueConstraint.d.ts +0 -5
- package/dist/types/core/schema/SchemaUniqueConstraint.d.ts.map +0 -1
- package/dist/types/core/schema/index.d.ts +0 -16
- package/dist/types/core/schema/index.d.ts.map +0 -1
- package/dist/types/core/state/EntityListState.d.ts +0 -29
- package/dist/types/core/state/EntityListState.d.ts.map +0 -1
- package/dist/types/core/state/EntityRealmState.d.ts +0 -44
- package/dist/types/core/state/EntityRealmState.d.ts.map +0 -1
- package/dist/types/core/state/EntityState.d.ts +0 -12
- package/dist/types/core/state/EntityState.d.ts.map +0 -1
- package/dist/types/core/state/FieldState.d.ts +0 -19
- package/dist/types/core/state/FieldState.d.ts.map +0 -1
- package/dist/types/core/state/StateIterator.d.ts +0 -14
- package/dist/types/core/state/StateIterator.d.ts.map +0 -1
- package/dist/types/core/state/StateNode.d.ts +0 -8
- package/dist/types/core/state/StateNode.d.ts.map +0 -1
- package/dist/types/core/state/getEntityMarker.d.ts +0 -3
- package/dist/types/core/state/getEntityMarker.d.ts.map +0 -1
- package/dist/types/core/state/index.d.ts +0 -8
- package/dist/types/core/state/index.d.ts.map +0 -1
- package/dist/types/core/utils/createQueryBuilder.d.ts +0 -4
- package/dist/types/core/utils/createQueryBuilder.d.ts.map +0 -1
- package/dist/types/core/utils/getCombinedSignal.d.ts +0 -2
- package/dist/types/core/utils/getCombinedSignal.d.ts.map +0 -1
- package/dist/types/core/utils/index.d.ts +0 -2
- package/dist/types/core/utils/index.d.ts.map +0 -1
- package/dist/types/dao/Environment.d.ts +0 -107
- package/dist/types/dao/Environment.d.ts.map +0 -1
- package/dist/types/dao/TreeNodeEnvironmentFactory.d.ts +0 -15
- package/dist/types/dao/TreeNodeEnvironmentFactory.d.ts.map +0 -1
- package/dist/types/dao/VariableFieldValue.d.ts +0 -5
- package/dist/types/dao/VariableFieldValue.d.ts.map +0 -1
- package/dist/types/dao/index.d.ts +0 -4
- package/dist/types/dao/index.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts +0 -7
- package/dist/types/fieldHelpers/helpers/FieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts +0 -10
- package/dist/types/fieldHelpers/helpers/TemporalFieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts +0 -10
- package/dist/types/fieldHelpers/helpers/UuidFieldHelper.d.ts.map +0 -1
- package/dist/types/fieldHelpers/helpers/index.d.ts +0 -3
- package/dist/types/fieldHelpers/helpers/index.d.ts.map +0 -1
- package/dist/types/fieldHelpers/index.d.ts +0 -2
- package/dist/types/fieldHelpers/index.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldMarkers.d.ts +0 -7
- package/dist/types/markers/EntityFieldMarkers.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldMarkersContainer.d.ts +0 -13
- package/dist/types/markers/EntityFieldMarkersContainer.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldPlaceholders.d.ts +0 -3
- package/dist/types/markers/EntityFieldPlaceholders.d.ts.map +0 -1
- package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts +0 -10
- package/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts.map +0 -1
- package/dist/types/markers/EntityListSubTreeMarker.d.ts +0 -12
- package/dist/types/markers/EntityListSubTreeMarker.d.ts.map +0 -1
- package/dist/types/markers/EntitySubTreeMarker.d.ts +0 -12
- package/dist/types/markers/EntitySubTreeMarker.d.ts.map +0 -1
- package/dist/types/markers/FieldMarker.d.ts +0 -14
- package/dist/types/markers/FieldMarker.d.ts.map +0 -1
- package/dist/types/markers/HasManyRelationMarker.d.ts +0 -12
- package/dist/types/markers/HasManyRelationMarker.d.ts.map +0 -1
- package/dist/types/markers/HasOneRelationMarker.d.ts +0 -12
- package/dist/types/markers/HasOneRelationMarker.d.ts.map +0 -1
- package/dist/types/markers/MarkerTreeRoot.d.ts +0 -8
- package/dist/types/markers/MarkerTreeRoot.d.ts.map +0 -1
- package/dist/types/markers/MeaningfulMarker.d.ts +0 -7
- package/dist/types/markers/MeaningfulMarker.d.ts.map +0 -1
- package/dist/types/markers/ParentEntityMarker.d.ts +0 -8
- package/dist/types/markers/ParentEntityMarker.d.ts.map +0 -1
- package/dist/types/markers/PlaceholderGenerator.d.ts +0 -10
- package/dist/types/markers/PlaceholderGenerator.d.ts.map +0 -1
- package/dist/types/markers/PlaceholderParametersGenerator.d.ts +0 -9
- package/dist/types/markers/PlaceholderParametersGenerator.d.ts.map +0 -1
- package/dist/types/markers/SubTreeMarkers.d.ts +0 -5
- package/dist/types/markers/SubTreeMarkers.d.ts.map +0 -1
- package/dist/types/markers/index.d.ts +0 -15
- package/dist/types/markers/index.d.ts.map +0 -1
- package/dist/types/queryLanguage/CacheStore.d.ts +0 -9
- package/dist/types/queryLanguage/CacheStore.d.ts.map +0 -1
- package/dist/types/queryLanguage/MarkerFactory.d.ts +0 -21
- package/dist/types/queryLanguage/MarkerFactory.d.ts.map +0 -1
- package/dist/types/queryLanguage/Parser.d.ts +0 -83
- package/dist/types/queryLanguage/Parser.d.ts.map +0 -1
- package/dist/types/queryLanguage/ParserResults.d.ts +0 -63
- package/dist/types/queryLanguage/ParserResults.d.ts.map +0 -1
- package/dist/types/queryLanguage/QueryLanguage.d.ts +0 -44
- package/dist/types/queryLanguage/QueryLanguage.d.ts.map +0 -1
- package/dist/types/queryLanguage/QueryLanguageError.d.ts +0 -3
- package/dist/types/queryLanguage/QueryLanguageError.d.ts.map +0 -1
- package/dist/types/queryLanguage/index.d.ts +0 -6
- package/dist/types/queryLanguage/index.d.ts.map +0 -1
- package/dist/types/queryLanguage/tokenList.d.ts +0 -36
- package/dist/types/queryLanguage/tokenList.d.ts.map +0 -1
- package/dist/types/structures/BijectiveIndexedMap.d.ts +0 -24
- package/dist/types/structures/BijectiveIndexedMap.d.ts.map +0 -1
- package/dist/types/structures/LRUCache.d.ts +0 -9
- package/dist/types/structures/LRUCache.d.ts.map +0 -1
- package/dist/types/structures/WeakIdCache.d.ts +0 -9
- package/dist/types/structures/WeakIdCache.d.ts.map +0 -1
- package/dist/types/structures/index.d.ts +0 -4
- package/dist/types/structures/index.d.ts.map +0 -1
- package/dist/types/treeParameterHelpers/index.d.ts +0 -2
- package/dist/types/treeParameterHelpers/index.d.ts.map +0 -1
- package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts +0 -3
- package/dist/types/treeParameterHelpers/wrapFilterInHasOnes.d.ts.map +0 -1
- package/dist/types/treeParameters/AnyField.d.ts +0 -8
- package/dist/types/treeParameters/AnyField.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityCreationParameters.d.ts +0 -13
- package/dist/types/treeParameters/EntityCreationParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityListEventListeners.d.ts +0 -15
- package/dist/types/treeParameters/EntityListEventListeners.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityListParameters.d.ts +0 -17
- package/dist/types/treeParameters/EntityListParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/EntityListPreferences.d.ts +0 -8
- package/dist/types/treeParameters/EntityListPreferences.d.ts.map +0 -1
- package/dist/types/treeParameters/EventListenersStore.d.ts +0 -33
- package/dist/types/treeParameters/EventListenersStore.d.ts.map +0 -1
- package/dist/types/treeParameters/FieldEventListeners.d.ts +0 -16
- package/dist/types/treeParameters/FieldEventListeners.d.ts.map +0 -1
- package/dist/types/treeParameters/HasManyRelation.d.ts +0 -10
- package/dist/types/treeParameters/HasManyRelation.d.ts.map +0 -1
- package/dist/types/treeParameters/HasOneRelation.d.ts +0 -13
- package/dist/types/treeParameters/HasOneRelation.d.ts.map +0 -1
- package/dist/types/treeParameters/LeafField.d.ts +0 -14
- package/dist/types/treeParameters/LeafField.d.ts.map +0 -1
- package/dist/types/treeParameters/ParentEntityParameters.d.ts +0 -8
- package/dist/types/treeParameters/ParentEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedEntityList.d.ts +0 -19
- package/dist/types/treeParameters/QualifiedEntityList.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedEntityParameters.d.ts +0 -17
- package/dist/types/treeParameters/QualifiedEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedFieldList.d.ts +0 -16
- package/dist/types/treeParameters/QualifiedFieldList.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedSingleEntity.d.ts +0 -20
- package/dist/types/treeParameters/QualifiedSingleEntity.d.ts.map +0 -1
- package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts +0 -8
- package/dist/types/treeParameters/QualifiedSingleEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/Relation.d.ts +0 -15
- package/dist/types/treeParameters/Relation.d.ts.map +0 -1
- package/dist/types/treeParameters/RelativeEntityList.d.ts +0 -19
- package/dist/types/treeParameters/RelativeEntityList.d.ts.map +0 -1
- package/dist/types/treeParameters/RelativeSingleEntity.d.ts +0 -13
- package/dist/types/treeParameters/RelativeSingleEntity.d.ts.map +0 -1
- package/dist/types/treeParameters/RelativeSingleField.d.ts +0 -15
- package/dist/types/treeParameters/RelativeSingleField.d.ts.map +0 -1
- package/dist/types/treeParameters/SetOnCreate.d.ts +0 -4
- package/dist/types/treeParameters/SetOnCreate.d.ts.map +0 -1
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts +0 -16
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts.map +0 -1
- package/dist/types/treeParameters/SingleEntityParameters.d.ts +0 -8
- package/dist/types/treeParameters/SingleEntityParameters.d.ts.map +0 -1
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts +0 -21
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts.map +0 -1
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts +0 -20
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts.map +0 -1
- package/dist/types/treeParameters/index.d.ts +0 -27
- package/dist/types/treeParameters/index.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Alias.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Alias.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts +0 -2
- package/dist/types/treeParameters/primitives/EntityId.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/EntityName.d.ts +0 -2
- package/dist/types/treeParameters/primitives/EntityName.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts +0 -2
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts +0 -2
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts +0 -2
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts +0 -2
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/FieldName.d.ts +0 -2
- package/dist/types/treeParameters/primitives/FieldName.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/FieldValue.d.ts +0 -5
- package/dist/types/treeParameters/primitives/FieldValue.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Filter.d.ts +0 -4
- package/dist/types/treeParameters/primitives/Filter.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Json.d.ts +0 -7
- package/dist/types/treeParameters/primitives/Json.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Limit.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Limit.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Offset.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Offset.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/OrderBy.d.ts +0 -4
- package/dist/types/treeParameters/primitives/OrderBy.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts +0 -2
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/RemovalType.d.ts +0 -2
- package/dist/types/treeParameters/primitives/RemovalType.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/Scalar.d.ts +0 -2
- package/dist/types/treeParameters/primitives/Scalar.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts +0 -2
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts +0 -4
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts.map +0 -1
- package/dist/types/treeParameters/primitives/index.d.ts +0 -20
- package/dist/types/treeParameters/primitives/index.d.ts.map +0 -1
- package/dist/types/utils/Hashing.d.ts +0 -5
- package/dist/types/utils/Hashing.d.ts.map +0 -1
- package/dist/types/utils/TreeNodeUtils.d.ts +0 -13
- package/dist/types/utils/TreeNodeUtils.d.ts.map +0 -1
- package/dist/types/utils/assert.d.ts +0 -2
- package/dist/types/utils/assert.d.ts.map +0 -1
- package/dist/types/utils/assertNever.d.ts +0 -2
- package/dist/types/utils/assertNever.d.ts.map +0 -1
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts +0 -2
- package/dist/types/utils/generateEnumerabilityPreventingEntropy.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -7
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/isEmptyObject.d.ts +0 -2
- package/dist/types/utils/isEmptyObject.d.ts.map +0 -1
- package/dist/types/utils/ucfirst.d.ts +0 -2
- package/dist/types/utils/ucfirst.d.ts.map +0 -1
- package/src/BindingError.ts +0 -5
- package/src/accessorTree/NormalizedPersistedData.ts +0 -23
- package/src/accessorTree/PersistResult.ts +0 -28
- package/src/accessorTree/QueryRequestResponse.ts +0 -23
- package/src/accessorTree/RuntimeId.ts +0 -70
- package/src/accessorTree/index.ts +0 -4
- package/src/accessors/AsyncBatchUpdatesOptions.ts +0 -8
- package/src/accessors/BatchUpdatesOptions.ts +0 -9
- package/src/accessors/BindingConfig.ts +0 -5
- package/src/accessors/BindingOperations.ts +0 -15
- package/src/accessors/EntityAccessor.ts +0 -299
- package/src/accessors/EntityListAccessor.ts +0 -183
- package/src/accessors/ErrorAccessor.ts +0 -43
- package/src/accessors/Errorable.ts +0 -5
- package/src/accessors/ExtendTree.ts +0 -10
- package/src/accessors/FieldAccessor.ts +0 -107
- package/src/accessors/GetEntityByKey.ts +0 -3
- package/src/accessors/GetEntityListSubTree.ts +0 -14
- package/src/accessors/GetEntitySubTree.ts +0 -14
- package/src/accessors/Persist.ts +0 -11
- package/src/accessors/PersistErrorOptions.ts +0 -10
- package/src/accessors/PersistSuccessOptions.ts +0 -5
- package/src/accessors/TreeRootAccessor.ts +0 -14
- package/src/accessors/index.ts +0 -17
- package/src/bindingTypes.ts +0 -3
- package/src/core/AccessorErrorManager.ts +0 -243
- package/src/core/Config.ts +0 -27
- package/src/core/DataBinding.ts +0 -434
- package/src/core/DirtinessTracker.ts +0 -21
- package/src/core/ErrorsPreprocessor.ts +0 -239
- package/src/core/EventManager.ts +0 -589
- package/src/core/MarkerComparator.ts +0 -102
- package/src/core/MarkerMerger.ts +0 -302
- package/src/core/MutationGenerator.ts +0 -823
- package/src/core/QueryGenerator.ts +0 -127
- package/src/core/RealmKeyGenerator.ts +0 -54
- package/src/core/RequestResponseNormalizer.ts +0 -166
- package/src/core/StateInitializer.ts +0 -558
- package/src/core/TreeAugmenter.ts +0 -266
- package/src/core/TreeFilterGenerator.ts +0 -116
- package/src/core/TreeParameterMerger.ts +0 -382
- package/src/core/TreeStore.ts +0 -256
- package/src/core/UpdateMetadata.ts +0 -3
- package/src/core/VariableInputTransformer.ts +0 -26
- package/src/core/exceptions/ErrorLocator.ts +0 -58
- package/src/core/exceptions/LocalizedBindingError.ts +0 -20
- package/src/core/exceptions/MarkerSugarer.ts +0 -61
- package/src/core/exceptions/RawMarkerPath.ts +0 -3
- package/src/core/exceptions/TreeParameterSugarer.ts +0 -41
- package/src/core/exceptions/index.ts +0 -5
- package/src/core/factories/createBatchUpdatesOptions.ts +0 -38
- package/src/core/factories/index.ts +0 -1
- package/src/core/index.ts +0 -13
- package/src/core/operations/EntityOperations.ts +0 -310
- package/src/core/operations/FieldOperations.ts +0 -127
- package/src/core/operations/ListOperations.ts +0 -208
- package/src/core/operations/OperationsHelpers.ts +0 -150
- package/src/core/operations/index.ts +0 -3
- package/src/core/requestAliases/MutationAlias.ts +0 -13
- package/src/core/requestAliases/index.ts +0 -1
- package/src/core/schema/RawSchema.ts +0 -7
- package/src/core/schema/RawSchemaEntity.ts +0 -12
- package/src/core/schema/RawSchemaEnum.ts +0 -6
- package/src/core/schema/Schema.ts +0 -50
- package/src/core/schema/SchemaColumn.ts +0 -15
- package/src/core/schema/SchemaColumnType.ts +0 -3
- package/src/core/schema/SchemaEntities.ts +0 -4
- package/src/core/schema/SchemaEntity.ts +0 -10
- package/src/core/schema/SchemaEnums.ts +0 -3
- package/src/core/schema/SchemaField.ts +0 -4
- package/src/core/schema/SchemaFields.ts +0 -4
- package/src/core/schema/SchemaLoader.ts +0 -64
- package/src/core/schema/SchemaPreprocessor.ts +0 -51
- package/src/core/schema/SchemaRelation.ts +0 -29
- package/src/core/schema/SchemaRelationOrderBy.ts +0 -4
- package/src/core/schema/SchemaStore.ts +0 -8
- package/src/core/schema/SchemaUniqueConstraint.ts +0 -5
- package/src/core/schema/index.ts +0 -15
- package/src/core/state/EntityListState.ts +0 -39
- package/src/core/state/EntityRealmState.ts +0 -63
- package/src/core/state/EntityState.ts +0 -12
- package/src/core/state/FieldState.ts +0 -20
- package/src/core/state/StateIterator.ts +0 -121
- package/src/core/state/StateNode.ts +0 -8
- package/src/core/state/getEntityMarker.ts +0 -4
- package/src/core/state/index.ts +0 -7
- package/src/core/utils/createQueryBuilder.ts +0 -31
- package/src/core/utils/getCombinedSignal.ts +0 -36
- package/src/core/utils/index.ts +0 -1
- package/src/dao/Environment.ts +0 -342
- package/src/dao/TreeNodeEnvironmentFactory.ts +0 -137
- package/src/dao/VariableFieldValue.ts +0 -3
- package/src/dao/index.ts +0 -3
- package/src/fieldHelpers/helpers/FieldHelper.ts +0 -10
- package/src/fieldHelpers/helpers/TemporalFieldHelper.ts +0 -21
- package/src/fieldHelpers/helpers/UuidFieldHelper.ts +0 -18
- package/src/fieldHelpers/helpers/index.ts +0 -2
- package/src/fieldHelpers/index.ts +0 -1
- package/src/markers/EntityFieldMarkers.ts +0 -7
- package/src/markers/EntityFieldMarkersContainer.ts +0 -45
- package/src/markers/EntityFieldPlaceholders.ts +0 -3
- package/src/markers/EntityFieldsWithHoistablesMarker.ts +0 -11
- package/src/markers/EntityListSubTreeMarker.ts +0 -20
- package/src/markers/EntitySubTreeMarker.ts +0 -20
- package/src/markers/FieldMarker.ts +0 -19
- package/src/markers/HasManyRelationMarker.ts +0 -27
- package/src/markers/HasOneRelationMarker.ts +0 -21
- package/src/markers/MarkerTreeRoot.ts +0 -9
- package/src/markers/MeaningfulMarker.ts +0 -12
- package/src/markers/ParentEntityMarker.ts +0 -9
- package/src/markers/PlaceholderGenerator.ts +0 -40
- package/src/markers/PlaceholderParametersGenerator.ts +0 -79
- package/src/markers/SubTreeMarkers.ts +0 -5
- package/src/markers/index.ts +0 -14
- package/src/queryLanguage/CacheStore.ts +0 -57
- package/src/queryLanguage/MarkerFactory.ts +0 -300
- package/src/queryLanguage/Parser.ts +0 -911
- package/src/queryLanguage/ParserResults.ts +0 -81
- package/src/queryLanguage/QueryLanguage.ts +0 -762
- package/src/queryLanguage/QueryLanguageError.ts +0 -1
- package/src/queryLanguage/index.ts +0 -5
- package/src/queryLanguage/tokenList.ts +0 -177
- package/src/structures/BijectiveIndexedMap.ts +0 -139
- package/src/structures/LRUCache.ts +0 -29
- package/src/structures/WeakIdCache.ts +0 -25
- package/src/structures/index.ts +0 -3
- package/src/treeParameterHelpers/index.ts +0 -1
- package/src/treeParameterHelpers/wrapFilterInHasOnes.ts +0 -21
- package/src/treeParameters/AnyField.ts +0 -9
- package/src/treeParameters/EntityCreationParameters.ts +0 -34
- package/src/treeParameters/EntityListEventListeners.ts +0 -20
- package/src/treeParameters/EntityListParameters.ts +0 -19
- package/src/treeParameters/EntityListPreferences.ts +0 -11
- package/src/treeParameters/EventListenersStore.ts +0 -82
- package/src/treeParameters/FieldEventListeners.ts +0 -32
- package/src/treeParameters/HasManyRelation.ts +0 -18
- package/src/treeParameters/HasOneRelation.ts +0 -21
- package/src/treeParameters/LeafField.ts +0 -20
- package/src/treeParameters/ParentEntityParameters.ts +0 -10
- package/src/treeParameters/QualifiedEntityList.ts +0 -43
- package/src/treeParameters/QualifiedEntityParameters.ts +0 -20
- package/src/treeParameters/QualifiedFieldList.ts +0 -43
- package/src/treeParameters/QualifiedSingleEntity.ts +0 -46
- package/src/treeParameters/QualifiedSingleEntityParameters.ts +0 -9
- package/src/treeParameters/Relation.ts +0 -17
- package/src/treeParameters/RelativeEntityList.ts +0 -25
- package/src/treeParameters/RelativeSingleEntity.ts +0 -16
- package/src/treeParameters/RelativeSingleField.ts +0 -27
- package/src/treeParameters/SetOnCreate.ts +0 -6
- package/src/treeParameters/SingleEntityEventListeners.ts +0 -24
- package/src/treeParameters/SingleEntityParameters.ts +0 -9
- package/src/treeParameters/UnconstrainedQualifiedEntityList.ts +0 -39
- package/src/treeParameters/UnconstrainedQualifiedSingleEntity.ts +0 -39
- package/src/treeParameters/index.ts +0 -27
- package/src/treeParameters/primitives/Alias.ts +0 -1
- package/src/treeParameters/primitives/EntityId.ts +0 -2
- package/src/treeParameters/primitives/EntityName.ts +0 -4
- package/src/treeParameters/primitives/EntityRealmKey.ts +0 -2
- package/src/treeParameters/primitives/ExpectedEntityCount.ts +0 -1
- package/src/treeParameters/primitives/ExpectedQualifiedEntityMutation.ts +0 -1
- package/src/treeParameters/primitives/ExpectedRelationMutation.ts +0 -1
- package/src/treeParameters/primitives/FieldName.ts +0 -7
- package/src/treeParameters/primitives/FieldValue.ts +0 -6
- package/src/treeParameters/primitives/Filter.ts +0 -7
- package/src/treeParameters/primitives/Json.ts +0 -7
- package/src/treeParameters/primitives/Limit.ts +0 -1
- package/src/treeParameters/primitives/Offset.ts +0 -1
- package/src/treeParameters/primitives/OrderBy.ts +0 -6
- package/src/treeParameters/primitives/PlaceholderName.ts +0 -4
- package/src/treeParameters/primitives/RemovalType.ts +0 -1
- package/src/treeParameters/primitives/Scalar.ts +0 -1
- package/src/treeParameters/primitives/TreeRootId.ts +0 -1
- package/src/treeParameters/primitives/UniqueWhere.ts +0 -7
- package/src/treeParameters/primitives/index.ts +0 -19
- package/src/typings/react-fix.d.ts +0 -12
- package/src/utils/Hashing.ts +0 -20
- package/src/utils/TreeNodeUtils.ts +0 -92
- package/src/utils/assert.ts +0 -7
- package/src/utils/assertNever.ts +0 -10
- package/src/utils/generateEnumerabilityPreventingEntropy.ts +0 -3
- package/src/utils/index.ts +0 -6
- package/src/utils/isEmptyObject.ts +0 -9
- package/src/utils/ucfirst.ts +0 -1
- package/tests/cases/unit/queryLanguage/filter.spec.tsx +0 -100
- package/tests/cases/unit/queryLanguage/general.spec.tsx +0 -59
- package/tests/cases/unit/queryLanguage/orderBy.spec.tsx +0 -48
- package/tests/cases/unit/queryLanguage/qualifiedEntityList.spec.tsx +0 -30
- package/tests/cases/unit/queryLanguage/qualifiedFieldList.spec.tsx +0 -29
- package/tests/cases/unit/queryLanguage/relativeEntityList.spec.tsx +0 -49
- package/tests/cases/unit/queryLanguage/singleRelativeField.spec.tsx +0 -132
- package/tests/cases/unit/queryLanguage/taggedMap.spec.tsx +0 -41
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
import { BindingError } from "../BindingError.js";
|
|
2
|
-
import { getEntityMarker } from "./state/getEntityMarker.js";
|
|
3
|
-
import { StateIterator } from "./state/StateIterator.js";
|
|
4
|
-
import { assertNever } from "../utils/assertNever.js";
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
-
class EventManager {
|
|
9
|
-
constructor(asyncBatchUpdatesOptions, batchUpdatesOptions, config, dirtinessTracker, onUpdate, treeStore, batchedUpdates) {
|
|
10
|
-
this.asyncBatchUpdatesOptions = asyncBatchUpdatesOptions;
|
|
11
|
-
this.batchUpdatesOptions = batchUpdatesOptions;
|
|
12
|
-
this.config = config;
|
|
13
|
-
this.dirtinessTracker = dirtinessTracker;
|
|
14
|
-
this.onUpdate = onUpdate;
|
|
15
|
-
this.treeStore = treeStore;
|
|
16
|
-
this.batchedUpdates = batchedUpdates;
|
|
17
|
-
__publicField(this, "transactionDepth", 0);
|
|
18
|
-
__publicField(this, "isFrozenWhileUpdating", false);
|
|
19
|
-
__publicField(this, "isMutating", false);
|
|
20
|
-
__publicField(this, "ongoingPersistOperation");
|
|
21
|
-
__publicField(this, "previousMetadata");
|
|
22
|
-
__publicField(this, "newlyInitializedWithListeners", /* @__PURE__ */ new Set());
|
|
23
|
-
__publicField(this, "pendingWithBeforeUpdate", /* @__PURE__ */ new Set());
|
|
24
|
-
__publicField(this, "rootsWithPendingUpdates", /* @__PURE__ */ new Set());
|
|
25
|
-
}
|
|
26
|
-
async persistOperation(operation) {
|
|
27
|
-
if (this.transactionDepth > 0) {
|
|
28
|
-
throw new BindingError(`Cannot trigger a persist whilst batching updates!`);
|
|
29
|
-
}
|
|
30
|
-
const ongoingOperation = this.ongoingPersistOperation;
|
|
31
|
-
if (ongoingOperation !== void 0) {
|
|
32
|
-
return await ongoingOperation;
|
|
33
|
-
}
|
|
34
|
-
return await (this.ongoingPersistOperation = new Promise(async (resolve, reject) => {
|
|
35
|
-
this.isMutating = true;
|
|
36
|
-
this.flushUpdates();
|
|
37
|
-
try {
|
|
38
|
-
resolve(await this.asyncOperation(operation));
|
|
39
|
-
} catch (e) {
|
|
40
|
-
console.error("PersistError", e);
|
|
41
|
-
reject(e);
|
|
42
|
-
} finally {
|
|
43
|
-
this.ongoingPersistOperation = void 0;
|
|
44
|
-
this.isMutating = false;
|
|
45
|
-
this.flushUpdates();
|
|
46
|
-
}
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
syncTransaction(transaction) {
|
|
50
|
-
try {
|
|
51
|
-
this.transactionDepth++;
|
|
52
|
-
return transaction();
|
|
53
|
-
} finally {
|
|
54
|
-
this.transactionDepth--;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
syncOperation(operation) {
|
|
58
|
-
const result = this.syncTransaction(operation);
|
|
59
|
-
this.flushUpdates();
|
|
60
|
-
return result;
|
|
61
|
-
}
|
|
62
|
-
async asyncTransaction(transaction) {
|
|
63
|
-
try {
|
|
64
|
-
this.transactionDepth++;
|
|
65
|
-
return await transaction();
|
|
66
|
-
} finally {
|
|
67
|
-
this.transactionDepth--;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
async asyncOperation(operation) {
|
|
71
|
-
const result = await this.asyncTransaction(operation);
|
|
72
|
-
this.flushUpdates();
|
|
73
|
-
return result;
|
|
74
|
-
}
|
|
75
|
-
flushUpdates() {
|
|
76
|
-
if (this.transactionDepth > 0) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
if (this.isFrozenWhileUpdating) {
|
|
80
|
-
throw new BindingError(
|
|
81
|
-
`Trying to perform an update while the whole accessor tree is already updating. This is most likely caused by updating the accessor tree while rendering or from within the 'update' event handler, which is a no-op. If you wish to mutate the tree in reaction to other changes, use the 'beforeUpdate' event.`
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
const newMetadata = this.getNewUpdateMetadata();
|
|
85
|
-
if (!this.shouldFlushUpdates(newMetadata)) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
this.batchedUpdates(() => {
|
|
89
|
-
this.isFrozenWhileUpdating = true;
|
|
90
|
-
this.triggerBeforeFlushEvents();
|
|
91
|
-
this.onUpdate(newMetadata);
|
|
92
|
-
this.flushPendingAccessorUpdates(Array.from(this.rootsWithPendingUpdates));
|
|
93
|
-
this.rootsWithPendingUpdates.clear();
|
|
94
|
-
this.isFrozenWhileUpdating = false;
|
|
95
|
-
this.previousMetadata = newMetadata;
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
getNewUpdateMetadata() {
|
|
99
|
-
return {
|
|
100
|
-
isMutating: this.isMutating
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
shouldFlushUpdates(newMetadata) {
|
|
104
|
-
if (this.transactionDepth > 0) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
if (this.previousMetadata === void 0) {
|
|
108
|
-
return true;
|
|
109
|
-
}
|
|
110
|
-
if (this.rootsWithPendingUpdates.size) {
|
|
111
|
-
return true;
|
|
112
|
-
}
|
|
113
|
-
for (const key in newMetadata) {
|
|
114
|
-
const fromPrevious = this.previousMetadata[key];
|
|
115
|
-
const fromNew = newMetadata[key];
|
|
116
|
-
if (!Object.is(fromPrevious, fromNew)) {
|
|
117
|
-
return true;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
registerNewlyInitialized(newlyInitialized) {
|
|
123
|
-
const initializeListeners = this.getEventListeners(newlyInitialized, { type: "initialize" });
|
|
124
|
-
if (initializeListeners === void 0) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
this.newlyInitializedWithListeners.add(newlyInitialized);
|
|
128
|
-
if (this.transactionDepth === 0) {
|
|
129
|
-
this.triggerOnInitialize();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
registerUpdatedConnection(parentState, placeholderName) {
|
|
133
|
-
if (parentState.fieldsWithPendingConnectionUpdates === void 0) {
|
|
134
|
-
parentState.fieldsWithPendingConnectionUpdates = /* @__PURE__ */ new Set();
|
|
135
|
-
}
|
|
136
|
-
const marker = getEntityMarker(parentState);
|
|
137
|
-
placeholders: for (const [fieldName, placeholdersByField] of marker.fields.placeholders) {
|
|
138
|
-
if (typeof placeholdersByField === "string") {
|
|
139
|
-
if (placeholdersByField === placeholderName) {
|
|
140
|
-
parentState.fieldsWithPendingConnectionUpdates.add(fieldName);
|
|
141
|
-
}
|
|
142
|
-
} else {
|
|
143
|
-
for (const placeholderByFieldName of placeholdersByField) {
|
|
144
|
-
if (placeholderByFieldName === placeholderName) {
|
|
145
|
-
parentState.fieldsWithPendingConnectionUpdates.add(fieldName);
|
|
146
|
-
continue placeholders;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
registerJustUpdated(justUpdated, changesDelta) {
|
|
153
|
-
const beforeUpdateListeners = this.getEventListeners(justUpdated, { type: "beforeUpdate" });
|
|
154
|
-
if (beforeUpdateListeners !== void 0) {
|
|
155
|
-
this.pendingWithBeforeUpdate.add(justUpdated);
|
|
156
|
-
}
|
|
157
|
-
justUpdated.accessor = void 0;
|
|
158
|
-
switch (justUpdated.type) {
|
|
159
|
-
case "entityRealm":
|
|
160
|
-
case "entityList": {
|
|
161
|
-
justUpdated.unpersistedChangesCount += changesDelta;
|
|
162
|
-
{
|
|
163
|
-
if (justUpdated.unpersistedChangesCount < 0) {
|
|
164
|
-
console.error(
|
|
165
|
-
`We have *JUST* reached a completely invalid state. From now on, anything can (and likely will) go wrong. This is definitely a bug. Please try to report whatever led to this situation.`
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
const parent = justUpdated.blueprint.parent;
|
|
170
|
-
if (parent === void 0) {
|
|
171
|
-
this.rootsWithPendingUpdates.add(justUpdated);
|
|
172
|
-
if (!(justUpdated.blueprint.type === "subTree" && justUpdated.blueprint.marker.parameters.isCreating && justUpdated.blueprint.marker.parameters.isUnpersisted)) {
|
|
173
|
-
this.dirtinessTracker.increaseBy(changesDelta);
|
|
174
|
-
}
|
|
175
|
-
} else {
|
|
176
|
-
if (!parent.childrenWithPendingUpdates) {
|
|
177
|
-
parent.childrenWithPendingUpdates = /* @__PURE__ */ new Set();
|
|
178
|
-
}
|
|
179
|
-
parent.childrenWithPendingUpdates.add(justUpdated);
|
|
180
|
-
this.registerJustUpdated(parent, changesDelta);
|
|
181
|
-
}
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
case "field": {
|
|
185
|
-
const parent = justUpdated.parent;
|
|
186
|
-
if (!parent.childrenWithPendingUpdates) {
|
|
187
|
-
parent.childrenWithPendingUpdates = /* @__PURE__ */ new Set();
|
|
188
|
-
}
|
|
189
|
-
parent.childrenWithPendingUpdates.add(justUpdated);
|
|
190
|
-
this.registerJustUpdated(justUpdated.parent, changesDelta);
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
flushPendingAccessorUpdates(rootStates) {
|
|
196
|
-
const agenda = rootStates;
|
|
197
|
-
for (const state of agenda) {
|
|
198
|
-
const updateListeners = state.type === "field" ? this.getEventDispatchers(state, { type: "update" }, [state.getAccessor()]) : state.type === "entityRealm" ? this.getEventDispatchers(state, { type: "update" }, [state.getAccessor()]) : this.getEventDispatchers(state, { type: "update" }, [state.getAccessor()]);
|
|
199
|
-
if (updateListeners !== void 0) {
|
|
200
|
-
for (const handler of updateListeners) {
|
|
201
|
-
handler();
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
if (state.type === "entityRealm" && state.fieldsWithPendingConnectionUpdates) {
|
|
205
|
-
for (const updatedField of state.fieldsWithPendingConnectionUpdates) {
|
|
206
|
-
const listeners = this.getEventListeners(state, { type: "connectionUpdate", key: updatedField });
|
|
207
|
-
if (!listeners) {
|
|
208
|
-
continue;
|
|
209
|
-
}
|
|
210
|
-
for (const listener of listeners) {
|
|
211
|
-
listener(state.getAccessor());
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
switch (state.type) {
|
|
216
|
-
case "entityRealm":
|
|
217
|
-
case "entityList": {
|
|
218
|
-
if (state.childrenWithPendingUpdates !== void 0) {
|
|
219
|
-
for (const childState of state.childrenWithPendingUpdates) {
|
|
220
|
-
agenda.push(childState);
|
|
221
|
-
}
|
|
222
|
-
state.childrenWithPendingUpdates.clear();
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
case "field":
|
|
227
|
-
break;
|
|
228
|
-
default:
|
|
229
|
-
assertNever();
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
async triggerAsyncMutatingEvent(eventType, options) {
|
|
234
|
-
await this.asyncTransaction(async () => {
|
|
235
|
-
const callbackQueue = [];
|
|
236
|
-
for (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {
|
|
237
|
-
for (const iNode of StateIterator.depthFirstINodes(subTreeState)) {
|
|
238
|
-
const listeners = this.getEventListeners(iNode, { type: eventType }) ?? [];
|
|
239
|
-
for (const listener of listeners) {
|
|
240
|
-
callbackQueue.push([iNode, listener]);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
for (let waterfallDepth = 0; waterfallDepth < this.config.getValue(`${eventType}SettleLimit`); waterfallDepth++) {
|
|
245
|
-
const promiseReturns = [];
|
|
246
|
-
const correspondingStates = [];
|
|
247
|
-
if (callbackQueue.length === 0) {
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
for (const [state, callback] of callbackQueue) {
|
|
251
|
-
correspondingStates.push(state);
|
|
252
|
-
const changesCountBefore2 = this.dirtinessTracker.getTotalTouchCount();
|
|
253
|
-
let validateChanges = false;
|
|
254
|
-
try {
|
|
255
|
-
const result = callback(state.getAccessor, options);
|
|
256
|
-
if (result instanceof Promise) {
|
|
257
|
-
validateChanges = true;
|
|
258
|
-
promiseReturns.push(result);
|
|
259
|
-
} else {
|
|
260
|
-
promiseReturns.push(Promise.resolve(result));
|
|
261
|
-
}
|
|
262
|
-
} catch (e) {
|
|
263
|
-
promiseReturns.push(Promise.reject(e));
|
|
264
|
-
}
|
|
265
|
-
if (validateChanges) {
|
|
266
|
-
this.validateWithoutChanges(changesCountBefore2, eventType);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
const changesCountBefore = this.dirtinessTracker.getTotalTouchCount();
|
|
270
|
-
const newCallbacks = await Promise.allSettled(promiseReturns);
|
|
271
|
-
this.validateWithoutChanges(changesCountBefore, eventType);
|
|
272
|
-
callbackQueue.length = 0;
|
|
273
|
-
for (const newlyInitialized of this.newlyInitializedWithListeners) {
|
|
274
|
-
if (newlyInitialized.type === "field") {
|
|
275
|
-
continue;
|
|
276
|
-
}
|
|
277
|
-
const beforePersistHandlers = this.getEventListeners(newlyInitialized, { type: eventType });
|
|
278
|
-
if (beforePersistHandlers) {
|
|
279
|
-
for (const listener of beforePersistHandlers) {
|
|
280
|
-
callbackQueue.push([newlyInitialized, listener]);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
this.triggerBeforeFlushEvents();
|
|
285
|
-
this.handleRejections(eventType, newCallbacks);
|
|
286
|
-
for (let i = 0; i < newCallbacks.length; i++) {
|
|
287
|
-
const result = newCallbacks[i];
|
|
288
|
-
const correspondingState = correspondingStates[i];
|
|
289
|
-
if (result.status === "fulfilled") {
|
|
290
|
-
if (typeof result.value === "function") {
|
|
291
|
-
callbackQueue.push([correspondingState, result.value]);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
{
|
|
297
|
-
if (callbackQueue.length) {
|
|
298
|
-
throw new BindingError(
|
|
299
|
-
`Exceeded the ${eventType} settle limit. Your code likely contains a deadlock. If that's not the case, raise the settle limit from DataBindingProvider.`
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
triggerBeforeFlushEvents() {
|
|
306
|
-
this.syncTransaction(() => {
|
|
307
|
-
const settleLimit = this.config.getValue("beforeUpdateSettleLimit");
|
|
308
|
-
for (let attemptNumber = 0; attemptNumber < settleLimit; attemptNumber++) {
|
|
309
|
-
if (!this.pendingWithBeforeUpdate.size) {
|
|
310
|
-
this.triggerOnInitialize();
|
|
311
|
-
return;
|
|
312
|
-
}
|
|
313
|
-
const withBeforeUpdate = this.pendingWithBeforeUpdate;
|
|
314
|
-
this.pendingWithBeforeUpdate = /* @__PURE__ */ new Set();
|
|
315
|
-
for (const state of withBeforeUpdate) {
|
|
316
|
-
const listeners = this.getEventListeners(state, { type: "beforeUpdate" });
|
|
317
|
-
if (listeners === void 0) {
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
switch (state.type) {
|
|
321
|
-
case "field":
|
|
322
|
-
for (const listener of listeners) {
|
|
323
|
-
listener(state.getAccessor());
|
|
324
|
-
}
|
|
325
|
-
break;
|
|
326
|
-
case "entityRealm":
|
|
327
|
-
case "entityList":
|
|
328
|
-
for (const listener of listeners) {
|
|
329
|
-
state.getAccessor().batchUpdates(listener);
|
|
330
|
-
}
|
|
331
|
-
break;
|
|
332
|
-
default:
|
|
333
|
-
return assertNever();
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
this.triggerOnInitialize();
|
|
337
|
-
}
|
|
338
|
-
throw new BindingError(
|
|
339
|
-
`Maximum stabilization limit of updates caused by 'beforeUpdate' exceeded. This likely means there is an infinite feedback loop in your code.`
|
|
340
|
-
);
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
triggerOnInitialize() {
|
|
344
|
-
this.syncTransaction(() => {
|
|
345
|
-
for (const state of this.newlyInitializedWithListeners) {
|
|
346
|
-
const listeners = state.type === "field" ? this.getEventDispatchers(state, { type: "initialize" }, [state.getAccessor, this.batchUpdatesOptions]) : state.type === "entityRealm" ? this.getEventDispatchers(state, { type: "initialize" }, [state.getAccessor, this.batchUpdatesOptions]) : this.getEventDispatchers(state, { type: "initialize" }, [state.getAccessor, this.batchUpdatesOptions]);
|
|
347
|
-
if (listeners) {
|
|
348
|
-
for (const listener of listeners) {
|
|
349
|
-
listener();
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
if (state.type === "entityRealm") {
|
|
353
|
-
state.entity.hasIdSetInStone = true;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
this.newlyInitializedWithListeners.clear();
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
async triggerOnPersistError(options) {
|
|
360
|
-
await this.asyncTransaction(async () => {
|
|
361
|
-
const handlerPromises = [];
|
|
362
|
-
for (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {
|
|
363
|
-
for (const iNode of StateIterator.depthFirstINodes(subTreeState)) {
|
|
364
|
-
const dispatchers = iNode.type === "entityRealm" ? this.getEventDispatchers(iNode, { type: "persistError" }, [iNode.getAccessor, options]) : this.getEventDispatchers(iNode, { type: "persistError" }, [iNode.getAccessor, options]);
|
|
365
|
-
if (dispatchers === void 0) {
|
|
366
|
-
continue;
|
|
367
|
-
}
|
|
368
|
-
for (const listener of dispatchers ?? []) {
|
|
369
|
-
try {
|
|
370
|
-
const result = listener();
|
|
371
|
-
if (result instanceof Promise) {
|
|
372
|
-
handlerPromises.push(result);
|
|
373
|
-
} else {
|
|
374
|
-
handlerPromises.push(Promise.resolve(result));
|
|
375
|
-
}
|
|
376
|
-
} catch (e) {
|
|
377
|
-
handlerPromises.push(Promise.reject(e));
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
const handlerResults = await Promise.allSettled(handlerPromises);
|
|
383
|
-
this.handleRejections("persistError", handlerResults);
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
async triggerOnBeforePersist() {
|
|
387
|
-
return this.triggerAsyncMutatingEvent("beforePersist", this.asyncBatchUpdatesOptions);
|
|
388
|
-
}
|
|
389
|
-
async triggerOnPersistSuccess(options) {
|
|
390
|
-
return this.triggerAsyncMutatingEvent("persistSuccess", options);
|
|
391
|
-
}
|
|
392
|
-
getEventListeners(state, event) {
|
|
393
|
-
if (!state.eventListeners) {
|
|
394
|
-
return void 0;
|
|
395
|
-
}
|
|
396
|
-
return state.eventListeners.get(event);
|
|
397
|
-
}
|
|
398
|
-
getEventDispatchers(state, event, listenerArgs) {
|
|
399
|
-
const eventListeners = this.getEventListeners(state, event);
|
|
400
|
-
if (eventListeners === void 0) {
|
|
401
|
-
return void 0;
|
|
402
|
-
}
|
|
403
|
-
return Array.from(eventListeners.values(), (listener) => {
|
|
404
|
-
return () => listener(...listenerArgs);
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
handleRejections(handler, promises) {
|
|
408
|
-
const rejections = promises.filter((it) => it.status === "rejected");
|
|
409
|
-
if (rejections.length === 0) {
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
rejections.forEach((it) => console.error(it.reason));
|
|
413
|
-
{
|
|
414
|
-
throw new BindingError(
|
|
415
|
-
`A ${handler} handler returned a promise that rejected. This is a no-op that will fail silently in production.`
|
|
416
|
-
);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
validateWithoutChanges(initialCount, eventType) {
|
|
420
|
-
const changesCountAfter = this.dirtinessTracker.getTotalTouchCount();
|
|
421
|
-
{
|
|
422
|
-
if (initialCount !== changesCountAfter) {
|
|
423
|
-
throw new BindingError(
|
|
424
|
-
`A ${eventType} event handler cannot be asynchronous and alter the accessor tree at the same time. To achieve this, prepare your data asynchronously but only touch the tree from a returned callback.`
|
|
425
|
-
);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
__publicField(EventManager, "NO_CHANGES_DIFFERENCE", 0);
|
|
431
|
-
export {
|
|
432
|
-
EventManager
|
|
433
|
-
};
|
|
434
|
-
//# sourceMappingURL=EventManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventManager.js","sources":["../../../../../packages/binding/src/core/EventManager.ts"],"sourcesContent":["import type {\n\tAsyncBatchUpdatesOptions,\n\tBatchUpdatesOptions,\n\tEntityAccessor,\n\tEntityListAccessor,\n\tFieldAccessor,\n\tPersistErrorOptions,\n\tPersistSuccessOptions,\n} from '../accessors'\nimport type { SuccessfulPersistResult } from '../accessorTree'\nimport { BindingError } from '../BindingError'\nimport type { PlaceholderName } from '../treeParameters'\nimport { assertNever } from '../utils'\nimport type { Config } from './Config'\nimport type { DirtinessTracker } from './DirtinessTracker'\nimport {\n\tEntityListState,\n\tEntityRealmState,\n\tFieldState,\n\tgetEntityMarker,\n\tRootStateNode,\n\tStateINode,\n\tStateIterator,\n\tStateNode,\n} from './state'\nimport type { TreeStore } from './TreeStore'\nimport type { UpdateMetadata } from './UpdateMetadata'\nimport type { EventListenersStore } from '../treeParameters'\n\nexport class EventManager {\n\tpublic static readonly NO_CHANGES_DIFFERENCE = 0\n\n\tprivate transactionDepth = 0\n\tprivate isFrozenWhileUpdating = false\n\n\t// This should ideally not exists as it should be synonymous to `this.ongoingPersistOperation !== undefined`\n\t// but it makes persist-related promise juggling significantly more straightforward.\n\tprivate isMutating: boolean = false\n\tprivate ongoingPersistOperation: Promise<SuccessfulPersistResult> | undefined = undefined\n\n\tprivate previousMetadata: UpdateMetadata | undefined = undefined\n\n\tprivate newlyInitializedWithListeners: Set<EntityListState | EntityRealmState | FieldState> = new Set()\n\tprivate pendingWithBeforeUpdate: Set<StateNode> = new Set()\n\tprivate rootsWithPendingUpdates: Set<RootStateNode> = new Set()\n\n\tpublic constructor(\n\t\tprivate readonly asyncBatchUpdatesOptions: AsyncBatchUpdatesOptions,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly config: Config,\n\t\tprivate readonly dirtinessTracker: DirtinessTracker,\n\t\tprivate readonly onUpdate: (metadata: UpdateMetadata) => void,\n\t\tprivate readonly treeStore: TreeStore,\n\t\tprivate readonly batchedUpdates: (callback: () => any) => void,\n\t) {}\n\n\tpublic async persistOperation(operation: () => Promise<SuccessfulPersistResult>): Promise<SuccessfulPersistResult> {\n\t\tif (this.transactionDepth > 0) {\n\t\t\tthrow new BindingError(`Cannot trigger a persist whilst batching updates!`)\n\t\t}\n\t\tconst ongoingOperation = this.ongoingPersistOperation\n\t\tif (ongoingOperation !== undefined) {\n\t\t\treturn await ongoingOperation\n\t\t}\n\t\treturn await (this.ongoingPersistOperation = new Promise<SuccessfulPersistResult>(async (resolve, reject) => {\n\t\t\tthis.isMutating = true\n\t\t\tthis.flushUpdates() // Let the world know that we're mutating\n\n\t\t\ttry {\n\t\t\t\tresolve(await this.asyncOperation(operation))\n\t\t\t} catch (e) {\n\t\t\t\tconsole.error('PersistError', e)\n\t\t\t\treject(e)\n\t\t\t} finally {\n\t\t\t\tthis.ongoingPersistOperation = undefined\n\t\t\t\tthis.isMutating = false\n\t\t\t\tthis.flushUpdates()\n\t\t\t}\n\t\t}))\n\t}\n\n\tpublic syncTransaction<T>(transaction: () => T) {\n\t\ttry {\n\t\t\tthis.transactionDepth++\n\t\t\treturn transaction()\n\t\t} finally {\n\t\t\tthis.transactionDepth--\n\t\t}\n\t}\n\tpublic syncOperation<T>(operation: () => T) {\n\t\tconst result = this.syncTransaction(operation)\n\t\tthis.flushUpdates()\n\t\treturn result\n\t}\n\n\tpublic async asyncTransaction<T>(transaction: () => Promise<T>): Promise<T> {\n\t\ttry {\n\t\t\tthis.transactionDepth++\n\t\t\treturn await transaction()\n\t\t} finally {\n\t\t\tthis.transactionDepth--\n\t\t}\n\t}\n\tpublic async asyncOperation<T>(operation: () => Promise<T>): Promise<T> {\n\t\tconst result = await this.asyncTransaction(operation)\n\t\tthis.flushUpdates()\n\t\treturn result\n\t}\n\n\tprivate flushUpdates() {\n\t\tif (this.transactionDepth > 0) {\n\t\t\treturn\n\t\t}\n\n\t\tif (this.isFrozenWhileUpdating) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`Trying to perform an update while the whole accessor tree is already updating. This is most likely caused ` +\n\t\t\t\t\t`by updating the accessor tree while rendering or from within the 'update' event handler, which is a no-op. ` +\n\t\t\t\t\t`If you wish to mutate the tree in reaction to other changes, use the 'beforeUpdate' event.`,\n\t\t\t)\n\t\t}\n\n\t\tconst newMetadata = this.getNewUpdateMetadata()\n\n\t\tif (!this.shouldFlushUpdates(newMetadata)) {\n\t\t\treturn\n\t\t}\n\n\t\tthis.batchedUpdates(() => {\n\t\t\tthis.isFrozenWhileUpdating = true\n\t\t\tthis.triggerBeforeFlushEvents()\n\t\t\tthis.onUpdate(newMetadata)\n\t\t\tthis.flushPendingAccessorUpdates(Array.from(this.rootsWithPendingUpdates))\n\n\t\t\tthis.rootsWithPendingUpdates.clear()\n\t\t\tthis.isFrozenWhileUpdating = false\n\t\t\tthis.previousMetadata = newMetadata\n\t\t})\n\t}\n\n\tprivate getNewUpdateMetadata(): UpdateMetadata {\n\t\treturn {\n\t\t\tisMutating: this.isMutating,\n\t\t}\n\t}\n\n\tprivate shouldFlushUpdates(newMetadata: UpdateMetadata): boolean {\n\t\tif (this.transactionDepth > 0) {\n\t\t\treturn false\n\t\t}\n\t\tif (this.previousMetadata === undefined) {\n\t\t\treturn true\n\t\t}\n\t\tif (this.rootsWithPendingUpdates.size) {\n\t\t\treturn true\n\t\t}\n\t\tfor (const key in newMetadata) {\n\t\t\tconst fromPrevious = this.previousMetadata[key as keyof UpdateMetadata]\n\t\t\tconst fromNew = newMetadata[key as keyof UpdateMetadata]\n\n\t\t\tif (!Object.is(fromPrevious, fromNew)) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\t}\n\n\tpublic registerNewlyInitialized(newlyInitialized: StateNode) {\n\t\tconst initializeListeners = this.getEventListeners(newlyInitialized, { type: 'initialize' })\n\n\t\tif (initializeListeners === undefined) {\n\t\t\treturn\n\t\t}\n\n\t\tthis.newlyInitializedWithListeners.add(newlyInitialized)\n\n\t\tif (this.transactionDepth === 0) {\n\t\t\tthis.triggerOnInitialize()\n\t\t}\n\t}\n\n\tpublic registerUpdatedConnection(parentState: EntityRealmState, placeholderName: PlaceholderName) {\n\t\tif (parentState.fieldsWithPendingConnectionUpdates === undefined) {\n\t\t\tparentState.fieldsWithPendingConnectionUpdates = new Set()\n\t\t}\n\n\t\tconst marker = getEntityMarker(parentState)\n\t\tplaceholders: for (const [fieldName, placeholdersByField] of marker.fields.placeholders) {\n\t\t\tif (typeof placeholdersByField === 'string') {\n\t\t\t\tif (placeholdersByField === placeholderName) {\n\t\t\t\t\tparentState.fieldsWithPendingConnectionUpdates.add(fieldName)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (const placeholderByFieldName of placeholdersByField) {\n\t\t\t\t\tif (placeholderByFieldName === placeholderName) {\n\t\t\t\t\t\tparentState.fieldsWithPendingConnectionUpdates.add(fieldName)\n\t\t\t\t\t\tcontinue placeholders\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic registerJustUpdated(justUpdated: StateNode, changesDelta: number) {\n\t\tconst beforeUpdateListeners = this.getEventListeners(justUpdated, { type: 'beforeUpdate' })\n\t\tif (beforeUpdateListeners !== undefined) {\n\t\t\tthis.pendingWithBeforeUpdate.add(justUpdated)\n\t\t}\n\t\tjustUpdated.accessor = undefined\n\n\t\tswitch (justUpdated.type) {\n\t\t\tcase 'entityRealm':\n\t\t\tcase 'entityList': {\n\t\t\t\tjustUpdated.unpersistedChangesCount += changesDelta\n\n\t\t\t\tif (import.meta.env.DEV) {\n\t\t\t\t\tif (justUpdated.unpersistedChangesCount < 0) {\n\t\t\t\t\t\tconsole.error(\n\t\t\t\t\t\t\t`We have *JUST* reached a completely invalid state. From now on, anything can (and likely will) ` +\n\t\t\t\t\t\t\t\t`go wrong. This is definitely a bug. Please try to report whatever led to this situation.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tconst parent = justUpdated.blueprint.parent\n\n\t\t\t\tif (parent === undefined) {\n\t\t\t\t\tthis.rootsWithPendingUpdates.add(justUpdated)\n\n\t\t\t\t\tif (!(justUpdated.blueprint.type === 'subTree' && justUpdated.blueprint.marker.parameters.isCreating && justUpdated.blueprint.marker.parameters.isUnpersisted)) {\n\t\t\t\t\t\tthis.dirtinessTracker.increaseBy(changesDelta)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (!parent.childrenWithPendingUpdates) {\n\t\t\t\t\t\tparent.childrenWithPendingUpdates = new Set()\n\t\t\t\t\t}\n\t\t\t\t\tparent.childrenWithPendingUpdates.add(justUpdated as any)\n\t\t\t\t\tthis.registerJustUpdated(parent, changesDelta)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tcase 'field': {\n\t\t\t\tconst parent = justUpdated.parent\n\t\t\t\tif (!parent.childrenWithPendingUpdates) {\n\t\t\t\t\tparent.childrenWithPendingUpdates = new Set()\n\t\t\t\t}\n\t\t\t\tparent.childrenWithPendingUpdates.add(justUpdated as any)\n\t\t\t\tthis.registerJustUpdated(justUpdated.parent, changesDelta)\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate flushPendingAccessorUpdates(rootStates: Array<StateINode>) {\n\t\t// It is *CRUCIAL* that this is a BFS so that we update the components in top-down order.\n\t\tconst agenda: StateNode[] = rootStates\n\n\t\tfor (const state of agenda) {\n\t\t\t// yes, the calls are same, but this way we can avoid type casting\n\t\t\tconst updateListeners =\n\t\t\t\tstate.type === 'field'\n\t\t\t\t\t? this.getEventDispatchers(state, { type: 'update' }, [state.getAccessor()])\n\t\t\t\t\t: state.type === 'entityRealm'\n\t\t\t\t\t\t? this.getEventDispatchers(state, { type: 'update' }, [state.getAccessor()])\n\t\t\t\t\t\t: this.getEventDispatchers(state, { type: 'update' }, [state.getAccessor()])\n\n\t\t\tif (updateListeners !== undefined) {\n\t\t\t\tfor (const handler of updateListeners) {\n\t\t\t\t\t// TS can't quite handle the polymorphism here but this is fine.\n\t\t\t\t\thandler()\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (state.type === 'entityRealm' && state.fieldsWithPendingConnectionUpdates) {\n\t\t\t\tfor (const updatedField of state.fieldsWithPendingConnectionUpdates) {\n\t\t\t\t\tconst listeners = this.getEventListeners(state, { type: 'connectionUpdate', key: updatedField })\n\t\t\t\t\tif (!listeners) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\tlistener(state.getAccessor())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tswitch (state.type) {\n\t\t\t\tcase 'entityRealm':\n\t\t\t\tcase 'entityList': {\n\t\t\t\t\tif (state.childrenWithPendingUpdates !== undefined) {\n\t\t\t\t\t\tfor (const childState of state.childrenWithPendingUpdates) {\n\t\t\t\t\t\t\tagenda.push(childState)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstate.childrenWithPendingUpdates.clear()\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'field':\n\t\t\t\t\t// Do nothing\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\tassertNever(state)\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate async triggerAsyncMutatingEvent(eventType: 'beforePersist', options: AsyncBatchUpdatesOptions): Promise<void>\n\tprivate async triggerAsyncMutatingEvent(eventType: 'persistSuccess', options: PersistSuccessOptions): Promise<void>\n\tprivate async triggerAsyncMutatingEvent(\n\t\teventType: 'beforePersist' | 'persistSuccess',\n\t\toptions: AsyncBatchUpdatesOptions | PersistSuccessOptions,\n\t): Promise<void> {\n\t\tawait this.asyncTransaction(async () => {\n\t\t\t// TODO if an entity from here (or its parent) gets deleted, we need to remove stale handlers from here.\n\t\t\tconst callbackQueue: Array<\n\t\t\t\t[\n\t\t\t\t\t// The typings could be nicer but TS…\n\t\t\t\t\tStateINode,\n\t\t\t\t\t(\n\t\t\t\t\t\t| EntityAccessor.EntityEventListenerMap[typeof eventType]\n\t\t\t\t\t\t| EntityListAccessor.EntityListEventListenerMap[typeof eventType]\n\t\t\t\t\t),\n\t\t\t\t]\n\t\t\t> = []\n\n\t\t\tfor (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {\n\t\t\t\tfor (const iNode of StateIterator.depthFirstINodes(subTreeState)) {\n\t\t\t\t\tconst listeners = this.getEventListeners(iNode, { type: eventType }) ?? []\n\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\tcallbackQueue.push([iNode, listener])\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (\n\t\t\t\tlet waterfallDepth = 0;\n\t\t\t\twaterfallDepth < this.config.getValue(`${eventType}SettleLimit` as const);\n\t\t\t\twaterfallDepth++\n\t\t\t) {\n\t\t\t\tconst promiseReturns: Array<\n\t\t\t\t\tPromise<\n\t\t\t\t\t\t| void\n\t\t\t\t\t\t| EntityAccessor.EntityEventListenerMap[typeof eventType]\n\t\t\t\t\t\t| EntityListAccessor.EntityListEventListenerMap[typeof eventType]\n\t\t\t\t\t>\n\t\t\t\t> = []\n\t\t\t\tconst correspondingStates: Array<StateINode> = []\n\n\t\t\t\tif (callbackQueue.length === 0) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\n\t\t\t\tfor (const [state, callback] of callbackQueue) {\n\t\t\t\t\tcorrespondingStates.push(state)\n\t\t\t\t\tconst changesCountBefore = this.dirtinessTracker.getTotalTouchCount()\n\t\t\t\t\tlet validateChanges = false\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst result = callback(state.getAccessor as any, options as any) // TS can't quite handle this but this is sound.\n\t\t\t\t\t\tif (result instanceof Promise) {\n\t\t\t\t\t\t\tvalidateChanges = true\n\t\t\t\t\t\t\tpromiseReturns.push(result)\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpromiseReturns.push(Promise.resolve(result))\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tpromiseReturns.push(Promise.reject(e))\n\t\t\t\t\t}\n\t\t\t\t\tif (validateChanges) {\n\t\t\t\t\t\tthis.validateWithoutChanges(changesCountBefore, eventType)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO timeout\n\n\t\t\t\tconst changesCountBefore = this.dirtinessTracker.getTotalTouchCount()\n\t\t\t\tconst newCallbacks = await Promise.allSettled(promiseReturns)\n\t\t\t\tthis.validateWithoutChanges(changesCountBefore, eventType)\n\n\t\t\t\tcallbackQueue.length = 0 // Empties the queue\n\n\t\t\t\t// TODO we're drifting away from the original depth-first order. Let's see if that's ever even an issue.\n\t\t\t\tfor (const newlyInitialized of this.newlyInitializedWithListeners) {\n\t\t\t\t\tif (newlyInitialized.type === 'field') {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tconst beforePersistHandlers = this.getEventListeners(newlyInitialized, { type: eventType })\n\t\t\t\t\tif (beforePersistHandlers) {\n\t\t\t\t\t\tfor (const listener of beforePersistHandlers) {\n\t\t\t\t\t\t\tcallbackQueue.push([newlyInitialized, listener])\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.triggerBeforeFlushEvents()\n\t\t\t\tthis.handleRejections(eventType, newCallbacks)\n\n\t\t\t\tfor (let i = 0; i < newCallbacks.length; i++) {\n\t\t\t\t\tconst result = newCallbacks[i]\n\t\t\t\t\tconst correspondingState = correspondingStates[i]\n\n\t\t\t\t\tif (result.status === 'fulfilled') {\n\t\t\t\t\t\tif (typeof result.value === 'function') {\n\t\t\t\t\t\t\tcallbackQueue.push([correspondingState, result.value])\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Otherwise do nothing. This is just a handler that albeit async, doesn't appear to\n\t\t\t\t\t\t// interact with data binding.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (import.meta.env.DEV) {\n\t\t\t\tif (callbackQueue.length) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Exceeded the ${eventType} settle limit. Your code likely contains a deadlock. ` +\n\t\t\t\t\t\t\t`If that's not the case, raise the settle limit from DataBindingProvider.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\tprivate triggerBeforeFlushEvents() {\n\t\tthis.syncTransaction(() => {\n\t\t\tconst settleLimit = this.config.getValue('beforeUpdateSettleLimit')\n\n\t\t\tfor (let attemptNumber = 0; attemptNumber < settleLimit; attemptNumber++) {\n\t\t\t\tif (!this.pendingWithBeforeUpdate.size) {\n\t\t\t\t\tthis.triggerOnInitialize()\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tconst withBeforeUpdate = this.pendingWithBeforeUpdate\n\t\t\t\tthis.pendingWithBeforeUpdate = new Set()\n\n\t\t\t\tfor (const state of withBeforeUpdate) {\n\t\t\t\t\tconst listeners = this.getEventListeners(state, { type: 'beforeUpdate' })\n\t\t\t\t\tif (listeners === undefined) {\n\t\t\t\t\t\t// This can happen if the listener has unsubscribed since we added it to the set.\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tswitch (state.type) {\n\t\t\t\t\t\tcase 'field':\n\t\t\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\t\t\t(listener as FieldAccessor.BeforeUpdateListener)(state.getAccessor())\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase 'entityRealm':\n\t\t\t\t\t\tcase 'entityList':\n\t\t\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\t\t\tstate.getAccessor().batchUpdates(listener as any)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn assertNever(state)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.triggerOnInitialize()\n\t\t\t}\n\t\t\tthrow new BindingError(\n\t\t\t\t`Maximum stabilization limit of updates caused by 'beforeUpdate' exceeded. ` +\n\t\t\t\t\t`This likely means there is an infinite feedback loop in your code.`,\n\t\t\t)\n\t\t})\n\t}\n\n\tprivate triggerOnInitialize() {\n\t\tthis.syncTransaction(() => {\n\t\t\tfor (const state of this.newlyInitializedWithListeners) {\n\t\t\t\t// yes, the calls are same, but this way we can avoid type casting\n\t\t\t\tconst listeners =\n\t\t\t\t\tstate.type === 'field'\n\t\t\t\t\t\t? this.getEventDispatchers(state, { type: 'initialize' }, [state.getAccessor, this.batchUpdatesOptions])\n\t\t\t\t\t\t: state.type === 'entityRealm'\n\t\t\t\t\t\t\t? this.getEventDispatchers(state, { type: 'initialize' }, [state.getAccessor, this.batchUpdatesOptions])\n\t\t\t\t\t\t\t: this.getEventDispatchers(state, { type: 'initialize' }, [state.getAccessor, this.batchUpdatesOptions])\n\n\t\t\t\tif (listeners) {\n\t\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\t\tlistener()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (state.type === 'entityRealm') {\n\t\t\t\t\tstate.entity.hasIdSetInStone = true\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.newlyInitializedWithListeners.clear()\n\t\t})\n\t}\n\n\tpublic async triggerOnPersistError(options: PersistErrorOptions) {\n\t\tawait this.asyncTransaction(async () => {\n\t\t\tconst handlerPromises: Array<Promise<void>> = []\n\n\t\t\tfor (const [, subTreeState] of StateIterator.eachRootState(this.treeStore)) {\n\t\t\t\tfor (const iNode of StateIterator.depthFirstINodes(subTreeState)) {\n\t\t\t\t\t// yes, the calls are same, but this way we can avoid type casting\n\t\t\t\t\tconst dispatchers =\n\t\t\t\t\t\tiNode.type === 'entityRealm'\n\t\t\t\t\t\t\t? this.getEventDispatchers(iNode, { type: 'persistError' }, [iNode.getAccessor, options])\n\t\t\t\t\t\t\t: this.getEventDispatchers(iNode, { type: 'persistError' }, [iNode.getAccessor, options])\n\t\t\t\t\tif (dispatchers === undefined) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tfor (const listener of dispatchers ?? []) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst result = listener()\n\t\t\t\t\t\t\tif (result instanceof Promise) {\n\t\t\t\t\t\t\t\thandlerPromises.push(result)\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandlerPromises.push(Promise.resolve(result))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\thandlerPromises.push(Promise.reject(e))\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// TODO timeout\n\t\t\tconst handlerResults = await Promise.allSettled(handlerPromises)\n\t\t\tthis.handleRejections('persistError', handlerResults)\n\t\t})\n\t}\n\n\tpublic async triggerOnBeforePersist() {\n\t\treturn this.triggerAsyncMutatingEvent('beforePersist', this.asyncBatchUpdatesOptions)\n\t}\n\n\tpublic async triggerOnPersistSuccess(options: PersistSuccessOptions) {\n\t\treturn this.triggerAsyncMutatingEvent('persistSuccess', options)\n\t}\n\n\tpublic getEventListeners<\n\t\tState extends StateNode,\n\t\tEventListenerTypes extends\n\t\tExclude<State['eventListeners'], undefined> extends EventListenersStore<infer Keys, infer Map> ? [Keys, Map] : never,\n\t\tEventType extends EventListenerTypes[0],\n\t>(state: State, event: { type: EventType; key?: string }): Set<Exclude<EventListenerTypes[1][EventType], undefined>> | undefined {\n\t\tif (!state.eventListeners) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn (state.eventListeners as EventListenersStore<EventType, EventListenerTypes[1]>).get(event) as Set<\n\t\t\tExclude<EventListenerTypes[1][EventType], undefined>\n\t\t>\n\t}\n\n\tpublic getEventDispatchers<\n\t\tState extends StateNode,\n\t\tEventListenerTypes extends\n\t\tExclude<State['eventListeners'], undefined> extends EventListenersStore<infer Keys, infer Map> ? [Keys, Map] : never,\n\t\tEventType extends EventListenerTypes[0],\n\t>(\n\t\tstate: State,\n\t\tevent: { type: EventType; key?: string },\n\t\tlistenerArgs: Parameters<Exclude<EventListenerTypes[1][EventType], undefined>>,\n\t): Array<() => ReturnType<Exclude<EventListenerTypes[1][EventType], undefined>>> | undefined {\n\t\tconst eventListeners = this.getEventListeners(state, event)\n\t\tif (eventListeners === undefined) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn Array.from(eventListeners.values(), listener => {\n\t\t\treturn () => listener(...listenerArgs)\n\t\t}) as Array<() => ReturnType<Exclude<EventListenerTypes[1][EventType], undefined>>>\n\t}\n\n\tprivate handleRejections(handler: string, promises: PromiseSettledResult<any>[]) {\n\t\tconst rejections = promises.filter((it): it is PromiseRejectedResult => it.status === 'rejected')\n\t\tif (rejections.length === 0) {\n\t\t\treturn\n\t\t}\n\t\trejections.forEach(it => console.error(it.reason))\n\t\tif (import.meta.env.DEV) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`A ${handler} handler returned a promise that rejected. ` +\n\t\t\t\t\t`This is a no-op that will fail silently in production.`,\n\t\t\t)\n\t\t}\n\t}\n\n\n\tprivate validateWithoutChanges(initialCount: number, eventType: string): void {\n\t\tconst changesCountAfter = this.dirtinessTracker.getTotalTouchCount()\n\t\tif (import.meta.env.DEV) {\n\t\t\tif (initialCount !== changesCountAfter) {\n\t\t\t\t// This isn't bulletproof. They could e.g. undo a change and make another one which would\n\t\t\t\t// slip through this detection. But for most cases, it should be good enough and not too expensive.\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`A ${eventType} event handler cannot be asynchronous and alter the accessor tree at the same time. ` +\n\t\t\t\t\t`To achieve this, prepare your data asynchronously but only touch the tree from a returned callback.`,\n\t\t\t\t)\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":["changesCountBefore"],"mappings":";;;;;;;AA6BO,MAAM,aAAa;AAAA,EAiBlB,YACW,0BACA,qBACA,QACA,kBACA,UACA,WACA,gBAChB;AAPg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ACF;AAAA,EAEQ,iBAAiB,SAAiB,UAAuC;AAChF,UAAM,aAAa,SAAS,OAAO,CAAC,OAAoC,GAAG,WAAW,UAAU;AAC5F,QAAA,WAAW,WAAW,GAAG;AAC5B;AAAA,IACD;AACA,eAAW,QAAQ,CAAM,OAAA,QAAQ,MAAM,GAAG,MAAM,CAAC;AACxB;AACxB,YAAM,IAAI;AAAA,QACT,KAAK,OAAO;AAAA,MAAA;AAAA,IAGd;AAAA,EACD;AAAA,EAGQ,uBAAuB,cAAsB,WAAyB;AACvE,UAAA,oBAAoB,KAAK,iBAAiB,mBAAmB;AAC1C;AACxB,UAAI,iBAAiB,mBAAmB;AAGvC,cAAM,IAAI;AAAA,UACT,KAAK,SAAS;AAAA,QAAA;AAAA,MAGhB;AAAA,IACD;AAAA,EACD;AACD;AA9iBC,cADY,cACW,yBAAwB,CAAA;"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const bindingTypes = require("../bindingTypes.cjs");
|
|
4
|
-
const LocalizedBindingError = require("./exceptions/LocalizedBindingError.cjs");
|
|
5
|
-
const FieldMarker = require("../markers/FieldMarker.cjs");
|
|
6
|
-
const HasOneRelationMarker = require("../markers/HasOneRelationMarker.cjs");
|
|
7
|
-
const HasManyRelationMarker = require("../markers/HasManyRelationMarker.cjs");
|
|
8
|
-
const assertNever = require("../utils/assertNever.cjs");
|
|
9
|
-
class MarkerComparator {
|
|
10
|
-
static isSubTreeSubsetOf(candidate, superset) {
|
|
11
|
-
if (candidate.placeholderName !== superset.placeholderName) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
return this.isSubsetOf(candidate.fields, superset.fields);
|
|
15
|
-
}
|
|
16
|
-
static assertEntityMarkersSubsetOf(candidate, superset) {
|
|
17
|
-
this.assertSubsetOf(candidate, superset);
|
|
18
|
-
}
|
|
19
|
-
static assertSubsetOf(candidate, superset) {
|
|
20
|
-
for (const [placeholderName, candidateMarker] of candidate.markers) {
|
|
21
|
-
const fromSuperset = superset.markers.get(placeholderName);
|
|
22
|
-
if (fromSuperset === void 0) {
|
|
23
|
-
if (candidateMarker instanceof FieldMarker.FieldMarker) {
|
|
24
|
-
if (candidateMarker.fieldName === bindingTypes.PRIMARY_KEY_NAME || candidateMarker.fieldName === bindingTypes.TYPENAME_KEY_NAME) {
|
|
25
|
-
continue;
|
|
26
|
-
}
|
|
27
|
-
throw new LocalizedBindingError.LocalizedBindingError(`The field '${candidateMarker.fieldName}' is missing.`, [candidateMarker]);
|
|
28
|
-
}
|
|
29
|
-
if (candidateMarker instanceof HasOneRelationMarker.HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker.HasManyRelationMarker) {
|
|
30
|
-
const differentPlaceholders = superset.placeholders.get(candidateMarker.parameters.field);
|
|
31
|
-
if (differentPlaceholders === void 0) {
|
|
32
|
-
throw new LocalizedBindingError.LocalizedBindingError(`The relation '${candidateMarker.parameters.field}' is missing.`, [
|
|
33
|
-
candidateMarker
|
|
34
|
-
]);
|
|
35
|
-
}
|
|
36
|
-
throw new LocalizedBindingError.LocalizedBindingError(
|
|
37
|
-
`The relation '${candidateMarker.parameters.field}' exists but its parameters don't match exactly. Check that all relation parameters are the same.`,
|
|
38
|
-
[candidateMarker]
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
assertNever.assertNever();
|
|
42
|
-
}
|
|
43
|
-
if (candidateMarker instanceof FieldMarker.FieldMarker) {
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
if (candidateMarker instanceof HasOneRelationMarker.HasOneRelationMarker && fromSuperset instanceof HasOneRelationMarker.HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker.HasManyRelationMarker && fromSuperset instanceof HasManyRelationMarker.HasManyRelationMarker) {
|
|
48
|
-
this.assertSubsetOf(candidateMarker.fields, fromSuperset.fields);
|
|
49
|
-
}
|
|
50
|
-
} catch (e) {
|
|
51
|
-
if (e instanceof LocalizedBindingError.LocalizedBindingError) {
|
|
52
|
-
throw e.nestedIn(candidateMarker);
|
|
53
|
-
}
|
|
54
|
-
throw e;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
static isSubsetOf(candidate, superset) {
|
|
59
|
-
for (const [placeholderName, candidateMarker] of candidate.markers) {
|
|
60
|
-
const fromSuperset = superset.markers.get(placeholderName);
|
|
61
|
-
if (fromSuperset === void 0) {
|
|
62
|
-
if (candidateMarker instanceof FieldMarker.FieldMarker && (candidateMarker.fieldName === bindingTypes.PRIMARY_KEY_NAME || candidateMarker.fieldName === bindingTypes.TYPENAME_KEY_NAME)) {
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
if (candidateMarker instanceof FieldMarker.FieldMarker || fromSuperset instanceof FieldMarker.FieldMarker) {
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
if (!this.isSubsetOf(candidateMarker.fields, fromSuperset.fields)) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
//private static assertAreMarkersSubsetOf(): {}
|
|
77
|
-
}
|
|
78
|
-
exports.MarkerComparator = MarkerComparator;
|
|
79
|
-
//# sourceMappingURL=MarkerComparator.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarkerComparator.cjs","sources":["../../../../../packages/binding/src/core/MarkerComparator.ts"],"sourcesContent":["import { PRIMARY_KEY_NAME, TYPENAME_KEY_NAME } from '../bindingTypes'\nimport {\n\tEntityFieldMarkersContainer,\n\tEntityListSubTreeMarker,\n\tEntitySubTreeMarker,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n} from '../markers'\nimport { assertNever } from '../utils'\nimport { LocalizedBindingError } from './exceptions'\n\nexport class MarkerComparator {\n\tpublic static isSubTreeSubsetOf(\n\t\tcandidate: EntitySubTreeMarker | EntityListSubTreeMarker,\n\t\tsuperset: EntitySubTreeMarker | EntityListSubTreeMarker,\n\t): boolean {\n\t\tif (candidate.placeholderName !== superset.placeholderName) {\n\t\t\treturn false\n\t\t}\n\t\treturn this.isSubsetOf(candidate.fields, superset.fields)\n\t}\n\n\tpublic static assertEntityMarkersSubsetOf(\n\t\tcandidate: EntityFieldMarkersContainer,\n\t\tsuperset: EntityFieldMarkersContainer,\n\t) {\n\t\tthis.assertSubsetOf(candidate, superset)\n\t}\n\n\tprivate static assertSubsetOf(candidate: EntityFieldMarkersContainer, superset: EntityFieldMarkersContainer) {\n\t\tfor (const [placeholderName, candidateMarker] of candidate.markers) {\n\t\t\tconst fromSuperset = superset.markers.get(placeholderName)\n\n\t\t\tif (fromSuperset === undefined) {\n\t\t\t\tif (candidateMarker instanceof FieldMarker) {\n\t\t\t\t\tif (candidateMarker.fieldName === PRIMARY_KEY_NAME || candidateMarker.fieldName === TYPENAME_KEY_NAME) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tthrow new LocalizedBindingError(`The field '${candidateMarker.fieldName}' is missing.`, [candidateMarker])\n\t\t\t\t}\n\t\t\t\tif (candidateMarker instanceof HasOneRelationMarker || candidateMarker instanceof HasManyRelationMarker) {\n\t\t\t\t\tconst differentPlaceholders = superset.placeholders.get(candidateMarker.parameters.field)\n\n\t\t\t\t\tif (differentPlaceholders === undefined) {\n\t\t\t\t\t\tthrow new LocalizedBindingError(`The relation '${candidateMarker.parameters.field}' is missing.`, [\n\t\t\t\t\t\t\tcandidateMarker,\n\t\t\t\t\t\t])\n\t\t\t\t\t}\n\t\t\t\t\t// TODO be more specific\n\t\t\t\t\tthrow new LocalizedBindingError(\n\t\t\t\t\t\t`The relation '${candidateMarker.parameters.field}' exists but its parameters don't match exactly. ` +\n\t\t\t\t\t\t\t`Check that all relation parameters are the same.`,\n\t\t\t\t\t\t[candidateMarker],\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tassertNever(candidateMarker)\n\t\t\t}\n\t\t\tif (candidateMarker instanceof FieldMarker) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (\n\t\t\t\t\t(candidateMarker instanceof HasOneRelationMarker && fromSuperset instanceof HasOneRelationMarker) ||\n\t\t\t\t\t(candidateMarker instanceof HasManyRelationMarker && fromSuperset instanceof HasManyRelationMarker)\n\t\t\t\t) {\n\t\t\t\t\tthis.assertSubsetOf(candidateMarker.fields, fromSuperset.fields)\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tif (e instanceof LocalizedBindingError) {\n\t\t\t\t\tthrow e.nestedIn(candidateMarker)\n\t\t\t\t}\n\t\t\t\tthrow e\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static isSubsetOf(candidate: EntityFieldMarkersContainer, superset: EntityFieldMarkersContainer): boolean {\n\t\tfor (const [placeholderName, candidateMarker] of candidate.markers) {\n\t\t\tconst fromSuperset = superset.markers.get(placeholderName)\n\n\t\t\tif (fromSuperset === undefined) {\n\t\t\t\tif (\n\t\t\t\t\tcandidateMarker instanceof FieldMarker &&\n\t\t\t\t\t(candidateMarker.fieldName === PRIMARY_KEY_NAME || candidateMarker.fieldName === TYPENAME_KEY_NAME)\n\t\t\t\t) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif (candidateMarker instanceof FieldMarker || fromSuperset instanceof FieldMarker) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif (!this.isSubsetOf(candidateMarker.fields, fromSuperset.fields)) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t\treturn true\n\t}\n\n\t//private static assertAreMarkersSubsetOf(): {}\n}\n"],"names":["FieldMarker","PRIMARY_KEY_NAME","TYPENAME_KEY_NAME","LocalizedBindingError","HasOneRelationMarker","HasManyRelationMarker","assertNever"],"mappings":";;;;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