java-sdk-contrib
java-sdk-contrib copied to clipboard
fix(deps): update dependency com.statsig:serversdk to v1.36.4
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| com.statsig:serversdk | 1.18.1 -> 1.36.4 |
Release Notes
statsig-io/java-server-sdk (com.statsig:serversdk)
v1.36.3: - Fix Nested Gating Sampling Logic
Fixes
- Make sure not sampled on those nesting analytical gating conditions
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.36.2...1.36.3
v1.36.2: - Fix evaluator version parsing with space
Fixes
- String.toInt() cannot parse " 23" which can cause evaluator failed to compare version. Improve SDK to be more resilient on such case
Improvements
Included In This Release
02a7a63Xin Li
- change int parsing function (#450)
9a76bb0kat-statsig
- option name change (#451)
c430777Daniel
- tool: up retry attempts (#449)
fd9b3e8Daniel
- chore: add idType to DynamicConfig (#448)
9a2f5b4Daniel
- tool: add re-run extension for test retries (#447)
f335f68Daniel
- chore: add support for accessing idType (#446)
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.36.1...1.36.2
v1.36.1: - Avoid calling lateinit property before Initialize
Fixes
- Avoid calling outputLogger before Init setup completed
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.36.0...1.36.1
v1.36.0: - Using withContext when deserializing network responses
Improvements
- Reading network response body in a nonblocking context
- When restarting a new background polling job, changed the log level from debug to be warn
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.9...1.36.0
v1.35.9: - Resume Background Job If Exception Happened
Improvements
- Added periodic health check around background job
Fixes
- Fix the issue that when exception happened, resume the background job
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.8...1.35.9
v1.35.8: - Change StatsigLogger deduper to use ConcurrentHashMap
Improvements
- We were using synchronized set which will lock in both read and write. Swap to use ConcurrentHashMap which only locks in write.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.7...1.35.8
v1.35.7: - Add IsActive for Experiments
New Features
- Adds isActive to DynamicConfigs and isExperimentActive to Layers to make it easy to tell if an experiment is active
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.6...1.35.7
v1.35.6: - Log caught exception to CustomLogger
Fixes
- Log exceptions to CustomLogger
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.5...1.35.6
v1.35.5: - More detailed Loggings around Network Requests
Improvements
- Added more detailed loggings around network requests process so that end user can know which url they are hitting
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.4...1.35.5
v1.35.4: - Add more debug Level Loggings
New Features
- New StatsigOptions
logLevelwhich contains 4 different logLevel
Improvements
- More debug level loggings
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.3...1.35.4
v1.35.2: - Optimize Hashing with ThreadLocal
Improvements
- The
sha256ToLongmethod in theHashingclass has been optimized to use ThreadLocal for MessageDigest instances. This ensures thread safety and improves performance in multi-threaded environments.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.1...1.35.2
v1.35.1: - Fix persistent assignment enforceTargeting/enforceOverrides
Fixes
- Fix enforceTargeting/enforceOverrides option when using persistent assignment. Previously did not correctly apply the persisted assignment when there were no targeting rules or no overrides.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.35.0...1.35.1
v1.35.0: - Persisted evaluation with experiment filtering Disable OkHttp Library level retry
New Features
- Persisted evaluation with experiment filtering
Fixes
- Avoid memory leak by disable OkHttp level retry
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.34.0...1.35.0
v1.34.0: - Support Override-related APIs with UserID and CustomIDs, Add Sampling to Exposure Events
New Features
- Added Sampling to Gate/Config/Layer non-analytical exposure events
- We now support
overrideGate,overrideLayer,overrideConfig,removeGateOverride,removeConfigOverrideremoveLayerOverridewith a new parameter calledforIDso that end users can override / remove a override for a specific user.forIDcan beuserIDfield on theStatsigUserobject orcustomIDson theStatsigUserObject
Example
StatsigUser sampleUser = new StatsigUser("userId123");
Statsig.overrideGate("test_gate", false, sampleUser.getUserID());
Map<String, String> customIDs = Map.of("customid", "1017");
sampleUser.setCustomIDs(customIDs);
Statsig.overrideGate("test_gate", false, "1017");
Improvements
- N / A
Fixes
- N / A
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.32.2...1.34.0
v1.33.0: - Support Override-related APIs with UserID and CustomIDs
New Features
- We now support
overrideGate,overrideLayer,overrideConfig,removeGateOverride,removeConfigOverrideremoveLayerOverridewith a new parameter calledforIDso that end users can override / remove a override for a specific user.
-forIDcan beuserIDfield on theStatsigUserobject orcustomIDson theStatsigUserObject
Example
StatsigUser sampleUser = new StatsigUser("userId123");
Statsig.overrideGate("test_gate", false, sampleUser.getUserID());
Map<String, String> customIDs = Map.of("customid", "1017");
sampleUser.setCustomIDs(customIDs);
Statsig.overrideGate("test_gate", false, "1017");
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.32.2...1.33.0
v1.32.2: - Changed LockableArray into ConcurrentQueue to Prevent Blocking Issue
New Features
- N / A
Improvements
- Changed
lockableArrayintoConcurrentQueueto prevent potential blocking issue when flushing exposure events
Fixes
- N / A
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.32.1...1.32.2
v1.32.1: - Add More Info into Exposure Metadata, Fix the returnType for getOnDeviceEvalInitializeResponse
Improvements
- Added downloadConfigSpec version and the passed rule id into Exposure Metadata
Fixes
- Fixed the return type for api
getOnDeviceEvalInitializeResponsewhen bootstrap local-eval SDK.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.32.0...1.32.1
v1.32.0: - Manually Sync Config Spec
New Features
- New api
syncConfigSpecsallows users to manually trigger the synchronization of config specs in cases where the initial SDK initialization has failed and you want to retry.
Return Type: CompletableFuture<ConfigSyncDetails>
Example usage:
CompletableFuture<ConfigSyncDetails> future = Statsig.syncConfigSpecs();
ConfigSyncDetails configSyncDetails = future.get();
configSyncDetails.getDuration();
configSyncDetails.getConfigSpecReady();
configSyncDetails.getFailureDetails();
configSyncDetails.getLcut();
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.31.0...1.32.0
v1.31.0: - New Api getOnDeviceEvalInitializeResponse, Add IDType to GCIR Response and Option to Enforce Overrides for Persistent Evaluations
New Features
- New api
getOnDeviceEvalInitializeResponsereturns aMap<String, Any>for bootstrapping on-device evaluation sdk
Improvements
- Update the getEvaluations format
- Adds idType to the
gcirresponse - Adds options to enforce overrides for persistent evaluations
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.30.0...1.31.0
v1.30.0: - Support TLS for GRPC
New Features
- Support TLS for GRPC, see instructions here https://docs.statsig.com/server/concepts/forward_proxy#statsig-forward-proxy
Fixes
- Remove manually append v1 in the path
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.29.0...1.30.0
v1.29.0: - Enforce targeting for persisted assignments & Improved formatting for SSR
Improvements
- Allow checking targeting gate before serving persisted assignment via the option
enforceTargetingonPersistentAssignemntOptions - Support new client initialize format for SSR
getEvaluationsForUser. Not yet compatible with all client SDKs
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.28.0...1.29.0
v1.28.0: - [Breaking Change] getFeatureGate Api for Multi-instance usage, Better logging
New Features
- Exposed
getFeatureGateapi to multi-instance Java/kotlin usage.
Breaking change
- Custom Logger Integration Update:
If you're using a custom logger via the
StatsigOptionsconfiguration, this release introduces breaking changes in how logging is handled.
Specific Changes:
New methods:
debug(String message)
info(String message)
setLogLevel(LogLevel level)
enum LogLevel { NONE, DEBUG, INFO, WARN, ERROR};
Renamed method:
warning(String message) → warn(String message)
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.27.4...1.28.0
v1.27.4: - Remove unnecessary grpc java dependency
Improvements
- Remove grpc java dependency which is already imported with grpc depednecy
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.27.3...1.27.4
v1.27.3: ⚠️1.27.3 - [Bug fix]Fix that exception will interrupt config sync and fallback behavior
Fixes
- Fix the bug that network exception will interrupt config sync and fallback behavior. Try catch more aggressively on network requests, so failure will not interrupt fallback behavior
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.27.2...1.27.3
v1.27.2: - Evaluation process optimization
Improvements
- Optimized the evaluation process and enhanced the performance.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.27.1...1.27.2
v1.27.1: - Fixed Connection Leak
New Features
- N/A
Improvements
- N/A
Fixes
- Addressed a connection leak issue that occurred when HTTP responses were not properly closed after being processed.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.27.0...1.27.1
v1.27.0: - Persistent storage
New Features
- Added support for persistent storage
Improvements
- Return group name with getClientInitializeResponse
- Log grpc error to custom logger
- GRPC Websocket streaming: retry on all exceptions
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.26.1...1.27.0
v1.26.1: - Create StatsigUser with UserID and CustomIDs
Improvements
- Exposed another constructor on
StatsigUserobject so that now, end user can create aStatsigUserwith both userID and customIDs.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.26.0...1.26.1
v1.25.0: - refac: Refactor grpc with generated java
Improvements
- Refactor grpc using generated java file instead of kotlin since java is better maintained.
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.24.1...1.25.0
v1.24.1: - Remove unsupported dependency for Java 17
Fixes
- Remove javax.annotations dependency
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.24.0...1.24.1
v1.24.0: - Support Config Specs Streaming through GRPC
New Features
- Support streaming changes from Statsig Forward Proxy to SDK instead of polling config changes. Details can be found here https://docs.statsig.com/server/concepts/forward_proxy
Improvements
-
Prevent bad config value for event queue size
Included In This Release
1a2f90aandyphan-statsig
- Customize sources to get for initialization and config sync behavior (#336)
f218853Xin Li
- safe get event q size (#344)
a307292Xin Li
- remove println (#342)
dd19ed1Xin Li
- Retry 3 times failed test (#341)
b2ac1a5Weihao Ding
- fix: remove private attributes from gcir (#340)
b85eb64andyphan-statsig
- gRPC forward proxy integration (#271)
6bef5e9Xin Li
- Update kong.yml (#339)
dd71f72andyphan-statsig
- chore: move GsonBuilder to Utils (#331)
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.23.1...1.24.0
v1.23.2: - remove privateAttributes from getClientInitializeResponse user
Fixes
Removes the privateAttributes field from the user that is appended to the getClientInitializeResponse
v1.22.0: - API Override options for download_config_specs and get_id_lists
New Features
- Provide API overrides option for download_config_specs and get_id_lists
- In addition to api option, provide option to override specific endpoint, for download_config_specs request will be
apiForDownloadConfigSpecsand for get_idlistsapiForGetIDLists. - If both api and endpoint api is presented, e.g.
StatsigOptions(api = "endpoint1/v1", apiForDownloadConfigSpecs = "endpoint2/v1")SDK will use endpoint1/v1 for log_events and get_idlists, endpoint2/v1 for download_config_specs
- In addition to api option, provide option to override specific endpoint, for download_config_specs request will be
Fixes
- Clear log event deduper
- exposure dedupe inverted unique check
Included In This Release
217838cXin Li
- feat: Api overrides for download config sepcs and idlists (#293)
53714c4tore-statsig
- fix: exposure dedupe inverted unique check (#311)
909b26ctore-statsig
- fix: deduper clear (#310)
778f250tore-statsig
- feat: automatically release from publish action (#309)
c359639Weihao Ding
- Revert "Fix publishing - use user token" (#308)
4d43995tore-statsig
- Fix publishing - use user token (#307)
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.21.0...1.22.0
v1.21.0: - Option to disable ip3 country and fix potential memory leaks
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
f016f9aWeihao Ding
- revert: delete inline ip3 country look up files (#305)
a7fa62etore-statsig
- revert: use ip3country library instead of inlined version (#304)
e22c18fWeihao Ding
- fix: cancel eb coroutine job when we shutdown (#303)
d042c77Weihao Ding
- optimize: lazy init eb http client (#302)
02d3e71Weihao Ding
- clear set not re-assign the set (#299)
78d28c2tore-statsig
- fix: optimistically set initialized (#298)
bf3f1fetore-statsig
- feat: add option to disable ip->country resolution (#301)
dea4315tore-statsig
- feat: cleanup ip/country tables (#297)
64c667ftore-statsig
- feat: inline ip3country to test fix (#296)
430cc16Weihao Ding
- fix: close external http client when we shutdown (#294)
ddc4d3eandyphan-statsig
- use runTest instead of runBlocking for testLogEventRetry (#292)
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.20.0...1.21.0
v1.20.0: - Fallback to Statsig Endpoint if no proxy failed
New feature:
- New option to fallback to statsig api if overrided api failed, for config spec and idlist sync only.
Fix:
- Potential memory leak fix, explicitly cancel non active background jobs
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.19.0...1.20.0
v1.19.0: - Expose Evaluation Details, Fix DataStore Resetting
New:
- We now supported exposing
evaluationDetailson some core apis.getFeatureGategetLayerSyncgetExperimentSync
Fix
- Fixed the issue that we were resetting dataStore every time we poll updates from the dataStore
- Some memory usage fixes
Included In This Release
Full Changelog: https://github.com/statsig-io/java-server-sdk/compare/1.18.1...1.19.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.