Skip to content

Commit 938c40a

Browse files
feat: Remove Java-based Local OpenFeature Provider (#314)
* feat: Remove native local provider * feat: Clean and organize expressions * feat: Further cleanups of native resolver * refactor: Small refactor * reefactor: Remove AccountState * refactor: More cleanups * refactor: Even more cleanups * test: WIP Fixing tests
1 parent a98aae9 commit 938c40a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+171
-3498
lines changed

openfeature-provider-local/README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A high-performance OpenFeature provider for [Confidence](https://confidence.spot
66

77
## Features
88

9-
- **Local Resolution**: Evaluates feature flags locally using WebAssembly (WASM) or pure Java
9+
- **Local Resolution**: Evaluates feature flags locally using WebAssembly (WASM)
1010
- **Low Latency**: No network calls during flag evaluation
1111
- **Automatic Sync**: Periodically syncs flag configurations from Confidence
1212
- **Exposure Logging**: Fully supported exposure logging (and other resolve analytics)
@@ -49,22 +49,6 @@ String value = client.getStringValue("my-flag", "default-value");
4949

5050
## Configuration
5151

52-
### Resolution Modes
53-
54-
The provider supports two resolution modes:
55-
56-
- **WASM mode** (default): Uses WebAssembly resolver
57-
- **Java mode**: Pure Java implementation of the resolver
58-
59-
Control the mode with the `LOCAL_RESOLVE_MODE` environment variable:
60-
61-
```bash
62-
# Force WASM mode
63-
export LOCAL_RESOLVE_MODE=WASM
64-
65-
# Force Java mode
66-
export LOCAL_RESOLVE_MODE=JAVA
67-
```
6852

6953
### Exposure Logging
7054

openfeature-provider-local/pom.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
<groupId>io.grpc</groupId>
5757
<artifactId>grpc-api</artifactId>
5858
</dependency>
59-
<dependency>
60-
<groupId>com.fasterxml.jackson.core</groupId>
61-
<artifactId>jackson-databind</artifactId>
62-
</dependency>
6359
<dependency>
6460
<groupId>com.google.protobuf</groupId>
6561
<artifactId>protobuf-java</artifactId>
@@ -147,6 +143,7 @@
147143
<groupId>org.apache.commons</groupId>
148144
<artifactId>commons-lang3</artifactId>
149145
<version>3.17.0</version>
146+
<scope>test</scope>
150147
</dependency>
151148
<dependency>
152149
<groupId>io.dropwizard.metrics</groupId>

openfeature-provider-local/src/main/java/com/spotify/confidence/Account.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)