Skip to content

v0.0.19

Choose a tag to compare

@jdwyah jdwyah released this 28 May 19:47
· 67 commits to main since this release
  • Deprecation (context): in_context is now a deprecated alias of with_context (qfg-e0kk). The two methods have always been runtime-identical — both accept a properties hash and either yield a Quonfig::BoundClient to a given block or return the BoundClient directly. As part of the sdk-1.0 unification, every SDK in the family is converging on the with_context family; sdk-ruby keeps in_context as a YARD-@deprecated alias for the 1.0.0 cycle so existing customer code (especially Prefab-fork lineage call sites) keeps working without a runtime warning. Implementation collapses to a one-line forward (in_context now calls with_context), and the README example is updated to use with_context. Slated for removal in 2.0.0.
  • Feat (options): rename initialization_timeout_sec → init_timeout_ms (qfg-39za). Of the six SDKs, only sdk-ruby (and sdk-python, also being renamed) expressed this in seconds; sdk-node uses initTimeout (ms), sdk-javascript uses timeout (ms), sdk-java uses Duration. Picking init_timeout_ms as the canonical snake_case name lets sdk-ruby and sdk-python converge. The default is unchanged in wall-clock terms: init_timeout_ms: 10_000 (previously expressed as initialization_timeout_sec: 10). The legacy initialization_timeout_sec kwarg and accessor are kept as deprecated aliases for one minor cycle; passing initialization_timeout_sec: (seconds) is forwarded transparently as * 1000 into the ms-based storage, and reading Options#initialization_timeout_sec returns the configured timeout in seconds. Will be removed in a future minor release.
  • Feat (options): rename enable_polling → fallback_poll_enabled, poll_interval → fallback_poll_interval_ms (qfg-thsn). The old names predated the SSE+fallback architecture and read as "always poll", but the actual behavior since 0.0.4 has been "poll only when SSE is unavailable for >= 2x the interval". The new names match sdk-node / sdk-python / sdk-java. Defaults are unchanged: fallback_poll_enabled: true, fallback_poll_interval_ms: 60_000 (previously expressed as 60 seconds). The legacy enable_polling and poll_interval kwargs and accessors are kept as deprecated aliases for one minor cycle; passing poll_interval: (seconds) is forwarded transparently as poll_interval * 1000 into the new ms-based storage, and reading Options#poll_interval returns the configured interval in seconds. Will be removed in a future minor release.