2.7.1 - fix sorbet compatibility
Sorbet’s T::Sig monkey-patches Ruby’s Kernel#require, which breaks Statsig’s internal lazy-loading during Statsig.initialize. When extend T::Sig is used anywhere in a project, Statsig fails to load internal classes like Statsig::UserPersistentStorageUtils, causing silent initialization failures and incorrect gate checks.
This change replaces all internal require calls in the SDK with require_relative.
Using require_relative ensures internal files resolve correctly regardless of Sorbet’s patched require
External dependencies are untouched
thanks to simon jenkins of instacart for the thorough bug report and suggested fix
Included In This Release
Full Changelog: 2.7.0...2.7.1