Changelog
v0.12.2
resolverNoCache
option where matches would fail if caching was disabled.Changelog
v0.12.1
resolverNoCache
. If present in enveloper.headers
and set to true, it will prevent the resolver from caching topic/binding matches for that message instance.Changelog
v0.12.0
purge
method to the default bindings resolverautoCompactResolver
option to postal.configuration
- it can be set to true
(which auto-compacts the resolver cache on every unsubscribe, false
(the default) which never automatically compacts the resolver cache or set to an integer > 0, which will auto-compact the resolver cache ever n number of unsubscribes (so setting it to 5 will auto-compact every 5th unsubscribe). "Auto compacting" basically purges any resolver comparison results that do not have subscribers active on those topics (i.e. - nothing it listening to those topics, don't keep the cached comparison results any more).cacheKeyDelimiter
option to postal.configuration
, which defaults to the pipe (|
) symbol. This is primarily to give anyone implementing their own resolver a different way to delimit topics and bindings when they're using to compose a resolver cache key.resolver.compare
method, which allows you to pass an options object to take into consideration while performing the comparison between topic and binding. Currently, the only supported option is preventCache
- which tells the resolver to not cache the result of the comparison.Changelog
v0.11.2
.bind
calls snuck in - we're not officially on ES5 syntax yet (but will be soon). Converting those to use lodash's _.bind
call for now.Changelog
v0.11.0
invokeSubscriber
has been added to the SubscriptionDefinition
prototype. This method is called during publish cycles. The postal.publish
method no longer does the heavy lifting of determining if a subscriber callback should be invoked, the subscriber now handles that via this new method.SubscriptionDefinition
prototype methods withContext
, withThrottle
, withDebounce
, withDelay
, withConstraint
, withConstraints
have been deprecated and replaced with context
, throttle
, debounce
, delay
, constraint
and constraints
(respectively). They will continue to work in v0.11, but will warn of the deprecation.Changelog
v0.10.3
nesting
(or publishDepth
) argument, which is a number to indicate the 'nested' publish depth for the message being passed to the wiretap. Thanks to @avanderhoorn for this addition. :smile:Changelog
v0.10.2
postal.subscriptions.whateverChannel
) will be removed during unsubscription if the subscriber being removed is the last subscriber.postal.susbcriptions
) will be removed during unsubscription if no topic binding properties exist on the channel any longer.