Skip to content

v1.3.0 — anonymous bucketing (__se_anon_id)

Latest

Choose a tag to compare

@vshaveyko vshaveyko released this 13 Jun 21:21
· 2 commits to main since this release

Implements the cross-SDK anonymous bucketing contract (18-identity-bucketing.md).

  • Shipeasy::SDK::RackMiddleware mints the shared __se_anon_id first-party cookie for any request without one. Auto-mounted in Rails via a Railtie; for Sinatra/Hanami/bare Rack add use Shipeasy::SDK::RackMiddleware.
  • Gate/experiment evaluations now default to the cookie id as anonymous_id, so logged-out visitors bucket consistently across server renders and the browser with no per-call wiring. The id is also on the Rack env as shipeasy.anon_id.
  • Eval fix: a request with no user_id/anonymous_id now resolves a fully-rolled (100%) gate as on instead of always off, matching the TypeScript reference SDK.