Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postal

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postal - npm Package Versions

1
6

0.12.3

Diff

Changelog

Source

v0.12.3

  • Merged in @efurmantt's PR to support toggling resolver cache on and off.
ifandelse
published 0.12.2 •

Changelog

Source

v0.12.2

  • Fixed bug with resolverNoCache option where matches would fail if caching was disabled.
ifandelse
published 0.12.1 •

Changelog

Source

v0.12.1

  • Added support for an envelope header value called resolverNoCache. If present in enveloper.headers and set to true, it will prevent the resolver from caching topic/binding matches for that message instance.
ifandelse
published 0.12.0 •

Changelog

Source

v0.12.0

  • Added the purge method to the default bindings resolver
  • Added the autoCompactResolver 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).
  • Added the 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.
  • Added a third argument to the 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.
ifandelse
published 0.11.2 •

Changelog

Source

v0.11.2

  • Two ES5 .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.
ifandelse
published 0.11.1 •

Changelog

Source

v0.11.1

  • Fixing an npm publishing goof, which requires a version bump. :-(
ifandelse
published 0.1.0 •

ifandelse
published 0.11.0 •

Changelog

Source

v0.11.0

  • ConduitJS is no longer a dependency.
  • 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.
  • The 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.
  • postal has been optimized for publishing (subscriptions matched to a topic via the resolver are cached).
ifandelse
published 0.10.3 •

Changelog

Source

v0.10.3

  • Wiretaps now get a third argument, the 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:
ifandelse
published 0.10.2 •

Changelog

Source

v0.10.2

  • Empty topic subscriptions arrays (on postal.subscriptions.whateverChannel) will be removed during unsubscription if the subscriber being removed is the last subscriber.
  • Empty channel objects (on postal.susbcriptions) will be removed during unsubscription if no topic binding properties exist on the channel any longer.
  • Special thanks to @sergiopereiraTT for adding these features. :smile:
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc