Skip to content

v0.1.0

Choose a tag to compare

@poluruprvn poluruprvn released this 31 Oct 08:53
· 17 commits to main since this release

identify now returns at once, like track: identifies are queued on a background sender of their own and sent in batches with BatchIdentify.

A server that predates BatchIdentify gets one Identify call per queued identify. Identifies share the batch settings and retry rules with events, flush and close cover both queues, and an identify over 900 KiB is dropped with an error since the server can't deliver it.

Breaking: on_error is now called with (error, undelivered), where undelivered is a Pug::Undelivered whose events or identifies hold what was lost, instead of (error, events). A 0.0.x handler still passes the arity check but fails once it treats the second argument as an Array. identify failures now reach on_error rather than only the log, and because identify no longer waits for the server, a read straight after it may not see the change yet.

Install: gem install pug-sh -v 0.1.0