From 9764cb2ebaae5ce02a48460518eade83a0dc84e8 Mon Sep 17 00:00:00 2001 From: Xin Li <137219293+xinlili-statsig@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:40:12 -0700 Subject: [PATCH] [release] 1.21.0 - Option to disable ip3 country and fix potential memory leaks (#306) New feature: - Add option to disable ip3 country library Fix memory leak: - Properly close network request in multiple places - append to existing set for exposure deduping - Cancel coroutine work in errorBoundary when shutdown >Included In This Release >- f016f9add7bf5c0e09bd485f04f15b6abf036208 Weihao Ding > - revert: delete inline ip3 country look up files (#305) >- a7fa62ea0dc4f44784215b8f58041961d3016da4 tore-statsig > - revert: use ip3country library instead of inlined version (#304) >- e22c18f3d5dffd762278b352d2e4cc8545381f91 Weihao Ding > - fix: cancel eb coroutine job when we shutdown (#303) >- d042c77d8deb9b31d5888880b44619cdd8ea69f5 Weihao Ding > - optimize: lazy init eb http client (#302) >- 02d3e71db7b71b9cfb088d346b09673d18860628 Weihao Ding > - clear set not re-assign the set (#299) >- 78d28c2159bde06ee32c524637b7fd01d68b22ce tore-statsig > - fix: optimistically set initialized (#298) >- bf3f1fe2646eda1b7a3f1713d3fb76f191c24ee8 tore-statsig > - feat: add option to disable ip->country resolution (#301) >- dea4315d1b1202e5a675fe105a45ba8fb15e108c tore-statsig > - feat: cleanup ip/country tables (#297) >- 64c667f38cf4d5272c069aaf4243b6257e8f0b6c tore-statsig > - feat: inline ip3country to test fix (#296) >- 430cc161c1c7944558e8e4cdc6fe2c6f6ac48c84 Weihao Ding > - fix: close external http client when we shutdown (#294) >- ddc4d3e9c7a700022321179a083ceed66bf22a93 andyphan-statsig > - use runTest instead of runBlocking for testLogEventRetry (#292) --- gradle.properties | 2 +- src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index b3dffff..c161da5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ RELEASE_SIGNING_ENABLED=true GROUP=com.statsig.serversdk POM_ARTIFACT_ID=serversdk -VERSION_NAME=1.20.0 +VERSION_NAME=1.21.0 POM_NAME=Statsig Server SDK POM_DESCRIPTION=A feature gating and a/b testing library for statsig diff --git a/src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt b/src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt index 690c541..c9e09ec 100644 --- a/src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt +++ b/src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt @@ -6,7 +6,7 @@ import com.google.gson.annotations.SerializedName import java.util.Properties import java.util.UUID -private const val VERSION = "1.20.0" +private const val VERSION = "1.21.0" internal data class StatsigMetadata(@SerializedName("sdkType") var sdkType: String = "java-server", @SerializedName("sessionID") var sessionID: String = UUID.randomUUID().toString(), @SerializedName("languageVersion") var languageVersion: String = System.getProperty("java.version"), @SerializedName("exposureLoggingDisabled") var exposureLoggingDisabled: Boolean? = null) { @SerializedName("sdkVersion")