Skip to content

feat: upgrade OpenFeature SDK to 0.9.0 - #262

Open
nicklasl wants to merge 3 commits into
mainfrom
nicklasl/openfeature-0.9.0
Open

nicklasl wants to merge 3 commits into
mainfrom
nicklasl/openfeature-0.9.0

Conversation

@nicklasl

@nicklasl nicklasl commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Bump OpenFeature Kotlin SDK to 0.9.0.
  • Implement long evaluation by widening integer flag values and preserving long defaults.
  • Handle Value.Long in context and tracking data without silently losing integer precision.
  • Adapt provider error events and the demo app to the 0.9.0 API.

@nicklasl
nicklasl marked this pull request as ready for review October 2, 2026 06:24
}

private fun Number.toConfidenceValue(): ConfidenceValue = when (this) {
private const val MAX_EXACT_DOUBLE_INTEGER = 9_007_199_254_740_992L

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not double.max?

is Long -> if (this in Int.MIN_VALUE..Int.MAX_VALUE) {
ConfidenceValue.Integer(toInt())
} else {
} else if (this in -MAX_EXACT_DOUBLE_INTEGER..MAX_EXACT_DOUBLE_INTEGER) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be like int, in double.min value .. double.max value

vahidlazio
vahidlazio previously approved these changes Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants