Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ var client = new ReflagClient(new ReflagClientOptions

If you are serializing flags into another runtime or handing them off to a client application, use `GetFlagsForBootstrap(...)`.
It returns JSON-serializable flag data together with the context used for evaluation, which bootstrap flows need.
Use a compatible v2 browser/framework SDK to consume the payload. Generating bootstrap data does not register flag checks.
Pass it to a v2 Browser, React, Vue or React Native SDK. Generating bootstrap data does not register flag checks.

```csharp
var bootstrapped = client.GetFlagsForBootstrap(new ReflagContext
Expand Down Expand Up @@ -222,6 +222,8 @@ var bound = client.BindClient(new ReflagContext
var bootstrapped = bound.GetFlagsForBootstrap();
```

The result includes the full context you pass in, so every user, company and other attribute in it is visible to the client. Bootstrap with a context that contains only what the client may see.

## Configuring

The .NET SDK is configured through:
Expand Down Expand Up @@ -538,7 +540,7 @@ Remote config is not supported by this SDK. Use [multivariate flags](#multivaria

- **Definitions:** `GetFlagDefinitions()` now returns a collection with `.Flags` and `.Segments`. Definitions use variants and rules instead of `Targeting`; `FlagTargetingDefinition` and `FlagTargetingRuleDefinition` are removed.
- **Raw results:** `RawReflagFlag.Key` becomes `FlagKey`, and `Value` changes from `bool` to `JsonElement?`. `TargetingVersion` is replaced by `SourceVersionId`; rule results and diagnostics are available in `RuleResults` and `Errors`.
- **Bootstrap:** Upgrade browser/framework bootstrap consumers to a compatible v2 SDK alongside the server.
- **Bootstrap:** Upgrade the client SDK that reads the bootstrap data to v2 at the same time as the server.
- **Fallback snapshots:** Snapshots from 0.2.x are ignored. Allow a successful live fetch to populate the new cache before relying on outage startup. Custom providers must preserve complete schema-2 snapshots, including segments.

## License
Expand Down
Loading