feat: Every SDK includes `reason` in responses for identity and environment flags

Merged
FL
10d ago
+41-5

Contributes to https://github.com/Flagsmith/sdk-spec/issues/27


Summary by cubic

Bumps the SDK spec to v0.10.0 and exposes each flag's evaluation reason, so identity and environment flag responses now include it as part of Flagsmith SDK spec v0.10.0.

  • Flag::getReason() returns why a flag was evaluated to its value: the reason Flagsmith returns from /flags/ and /identities/, or the engine's reason under local evaluation.
  • Returns null when the API does not send a reason.

Contributes to https://github.com/Flagsmith/sdk-spec/issues/27.