actor-ts 0.9.1 → 0.11.0
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/CHANGELOG.md +703 -1
- package/README.md +294 -269
- package/dist/Actor.d.ts +6 -6
- package/dist/Actor.d.ts.map +1 -1
- package/dist/Actor.js.map +1 -1
- package/dist/ActorContext.d.ts +7 -7
- package/dist/ActorContext.d.ts.map +1 -1
- package/dist/ActorPath.js +8 -8
- package/dist/ActorPath.js.map +1 -1
- package/dist/ActorRef.d.ts +6 -6
- package/dist/ActorRef.d.ts.map +1 -1
- package/dist/ActorRef.js.map +1 -1
- package/dist/ActorSystem.d.ts +3 -38
- package/dist/ActorSystem.d.ts.map +1 -1
- package/dist/ActorSystem.js +23 -23
- package/dist/ActorSystem.js.map +1 -1
- package/dist/ActorSystemOptions.d.ts +91 -0
- package/dist/ActorSystemOptions.d.ts.map +1 -0
- package/dist/ActorSystemOptions.js +45 -0
- package/dist/ActorSystemOptions.js.map +1 -0
- package/dist/CoordinatedShutdown.js +3 -3
- package/dist/CoordinatedShutdown.js.map +1 -1
- package/dist/Logger.d.ts +63 -0
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +146 -0
- package/dist/Logger.js.map +1 -1
- package/dist/Props.d.ts +13 -13
- package/dist/Props.d.ts.map +1 -1
- package/dist/Props.js.map +1 -1
- package/dist/Router.d.ts +4 -4
- package/dist/Router.d.ts.map +1 -1
- package/dist/Router.js +4 -4
- package/dist/Router.js.map +1 -1
- package/dist/Supervision.js +3 -3
- package/dist/Supervision.js.map +1 -1
- package/dist/cache/CacheExtension.d.ts +7 -0
- package/dist/cache/CacheExtension.d.ts.map +1 -1
- package/dist/cache/CacheExtension.js +17 -1
- package/dist/cache/CacheExtension.js.map +1 -1
- package/dist/cache/InMemoryCache.d.ts +39 -0
- package/dist/cache/InMemoryCache.d.ts.map +1 -1
- package/dist/cache/InMemoryCache.js +99 -20
- package/dist/cache/InMemoryCache.js.map +1 -1
- package/dist/cache/InMemoryCacheOptions.d.ts +50 -0
- package/dist/cache/InMemoryCacheOptions.d.ts.map +1 -0
- package/dist/cache/InMemoryCacheOptions.js +51 -0
- package/dist/cache/InMemoryCacheOptions.js.map +1 -0
- package/dist/cache/MemcachedCache.d.ts +2 -12
- package/dist/cache/MemcachedCache.d.ts.map +1 -1
- package/dist/cache/MemcachedCache.js +13 -10
- package/dist/cache/MemcachedCache.js.map +1 -1
- package/dist/cache/MemcachedCacheOptions.d.ts +46 -0
- package/dist/cache/MemcachedCacheOptions.d.ts.map +1 -0
- package/dist/cache/MemcachedCacheOptions.js +42 -0
- package/dist/cache/MemcachedCacheOptions.js.map +1 -0
- package/dist/cache/RedisCache.d.ts +2 -22
- package/dist/cache/RedisCache.d.ts.map +1 -1
- package/dist/cache/RedisCache.js +16 -13
- package/dist/cache/RedisCache.js.map +1 -1
- package/dist/cache/RedisCacheOptions.d.ts +66 -0
- package/dist/cache/RedisCacheOptions.d.ts.map +1 -0
- package/dist/cache/RedisCacheOptions.js +62 -0
- package/dist/cache/RedisCacheOptions.js.map +1 -0
- package/dist/cache/index.d.ts +8 -2
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/cache/index.js +3 -0
- package/dist/cache/index.js.map +1 -1
- package/dist/cluster/Cluster.d.ts +7 -66
- package/dist/cluster/Cluster.d.ts.map +1 -1
- package/dist/cluster/Cluster.js +97 -90
- package/dist/cluster/Cluster.js.map +1 -1
- package/dist/cluster/ClusterBootstrap.d.ts +6 -84
- package/dist/cluster/ClusterBootstrap.d.ts.map +1 -1
- package/dist/cluster/ClusterBootstrap.js +37 -23
- package/dist/cluster/ClusterBootstrap.js.map +1 -1
- package/dist/cluster/ClusterBootstrapOptions.d.ts +158 -0
- package/dist/cluster/ClusterBootstrapOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterBootstrapOptions.js +121 -0
- package/dist/cluster/ClusterBootstrapOptions.js.map +1 -0
- package/dist/cluster/ClusterClient.d.ts +21 -31
- package/dist/cluster/ClusterClient.d.ts.map +1 -1
- package/dist/cluster/ClusterClient.js +34 -20
- package/dist/cluster/ClusterClient.js.map +1 -1
- package/dist/cluster/ClusterClientOptions.d.ts +76 -0
- package/dist/cluster/ClusterClientOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterClientOptions.js +61 -0
- package/dist/cluster/ClusterClientOptions.js.map +1 -0
- package/dist/cluster/ClusterClientReceptionist.d.ts +4 -10
- package/dist/cluster/ClusterClientReceptionist.d.ts.map +1 -1
- package/dist/cluster/ClusterClientReceptionist.js +17 -13
- package/dist/cluster/ClusterClientReceptionist.js.map +1 -1
- package/dist/cluster/ClusterClientReceptionistOptions.d.ts +38 -0
- package/dist/cluster/ClusterClientReceptionistOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterClientReceptionistOptions.js +32 -0
- package/dist/cluster/ClusterClientReceptionistOptions.js.map +1 -0
- package/dist/cluster/ClusterOptions.d.ts +122 -0
- package/dist/cluster/ClusterOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterOptions.js +98 -0
- package/dist/cluster/ClusterOptions.js.map +1 -0
- package/dist/cluster/FailureDetector.d.ts +4 -11
- package/dist/cluster/FailureDetector.d.ts.map +1 -1
- package/dist/cluster/FailureDetector.js +10 -7
- package/dist/cluster/FailureDetector.js.map +1 -1
- package/dist/cluster/FailureDetectorOptions.d.ts +49 -0
- package/dist/cluster/FailureDetectorOptions.d.ts.map +1 -0
- package/dist/cluster/FailureDetectorOptions.js +48 -0
- package/dist/cluster/FailureDetectorOptions.js.map +1 -0
- package/dist/cluster/Member.js +2 -2
- package/dist/cluster/Member.js.map +1 -1
- package/dist/cluster/PhiAccrualFailureDetector.d.ts +4 -20
- package/dist/cluster/PhiAccrualFailureDetector.d.ts.map +1 -1
- package/dist/cluster/PhiAccrualFailureDetector.js +40 -44
- package/dist/cluster/PhiAccrualFailureDetector.js.map +1 -1
- package/dist/cluster/PhiAccrualOptions.d.ts +64 -0
- package/dist/cluster/PhiAccrualOptions.d.ts.map +1 -0
- package/dist/cluster/PhiAccrualOptions.js +68 -0
- package/dist/cluster/PhiAccrualOptions.js.map +1 -0
- package/dist/cluster/Protocol.d.ts +10 -10
- package/dist/cluster/Protocol.d.ts.map +1 -1
- package/dist/cluster/Protocol.js +1 -1
- package/dist/cluster/RefCodec.js +11 -1
- package/dist/cluster/RefCodec.js.map +1 -1
- package/dist/cluster/RemoteActorRef.d.ts +2 -2
- package/dist/cluster/RemoteActorRef.d.ts.map +1 -1
- package/dist/cluster/RemoteActorRef.js.map +1 -1
- package/dist/cluster/Transport.d.ts +3 -3
- package/dist/cluster/Transport.d.ts.map +1 -1
- package/dist/cluster/Transport.js +2 -2
- package/dist/cluster/Transport.js.map +1 -1
- package/dist/cluster/downing/KeepMajority.d.ts +3 -6
- package/dist/cluster/downing/KeepMajority.d.ts.map +1 -1
- package/dist/cluster/downing/KeepMajority.js +6 -6
- package/dist/cluster/downing/KeepMajority.js.map +1 -1
- package/dist/cluster/downing/KeepMajorityOptions.d.ts +26 -0
- package/dist/cluster/downing/KeepMajorityOptions.d.ts.map +1 -0
- package/dist/cluster/downing/KeepMajorityOptions.js +19 -0
- package/dist/cluster/downing/KeepMajorityOptions.js.map +1 -0
- package/dist/cluster/downing/KeepOldest.d.ts +3 -12
- package/dist/cluster/downing/KeepOldest.d.ts.map +1 -1
- package/dist/cluster/downing/KeepOldest.js +5 -5
- package/dist/cluster/downing/KeepOldest.js.map +1 -1
- package/dist/cluster/downing/KeepOldestOptions.d.ts +34 -0
- package/dist/cluster/downing/KeepOldestOptions.d.ts.map +1 -0
- package/dist/cluster/downing/KeepOldestOptions.js +23 -0
- package/dist/cluster/downing/KeepOldestOptions.js.map +1 -0
- package/dist/cluster/downing/KeepReferee.d.ts +3 -11
- package/dist/cluster/downing/KeepReferee.d.ts.map +1 -1
- package/dist/cluster/downing/KeepReferee.js +7 -7
- package/dist/cluster/downing/KeepReferee.js.map +1 -1
- package/dist/cluster/downing/KeepRefereeOptions.d.ts +41 -0
- package/dist/cluster/downing/KeepRefereeOptions.d.ts.map +1 -0
- package/dist/cluster/downing/KeepRefereeOptions.js +38 -0
- package/dist/cluster/downing/KeepRefereeOptions.js.map +1 -0
- package/dist/cluster/downing/LeaseMajority.d.ts +63 -21
- package/dist/cluster/downing/LeaseMajority.d.ts.map +1 -1
- package/dist/cluster/downing/LeaseMajority.js +142 -17
- package/dist/cluster/downing/LeaseMajority.js.map +1 -1
- package/dist/cluster/downing/LeaseMajorityOptions.d.ts +55 -0
- package/dist/cluster/downing/LeaseMajorityOptions.d.ts.map +1 -0
- package/dist/cluster/downing/LeaseMajorityOptions.js +41 -0
- package/dist/cluster/downing/LeaseMajorityOptions.js.map +1 -0
- package/dist/cluster/downing/StaticQuorum.d.ts +3 -8
- package/dist/cluster/downing/StaticQuorum.d.ts.map +1 -1
- package/dist/cluster/downing/StaticQuorum.js +7 -8
- package/dist/cluster/downing/StaticQuorum.js.map +1 -1
- package/dist/cluster/downing/StaticQuorumOptions.d.ts +36 -0
- package/dist/cluster/downing/StaticQuorumOptions.d.ts.map +1 -0
- package/dist/cluster/downing/StaticQuorumOptions.js +33 -0
- package/dist/cluster/downing/StaticQuorumOptions.js.map +1 -0
- package/dist/cluster/downing/index.d.ts +10 -5
- package/dist/cluster/downing/index.d.ts.map +1 -1
- package/dist/cluster/downing/index.js +5 -0
- package/dist/cluster/downing/index.js.map +1 -1
- package/dist/cluster/index.d.ts +37 -22
- package/dist/cluster/index.d.ts.map +1 -1
- package/dist/cluster/index.js +17 -6
- package/dist/cluster/index.js.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubExtension.d.ts +2 -2
- package/dist/cluster/pubsub/DistributedPubSubExtension.d.ts.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubExtension.js +5 -2
- package/dist/cluster/pubsub/DistributedPubSubExtension.js.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubMediator.d.ts +6 -10
- package/dist/cluster/pubsub/DistributedPubSubMediator.d.ts.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubMediator.js +24 -22
- package/dist/cluster/pubsub/DistributedPubSubMediator.js.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts +35 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts.map +1 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.js +33 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.js.map +1 -0
- package/dist/cluster/pubsub/Messages.d.ts +5 -5
- package/dist/cluster/pubsub/Messages.d.ts.map +1 -1
- package/dist/cluster/pubsub/Messages.js +2 -2
- package/dist/cluster/pubsub/Messages.js.map +1 -1
- package/dist/cluster/pubsub/index.d.ts +3 -2
- package/dist/cluster/pubsub/index.d.ts.map +1 -1
- package/dist/cluster/pubsub/index.js +2 -1
- package/dist/cluster/pubsub/index.js.map +1 -1
- package/dist/cluster/router/ClusterRouter.d.ts +12 -32
- package/dist/cluster/router/ClusterRouter.d.ts.map +1 -1
- package/dist/cluster/router/ClusterRouter.js +10 -9
- package/dist/cluster/router/ClusterRouter.js.map +1 -1
- package/dist/cluster/router/ClusterRouterOptions.d.ts +70 -0
- package/dist/cluster/router/ClusterRouterOptions.d.ts.map +1 -0
- package/dist/cluster/router/ClusterRouterOptions.js +59 -0
- package/dist/cluster/router/ClusterRouterOptions.js.map +1 -0
- package/dist/cluster/router/ConsistentHashing.d.ts +1 -1
- package/dist/cluster/router/ConsistentHashing.d.ts.map +1 -1
- package/dist/cluster/router/ConsistentHashing.js +16 -16
- package/dist/cluster/router/ConsistentHashing.js.map +1 -1
- package/dist/cluster/router/index.d.ts +3 -1
- package/dist/cluster/router/index.d.ts.map +1 -1
- package/dist/cluster/router/index.js +1 -0
- package/dist/cluster/router/index.js.map +1 -1
- package/dist/cluster/sharding/AllocationStrategy.js +4 -4
- package/dist/cluster/sharding/AllocationStrategy.js.map +1 -1
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.d.ts +1 -15
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.d.ts.map +1 -1
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.js +35 -2
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.js.map +1 -1
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.d.ts +63 -0
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.js +63 -0
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.js.map +1 -0
- package/dist/cluster/sharding/ClusterSharding.d.ts +20 -66
- package/dist/cluster/sharding/ClusterSharding.d.ts.map +1 -1
- package/dist/cluster/sharding/ClusterSharding.js +65 -39
- package/dist/cluster/sharding/ClusterSharding.js.map +1 -1
- package/dist/cluster/sharding/CoordinatorState.d.ts +1 -1
- package/dist/cluster/sharding/CoordinatorState.js +1 -1
- package/dist/cluster/sharding/ShardAllocator.js +14 -14
- package/dist/cluster/sharding/ShardAllocator.js.map +1 -1
- package/dist/cluster/sharding/ShardCoordinator.d.ts +4 -64
- package/dist/cluster/sharding/ShardCoordinator.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardCoordinator.js +73 -73
- package/dist/cluster/sharding/ShardCoordinator.js.map +1 -1
- package/dist/cluster/sharding/ShardCoordinatorOptions.d.ts +111 -0
- package/dist/cluster/sharding/ShardCoordinatorOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardCoordinatorOptions.js +69 -0
- package/dist/cluster/sharding/ShardCoordinatorOptions.js.map +1 -0
- package/dist/cluster/sharding/ShardRegion.d.ts +11 -42
- package/dist/cluster/sharding/ShardRegion.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardRegion.js +20 -20
- package/dist/cluster/sharding/ShardRegion.js.map +1 -1
- package/dist/cluster/sharding/ShardedDaemonProcess.d.ts +2 -22
- package/dist/cluster/sharding/ShardedDaemonProcess.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardedDaemonProcess.js +20 -15
- package/dist/cluster/sharding/ShardedDaemonProcess.js.map +1 -1
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts +57 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.js +47 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.js.map +1 -0
- package/dist/cluster/sharding/ShardingOptions.d.ts +95 -0
- package/dist/cluster/sharding/ShardingOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardingOptions.js +92 -0
- package/dist/cluster/sharding/ShardingOptions.js.map +1 -0
- package/dist/cluster/sharding/ShardingProtocol.d.ts +6 -6
- package/dist/cluster/sharding/ShardingProtocol.d.ts.map +1 -1
- package/dist/cluster/sharding/StartShardingOptions.d.ts +106 -0
- package/dist/cluster/sharding/StartShardingOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/StartShardingOptions.js +67 -0
- package/dist/cluster/sharding/StartShardingOptions.js.map +1 -0
- package/dist/cluster/singleton/ClusterSingleton.d.ts +2 -30
- package/dist/cluster/singleton/ClusterSingleton.d.ts.map +1 -1
- package/dist/cluster/singleton/ClusterSingleton.js +22 -14
- package/dist/cluster/singleton/ClusterSingleton.js.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManager.d.ts +4 -19
- package/dist/cluster/singleton/ClusterSingletonManager.d.ts.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManager.js +26 -26
- package/dist/cluster/singleton/ClusterSingletonManager.js.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.d.ts +49 -0
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.d.ts.map +1 -0
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.js +40 -0
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.js.map +1 -0
- package/dist/cluster/singleton/ClusterSingletonProxy.js +2 -2
- package/dist/cluster/singleton/ClusterSingletonProxy.js.map +1 -1
- package/dist/cluster/singleton/StartSingletonOptions.d.ts +70 -0
- package/dist/cluster/singleton/StartSingletonOptions.d.ts.map +1 -0
- package/dist/cluster/singleton/StartSingletonOptions.js +51 -0
- package/dist/cluster/singleton/StartSingletonOptions.js.map +1 -0
- package/dist/cluster/singleton/index.d.ts +6 -2
- package/dist/cluster/singleton/index.d.ts.map +1 -1
- package/dist/cluster/singleton/index.js +2 -0
- package/dist/cluster/singleton/index.js.map +1 -1
- package/dist/config/Config.js +61 -61
- package/dist/config/Config.js.map +1 -1
- package/dist/config/ConfigKeys.d.ts +5 -0
- package/dist/config/ConfigKeys.d.ts.map +1 -1
- package/dist/config/ConfigKeys.js +5 -0
- package/dist/config/ConfigKeys.js.map +1 -1
- package/dist/config/HoconParser.d.ts +2 -2
- package/dist/config/HoconParser.d.ts.map +1 -1
- package/dist/config/HoconParser.js +77 -77
- package/dist/config/HoconParser.js.map +1 -1
- package/dist/config/reference.d.ts.map +1 -1
- package/dist/config/reference.js +24 -0
- package/dist/config/reference.js.map +1 -1
- package/dist/coordination/Lease.d.ts +32 -14
- package/dist/coordination/Lease.d.ts.map +1 -1
- package/dist/coordination/LeaseOptions.d.ts +74 -0
- package/dist/coordination/LeaseOptions.d.ts.map +1 -0
- package/dist/coordination/LeaseOptions.js +89 -0
- package/dist/coordination/LeaseOptions.js.map +1 -0
- package/dist/coordination/index.d.ts +5 -2
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +2 -0
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/leases/InMemoryLease.d.ts +18 -5
- package/dist/coordination/leases/InMemoryLease.d.ts.map +1 -1
- package/dist/coordination/leases/InMemoryLease.js +36 -22
- package/dist/coordination/leases/InMemoryLease.js.map +1 -1
- package/dist/coordination/leases/KubernetesLease.d.ts +20 -25
- package/dist/coordination/leases/KubernetesLease.d.ts.map +1 -1
- package/dist/coordination/leases/KubernetesLease.js +57 -36
- package/dist/coordination/leases/KubernetesLease.js.map +1 -1
- package/dist/coordination/leases/KubernetesLeaseOptions.d.ts +63 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.d.ts.map +1 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.js +53 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.js.map +1 -0
- package/dist/coordination/leases/k8sApi.d.ts +1 -1
- package/dist/coordination/leases/k8sApi.js +1 -1
- package/dist/crdt/DistributedData.d.ts +14 -34
- package/dist/crdt/DistributedData.d.ts.map +1 -1
- package/dist/crdt/DistributedData.js +37 -34
- package/dist/crdt/DistributedData.js.map +1 -1
- package/dist/crdt/DistributedDataOptions.d.ts +56 -0
- package/dist/crdt/DistributedDataOptions.d.ts.map +1 -0
- package/dist/crdt/DistributedDataOptions.js +38 -0
- package/dist/crdt/DistributedDataOptions.js.map +1 -0
- package/dist/crdt/GCounter.js +4 -4
- package/dist/crdt/GCounter.js.map +1 -1
- package/dist/crdt/GCounterMap.js +7 -7
- package/dist/crdt/GCounterMap.js.map +1 -1
- package/dist/crdt/GSet.js +8 -8
- package/dist/crdt/GSet.js.map +1 -1
- package/dist/crdt/LWWMap.d.ts +1 -1
- package/dist/crdt/LWWMap.js +19 -19
- package/dist/crdt/LWWMap.js.map +1 -1
- package/dist/crdt/MVRegister.js +16 -16
- package/dist/crdt/MVRegister.js.map +1 -1
- package/dist/crdt/ORMap.d.ts +2 -2
- package/dist/crdt/ORMap.js +18 -18
- package/dist/crdt/ORMap.js.map +1 -1
- package/dist/crdt/ORSet.js +38 -38
- package/dist/crdt/ORSet.js.map +1 -1
- package/dist/crdt/index.d.ts +3 -1
- package/dist/crdt/index.d.ts.map +1 -1
- package/dist/crdt/index.js +1 -0
- package/dist/crdt/index.js.map +1 -1
- package/dist/delivery/ConsumerController.d.ts +4 -11
- package/dist/delivery/ConsumerController.d.ts.map +1 -1
- package/dist/delivery/ConsumerController.js +12 -12
- package/dist/delivery/ConsumerController.js.map +1 -1
- package/dist/delivery/ConsumerControllerOptions.d.ts +32 -0
- package/dist/delivery/ConsumerControllerOptions.d.ts.map +1 -0
- package/dist/delivery/ConsumerControllerOptions.js +21 -0
- package/dist/delivery/ConsumerControllerOptions.js.map +1 -0
- package/dist/delivery/Messages.d.ts +2 -2
- package/dist/delivery/Messages.d.ts.map +1 -1
- package/dist/delivery/ProducerController.d.ts +8 -23
- package/dist/delivery/ProducerController.d.ts.map +1 -1
- package/dist/delivery/ProducerController.js +30 -27
- package/dist/delivery/ProducerController.js.map +1 -1
- package/dist/delivery/ProducerControllerOptions.d.ts +56 -0
- package/dist/delivery/ProducerControllerOptions.d.ts.map +1 -0
- package/dist/delivery/ProducerControllerOptions.js +47 -0
- package/dist/delivery/ProducerControllerOptions.js.map +1 -0
- package/dist/delivery/ReliableDelivery.d.ts +6 -5
- package/dist/delivery/ReliableDelivery.d.ts.map +1 -1
- package/dist/delivery/ReliableDelivery.js +6 -6
- package/dist/delivery/ReliableDelivery.js.map +1 -1
- package/dist/delivery/index.d.ts +6 -3
- package/dist/delivery/index.d.ts.map +1 -1
- package/dist/delivery/index.js +2 -0
- package/dist/delivery/index.js.map +1 -1
- package/dist/discovery/AutoDiscoveryOptions.d.ts +78 -0
- package/dist/discovery/AutoDiscoveryOptions.d.ts.map +1 -0
- package/dist/discovery/AutoDiscoveryOptions.js +45 -0
- package/dist/discovery/AutoDiscoveryOptions.js.map +1 -0
- package/dist/discovery/ConfigSeedProvider.d.ts +3 -8
- package/dist/discovery/ConfigSeedProvider.d.ts.map +1 -1
- package/dist/discovery/ConfigSeedProvider.js +8 -6
- package/dist/discovery/ConfigSeedProvider.js.map +1 -1
- package/dist/discovery/ConfigSeedProviderOptions.d.ts +40 -0
- package/dist/discovery/ConfigSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/ConfigSeedProviderOptions.js +38 -0
- package/dist/discovery/ConfigSeedProviderOptions.js.map +1 -0
- package/dist/discovery/DnsSeedProvider.d.ts +4 -28
- package/dist/discovery/DnsSeedProvider.d.ts.map +1 -1
- package/dist/discovery/DnsSeedProvider.js +14 -15
- package/dist/discovery/DnsSeedProvider.js.map +1 -1
- package/dist/discovery/DnsSeedProviderOptions.d.ts +77 -0
- package/dist/discovery/DnsSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/DnsSeedProviderOptions.js +68 -0
- package/dist/discovery/DnsSeedProviderOptions.js.map +1 -0
- package/dist/discovery/KubernetesApiSeedProvider.d.ts +3 -14
- package/dist/discovery/KubernetesApiSeedProvider.d.ts.map +1 -1
- package/dist/discovery/KubernetesApiSeedProvider.js +9 -7
- package/dist/discovery/KubernetesApiSeedProvider.js.map +1 -1
- package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts +52 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.js +52 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.js.map +1 -0
- package/dist/discovery/Receptionist.d.ts +3 -6
- package/dist/discovery/Receptionist.d.ts.map +1 -1
- package/dist/discovery/Receptionist.js +19 -10
- package/dist/discovery/Receptionist.js.map +1 -1
- package/dist/discovery/ReceptionistMessages.d.ts +2 -2
- package/dist/discovery/ReceptionistMessages.d.ts.map +1 -1
- package/dist/discovery/ReceptionistMessages.js +1 -1
- package/dist/discovery/ReceptionistMessages.js.map +1 -1
- package/dist/discovery/ReceptionistOptions.d.ts +36 -0
- package/dist/discovery/ReceptionistOptions.d.ts.map +1 -0
- package/dist/discovery/ReceptionistOptions.js +34 -0
- package/dist/discovery/ReceptionistOptions.js.map +1 -0
- package/dist/discovery/ServiceKey.d.ts +2 -2
- package/dist/discovery/ServiceKey.d.ts.map +1 -1
- package/dist/discovery/ServiceKey.js.map +1 -1
- package/dist/discovery/autoDiscovery.d.ts +3 -44
- package/dist/discovery/autoDiscovery.d.ts.map +1 -1
- package/dist/discovery/autoDiscovery.js +37 -35
- package/dist/discovery/autoDiscovery.js.map +1 -1
- package/dist/discovery/index.d.ts +11 -6
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/discovery/index.js +5 -0
- package/dist/discovery/index.js.map +1 -1
- package/dist/fsm/FSM.d.ts +1 -1
- package/dist/fsm/FSM.js +1 -1
- package/dist/http/Html.d.ts +53 -0
- package/dist/http/Html.d.ts.map +1 -0
- package/dist/http/Html.js +92 -0
- package/dist/http/Html.js.map +1 -0
- package/dist/http/HttpExtension.d.ts +9 -0
- package/dist/http/HttpExtension.d.ts.map +1 -1
- package/dist/http/HttpExtension.js +106 -10
- package/dist/http/HttpExtension.js.map +1 -1
- package/dist/http/Marshalling.js +3 -3
- package/dist/http/Marshalling.js.map +1 -1
- package/dist/http/MimeTypes.d.ts +15 -0
- package/dist/http/MimeTypes.d.ts.map +1 -0
- package/dist/http/MimeTypes.js +87 -0
- package/dist/http/MimeTypes.js.map +1 -0
- package/dist/http/Route.d.ts +153 -4
- package/dist/http/Route.d.ts.map +1 -1
- package/dist/http/Route.js +170 -9
- package/dist/http/Route.js.map +1 -1
- package/dist/http/backend/ExpressBackend.d.ts +31 -20
- package/dist/http/backend/ExpressBackend.d.ts.map +1 -1
- package/dist/http/backend/ExpressBackend.js +199 -34
- package/dist/http/backend/ExpressBackend.js.map +1 -1
- package/dist/http/backend/ExpressBackendOptions.d.ts +53 -0
- package/dist/http/backend/ExpressBackendOptions.d.ts.map +1 -0
- package/dist/http/backend/ExpressBackendOptions.js +45 -0
- package/dist/http/backend/ExpressBackendOptions.js.map +1 -0
- package/dist/http/backend/FastifyBackend.d.ts +13 -1
- package/dist/http/backend/FastifyBackend.d.ts.map +1 -1
- package/dist/http/backend/FastifyBackend.js +124 -14
- package/dist/http/backend/FastifyBackend.js.map +1 -1
- package/dist/http/backend/HonoBackend.d.ts +39 -16
- package/dist/http/backend/HonoBackend.d.ts.map +1 -1
- package/dist/http/backend/HonoBackend.js +269 -35
- package/dist/http/backend/HonoBackend.js.map +1 -1
- package/dist/http/backend/HonoBackendOptions.d.ts +53 -0
- package/dist/http/backend/HonoBackendOptions.d.ts.map +1 -0
- package/dist/http/backend/HonoBackendOptions.js +45 -0
- package/dist/http/backend/HonoBackendOptions.js.map +1 -0
- package/dist/http/backend/HttpServerBackend.d.ts +36 -2
- package/dist/http/backend/HttpServerBackend.d.ts.map +1 -1
- package/dist/http/cache/IdempotencyKey.d.ts +2 -46
- package/dist/http/cache/IdempotencyKey.d.ts.map +1 -1
- package/dist/http/cache/IdempotencyKey.js +25 -20
- package/dist/http/cache/IdempotencyKey.js.map +1 -1
- package/dist/http/cache/IdempotencyOptions.d.ts +84 -0
- package/dist/http/cache/IdempotencyOptions.d.ts.map +1 -0
- package/dist/http/cache/IdempotencyOptions.js +61 -0
- package/dist/http/cache/IdempotencyOptions.js.map +1 -0
- package/dist/http/cache/RateLimit.d.ts +13 -32
- package/dist/http/cache/RateLimit.d.ts.map +1 -1
- package/dist/http/cache/RateLimit.js +42 -8
- package/dist/http/cache/RateLimit.js.map +1 -1
- package/dist/http/cache/RateLimitOptions.d.ts +80 -0
- package/dist/http/cache/RateLimitOptions.d.ts.map +1 -0
- package/dist/http/cache/RateLimitOptions.js +61 -0
- package/dist/http/cache/RateLimitOptions.js.map +1 -0
- package/dist/http/cache/ResponseCache.js +3 -3
- package/dist/http/cache/ResponseCache.js.map +1 -1
- package/dist/http/cache/index.d.ts +4 -2
- package/dist/http/cache/index.d.ts.map +1 -1
- package/dist/http/cache/index.js +2 -0
- package/dist/http/cache/index.js.map +1 -1
- package/dist/http/cookies.d.ts +38 -0
- package/dist/http/cookies.d.ts.map +1 -0
- package/dist/http/cookies.js +102 -0
- package/dist/http/cookies.js.map +1 -0
- package/dist/http/index.d.ts +19 -7
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +17 -2
- package/dist/http/index.js.map +1 -1
- package/dist/http/middleware/BasicAuth.d.ts +5 -0
- package/dist/http/middleware/BasicAuth.d.ts.map +1 -0
- package/dist/http/middleware/BasicAuth.js +58 -0
- package/dist/http/middleware/BasicAuth.js.map +1 -0
- package/dist/http/middleware/BasicAuthOptions.d.ts +22 -0
- package/dist/http/middleware/BasicAuthOptions.d.ts.map +1 -0
- package/dist/http/middleware/BasicAuthOptions.js +19 -0
- package/dist/http/middleware/BasicAuthOptions.js.map +1 -0
- package/dist/http/middleware/BearerToken.d.ts +44 -0
- package/dist/http/middleware/BearerToken.d.ts.map +1 -0
- package/dist/http/middleware/BearerToken.js +72 -0
- package/dist/http/middleware/BearerToken.js.map +1 -0
- package/dist/http/middleware/Cors.d.ts +39 -0
- package/dist/http/middleware/Cors.d.ts.map +1 -0
- package/dist/http/middleware/Cors.js +164 -0
- package/dist/http/middleware/Cors.js.map +1 -0
- package/dist/http/middleware/CorsOptions.d.ts +57 -0
- package/dist/http/middleware/CorsOptions.d.ts.map +1 -0
- package/dist/http/middleware/CorsOptions.js +62 -0
- package/dist/http/middleware/CorsOptions.js.map +1 -0
- package/dist/http/middleware/Csp.d.ts +13 -0
- package/dist/http/middleware/Csp.d.ts.map +1 -0
- package/dist/http/middleware/Csp.js +68 -0
- package/dist/http/middleware/Csp.js.map +1 -0
- package/dist/http/middleware/CspOptions.d.ts +53 -0
- package/dist/http/middleware/CspOptions.d.ts.map +1 -0
- package/dist/http/middleware/CspOptions.js +24 -0
- package/dist/http/middleware/CspOptions.js.map +1 -0
- package/dist/http/middleware/Csrf.d.ts +22 -0
- package/dist/http/middleware/Csrf.d.ts.map +1 -0
- package/dist/http/middleware/Csrf.js +165 -0
- package/dist/http/middleware/Csrf.js.map +1 -0
- package/dist/http/middleware/CsrfOptions.d.ts +75 -0
- package/dist/http/middleware/CsrfOptions.d.ts.map +1 -0
- package/dist/http/middleware/CsrfOptions.js +80 -0
- package/dist/http/middleware/CsrfOptions.js.map +1 -0
- package/dist/http/middleware/Hsts.d.ts +28 -0
- package/dist/http/middleware/Hsts.d.ts.map +1 -0
- package/dist/http/middleware/Hsts.js +34 -0
- package/dist/http/middleware/Hsts.js.map +1 -0
- package/dist/http/middleware/HstsOptions.d.ts +44 -0
- package/dist/http/middleware/HstsOptions.d.ts.map +1 -0
- package/dist/http/middleware/HstsOptions.js +49 -0
- package/dist/http/middleware/HstsOptions.js.map +1 -0
- package/dist/http/middleware/IpAllowlist.d.ts +45 -0
- package/dist/http/middleware/IpAllowlist.d.ts.map +1 -0
- package/dist/http/middleware/IpAllowlist.js +148 -0
- package/dist/http/middleware/IpAllowlist.js.map +1 -0
- package/dist/http/middleware/RequestId.d.ts +5 -0
- package/dist/http/middleware/RequestId.d.ts.map +1 -0
- package/dist/http/middleware/RequestId.js +24 -0
- package/dist/http/middleware/RequestId.js.map +1 -0
- package/dist/http/middleware/RequestIdOptions.d.ts +22 -0
- package/dist/http/middleware/RequestIdOptions.d.ts.map +1 -0
- package/dist/http/middleware/RequestIdOptions.js +19 -0
- package/dist/http/middleware/RequestIdOptions.js.map +1 -0
- package/dist/http/middleware/SecurityHeaders.d.ts +11 -0
- package/dist/http/middleware/SecurityHeaders.d.ts.map +1 -0
- package/dist/http/middleware/SecurityHeaders.js +50 -0
- package/dist/http/middleware/SecurityHeaders.js.map +1 -0
- package/dist/http/middleware/SecurityHeadersOptions.d.ts +44 -0
- package/dist/http/middleware/SecurityHeadersOptions.d.ts.map +1 -0
- package/dist/http/middleware/SecurityHeadersOptions.js +40 -0
- package/dist/http/middleware/SecurityHeadersOptions.js.map +1 -0
- package/dist/http/middleware/Timeout.d.ts +13 -0
- package/dist/http/middleware/Timeout.d.ts.map +1 -0
- package/dist/http/middleware/Timeout.js +29 -0
- package/dist/http/middleware/Timeout.js.map +1 -0
- package/dist/http/middleware/TimeoutOptions.d.ts +30 -0
- package/dist/http/middleware/TimeoutOptions.d.ts.map +1 -0
- package/dist/http/middleware/TimeoutOptions.js +30 -0
- package/dist/http/middleware/TimeoutOptions.js.map +1 -0
- package/dist/http/middleware/headers.d.ts +21 -0
- package/dist/http/middleware/headers.d.ts.map +1 -0
- package/dist/http/middleware/headers.js +43 -0
- package/dist/http/middleware/headers.js.map +1 -0
- package/dist/http/middleware/index.d.ts +30 -0
- package/dist/http/middleware/index.d.ts.map +1 -0
- package/dist/http/middleware/index.js +23 -0
- package/dist/http/middleware/index.js.map +1 -0
- package/dist/http/static/DirectoryListing.d.ts +16 -0
- package/dist/http/static/DirectoryListing.d.ts.map +1 -0
- package/dist/http/static/DirectoryListing.js +39 -0
- package/dist/http/static/DirectoryListing.js.map +1 -0
- package/dist/http/static/StaticFiles.d.ts +11 -0
- package/dist/http/static/StaticFiles.d.ts.map +1 -0
- package/dist/http/static/StaticFiles.js +202 -0
- package/dist/http/static/StaticFiles.js.map +1 -0
- package/dist/http/static/StaticFilesOptions.d.ts +76 -0
- package/dist/http/static/StaticFilesOptions.d.ts.map +1 -0
- package/dist/http/static/StaticFilesOptions.js +83 -0
- package/dist/http/static/StaticFilesOptions.js.map +1 -0
- package/dist/http/static/fsAccess.d.ts +25 -0
- package/dist/http/static/fsAccess.d.ts.map +1 -0
- package/dist/http/static/fsAccess.js +42 -0
- package/dist/http/static/fsAccess.js.map +1 -0
- package/dist/http/static/index.d.ts +7 -0
- package/dist/http/static/index.d.ts.map +1 -0
- package/dist/http/static/index.js +5 -0
- package/dist/http/static/index.js.map +1 -0
- package/dist/http/static/staticPath.d.ts +14 -0
- package/dist/http/static/staticPath.d.ts.map +1 -0
- package/dist/http/static/staticPath.js +67 -0
- package/dist/http/static/staticPath.js.map +1 -0
- package/dist/http/types.d.ts +33 -3
- package/dist/http/types.d.ts.map +1 -1
- package/dist/http/types.js +11 -1
- package/dist/http/types.js.map +1 -1
- package/dist/http/websocket/ConnectionWiring.d.ts +59 -0
- package/dist/http/websocket/ConnectionWiring.d.ts.map +1 -0
- package/dist/http/websocket/ConnectionWiring.js +165 -0
- package/dist/http/websocket/ConnectionWiring.js.map +1 -0
- package/dist/http/websocket/SocketAdapter.d.ts +72 -0
- package/dist/http/websocket/SocketAdapter.d.ts.map +1 -0
- package/dist/http/websocket/SocketAdapter.js +97 -0
- package/dist/http/websocket/SocketAdapter.js.map +1 -0
- package/dist/http/websocket/WebsocketClientActor.d.ts +68 -0
- package/dist/http/websocket/WebsocketClientActor.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketClientActor.js +195 -0
- package/dist/http/websocket/WebsocketClientActor.js.map +1 -0
- package/dist/http/websocket/WebsocketClientOptions.d.ts +82 -0
- package/dist/http/websocket/WebsocketClientOptions.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketClientOptions.js +82 -0
- package/dist/http/websocket/WebsocketClientOptions.js.map +1 -0
- package/dist/http/websocket/WebsocketCodec.d.ts +65 -0
- package/dist/http/websocket/WebsocketCodec.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketCodec.js +82 -0
- package/dist/http/websocket/WebsocketCodec.js.map +1 -0
- package/dist/http/websocket/WebsocketConnection.d.ts +59 -0
- package/dist/http/websocket/WebsocketConnection.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketConnection.js +45 -0
- package/dist/http/websocket/WebsocketConnection.js.map +1 -0
- package/dist/http/websocket/WebsocketConnectionActor.d.ts +51 -0
- package/dist/http/websocket/WebsocketConnectionActor.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketConnectionActor.js +170 -0
- package/dist/http/websocket/WebsocketConnectionActor.js.map +1 -0
- package/dist/http/websocket/WebsocketMessages.d.ts +115 -0
- package/dist/http/websocket/WebsocketMessages.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketMessages.js +41 -0
- package/dist/http/websocket/WebsocketMessages.js.map +1 -0
- package/dist/http/websocket/WebsocketPolicy.d.ts +51 -0
- package/dist/http/websocket/WebsocketPolicy.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketPolicy.js +70 -0
- package/dist/http/websocket/WebsocketPolicy.js.map +1 -0
- package/dist/http/websocket/WebsocketRoute.d.ts +20 -0
- package/dist/http/websocket/WebsocketRoute.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketRoute.js +72 -0
- package/dist/http/websocket/WebsocketRoute.js.map +1 -0
- package/dist/http/websocket/WebsocketRouteOptions.d.ts +91 -0
- package/dist/http/websocket/WebsocketRouteOptions.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketRouteOptions.js +92 -0
- package/dist/http/websocket/WebsocketRouteOptions.js.map +1 -0
- package/dist/http/websocket/WebsocketServerActor.d.ts +65 -0
- package/dist/http/websocket/WebsocketServerActor.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketServerActor.js +141 -0
- package/dist/http/websocket/WebsocketServerActor.js.map +1 -0
- package/dist/http/websocket/index.d.ts +22 -0
- package/dist/http/websocket/index.d.ts.map +1 -0
- package/dist/http/websocket/index.js +15 -0
- package/dist/http/websocket/index.js.map +1 -0
- package/dist/http/websocket/matchPattern.d.ts +12 -0
- package/dist/http/websocket/matchPattern.d.ts.map +1 -0
- package/dist/http/websocket/matchPattern.js +43 -0
- package/dist/http/websocket/matchPattern.js.map +1 -0
- package/dist/http/websocket/rawResponse.d.ts +15 -0
- package/dist/http/websocket/rawResponse.d.ts.map +1 -0
- package/dist/http/websocket/rawResponse.js +64 -0
- package/dist/http/websocket/rawResponse.js.map +1 -0
- package/dist/http/websocket/types.d.ts +70 -0
- package/dist/http/websocket/types.d.ts.map +1 -0
- package/dist/http/websocket/types.js +81 -0
- package/dist/http/websocket/types.js.map +1 -0
- package/dist/http/websocket/websocketConstructor.d.ts +34 -0
- package/dist/http/websocket/websocketConstructor.d.ts.map +1 -0
- package/dist/http/websocket/websocketConstructor.js +38 -0
- package/dist/http/websocket/websocketConstructor.js.map +1 -0
- package/dist/index.d.ts +31 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/dist/internal/ActorCell.d.ts +24 -9
- package/dist/internal/ActorCell.d.ts.map +1 -1
- package/dist/internal/ActorCell.js +66 -36
- package/dist/internal/ActorCell.js.map +1 -1
- package/dist/internal/LocalActorRef.d.ts +4 -4
- package/dist/internal/LocalActorRef.d.ts.map +1 -1
- package/dist/internal/LocalActorRef.js.map +1 -1
- package/dist/io/broker/AmqpActor.d.ts +26 -21
- package/dist/io/broker/AmqpActor.d.ts.map +1 -1
- package/dist/io/broker/AmqpActor.js +41 -31
- package/dist/io/broker/AmqpActor.js.map +1 -1
- package/dist/io/broker/AmqpOptions.d.ts +46 -0
- package/dist/io/broker/AmqpOptions.d.ts.map +1 -0
- package/dist/io/broker/AmqpOptions.js +45 -0
- package/dist/io/broker/AmqpOptions.js.map +1 -0
- package/dist/io/broker/BrokerActor.d.ts +34 -24
- package/dist/io/broker/BrokerActor.d.ts.map +1 -1
- package/dist/io/broker/BrokerActor.js +51 -36
- package/dist/io/broker/BrokerActor.js.map +1 -1
- package/dist/io/broker/BrokerOptions.d.ts +125 -0
- package/dist/io/broker/BrokerOptions.d.ts.map +1 -0
- package/dist/io/broker/BrokerOptions.js +151 -0
- package/dist/io/broker/BrokerOptions.js.map +1 -0
- package/dist/io/broker/GrpcClientActor.d.ts +13 -24
- package/dist/io/broker/GrpcClientActor.d.ts.map +1 -1
- package/dist/io/broker/GrpcClientActor.js +42 -40
- package/dist/io/broker/GrpcClientActor.js.map +1 -1
- package/dist/io/broker/GrpcClientOptions.d.ts +53 -0
- package/dist/io/broker/GrpcClientOptions.d.ts.map +1 -0
- package/dist/io/broker/GrpcClientOptions.js +52 -0
- package/dist/io/broker/GrpcClientOptions.js.map +1 -0
- package/dist/io/broker/GrpcServerActor.d.ts +6 -27
- package/dist/io/broker/GrpcServerActor.d.ts.map +1 -1
- package/dist/io/broker/GrpcServerActor.js +30 -30
- package/dist/io/broker/GrpcServerActor.js.map +1 -1
- package/dist/io/broker/GrpcServerOptions.d.ts +58 -0
- package/dist/io/broker/GrpcServerOptions.d.ts.map +1 -0
- package/dist/io/broker/GrpcServerOptions.js +44 -0
- package/dist/io/broker/GrpcServerOptions.js.map +1 -0
- package/dist/io/broker/JetStreamActor.d.ts +27 -47
- package/dist/io/broker/JetStreamActor.d.ts.map +1 -1
- package/dist/io/broker/JetStreamActor.js +93 -91
- package/dist/io/broker/JetStreamActor.js.map +1 -1
- package/dist/io/broker/JetStreamOptions.d.ts +69 -0
- package/dist/io/broker/JetStreamOptions.d.ts.map +1 -0
- package/dist/io/broker/JetStreamOptions.js +65 -0
- package/dist/io/broker/JetStreamOptions.js.map +1 -0
- package/dist/io/broker/KafkaActor.d.ts +24 -63
- package/dist/io/broker/KafkaActor.d.ts.map +1 -1
- package/dist/io/broker/KafkaActor.js +76 -62
- package/dist/io/broker/KafkaActor.js.map +1 -1
- package/dist/io/broker/KafkaOptions.d.ts +87 -0
- package/dist/io/broker/KafkaOptions.d.ts.map +1 -0
- package/dist/io/broker/KafkaOptions.js +61 -0
- package/dist/io/broker/KafkaOptions.js.map +1 -0
- package/dist/io/broker/MqttActor.d.ts +178 -116
- package/dist/io/broker/MqttActor.d.ts.map +1 -1
- package/dist/io/broker/MqttActor.js +373 -147
- package/dist/io/broker/MqttActor.js.map +1 -1
- package/dist/io/broker/MqttCodec.d.ts +70 -0
- package/dist/io/broker/MqttCodec.d.ts.map +1 -0
- package/dist/io/broker/MqttCodec.js +98 -0
- package/dist/io/broker/MqttCodec.js.map +1 -0
- package/dist/io/broker/MqttMessages.d.ts +149 -0
- package/dist/io/broker/MqttMessages.d.ts.map +1 -0
- package/dist/io/broker/MqttMessages.js +86 -0
- package/dist/io/broker/MqttMessages.js.map +1 -0
- package/dist/io/broker/MqttOptions.d.ts +109 -0
- package/dist/io/broker/MqttOptions.d.ts.map +1 -0
- package/dist/io/broker/MqttOptions.js +90 -0
- package/dist/io/broker/MqttOptions.js.map +1 -0
- package/dist/io/broker/NatsActor.d.ts +12 -25
- package/dist/io/broker/NatsActor.d.ts.map +1 -1
- package/dist/io/broker/NatsActor.js +36 -34
- package/dist/io/broker/NatsActor.js.map +1 -1
- package/dist/io/broker/NatsOptions.d.ts +56 -0
- package/dist/io/broker/NatsOptions.d.ts.map +1 -0
- package/dist/io/broker/NatsOptions.js +52 -0
- package/dist/io/broker/NatsOptions.js.map +1 -0
- package/dist/io/broker/RedisStreamsActor.d.ts +12 -28
- package/dist/io/broker/RedisStreamsActor.d.ts.map +1 -1
- package/dist/io/broker/RedisStreamsActor.js +40 -38
- package/dist/io/broker/RedisStreamsActor.js.map +1 -1
- package/dist/io/broker/RedisStreamsOptions.d.ts +56 -0
- package/dist/io/broker/RedisStreamsOptions.d.ts.map +1 -0
- package/dist/io/broker/RedisStreamsOptions.js +49 -0
- package/dist/io/broker/RedisStreamsOptions.js.map +1 -0
- package/dist/io/broker/SseActor.d.ts +12 -19
- package/dist/io/broker/SseActor.d.ts.map +1 -1
- package/dist/io/broker/SseActor.js +43 -22
- package/dist/io/broker/SseActor.js.map +1 -1
- package/dist/io/broker/SseOptions.d.ts +43 -0
- package/dist/io/broker/SseOptions.d.ts.map +1 -0
- package/dist/io/broker/SseOptions.js +40 -0
- package/dist/io/broker/SseOptions.js.map +1 -0
- package/dist/io/broker/TcpSocketActor.d.ts +12 -25
- package/dist/io/broker/TcpSocketActor.d.ts.map +1 -1
- package/dist/io/broker/TcpSocketActor.js +35 -24
- package/dist/io/broker/TcpSocketActor.js.map +1 -1
- package/dist/io/broker/TcpSocketOptions.d.ts +51 -0
- package/dist/io/broker/TcpSocketOptions.d.ts.map +1 -0
- package/dist/io/broker/TcpSocketOptions.js +45 -0
- package/dist/io/broker/TcpSocketOptions.js.map +1 -0
- package/dist/io/broker/UdpSocketActor.d.ts +12 -21
- package/dist/io/broker/UdpSocketActor.d.ts.map +1 -1
- package/dist/io/broker/UdpSocketActor.js +18 -16
- package/dist/io/broker/UdpSocketActor.js.map +1 -1
- package/dist/io/broker/UdpSocketOptions.d.ts +47 -0
- package/dist/io/broker/UdpSocketOptions.d.ts.map +1 -0
- package/dist/io/broker/UdpSocketOptions.js +49 -0
- package/dist/io/broker/UdpSocketOptions.js.map +1 -0
- package/dist/io/broker/index.d.ts +39 -19
- package/dist/io/broker/index.d.ts.map +1 -1
- package/dist/io/broker/index.js +22 -5
- package/dist/io/broker/index.js.map +1 -1
- package/dist/mailbox/BoundedMailbox.d.ts +3 -5
- package/dist/mailbox/BoundedMailbox.d.ts.map +1 -1
- package/dist/mailbox/BoundedMailbox.js +11 -4
- package/dist/mailbox/BoundedMailbox.js.map +1 -1
- package/dist/mailbox/BoundedMailboxOptions.d.ts +49 -0
- package/dist/mailbox/BoundedMailboxOptions.d.ts.map +1 -0
- package/dist/mailbox/BoundedMailboxOptions.js +46 -0
- package/dist/mailbox/BoundedMailboxOptions.js.map +1 -0
- package/dist/mailbox/PriorityMailbox.d.ts +2 -4
- package/dist/mailbox/PriorityMailbox.d.ts.map +1 -1
- package/dist/mailbox/PriorityMailbox.js +4 -4
- package/dist/mailbox/PriorityMailbox.js.map +1 -1
- package/dist/mailbox/PriorityMailboxOptions.d.ts +27 -0
- package/dist/mailbox/PriorityMailboxOptions.d.ts.map +1 -0
- package/dist/mailbox/PriorityMailboxOptions.js +20 -0
- package/dist/mailbox/PriorityMailboxOptions.js.map +1 -0
- package/dist/mailbox/index.d.ts +6 -2
- package/dist/mailbox/index.d.ts.map +1 -1
- package/dist/mailbox/index.js +2 -0
- package/dist/mailbox/index.js.map +1 -1
- package/dist/management/HttpManagement.d.ts +2 -18
- package/dist/management/HttpManagement.d.ts.map +1 -1
- package/dist/management/HttpManagement.js +38 -11
- package/dist/management/HttpManagement.js.map +1 -1
- package/dist/management/ManagementRoutesOptions.d.ts +43 -0
- package/dist/management/ManagementRoutesOptions.d.ts.map +1 -0
- package/dist/management/ManagementRoutesOptions.js +35 -0
- package/dist/management/ManagementRoutesOptions.js.map +1 -0
- package/dist/management/index.d.ts +2 -1
- package/dist/management/index.d.ts.map +1 -1
- package/dist/management/index.js +1 -0
- package/dist/management/index.js.map +1 -1
- package/dist/metrics/Metrics.js +11 -11
- package/dist/metrics/Metrics.js.map +1 -1
- package/dist/metrics/PromClientAdapter.d.ts +2 -12
- package/dist/metrics/PromClientAdapter.d.ts.map +1 -1
- package/dist/metrics/PromClientAdapter.js +2 -2
- package/dist/metrics/PromClientAdapter.js.map +1 -1
- package/dist/metrics/PromClientAdapterOptions.d.ts +46 -0
- package/dist/metrics/PromClientAdapterOptions.d.ts.map +1 -0
- package/dist/metrics/PromClientAdapterOptions.js +35 -0
- package/dist/metrics/PromClientAdapterOptions.js.map +1 -0
- package/dist/metrics/PrometheusExporter.js +23 -23
- package/dist/metrics/PrometheusExporter.js.map +1 -1
- package/dist/metrics/index.d.ts +3 -1
- package/dist/metrics/index.d.ts.map +1 -1
- package/dist/metrics/index.js +1 -0
- package/dist/metrics/index.js.map +1 -1
- package/dist/pattern/BackoffPolicy.js +5 -5
- package/dist/pattern/BackoffPolicy.js.map +1 -1
- package/dist/pattern/CircuitBreaker.d.ts +3 -12
- package/dist/pattern/CircuitBreaker.d.ts.map +1 -1
- package/dist/pattern/CircuitBreaker.js +13 -16
- package/dist/pattern/CircuitBreaker.js.map +1 -1
- package/dist/pattern/CircuitBreakerOptions.d.ts +50 -0
- package/dist/pattern/CircuitBreakerOptions.d.ts.map +1 -0
- package/dist/pattern/CircuitBreakerOptions.js +53 -0
- package/dist/pattern/CircuitBreakerOptions.js.map +1 -0
- package/dist/pattern/index.d.ts +3 -1
- package/dist/pattern/index.d.ts.map +1 -1
- package/dist/pattern/index.js +1 -0
- package/dist/pattern/index.js.map +1 -1
- package/dist/persistence/DurableStateActor.d.ts +4 -9
- package/dist/persistence/DurableStateActor.d.ts.map +1 -1
- package/dist/persistence/DurableStateActor.js +9 -9
- package/dist/persistence/DurableStateActor.js.map +1 -1
- package/dist/persistence/DurableStateOptions.d.ts +40 -0
- package/dist/persistence/DurableStateOptions.d.ts.map +1 -0
- package/dist/persistence/DurableStateOptions.js +36 -0
- package/dist/persistence/DurableStateOptions.js.map +1 -0
- package/dist/persistence/EventDispatcher.js +3 -3
- package/dist/persistence/EventDispatcher.js.map +1 -1
- package/dist/persistence/JournalEventBus.js +2 -2
- package/dist/persistence/JournalEventBus.js.map +1 -1
- package/dist/persistence/PersistenceOptions.d.ts +46 -1
- package/dist/persistence/PersistenceOptions.d.ts.map +1 -1
- package/dist/persistence/PersistenceOptions.js +1 -1
- package/dist/persistence/ReplicatedEventSourcedActor.d.ts +2 -2
- package/dist/persistence/ReplicatedEventSourcedActor.d.ts.map +1 -1
- package/dist/persistence/ReplicatedEventSourcedActor.js +4 -4
- package/dist/persistence/ReplicatedEventSourcedActor.js.map +1 -1
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.d.ts +32 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.js +120 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.js.map +1 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.d.ts +38 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.js +38 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.js.map +1 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.d.ts +5 -9
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.d.ts.map +1 -1
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js +52 -8
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js.map +1 -1
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts +83 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.js +67 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.js.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.d.ts +38 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.js +121 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.js.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.d.ts +38 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.js +38 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.js.map +1 -0
- package/dist/persistence/index.d.ts +59 -16
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +33 -2
- package/dist/persistence/index.js.map +1 -1
- package/dist/persistence/journals/CassandraClient.d.ts +1 -1
- package/dist/persistence/journals/CassandraClient.d.ts.map +1 -1
- package/dist/persistence/journals/CassandraJournal.d.ts +1 -48
- package/dist/persistence/journals/CassandraJournal.d.ts.map +1 -1
- package/dist/persistence/journals/CassandraJournal.js +16 -7
- package/dist/persistence/journals/CassandraJournal.js.map +1 -1
- package/dist/persistence/journals/CassandraJournalOptions.d.ts +113 -0
- package/dist/persistence/journals/CassandraJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/CassandraJournalOptions.js +101 -0
- package/dist/persistence/journals/CassandraJournalOptions.js.map +1 -0
- package/dist/persistence/journals/CassandraPlugin.d.ts +1 -16
- package/dist/persistence/journals/CassandraPlugin.d.ts.map +1 -1
- package/dist/persistence/journals/CassandraPlugin.js +9 -4
- package/dist/persistence/journals/CassandraPlugin.js.map +1 -1
- package/dist/persistence/journals/CassandraPluginOptions.d.ts +51 -0
- package/dist/persistence/journals/CassandraPluginOptions.d.ts.map +1 -0
- package/dist/persistence/journals/CassandraPluginOptions.js +37 -0
- package/dist/persistence/journals/CassandraPluginOptions.js.map +1 -0
- package/dist/persistence/journals/MariaDbClient.d.ts +54 -0
- package/dist/persistence/journals/MariaDbClient.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbClient.js +40 -0
- package/dist/persistence/journals/MariaDbClient.js.map +1 -0
- package/dist/persistence/journals/MariaDbJournal.d.ts +29 -0
- package/dist/persistence/journals/MariaDbJournal.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbJournal.js +161 -0
- package/dist/persistence/journals/MariaDbJournal.js.map +1 -0
- package/dist/persistence/journals/MariaDbJournalOptions.d.ts +43 -0
- package/dist/persistence/journals/MariaDbJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbJournalOptions.js +43 -0
- package/dist/persistence/journals/MariaDbJournalOptions.js.map +1 -0
- package/dist/persistence/journals/MariaDbPlugin.d.ts +27 -0
- package/dist/persistence/journals/MariaDbPlugin.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbPlugin.js +30 -0
- package/dist/persistence/journals/MariaDbPlugin.js.map +1 -0
- package/dist/persistence/journals/MariaDbPluginOptions.d.ts +52 -0
- package/dist/persistence/journals/MariaDbPluginOptions.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbPluginOptions.js +38 -0
- package/dist/persistence/journals/MariaDbPluginOptions.js.map +1 -0
- package/dist/persistence/journals/PostgresClient.d.ts +56 -0
- package/dist/persistence/journals/PostgresClient.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresClient.js +35 -0
- package/dist/persistence/journals/PostgresClient.js.map +1 -0
- package/dist/persistence/journals/PostgresJournal.d.ts +41 -0
- package/dist/persistence/journals/PostgresJournal.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresJournal.js +176 -0
- package/dist/persistence/journals/PostgresJournal.js.map +1 -0
- package/dist/persistence/journals/PostgresJournalOptions.d.ts +44 -0
- package/dist/persistence/journals/PostgresJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresJournalOptions.js +44 -0
- package/dist/persistence/journals/PostgresJournalOptions.js.map +1 -0
- package/dist/persistence/journals/PostgresPlugin.d.ts +32 -0
- package/dist/persistence/journals/PostgresPlugin.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresPlugin.js +35 -0
- package/dist/persistence/journals/PostgresPlugin.js.map +1 -0
- package/dist/persistence/journals/PostgresPluginOptions.d.ts +54 -0
- package/dist/persistence/journals/PostgresPluginOptions.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresPluginOptions.js +39 -0
- package/dist/persistence/journals/PostgresPluginOptions.js.map +1 -0
- package/dist/persistence/journals/SqliteJournal.d.ts +4 -18
- package/dist/persistence/journals/SqliteJournal.d.ts.map +1 -1
- package/dist/persistence/journals/SqliteJournal.js +13 -8
- package/dist/persistence/journals/SqliteJournal.js.map +1 -1
- package/dist/persistence/journals/SqliteJournalOptions.d.ts +41 -0
- package/dist/persistence/journals/SqliteJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/SqliteJournalOptions.js +31 -0
- package/dist/persistence/journals/SqliteJournalOptions.js.map +1 -0
- package/dist/persistence/migration/MigrationChain.js +3 -3
- package/dist/persistence/migration/MigrationChain.js.map +1 -1
- package/dist/persistence/migration/SchemaRegistry.js +9 -9
- package/dist/persistence/migration/SchemaRegistry.js.map +1 -1
- package/dist/persistence/migration/defaultsAdapter.js +10 -10
- package/dist/persistence/migration/defaultsAdapter.js.map +1 -1
- package/dist/persistence/migration/validatedAdapter.js +4 -4
- package/dist/persistence/migration/validatedAdapter.js.map +1 -1
- package/dist/persistence/migration/wrapLegacy.js +2 -2
- package/dist/persistence/migration/wrapLegacy.js.map +1 -1
- package/dist/persistence/object-storage/BodyCodec.d.ts +57 -0
- package/dist/persistence/object-storage/BodyCodec.d.ts.map +1 -1
- package/dist/persistence/object-storage/BodyCodec.js +88 -22
- package/dist/persistence/object-storage/BodyCodec.js.map +1 -1
- package/dist/persistence/object-storage/Compression.d.ts +28 -8
- package/dist/persistence/object-storage/Compression.d.ts.map +1 -1
- package/dist/persistence/object-storage/Compression.js +107 -32
- package/dist/persistence/object-storage/Compression.js.map +1 -1
- package/dist/persistence/object-storage/Encryption.js +3 -3
- package/dist/persistence/object-storage/Encryption.js.map +1 -1
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.d.ts +2 -61
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.d.ts.map +1 -1
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.js +61 -16
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.js.map +1 -1
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts +51 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.js +44 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.js.map +1 -0
- package/dist/persistence/object-storage/Integrity.d.ts +43 -0
- package/dist/persistence/object-storage/Integrity.d.ts.map +1 -0
- package/dist/persistence/object-storage/Integrity.js +66 -0
- package/dist/persistence/object-storage/Integrity.js.map +1 -0
- package/dist/persistence/object-storage/ObjectStoragePlugin.d.ts +8 -24
- package/dist/persistence/object-storage/ObjectStoragePlugin.d.ts.map +1 -1
- package/dist/persistence/object-storage/ObjectStoragePlugin.js +39 -29
- package/dist/persistence/object-storage/ObjectStoragePlugin.js.map +1 -1
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts +72 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.js +59 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.js.map +1 -0
- package/dist/persistence/object-storage/PluginConfig.d.ts +5 -2
- package/dist/persistence/object-storage/PluginConfig.d.ts.map +1 -1
- package/dist/persistence/object-storage/PluginConfig.js +8 -0
- package/dist/persistence/object-storage/PluginConfig.js.map +1 -1
- package/dist/persistence/object-storage/S3ObjectStorageBackend.d.ts +1 -30
- package/dist/persistence/object-storage/S3ObjectStorageBackend.d.ts.map +1 -1
- package/dist/persistence/object-storage/S3ObjectStorageBackend.js +24 -21
- package/dist/persistence/object-storage/S3ObjectStorageBackend.js.map +1 -1
- package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts +70 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.js +58 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.js.map +1 -0
- package/dist/persistence/object-storage/reEncryptionSweep.d.ts +72 -0
- package/dist/persistence/object-storage/reEncryptionSweep.d.ts.map +1 -1
- package/dist/persistence/object-storage/reEncryptionSweep.js +82 -2
- package/dist/persistence/object-storage/reEncryptionSweep.js.map +1 -1
- package/dist/persistence/projection/ProjectionActor.d.ts +4 -24
- package/dist/persistence/projection/ProjectionActor.d.ts.map +1 -1
- package/dist/persistence/projection/ProjectionActor.js +45 -11
- package/dist/persistence/projection/ProjectionActor.js.map +1 -1
- package/dist/persistence/projection/ProjectionOptions.d.ts +109 -0
- package/dist/persistence/projection/ProjectionOptions.d.ts.map +1 -0
- package/dist/persistence/projection/ProjectionOptions.js +108 -0
- package/dist/persistence/projection/ProjectionOptions.js.map +1 -0
- package/dist/persistence/query/CassandraQuery.js +11 -11
- package/dist/persistence/query/CassandraQuery.js.map +1 -1
- package/dist/persistence/query/InMemoryQuery.js +12 -12
- package/dist/persistence/query/InMemoryQuery.js.map +1 -1
- package/dist/persistence/query/PersistenceQuery.js +6 -6
- package/dist/persistence/query/PersistenceQuery.js.map +1 -1
- package/dist/persistence/query/SqliteQuery.js +6 -6
- package/dist/persistence/query/SqliteQuery.js.map +1 -1
- package/dist/persistence/replicated/VectorClock.js +13 -13
- package/dist/persistence/replicated/VectorClock.js.map +1 -1
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.d.ts +2 -10
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.js +12 -9
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts +47 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.js +47 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.d.ts +1 -11
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.js +3 -3
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.d.ts +61 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.js +73 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.d.ts +30 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.js +102 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.js.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.d.ts +42 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.js +42 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.d.ts +3 -15
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js +28 -17
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts +67 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.js +63 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.d.ts +31 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.js +101 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.js.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.d.ts +42 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.js +42 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.d.ts +1 -14
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.js +6 -3
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.d.ts +40 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.js +31 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/storage/KeyValidator.js +3 -3
- package/dist/persistence/storage/KeyValidator.js.map +1 -1
- package/dist/persistence/storage/SqlIdentifier.d.ts +11 -0
- package/dist/persistence/storage/SqlIdentifier.d.ts.map +1 -0
- package/dist/persistence/storage/SqlIdentifier.js +16 -0
- package/dist/persistence/storage/SqlIdentifier.js.map +1 -0
- package/dist/runtime/detect.d.ts.map +1 -1
- package/dist/runtime/detect.js +7 -7
- package/dist/runtime/detect.js.map +1 -1
- package/dist/runtime/http/BunHonoRunner.d.ts +7 -1
- package/dist/runtime/http/BunHonoRunner.d.ts.map +1 -1
- package/dist/runtime/http/BunHonoRunner.js +22 -0
- package/dist/runtime/http/BunHonoRunner.js.map +1 -1
- package/dist/runtime/http/DenoHonoRunner.d.ts +5 -2
- package/dist/runtime/http/DenoHonoRunner.d.ts.map +1 -1
- package/dist/runtime/http/DenoHonoRunner.js +19 -2
- package/dist/runtime/http/DenoHonoRunner.js.map +1 -1
- package/dist/runtime/http/HonoServerRunner.d.ts +39 -0
- package/dist/runtime/http/HonoServerRunner.d.ts.map +1 -1
- package/dist/runtime/http/NodeHonoRunner.d.ts +3 -1
- package/dist/runtime/http/NodeHonoRunner.d.ts.map +1 -1
- package/dist/runtime/http/NodeHonoRunner.js +24 -2
- package/dist/runtime/http/NodeHonoRunner.js.map +1 -1
- package/dist/runtime/http/index.d.ts +1 -1
- package/dist/runtime/http/index.d.ts.map +1 -1
- package/dist/runtime/http/index.js.map +1 -1
- package/dist/runtime/sqlite/BetterSqliteDriver.js.map +1 -1
- package/dist/runtime/sqlite/BunSqliteDriver.js.map +1 -1
- package/dist/runtime/tcp/BunTcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/BunTcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/DenoTcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/DenoTcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/DenoTcpBackend.js +3 -3
- package/dist/runtime/tcp/DenoTcpBackend.js.map +1 -1
- package/dist/runtime/tcp/NodeTcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/NodeTcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/TcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/TcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/index.d.ts +1 -1
- package/dist/runtime/tcp/index.d.ts.map +1 -1
- package/dist/runtime/worker/NodeWorkerBackend.js.map +1 -1
- package/dist/runtime/worker/WebWorkerBackend.js +3 -3
- package/dist/runtime/worker/WebWorkerBackend.js.map +1 -1
- package/dist/serialization/CborCodec.d.ts +2 -2
- package/dist/serialization/CborCodec.d.ts.map +1 -1
- package/dist/serialization/CborCodec.js +80 -80
- package/dist/serialization/CborCodec.js.map +1 -1
- package/dist/serialization/JsonSerializer.js +20 -7
- package/dist/serialization/JsonSerializer.js.map +1 -1
- package/dist/serialization/SerializationExtension.d.ts +2 -2
- package/dist/serialization/SerializationExtension.d.ts.map +1 -1
- package/dist/serialization/SerializationExtension.js +3 -3
- package/dist/serialization/SerializationExtension.js.map +1 -1
- package/dist/testkit/ManualScheduler.d.ts +2 -1
- package/dist/testkit/ManualScheduler.d.ts.map +1 -1
- package/dist/testkit/ManualScheduler.js +10 -9
- package/dist/testkit/ManualScheduler.js.map +1 -1
- package/dist/testkit/MockCluster.d.ts +67 -0
- package/dist/testkit/MockCluster.d.ts.map +1 -0
- package/dist/testkit/MockCluster.js +189 -0
- package/dist/testkit/MockCluster.js.map +1 -0
- package/dist/testkit/MockClusterOptions.d.ts +32 -0
- package/dist/testkit/MockClusterOptions.d.ts.map +1 -0
- package/dist/testkit/MockClusterOptions.js +23 -0
- package/dist/testkit/MockClusterOptions.js.map +1 -0
- package/dist/testkit/MultiNodeClusterFixture.d.ts +63 -0
- package/dist/testkit/MultiNodeClusterFixture.d.ts.map +1 -0
- package/dist/testkit/MultiNodeClusterFixture.js +43 -0
- package/dist/testkit/MultiNodeClusterFixture.js.map +1 -0
- package/dist/testkit/MultiNodeSpec.d.ts +45 -81
- package/dist/testkit/MultiNodeSpec.d.ts.map +1 -1
- package/dist/testkit/MultiNodeSpec.js +139 -44
- package/dist/testkit/MultiNodeSpec.js.map +1 -1
- package/dist/testkit/MultiNodeSpecOptions.d.ts +57 -0
- package/dist/testkit/MultiNodeSpecOptions.d.ts.map +1 -0
- package/dist/testkit/MultiNodeSpecOptions.js +43 -0
- package/dist/testkit/MultiNodeSpecOptions.js.map +1 -0
- package/dist/testkit/ParallelMultiNodeSpec.d.ts +13 -72
- package/dist/testkit/ParallelMultiNodeSpec.d.ts.map +1 -1
- package/dist/testkit/ParallelMultiNodeSpec.js +82 -36
- package/dist/testkit/ParallelMultiNodeSpec.js.map +1 -1
- package/dist/testkit/ParallelMultiNodeSpecOptions.d.ts +58 -0
- package/dist/testkit/ParallelMultiNodeSpecOptions.d.ts.map +1 -0
- package/dist/testkit/ParallelMultiNodeSpecOptions.js +51 -0
- package/dist/testkit/ParallelMultiNodeSpecOptions.js.map +1 -0
- package/dist/testkit/SnapshotMigrationTest.d.ts +86 -0
- package/dist/testkit/SnapshotMigrationTest.d.ts.map +1 -0
- package/dist/testkit/SnapshotMigrationTest.js +77 -0
- package/dist/testkit/SnapshotMigrationTest.js.map +1 -0
- package/dist/testkit/TestKit.d.ts +7 -9
- package/dist/testkit/TestKit.d.ts.map +1 -1
- package/dist/testkit/TestKit.js +11 -7
- package/dist/testkit/TestKit.js.map +1 -1
- package/dist/testkit/TestKitOptions.d.ts +26 -0
- package/dist/testkit/TestKitOptions.d.ts.map +1 -0
- package/dist/testkit/TestKitOptions.js +19 -0
- package/dist/testkit/TestKitOptions.js.map +1 -0
- package/dist/testkit/TestProbe.d.ts +5 -10
- package/dist/testkit/TestProbe.d.ts.map +1 -1
- package/dist/testkit/TestProbe.js +23 -20
- package/dist/testkit/TestProbe.js.map +1 -1
- package/dist/testkit/TestProbeOptions.d.ts +32 -0
- package/dist/testkit/TestProbeOptions.d.ts.map +1 -0
- package/dist/testkit/TestProbeOptions.js +29 -0
- package/dist/testkit/TestProbeOptions.js.map +1 -0
- package/dist/testkit/index.d.ts +15 -4
- package/dist/testkit/index.d.ts.map +1 -1
- package/dist/testkit/index.js +8 -0
- package/dist/testkit/index.js.map +1 -1
- package/dist/testkit/internal/MultiNodeBroker.js +3 -3
- package/dist/testkit/internal/MultiNodeBroker.js.map +1 -1
- package/dist/testkit/internal/MultiNodeTransport.js +2 -2
- package/dist/testkit/internal/MultiNodeTransport.js.map +1 -1
- package/dist/testkit/internal/parallel-multi-node-bootstrap.d.ts.map +1 -1
- package/dist/testkit/internal/parallel-multi-node-bootstrap.js +21 -17
- package/dist/testkit/internal/parallel-multi-node-bootstrap.js.map +1 -1
- package/dist/tracing/OtelAdapter.d.ts +4 -12
- package/dist/tracing/OtelAdapter.d.ts.map +1 -1
- package/dist/tracing/OtelAdapter.js +4 -2
- package/dist/tracing/OtelAdapter.js.map +1 -1
- package/dist/tracing/OtelAdapterOptions.d.ts +42 -0
- package/dist/tracing/OtelAdapterOptions.d.ts.map +1 -0
- package/dist/tracing/OtelAdapterOptions.js +34 -0
- package/dist/tracing/OtelAdapterOptions.js.map +1 -0
- package/dist/tracing/OtelLogsAdapter.d.ts +100 -0
- package/dist/tracing/OtelLogsAdapter.d.ts.map +1 -0
- package/dist/tracing/OtelLogsAdapter.js +130 -0
- package/dist/tracing/OtelLogsAdapter.js.map +1 -0
- package/dist/tracing/Tracer.js +2 -2
- package/dist/tracing/Tracer.js.map +1 -1
- package/dist/tracing/index.d.ts +5 -1
- package/dist/tracing/index.d.ts.map +1 -1
- package/dist/tracing/index.js +2 -0
- package/dist/tracing/index.js.map +1 -1
- package/dist/typed/TypedActor.d.ts.map +1 -1
- package/dist/typed/TypedActor.js +6 -6
- package/dist/typed/TypedActor.js.map +1 -1
- package/dist/util/Constants.d.ts +24 -1
- package/dist/util/Constants.d.ts.map +1 -1
- package/dist/util/Constants.js +24 -1
- package/dist/util/Constants.js.map +1 -1
- package/dist/util/Either.js +4 -4
- package/dist/util/Either.js.map +1 -1
- package/dist/util/Lazy.d.ts +31 -0
- package/dist/util/Lazy.d.ts.map +1 -1
- package/dist/util/Lazy.js +70 -0
- package/dist/util/Lazy.js.map +1 -1
- package/dist/util/OptionsBuilder.d.ts +48 -0
- package/dist/util/OptionsBuilder.d.ts.map +1 -0
- package/dist/util/OptionsBuilder.js +53 -0
- package/dist/util/OptionsBuilder.js.map +1 -0
- package/dist/util/OptionsValidator.d.ts +114 -0
- package/dist/util/OptionsValidator.d.ts.map +1 -0
- package/dist/util/OptionsValidator.js +204 -0
- package/dist/util/OptionsValidator.js.map +1 -0
- package/dist/util/Try.js +4 -4
- package/dist/util/Try.js.map +1 -1
- package/dist/worker/WorkerCluster.d.ts +3 -12
- package/dist/worker/WorkerCluster.d.ts.map +1 -1
- package/dist/worker/WorkerCluster.js +33 -30
- package/dist/worker/WorkerCluster.js.map +1 -1
- package/dist/worker/WorkerClusterOptions.d.ts +61 -0
- package/dist/worker/WorkerClusterOptions.d.ts.map +1 -0
- package/dist/worker/WorkerClusterOptions.js +70 -0
- package/dist/worker/WorkerClusterOptions.js.map +1 -0
- package/dist/worker/WorkerNode.js +5 -5
- package/dist/worker/WorkerNode.js.map +1 -1
- package/dist/worker/index.d.ts +3 -1
- package/dist/worker/index.d.ts.map +1 -1
- package/dist/worker/index.js +1 -0
- package/dist/worker/index.js.map +1 -1
- package/package.json +56 -13
- package/dist/io/broker/BrokerSettings.d.ts +0 -72
- package/dist/io/broker/BrokerSettings.d.ts.map +0 -1
- package/dist/io/broker/BrokerSettings.js +0 -73
- package/dist/io/broker/BrokerSettings.js.map +0 -1
- package/dist/io/broker/ServerWebSocketActor.d.ts +0 -109
- package/dist/io/broker/ServerWebSocketActor.d.ts.map +0 -1
- package/dist/io/broker/ServerWebSocketActor.js +0 -128
- package/dist/io/broker/ServerWebSocketActor.js.map +0 -1
- package/dist/io/broker/WebSocketActor.d.ts +0 -77
- package/dist/io/broker/WebSocketActor.d.ts.map +0 -1
- package/dist/io/broker/WebSocketActor.js +0 -217
- package/dist/io/broker/WebSocketActor.js.map +0 -1
- package/dist/io/broker/WebSocketServerAdapters.d.ts +0 -140
- package/dist/io/broker/WebSocketServerAdapters.d.ts.map +0 -1
- package/dist/io/broker/WebSocketServerAdapters.js +0 -155
- package/dist/io/broker/WebSocketServerAdapters.js.map +0 -1
|
@@ -1,82 +1,369 @@
|
|
|
1
1
|
import { match } from 'ts-pattern';
|
|
2
2
|
import { ConfigKeys } from '../../config/ConfigKeys.js';
|
|
3
|
+
import { Terminated } from '../../SystemMessages.js';
|
|
3
4
|
import { Lazy } from '../../util/Lazy.js';
|
|
4
5
|
import { lazyImportModule } from '../../util/LazyImport.js';
|
|
5
6
|
import { BrokerActor } from './BrokerActor.js';
|
|
7
|
+
import { mqttJsonCodec, MqttDecodeError } from './MqttCodec.js';
|
|
8
|
+
import { MqttOptionsValidator } from './MqttOptions.js';
|
|
9
|
+
import { MqttPayload, mqttConnectedSignal, mqttDisconnectedSignal, mqttInboundSignal, } from './MqttMessages.js';
|
|
6
10
|
/**
|
|
7
|
-
* MQTT 3.1.1 / 5.0 actor backed by the `mqtt`
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* was received on (matching Paho/mqtt.js semantics).
|
|
11
|
+
* Typed, subclass-first MQTT 3.1.1 / 5.0 actor backed by the `mqtt`
|
|
12
|
+
* peer-dep — the MQTT counterpart to `WebsocketClientActor`. Extend it,
|
|
13
|
+
* declare subscriptions in the constructor, and handle inbound traffic
|
|
14
|
+
* in `onMessage`:
|
|
12
15
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
16
|
+
* class MyClient extends MqttActor {
|
|
17
|
+
* constructor(opts: MqttOptions) {
|
|
18
|
+
* super(opts.withQos(1).withClientId('my-client'));
|
|
19
|
+
* this.subscribe('some/thing/#');
|
|
20
|
+
* }
|
|
21
|
+
* override onMessage(msg: MqttMessage): void {
|
|
22
|
+
* this.log.info(msg.payload.text());
|
|
23
|
+
* this.publish(msg.topic, 'pong');
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* `T` types the inbound payload (`msg.payload.entity(): T`); `TSelf`
|
|
28
|
+
* types application messages other actors may `tell` this ref (defaults
|
|
29
|
+
* to `never`). It is still externally controllable: `ref.tell(cmd)`
|
|
30
|
+
* with a {@link MqttCommand} publishes / subscribes / unsubscribes; a
|
|
31
|
+
* `subscribe` command with no `target` routes to this actor's own
|
|
32
|
+
* `onMessage`, with a `target` fans out to that actor.
|
|
33
|
+
*
|
|
34
|
+
* Lifecycle events (inbound / connected / disconnected) are delivered
|
|
35
|
+
* through the mailbox, so `onMessage` and the hooks always run on the
|
|
36
|
+
* actor thread (single-threaded, per-connection order preserved).
|
|
15
37
|
*/
|
|
16
38
|
export class MqttActor extends BrokerActor {
|
|
17
39
|
client = null;
|
|
40
|
+
_codec = null;
|
|
41
|
+
/** False until `preStart` — before that `subscribe()` only records. */
|
|
42
|
+
_started = false;
|
|
43
|
+
/** Single source of truth: pattern → routing entry. */
|
|
44
|
+
registry = new Map();
|
|
45
|
+
/** Deathwatch bookkeeping: ref.path → its watched ref + the patterns it consumes. */
|
|
46
|
+
watched = new Map();
|
|
47
|
+
/** Subscriptions requested in the constructor, flushed in `preStart`. */
|
|
48
|
+
pendingSubs = [];
|
|
49
|
+
constructor(options = {}) {
|
|
50
|
+
super(options);
|
|
51
|
+
}
|
|
52
|
+
/** The connection (re)opened; the registry has been re-applied on the broker. */
|
|
53
|
+
onConnected() { }
|
|
54
|
+
/** The connection dropped; a reconnect cycle may follow (per options). */
|
|
55
|
+
onDisconnected(_cause) { }
|
|
56
|
+
/**
|
|
57
|
+
* `onMessage` threw an {@link MqttDecodeError} — typically from a lazy
|
|
58
|
+
* `payload.entity()` on a malformed payload. Default: log + drop (bad
|
|
59
|
+
* wire data shouldn't restart the actor). Rethrow to escalate to the
|
|
60
|
+
* supervisor.
|
|
61
|
+
*/
|
|
62
|
+
onInvalidMessage(error, _msg) {
|
|
63
|
+
this.log.warn(`MqttActor: dropping undecodable payload on '${error.topic ?? '<unknown>'}': ${error.message}`);
|
|
64
|
+
}
|
|
65
|
+
/** App-level message told to this actor's ref (reachable only when TSelf ≠ never). */
|
|
66
|
+
onSelfMessage(msg) {
|
|
67
|
+
this.log.warn(`MqttActor: unhandled self message: ${String(msg)}`);
|
|
68
|
+
}
|
|
69
|
+
/* ----------------------- protected API ------------------------- */
|
|
70
|
+
/**
|
|
71
|
+
* Register a subscription. Constructor-safe: before start it is only
|
|
72
|
+
* recorded (no context/options access) and flushed on first connect.
|
|
73
|
+
* At runtime it also issues a broker SUBSCRIBE when connected;
|
|
74
|
+
* otherwise the registry entry is applied on the next connect. Omit
|
|
75
|
+
* `target` to deliver to this actor's own `onMessage`.
|
|
76
|
+
*/
|
|
77
|
+
subscribe(topic, opts = {}) {
|
|
78
|
+
if (!this._started) {
|
|
79
|
+
this.pendingSubs.push({ topic, qos: opts.qos, target: opts.target });
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
this.registerSubscription(topic, opts);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Remove a subscription. With `target`, removes that foreign target;
|
|
86
|
+
* without, removes this actor's own `onMessage` delivery for `topic`.
|
|
87
|
+
* A broker UNSUBSCRIBE fires once the pattern has no consumers left.
|
|
88
|
+
*/
|
|
89
|
+
unsubscribe(topic, opts = {}) {
|
|
90
|
+
this.removeSubscription(topic, opts.target, false);
|
|
91
|
+
}
|
|
92
|
+
publish(topic, payload, opts = {}) {
|
|
93
|
+
let bytes;
|
|
94
|
+
if (typeof payload === 'string' || payload instanceof Uint8Array) {
|
|
95
|
+
bytes = payload;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
try {
|
|
99
|
+
bytes = this.codec().encode(payload);
|
|
100
|
+
}
|
|
101
|
+
catch (err) {
|
|
102
|
+
this.log.error(`MqttActor: encode failed, dropping publish to '${topic}': ${err.message}`);
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return this.enqueueOutbound({
|
|
107
|
+
topic,
|
|
108
|
+
payload: bytes,
|
|
109
|
+
qos: opts.qos,
|
|
110
|
+
retain: opts.retain,
|
|
111
|
+
userProperties: opts.userProperties,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The actor's payload codec (default {@link mqttJsonCodec}). Exposed
|
|
116
|
+
* so subclasses can encode/decode explicitly — e.g. to publish a bare
|
|
117
|
+
* string as a JSON entity. Only valid after `preStart`.
|
|
118
|
+
*/
|
|
119
|
+
codec() {
|
|
120
|
+
return (this._codec ??= this.options.codec ?? mqttJsonCodec());
|
|
121
|
+
}
|
|
122
|
+
/* ----------------------- sealed dispatch ----------------------- */
|
|
123
|
+
/** @internal Sealed — override onMessage + hooks instead. */
|
|
124
|
+
onReceive(cmd) {
|
|
125
|
+
// Terminated is delivered through onReceive (ActorCell) but isn't part
|
|
126
|
+
// of the typed mailbox union — narrow via a guard.
|
|
127
|
+
if (isTerminated(cmd)) {
|
|
128
|
+
this.removeTerminatedTarget(cmd.actor);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
// Uniform `kind` dispatch over internal signals + external commands.
|
|
132
|
+
const kind = cmd.kind;
|
|
133
|
+
switch (kind) {
|
|
134
|
+
case 'mqtt-inbound': return this.routeInbound(cmd.message);
|
|
135
|
+
case 'mqtt-connected': return this.onConnected();
|
|
136
|
+
case 'mqtt-disconnected': return this.onDisconnected(cmd.cause);
|
|
137
|
+
case 'publish':
|
|
138
|
+
case 'subscribe':
|
|
139
|
+
case 'unsubscribe':
|
|
140
|
+
return this.handleCommand(cmd);
|
|
141
|
+
default:
|
|
142
|
+
return this.onSelfMessage(cmd);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
handleCommand(cmd) {
|
|
146
|
+
// Exhaustive over MqttCommand — a new command variant forces a handler here.
|
|
147
|
+
match(cmd)
|
|
148
|
+
.with({ kind: 'publish' }, (command) => { this.enqueueOutbound(command.publish); })
|
|
149
|
+
.with({ kind: 'subscribe' }, (command) => {
|
|
150
|
+
this.registerSubscription(command.topic, { qos: command.qos, target: command.target });
|
|
151
|
+
})
|
|
152
|
+
.with({ kind: 'unsubscribe' }, (command) => {
|
|
153
|
+
this.removeSubscription(command.topic, command.target, true);
|
|
154
|
+
})
|
|
155
|
+
.exhaustive();
|
|
156
|
+
}
|
|
157
|
+
/* ----------------------- inbound routing ----------------------- */
|
|
158
|
+
async routeInbound(msg) {
|
|
159
|
+
let toSelf = false;
|
|
160
|
+
const seen = new Set();
|
|
161
|
+
for (const [pattern, entry] of this.registry) {
|
|
162
|
+
if (!matchesMqttPattern(pattern, msg.topic))
|
|
163
|
+
continue;
|
|
164
|
+
if (entry.deliverToSelf)
|
|
165
|
+
toSelf = true;
|
|
166
|
+
for (const ref of entry.targets) {
|
|
167
|
+
if (!seen.has(ref)) {
|
|
168
|
+
seen.add(ref);
|
|
169
|
+
ref.tell(msg);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if (!toSelf)
|
|
174
|
+
return;
|
|
175
|
+
try {
|
|
176
|
+
await this.onMessage(msg);
|
|
177
|
+
}
|
|
178
|
+
catch (err) {
|
|
179
|
+
if (err instanceof MqttDecodeError)
|
|
180
|
+
return this.onInvalidMessage(err, msg);
|
|
181
|
+
throw err; // ordinary supervision
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
/* ----------------------- subscription registry ----------------- */
|
|
185
|
+
registerSubscription(topic, opts) {
|
|
186
|
+
let entry = this.registry.get(topic);
|
|
187
|
+
if (!entry) {
|
|
188
|
+
entry = { qos: opts.qos, deliverToSelf: false, targets: new Set() };
|
|
189
|
+
this.registry.set(topic, entry);
|
|
190
|
+
}
|
|
191
|
+
else if (opts.qos !== undefined) {
|
|
192
|
+
entry.qos = opts.qos; // last-writer-wins when a QoS is given
|
|
193
|
+
}
|
|
194
|
+
if (opts.target) {
|
|
195
|
+
entry.targets.add(opts.target);
|
|
196
|
+
this.watchTarget(opts.target, topic);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
entry.deliverToSelf = true;
|
|
200
|
+
}
|
|
201
|
+
if (this.connectionState === 'connected' && this.client) {
|
|
202
|
+
this.brokerSubscribe(topic, entry.qos);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
18
205
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
206
|
+
* @param fromExternal true for an external `unsubscribe` command with
|
|
207
|
+
* no target — drops all foreign targets but keeps the actor's own
|
|
208
|
+
* subscription (a controller must not be able to silence the
|
|
209
|
+
* subclass's constructor-declared subscription). false for the
|
|
210
|
+
* protected `unsubscribe(topic)` — drops only the own delivery.
|
|
22
211
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
212
|
+
removeSubscription(topic, target, fromExternal) {
|
|
213
|
+
const entry = this.registry.get(topic);
|
|
214
|
+
if (!entry)
|
|
215
|
+
return;
|
|
216
|
+
if (target) {
|
|
217
|
+
entry.targets.delete(target);
|
|
218
|
+
this.unwatchTarget(target, topic);
|
|
219
|
+
}
|
|
220
|
+
else if (fromExternal) {
|
|
221
|
+
for (const ref of entry.targets)
|
|
222
|
+
this.unwatchTarget(ref, topic);
|
|
223
|
+
entry.targets.clear();
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
entry.deliverToSelf = false;
|
|
227
|
+
}
|
|
228
|
+
if (!entry.deliverToSelf && entry.targets.size === 0) {
|
|
229
|
+
this.registry.delete(topic);
|
|
230
|
+
this.brokerUnsubscribe(topic);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
removeTerminatedTarget(ref) {
|
|
234
|
+
const key = ref.path.toString();
|
|
235
|
+
const watchEntry = this.watched.get(key);
|
|
236
|
+
if (!watchEntry)
|
|
237
|
+
return;
|
|
238
|
+
// The cell already dropped the watch on Terminated delivery — just
|
|
239
|
+
// clean our own bookkeeping (no context.unwatch).
|
|
240
|
+
this.watched.delete(key);
|
|
241
|
+
for (const pattern of watchEntry.patterns) {
|
|
242
|
+
const entry = this.registry.get(pattern);
|
|
243
|
+
if (!entry)
|
|
244
|
+
continue;
|
|
245
|
+
for (const target of entry.targets) {
|
|
246
|
+
if (target.path.toString() === key) {
|
|
247
|
+
entry.targets.delete(target);
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
if (!entry.deliverToSelf && entry.targets.size === 0) {
|
|
252
|
+
this.registry.delete(pattern);
|
|
253
|
+
this.brokerUnsubscribe(pattern);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
watchTarget(ref, pattern) {
|
|
258
|
+
const key = ref.path.toString();
|
|
259
|
+
let watchEntry = this.watched.get(key);
|
|
260
|
+
if (!watchEntry) {
|
|
261
|
+
watchEntry = { ref, patterns: new Set() };
|
|
262
|
+
this.watched.set(key, watchEntry);
|
|
263
|
+
this.context.watch(ref);
|
|
264
|
+
}
|
|
265
|
+
watchEntry.patterns.add(pattern);
|
|
266
|
+
}
|
|
267
|
+
unwatchTarget(ref, pattern) {
|
|
268
|
+
const key = ref.path.toString();
|
|
269
|
+
const watchEntry = this.watched.get(key);
|
|
270
|
+
if (!watchEntry)
|
|
271
|
+
return;
|
|
272
|
+
watchEntry.patterns.delete(pattern);
|
|
273
|
+
if (watchEntry.patterns.size === 0) {
|
|
274
|
+
this.watched.delete(key);
|
|
275
|
+
this.context.unwatch(ref);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
brokerSubscribe(topic, qos) {
|
|
279
|
+
this.client?.subscribe(topic, { qos: qos ?? this.options.qos ?? 0 }, (err) => {
|
|
280
|
+
if (err)
|
|
281
|
+
this.log.warn(`MqttActor: subscribe '${topic}' failed: ${err.message}`);
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
brokerUnsubscribe(topic) {
|
|
285
|
+
if (this.connectionState !== 'connected' || !this.client)
|
|
286
|
+
return;
|
|
287
|
+
this.client.unsubscribe(topic, undefined, (err) => {
|
|
288
|
+
if (err)
|
|
289
|
+
this.log.warn(`MqttActor: unsubscribe '${topic}' failed: ${err.message}`);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
/* ----------------------- BrokerActor plumbing ------------------ */
|
|
293
|
+
async preStart() {
|
|
294
|
+
// Context is attached before preStart; options resolve inside
|
|
295
|
+
// super.preStart(). Flush constructor subscriptions into the
|
|
296
|
+
// registry (idempotent) so connectImplementation applies them on connect.
|
|
297
|
+
for (const pendingSub of this.pendingSubs) {
|
|
298
|
+
this.registerSubscription(pendingSub.topic, { qos: pendingSub.qos, target: pendingSub.target });
|
|
299
|
+
}
|
|
300
|
+
this._started = true;
|
|
301
|
+
await super.preStart();
|
|
302
|
+
}
|
|
25
303
|
configKey() { return ConfigKeys.io.broker.mqtt; }
|
|
26
|
-
|
|
27
|
-
return {
|
|
304
|
+
builtInDefaultOptions() {
|
|
305
|
+
return { qos: 0, cleanSession: true, keepAlive: 60 };
|
|
28
306
|
}
|
|
29
|
-
|
|
307
|
+
readOptionsFromConfig(config) {
|
|
30
308
|
const out = {};
|
|
31
|
-
if (
|
|
32
|
-
out.brokerUrl =
|
|
33
|
-
if (
|
|
34
|
-
out.clientId =
|
|
35
|
-
if (
|
|
36
|
-
const cc =
|
|
309
|
+
if (config.hasPath('brokerUrl'))
|
|
310
|
+
out.brokerUrl = config.getString('brokerUrl');
|
|
311
|
+
if (config.hasPath('clientId'))
|
|
312
|
+
out.clientId = config.getString('clientId');
|
|
313
|
+
if (config.hasPath('credentials')) {
|
|
314
|
+
const cc = config.getConfig('credentials');
|
|
37
315
|
out.credentials = {
|
|
38
316
|
username: cc.hasPath('username') ? cc.getString('username') : undefined,
|
|
39
317
|
password: cc.hasPath('password') ? cc.getString('password') : undefined,
|
|
40
318
|
};
|
|
41
319
|
}
|
|
42
|
-
if (
|
|
43
|
-
out.
|
|
44
|
-
if (
|
|
45
|
-
out.cleanSession =
|
|
46
|
-
if (
|
|
47
|
-
out.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
out.protocolVersion = v;
|
|
54
|
-
}
|
|
320
|
+
if (config.hasPath('qos'))
|
|
321
|
+
out.qos = config.getInt('qos');
|
|
322
|
+
if (config.hasPath('cleanSession'))
|
|
323
|
+
out.cleanSession = config.getBoolean('cleanSession');
|
|
324
|
+
if (config.hasPath('keepAlive'))
|
|
325
|
+
out.keepAlive = config.getInt('keepAlive');
|
|
326
|
+
// Value validation (protocolVersion ∈ {4,5}, etc.) is enforced uniformly
|
|
327
|
+
// by optionsValidator() on the merged options — see MqttOptionsValidator.
|
|
328
|
+
if (config.hasPath('protocolVersion'))
|
|
329
|
+
out.protocolVersion = config.getInt('protocolVersion');
|
|
55
330
|
return out;
|
|
56
331
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
332
|
+
requiredOptions() { return ['brokerUrl']; }
|
|
333
|
+
optionsValidator() { return new MqttOptionsValidator(); }
|
|
334
|
+
endpointLabel() { return this.options.brokerUrl ?? '<unknown>'; }
|
|
335
|
+
/** @internal Test seam — override to inject a fake mqtt module. */
|
|
336
|
+
mqttModule() { return mqttLazy.get(); }
|
|
337
|
+
async connectImplementation() {
|
|
338
|
+
const mqtt = await this.mqttModule();
|
|
61
339
|
const opts = {
|
|
62
|
-
clientId: this.
|
|
63
|
-
username: this.
|
|
64
|
-
password: this.
|
|
65
|
-
clean: this.
|
|
66
|
-
keepalive: this.
|
|
67
|
-
protocolVersion: this.
|
|
340
|
+
clientId: this.options.clientId,
|
|
341
|
+
username: this.options.credentials?.username,
|
|
342
|
+
password: this.options.credentials?.password,
|
|
343
|
+
clean: this.options.cleanSession,
|
|
344
|
+
keepalive: this.options.keepAlive,
|
|
345
|
+
protocolVersion: this.options.protocolVersion ?? 4,
|
|
68
346
|
};
|
|
69
|
-
if (this.
|
|
347
|
+
if (this.options.will) {
|
|
70
348
|
opts.will = {
|
|
71
|
-
topic: this.
|
|
72
|
-
payload: this.
|
|
73
|
-
qos: this.
|
|
74
|
-
retain: this.
|
|
349
|
+
topic: this.options.will.topic,
|
|
350
|
+
payload: this.options.will.payload,
|
|
351
|
+
qos: this.options.will.qos ?? 0,
|
|
352
|
+
retain: this.options.will.retain ?? false,
|
|
75
353
|
};
|
|
76
354
|
}
|
|
77
355
|
return new Promise((resolve, reject) => {
|
|
78
|
-
const client = mqtt.connect(this.
|
|
356
|
+
const client = mqtt.connect(this.options.brokerUrl, opts);
|
|
79
357
|
let done = false;
|
|
358
|
+
let down = false;
|
|
359
|
+
// mqtt.js can fire 'error' then 'close' for one drop — collapse them.
|
|
360
|
+
const onDown = (cause) => {
|
|
361
|
+
if (down)
|
|
362
|
+
return;
|
|
363
|
+
down = true;
|
|
364
|
+
this.self.tell(mqttDisconnectedSignal(cause));
|
|
365
|
+
this.handleConnectionLost(cause);
|
|
366
|
+
};
|
|
80
367
|
client.once('connect', () => {
|
|
81
368
|
if (done)
|
|
82
369
|
return;
|
|
@@ -84,29 +371,26 @@ export class MqttActor extends BrokerActor {
|
|
|
84
371
|
client.removeAllListeners('error');
|
|
85
372
|
this.client = client;
|
|
86
373
|
client.on('message', (topic, payload, packet) => {
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
this.dispatchInbound({
|
|
93
|
-
topic, payload,
|
|
374
|
+
// No user code on the mqtt.js loop: wrap into a lazily-decoding
|
|
375
|
+
// payload and hand the message to our own mailbox.
|
|
376
|
+
this.self.tell(mqttInboundSignal({
|
|
377
|
+
topic,
|
|
378
|
+
payload: new MqttPayload(payload, this.codec(), topic),
|
|
94
379
|
qos: (packet?.qos ?? 0),
|
|
95
380
|
retain: packet?.retain ?? false,
|
|
96
381
|
userProperties: packet?.properties?.userProperties,
|
|
97
382
|
reasonCode: packet?.properties?.reasonCode,
|
|
98
|
-
});
|
|
383
|
+
}));
|
|
99
384
|
});
|
|
100
|
-
client.on('error', (e) =>
|
|
101
|
-
client.on('close', () =>
|
|
102
|
-
//
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this.log.warn(`MqttActor: initial subscribe to '${sub.topic}' failed: ${err.message}`);
|
|
108
|
-
});
|
|
385
|
+
client.on('error', (e) => onDown(e));
|
|
386
|
+
client.on('close', () => onDown(new Error('mqtt connection closed')));
|
|
387
|
+
// (Re)apply the whole registry on every (re)connect — this is
|
|
388
|
+
// what makes runtime subscriptions survive reconnects and
|
|
389
|
+
// subscribe-while-disconnected land on the broker.
|
|
390
|
+
for (const [pattern, entry] of this.registry) {
|
|
391
|
+
this.brokerSubscribe(pattern, entry.qos);
|
|
109
392
|
}
|
|
393
|
+
this.self.tell(mqttConnectedSignal());
|
|
110
394
|
resolve();
|
|
111
395
|
});
|
|
112
396
|
client.once('error', (e) => {
|
|
@@ -121,107 +405,49 @@ export class MqttActor extends BrokerActor {
|
|
|
121
405
|
});
|
|
122
406
|
});
|
|
123
407
|
}
|
|
124
|
-
async
|
|
408
|
+
async disconnectImplementation() {
|
|
125
409
|
if (!this.client)
|
|
126
410
|
return;
|
|
127
|
-
const
|
|
411
|
+
const client = this.client;
|
|
128
412
|
this.client = null;
|
|
129
413
|
return new Promise((resolve) => {
|
|
130
|
-
|
|
131
|
-
|
|
414
|
+
client.removeAllListeners();
|
|
415
|
+
client.end(false, {}, () => resolve());
|
|
132
416
|
setTimeout(resolve, 1_000);
|
|
133
417
|
});
|
|
134
418
|
}
|
|
135
419
|
async dispatchOutgoing(env) {
|
|
136
420
|
if (!this.client)
|
|
137
421
|
throw new Error('MqttActor: not connected');
|
|
138
|
-
const
|
|
139
|
-
const qos =
|
|
140
|
-
const retain =
|
|
141
|
-
const protocolVersion = this.
|
|
422
|
+
const payload = env.payload;
|
|
423
|
+
const qos = payload.qos ?? this.options.qos ?? 0;
|
|
424
|
+
const retain = payload.retain ?? false;
|
|
425
|
+
const protocolVersion = this.options.protocolVersion ?? 4;
|
|
142
426
|
const opts = { qos, retain };
|
|
143
|
-
|
|
144
|
-
// on 3.1.1 (the wire format has no slot for them). Same
|
|
145
|
-
// pattern mqtt.js follows when the option mismatches the
|
|
146
|
-
// negotiated protocol version.
|
|
147
|
-
const properties = buildPublishProperties(p, protocolVersion);
|
|
427
|
+
const properties = buildPublishProperties(payload, protocolVersion);
|
|
148
428
|
if (properties)
|
|
149
429
|
opts.properties = properties;
|
|
150
430
|
return new Promise((resolve, reject) => {
|
|
151
|
-
this.client.publish(
|
|
431
|
+
this.client.publish(payload.topic, payload.payload, opts, (err) => {
|
|
152
432
|
err ? reject(err) : resolve();
|
|
153
433
|
});
|
|
154
434
|
});
|
|
155
435
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
this.enqueueOutbound(c.publish);
|
|
162
|
-
})
|
|
163
|
-
.with({ kind: 'subscribe' }, (c) => {
|
|
164
|
-
this.patternSubscribe(c.topic, c.target);
|
|
165
|
-
// If already connected, register on the broker too. Reconnect
|
|
166
|
-
// re-runs the initial subscriptions; runtime additions persist
|
|
167
|
-
// only via the local pattern map — we don't try to "remember"
|
|
168
|
-
// them across reconnect (caller can re-tell after `BrokerConnected`).
|
|
169
|
-
if (this.connectionState === 'connected' && this.client) {
|
|
170
|
-
this.client.subscribe(c.topic, { qos: c.qos ?? this.settings.defaultQos ?? 0 }, (err) => { if (err)
|
|
171
|
-
this.log.warn(`MqttActor: subscribe '${c.topic}' failed: ${err.message}`); });
|
|
172
|
-
}
|
|
173
|
-
})
|
|
174
|
-
.with({ kind: 'unsubscribe' }, (c) => {
|
|
175
|
-
if (c.target)
|
|
176
|
-
this.patternUnsubscribe(c.topic, c.target);
|
|
177
|
-
else
|
|
178
|
-
this.patternSubs.delete(c.topic);
|
|
179
|
-
if (this.connectionState === 'connected' && this.client) {
|
|
180
|
-
this.client.unsubscribe(c.topic, undefined, (err) => {
|
|
181
|
-
if (err)
|
|
182
|
-
this.log.warn(`MqttActor: unsubscribe '${c.topic}' failed: ${err.message}`);
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
})
|
|
186
|
-
.exhaustive();
|
|
187
|
-
}
|
|
188
|
-
/* ----------------------------- internals ------------------------------ */
|
|
189
|
-
patternSubscribe(pattern, ref) {
|
|
190
|
-
let set = this.patternSubs.get(pattern);
|
|
191
|
-
if (!set) {
|
|
192
|
-
set = new Set();
|
|
193
|
-
this.patternSubs.set(pattern, set);
|
|
194
|
-
}
|
|
195
|
-
set.add(ref);
|
|
196
|
-
}
|
|
197
|
-
patternUnsubscribe(pattern, ref) {
|
|
198
|
-
const set = this.patternSubs.get(pattern);
|
|
199
|
-
if (!set)
|
|
200
|
-
return;
|
|
201
|
-
set.delete(ref);
|
|
202
|
-
if (set.size === 0)
|
|
203
|
-
this.patternSubs.delete(pattern);
|
|
204
|
-
}
|
|
205
|
-
dispatchInbound(msg) {
|
|
206
|
-
for (const [pattern, subs] of this.patternSubs) {
|
|
207
|
-
if (matchesMqttPattern(pattern, msg.topic)) {
|
|
208
|
-
for (const ref of subs)
|
|
209
|
-
ref.tell(msg);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
436
|
+
}
|
|
437
|
+
/* --------------------------- helpers ---------------------------- */
|
|
438
|
+
/** Terminated arrives via onReceive but isn't in the typed mailbox union. */
|
|
439
|
+
function isTerminated(message) {
|
|
440
|
+
return message instanceof Terminated;
|
|
213
441
|
}
|
|
214
442
|
/* --------------------------- MQTT 5.0 helpers -------------------------- */
|
|
215
443
|
/**
|
|
216
444
|
* Build the mqtt-packet `properties` object for an outbound publish,
|
|
217
445
|
* or `undefined` if there's nothing v5-specific to attach. Pure
|
|
218
|
-
* function — testable without a real broker or mqtt.js install
|
|
219
|
-
* (see `tests/unit/io/broker/MqttActor.test.ts`).
|
|
446
|
+
* function — testable without a real broker or mqtt.js install.
|
|
220
447
|
*
|
|
221
448
|
* `protocolVersion < 5` always returns undefined: the 3.1.1 wire
|
|
222
|
-
* format has no slot for user properties, so we drop them rather
|
|
223
|
-
*
|
|
224
|
-
* downstream tooling.
|
|
449
|
+
* format has no slot for user properties, so we drop them rather than
|
|
450
|
+
* letting them leak into the publish callsite.
|
|
225
451
|
*/
|
|
226
452
|
export function buildPublishProperties(p, protocolVersion) {
|
|
227
453
|
if (protocolVersion < 5)
|
|
@@ -239,14 +465,14 @@ export function matchesMqttPattern(pattern, topic) {
|
|
|
239
465
|
const ps = pattern.split('/');
|
|
240
466
|
const ts = topic.split('/');
|
|
241
467
|
for (let i = 0; i < ps.length; i++) {
|
|
242
|
-
const
|
|
243
|
-
if (
|
|
468
|
+
const patternSegment = ps[i];
|
|
469
|
+
if (patternSegment === '#')
|
|
244
470
|
return true;
|
|
245
471
|
if (i >= ts.length)
|
|
246
472
|
return false;
|
|
247
|
-
if (
|
|
473
|
+
if (patternSegment === '+')
|
|
248
474
|
continue;
|
|
249
|
-
if (
|
|
475
|
+
if (patternSegment !== ts[i])
|
|
250
476
|
return false;
|
|
251
477
|
}
|
|
252
478
|
return ps.length === ts.length;
|