@datadog/mobile-react-native-openfeature 3.5.2 → 3.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +77 -0
  2. package/lib/commonjs/coreProvider.js +79 -0
  3. package/lib/commonjs/coreProvider.js.map +1 -0
  4. package/lib/commonjs/index.js +14 -0
  5. package/lib/commonjs/index.js.map +1 -1
  6. package/lib/commonjs/mappers.js +50 -0
  7. package/lib/commonjs/mappers.js.map +1 -0
  8. package/lib/commonjs/offlineProvider.js +149 -0
  9. package/lib/commonjs/offlineProvider.js.map +1 -0
  10. package/lib/commonjs/provider.js +9 -73
  11. package/lib/commonjs/provider.js.map +1 -1
  12. package/lib/module/coreProvider.js +72 -0
  13. package/lib/module/coreProvider.js.map +1 -0
  14. package/lib/module/index.js +3 -1
  15. package/lib/module/index.js.map +1 -1
  16. package/lib/module/mappers.js +42 -0
  17. package/lib/module/mappers.js.map +1 -0
  18. package/lib/module/offlineProvider.js +143 -0
  19. package/lib/module/offlineProvider.js.map +1 -0
  20. package/lib/module/provider.js +7 -71
  21. package/lib/module/provider.js.map +1 -1
  22. package/lib/typescript/core/src/flags/FlagsClient.d.ts +96 -0
  23. package/lib/typescript/core/src/flags/FlagsClient.d.ts.map +1 -1
  24. package/lib/typescript/core/src/flags/configuration/context.d.ts +20 -0
  25. package/lib/typescript/core/src/flags/configuration/context.d.ts.map +1 -0
  26. package/lib/typescript/core/src/flags/configuration/index.d.ts +5 -0
  27. package/lib/typescript/core/src/flags/configuration/index.d.ts.map +1 -0
  28. package/lib/typescript/core/src/flags/configuration/precomputed.d.ts +25 -0
  29. package/lib/typescript/core/src/flags/configuration/precomputed.d.ts.map +1 -0
  30. package/lib/typescript/core/src/flags/configuration/types.d.ts +24 -0
  31. package/lib/typescript/core/src/flags/configuration/types.d.ts.map +1 -0
  32. package/lib/typescript/core/src/flags/configuration/wire.d.ts +2 -0
  33. package/lib/typescript/core/src/flags/configuration/wire.d.ts.map +1 -0
  34. package/lib/typescript/core/src/flags/internal.d.ts.map +1 -1
  35. package/lib/typescript/core/src/flags/types.d.ts +1 -1
  36. package/lib/typescript/core/src/flags/types.d.ts.map +1 -1
  37. package/lib/typescript/core/src/index.d.ts +4 -2
  38. package/lib/typescript/core/src/index.d.ts.map +1 -1
  39. package/lib/typescript/core/src/version.d.ts +1 -1
  40. package/lib/typescript/react-native-openfeature/src/coreProvider.d.ts +34 -0
  41. package/lib/typescript/react-native-openfeature/src/coreProvider.d.ts.map +1 -0
  42. package/lib/typescript/react-native-openfeature/src/index.d.ts +3 -1
  43. package/lib/typescript/react-native-openfeature/src/index.d.ts.map +1 -1
  44. package/lib/typescript/react-native-openfeature/src/mappers.d.ts +20 -0
  45. package/lib/typescript/react-native-openfeature/src/mappers.d.ts.map +1 -0
  46. package/lib/typescript/react-native-openfeature/src/offlineProvider.d.ts +59 -0
  47. package/lib/typescript/react-native-openfeature/src/offlineProvider.d.ts.map +1 -0
  48. package/lib/typescript/react-native-openfeature/src/provider.d.ts +8 -21
  49. package/lib/typescript/react-native-openfeature/src/provider.d.ts.map +1 -1
  50. package/package.json +5 -5
  51. package/src/__tests__/offlineProvider.integration.test.ts +271 -0
  52. package/src/__tests__/offlineProvider.test.ts +252 -0
  53. package/src/__tests__/provider.test.ts +74 -0
  54. package/src/coreProvider.ts +142 -0
  55. package/src/index.ts +8 -1
  56. package/src/mappers.ts +47 -0
  57. package/src/offlineProvider.ts +185 -0
  58. package/src/provider.ts +10 -139
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
3
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
4
+ * Copyright 2016-Present Datadog, Inc.
5
+ */
6
+
7
+ /**
8
+ * Convert an OpenFeature evaluation context into the Datadog Flags shape.
9
+ */
10
+ export const toDdContext = context => {
11
+ const {
12
+ targetingKey,
13
+ ...attributes
14
+ } = context;
15
+
16
+ // Important ⚠️
17
+ // The Flags SDK doesn't support nested non-primitive values in the evaluation context as per OF.3 FFE SDK requirement.
18
+ // However, we let the SDK handle this inside of FlagsClient since it does this processing anyways.
19
+ const ddContextAttributes = attributes;
20
+ return {
21
+ // Allow flag evaluations without a provided targeting key.
22
+ targetingKey: targetingKey ?? '',
23
+ attributes: ddContextAttributes
24
+ };
25
+ };
26
+
27
+ /**
28
+ * Whether an OpenFeature evaluation context carries no information — no targeting key and no
29
+ * attributes with a defined value (so `{}` and `{ targetingKey: undefined }` are both empty).
30
+ * Used by the offline provider to avoid overwriting a configuration's embedded context with an
31
+ * empty context stamped by the OpenFeature lifecycle.
32
+ *
33
+ * Note: an explicit `targetingKey: ''` is **not** empty. An empty string is a real (anonymous)
34
+ * targeting key — a distinct subject — not the absence of a context. Only a genuinely absent
35
+ * context (`{}` / `clearContext()`) re-adopts the configuration's embedded context; `{ targetingKey:
36
+ * '' }` is reconciled as a real context, so it must match the precomputed snapshot or the provider
37
+ * enters `ERROR` (serving coded defaults) rather than silently serving another subject's flags.
38
+ */
39
+ export const isEmptyContext = context => {
40
+ return Object.values(context).every(value => value === undefined);
41
+ };
42
+ //# sourceMappingURL=mappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["toDdContext","context","targetingKey","attributes","ddContextAttributes","isEmptyContext","Object","values","every","value","undefined"],"sourceRoot":"../../src","sources":["mappers.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA,OAAO,MAAMA,WAAW,GACpBC,OAA4B,IACN;EACtB,MAAM;IAAEC,YAAY;IAAE,GAAGC;EAAW,CAAC,GAAGF,OAAO;;EAE/C;EACA;EACA;EACA,MAAMG,mBAAmB,GAAGD,UAA4C;EAExE,OAAO;IACH;IACAD,YAAY,EAAEA,YAAY,IAAI,EAAE;IAChCC,UAAU,EAAEC;EAChB,CAAC;AACL,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAIJ,OAA4B,IAAc;EACrE,OAAOK,MAAM,CAACC,MAAM,CAACN,OAAO,CAAC,CAACO,KAAK,CAACC,KAAK,IAAIA,KAAK,KAAKC,SAAS,CAAC;AACrE,CAAC","ignoreList":[]}
@@ -0,0 +1,143 @@
1
+ /*
2
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
3
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
4
+ * Copyright 2016-Present Datadog, Inc.
5
+ */
6
+
7
+ import { ErrorCode, GeneralError, InvalidContextError, ProviderEvents, ProviderNotReadyError } from '@openfeature/web-sdk';
8
+ import { DatadogCoreOpenFeatureProvider } from './coreProvider';
9
+ import { isEmptyContext, toDdContext } from './mappers';
10
+
11
+ // The outcome of a `FlagsClient` reconcile. Derived from the client so the provider maps it to
12
+ // OpenFeature transitions; not part of the package's public API.
13
+
14
+ // A `PROVIDER_ERROR` event payload carrying the spec's top-level error code (§5.1.5). The web-sdk
15
+ // `ErrorEvent` type omits `errorCode`, but the emitter accepts the extra field and
16
+ // `ProviderWrapper` reads it.
17
+
18
+ const OF_ERROR_CODE = {
19
+ INVALID_CONTEXT: ErrorCode.INVALID_CONTEXT,
20
+ PROVIDER_NOT_READY: ErrorCode.PROVIDER_NOT_READY,
21
+ GENERAL: ErrorCode.GENERAL
22
+ };
23
+
24
+ /**
25
+ * An offline Datadog OpenFeature provider.
26
+ *
27
+ * It behaves like the online `DatadogOpenFeatureProvider` — same flag evaluation and
28
+ * exposure/RUM tracking — **except it never fetches configuration from the network**.
29
+ * Instead of fetching on `initialize`/`onContextChange`, it evaluates against a configuration
30
+ * supplied via {@link DatadogOfflineOpenFeatureProvider.setConfiguration}. A precomputed
31
+ * configuration carries the evaluation context it was computed for, so you should **not** call
32
+ * `OpenFeature.setContext` for the offline precomputed flow — see the class remarks.
33
+ *
34
+ * A runtime context that does not match the configuration's embedded context (compared after
35
+ * normalization) cannot be served (offline never fetches), so it puts the provider into the
36
+ * OpenFeature `ERROR` state and evaluations fall back to your coded defaults (`INVALID_CONTEXT`).
37
+ * An empty *effective* context re-adopts the embedded context and recovers — but note that
38
+ * `clearContext(domain)` falls back to the global context, which may itself be non-empty and
39
+ * mismatching (and would keep the provider in `ERROR`). Load the configuration before setting the
40
+ * provider so it is ready with real flag values from the start:
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * import { OpenFeature } from '@openfeature/web-sdk';
45
+ * import {
46
+ * DatadogOfflineOpenFeatureProvider,
47
+ * configurationFromString
48
+ * } from '@datadog/mobile-react-native-openfeature';
49
+ *
50
+ * const provider = new DatadogOfflineOpenFeatureProvider();
51
+ * provider.setConfiguration(configurationFromString(wire)); // no network
52
+ * await OpenFeature.setProviderAndWait(provider);
53
+ *
54
+ * const client = OpenFeature.getClient();
55
+ * const enabled = client.getBooleanValue('new-feature', false);
56
+ * ```
57
+ */
58
+ export class DatadogOfflineOpenFeatureProvider extends DatadogCoreOpenFeatureProvider {
59
+ metadata = {
60
+ name: 'datadog-react-native-offline'
61
+ };
62
+
63
+ // Whether the provider is currently in an error state, so a successful `setConfiguration` must
64
+ // emit `PROVIDER_READY` to recover (a bare `CONFIGURATION_CHANGED` would not clear `ERROR`).
65
+ // It may be set before the provider is registered, so it does not necessarily mirror
66
+ // OpenFeature's status yet.
67
+ configurationInError = false;
68
+ async initialize(context = {}) {
69
+ const result = this.applyContext(context);
70
+
71
+ // OpenFeature derives the initial status from whether `initialize` settles: resolve =>
72
+ // READY, reject => ERROR. Reject when the provider cannot serve — an absent, invalid, or
73
+ // context-mismatched configuration — so it does not start in a misleading READY that only
74
+ // returns default values. Loading a valid configuration later recovers it.
75
+ if (result.status === 'error') {
76
+ throw this.toError(result.errorCode);
77
+ }
78
+ }
79
+ onContextChange(_oldContext, newContext) {
80
+ // Synchronous on purpose. Reconciliation is synchronous, and a synchronous throw makes the
81
+ // Web SDK transition straight to ERROR (skipping the transient RECONCILING state) with no
82
+ // async window in which an interleaved `setConfiguration` could clobber the final status.
83
+ // Returning normally lets the Web SDK set READY — the automatic recovery path.
84
+ const result = this.applyContext(newContext);
85
+ if (result.status === 'error') {
86
+ throw this.toError(result.errorCode);
87
+ }
88
+ }
89
+
90
+ /**
91
+ * Load a configuration into the provider for offline evaluation.
92
+ *
93
+ * @param configuration A configuration parsed from a `ConfigurationWire` string via
94
+ * `configurationFromString`.
95
+ */
96
+ setConfiguration(configuration) {
97
+ const result = this.flagsClient.setConfiguration(configuration);
98
+ if (result.status === 'ready') {
99
+ if (this.configurationInError) {
100
+ // Recover from a prior error: PROVIDER_READY clears the ERROR status (a bare
101
+ // CONFIGURATION_CHANGED would not).
102
+ this.configurationInError = false;
103
+ this.events.emit(ProviderEvents.Ready);
104
+ }
105
+ // The (re)loaded configuration changed the served flags.
106
+ this.events.emit(ProviderEvents.ConfigurationChanged);
107
+ } else {
108
+ this.configurationInError = true;
109
+ const details = {
110
+ message: 'The Datadog offline provider cannot serve the loaded configuration for the current context.',
111
+ errorCode: OF_ERROR_CODE[result.errorCode]
112
+ };
113
+ this.events.emit(ProviderEvents.Error, details);
114
+ }
115
+ }
116
+ applyContext(context) {
117
+ // An empty context means "no external override": clear it so a loaded precomputed
118
+ // configuration is served against its embedded context. Order-independent — the synthetic
119
+ // `initialize({})`, `setContext({})`, and `clearContext()` all re-adopt the embedded
120
+ // context rather than being treated as a mismatch.
121
+ const result = isEmptyContext(context) ? this.flagsClient.resetEvaluationContextWithoutFetching() : this.flagsClient.setEvaluationContextWithoutFetching(toDdContext(context));
122
+ this.configurationInError = result.status === 'error';
123
+ return result;
124
+ }
125
+
126
+ /**
127
+ * Map a reconcile error code to the precise OpenFeature error type, so direct callers of
128
+ * `initialize`/`onContextChange` (and `setProviderAndWait`) receive the correct typed error.
129
+ * (Web SDK 1.8.0 drops the code from the lifecycle-generated error *event*, but the thrown
130
+ * error type is still accurate for callers.)
131
+ */
132
+ toError(errorCode) {
133
+ switch (errorCode) {
134
+ case 'INVALID_CONTEXT':
135
+ return new InvalidContextError('The evaluation context does not match the offline precomputed configuration. Serving default values.');
136
+ case 'PROVIDER_NOT_READY':
137
+ return new ProviderNotReadyError('The Datadog offline provider has no configuration loaded. Provide one via setConfiguration.');
138
+ default:
139
+ return new GeneralError('The Datadog offline provider cannot serve the loaded configuration.');
140
+ }
141
+ }
142
+ }
143
+ //# sourceMappingURL=offlineProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ErrorCode","GeneralError","InvalidContextError","ProviderEvents","ProviderNotReadyError","DatadogCoreOpenFeatureProvider","isEmptyContext","toDdContext","OF_ERROR_CODE","INVALID_CONTEXT","PROVIDER_NOT_READY","GENERAL","DatadogOfflineOpenFeatureProvider","metadata","name","configurationInError","initialize","context","result","applyContext","status","toError","errorCode","onContextChange","_oldContext","newContext","setConfiguration","configuration","flagsClient","events","emit","Ready","ConfigurationChanged","details","message","Error","resetEvaluationContextWithoutFetching","setEvaluationContextWithoutFetching"],"sourceRoot":"../../src","sources":["offlineProvider.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAMA,SACIA,SAAS,EACTC,YAAY,EACZC,mBAAmB,EACnBC,cAAc,EACdC,qBAAqB,QAClB,sBAAsB;AAO7B,SAASC,8BAA8B,QAAQ,gBAAgB;AAC/D,SAASC,cAAc,EAAEC,WAAW,QAAQ,WAAW;;AAEvD;AACA;;AAOA;AACA;AACA;;AAGA,MAAMC,aAAwD,GAAG;EAC7DC,eAAe,EAAET,SAAS,CAACS,eAAe;EAC1CC,kBAAkB,EAAEV,SAAS,CAACU,kBAAkB;EAChDC,OAAO,EAAEX,SAAS,CAACW;AACvB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iCAAiC,SAASP,8BAA8B,CAAC;EACzEQ,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IAAI,CAACO,MAAM,CAACC,IAAI,CAAC3B,cAAc,CAACgC,KAAK,EAAEF,OAAO,CAAC;IACnD;EACJ;EAEQd,YAAYA,CAACF,OAA4B,EAAuB;IACpE;IACA;IACA;IACA;IACA,MAAMC,MAAM,GAAGZ,cAAc,CAACW,OAAO,CAAC,GAChC,IAAI,CAACW,WAAW,CAACQ,qCAAqC,CAAC,CAAC,GACxD,IAAI,CAACR,WAAW,CAACS,mCAAmC,CAChD9B,WAAW,CAACU,OAAO,CACvB,CAAC;IAEP,IAAI,CAACF,oBAAoB,GAAGG,MAAM,CAACE,MAAM,KAAK,OAAO;IAErD,OAAOF,MAAM;EACjB;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACYG,OAAOA,CAACC,SAAiC,EAAoB;IACjE,QAAQA,SAAS;MACb,KAAK,iBAAiB;QAClB,OAAO,IAAIpB,mBAAmB,CAC1B,sGACJ,CAAC;MACL,KAAK,oBAAoB;QACrB,OAAO,IAAIE,qBAAqB,CAC5B,6FACJ,CAAC;MACL;QACI,OAAO,IAAIH,YAAY,CACnB,qEACJ,CAAC;IACT;EACJ;AACJ","ignoreList":[]}
@@ -4,22 +4,17 @@
4
4
  * Copyright 2016-Present Datadog, Inc.
5
5
  */
6
6
 
7
- import { DdFlags } from '@datadog/mobile-react-native';
8
- import { OpenFeatureEventEmitter, ErrorCode } from '@openfeature/web-sdk';
9
- export class DatadogOpenFeatureProvider {
10
- runsOn = 'client';
7
+ import { DatadogCoreOpenFeatureProvider } from './coreProvider';
8
+ import { toDdContext } from './mappers';
9
+ /**
10
+ * The online Datadog OpenFeature provider. Fetches precomputed flag assignments from Datadog
11
+ * whenever the evaluation context is set or changed.
12
+ */
13
+ export class DatadogOpenFeatureProvider extends DatadogCoreOpenFeatureProvider {
11
14
  metadata = {
12
15
  name: 'datadog-react-native'
13
16
  };
14
- events = new OpenFeatureEventEmitter();
15
17
  contextChangePromise = Promise.resolve();
16
- constructor(options = {}) {
17
- if (!options.clientName) {
18
- options.clientName = 'default';
19
- }
20
- this.options = options;
21
- this.flagsClient = DdFlags.getClient(this.options.clientName);
22
- }
23
18
  async initialize(context = {}) {
24
19
  const ddContext = toDdContext(context);
25
20
  this.contextChangePromise = this.flagsClient.setEvaluationContext(ddContext);
@@ -36,64 +31,5 @@ export class DatadogOpenFeatureProvider {
36
31
  // Wait for the current context change to complete.
37
32
  await this.contextChangePromise;
38
33
  }
39
- resolveBooleanEvaluation(flagKey, defaultValue, _context, _logger) {
40
- const details = this.flagsClient.getBooleanDetails(flagKey, defaultValue);
41
- return toFlagResolution(details);
42
- }
43
- resolveStringEvaluation(flagKey, defaultValue, _context, _logger) {
44
- const details = this.flagsClient.getStringDetails(flagKey, defaultValue);
45
- return toFlagResolution(details);
46
- }
47
- resolveNumberEvaluation(flagKey, defaultValue, _context, _logger) {
48
- const details = this.flagsClient.getNumberDetails(flagKey, defaultValue);
49
- return toFlagResolution(details);
50
- }
51
- resolveObjectEvaluation(flagKey, defaultValue, _context, _logger) {
52
- // The OpenFeature spec states that the return value can be any valid JSON value.
53
- // However, the Datadog Flags feature only supports JSON objects for the JSON feature flag type.
54
- // Thus, the user should always expect the returned value to be an object instead of any arbitrary JSON value.
55
- // Also, the user is responsible for providing a proper `defaultValue` that's an object.
56
-
57
- const details = this.flagsClient.getObjectDetails(flagKey, defaultValue);
58
- return toFlagResolution(details);
59
- }
60
34
  }
61
- const toDdContext = context => {
62
- const {
63
- targetingKey,
64
- ...attributes
65
- } = context;
66
-
67
- // Important ⚠️
68
- // The Flags SDK doesn't support nested non-primitive values in the evaluation context as per OF.3 FFE SDK requirement.
69
- // However, we let the SDK handle this inside of FlagsClient since it does this processing anyways.
70
- const ddContextAttributes = attributes;
71
- return {
72
- // Allow flag evaluations without a provided targeting key.
73
- targetingKey: targetingKey ?? '',
74
- attributes: ddContextAttributes
75
- };
76
- };
77
- const toFlagResolution = details => {
78
- const {
79
- value,
80
- reason,
81
- variant,
82
- allocationKey,
83
- errorCode,
84
- errorMessage
85
- } = details;
86
- const parsedErrorCode = errorCode && (ErrorCode[errorCode] || ErrorCode.GENERAL);
87
- const result = {
88
- value,
89
- reason,
90
- variant,
91
- flagMetadata: allocationKey ? {
92
- allocationKey
93
- } : undefined,
94
- errorCode: parsedErrorCode,
95
- errorMessage
96
- };
97
- return result;
98
- };
99
35
  //# sourceMappingURL=provider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DdFlags","OpenFeatureEventEmitter","ErrorCode","DatadogOpenFeatureProvider","runsOn","metadata","name","events","contextChangePromise","Promise","resolve","constructor","options","clientName","flagsClient","getClient","initialize","context","ddContext","toDdContext","setEvaluationContext","onContextChange","_oldContext","newContext","newDdContext","then","resolveBooleanEvaluation","flagKey","defaultValue","_context","_logger","details","getBooleanDetails","toFlagResolution","resolveStringEvaluation","getStringDetails","resolveNumberEvaluation","getNumberDetails","resolveObjectEvaluation","getObjectDetails","targetingKey","attributes","ddContextAttributes","value","reason","variant","allocationKey","errorCode","errorMessage","parsedErrorCode","GENERAL","result","flagMetadata","undefined"],"sourceRoot":"../../src","sources":["provider.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,8BAA8B;AAMtD,SAASC,uBAAuB,EAAEC,SAAS,QAAQ,sBAAsB;AAyBzE,OAAO,MAAMC,0BAA0B,CAAqB;EAC/CC,MAAM,GAAa,QAAQ;EAC3BC,QAAQ,GAAqB;IAClCC,IAAI,EAAE;EACV,CAAC;EAKQC,MAAM,GAAyC,IAAIN,uBAAuB,CAAC,CAAC;EAC7EO,oBAAoB,GAAGC,OAAO,CAACC,OAAO,CAAC,CAAC;EAEhDC,WAAWA,CAACC,OAA0C,GAAG,CAAC,CAAC,EAAE;IACzD,IAAI,CAACA,OAAO,CAACC,UAAU,EAAE;MACrBD,OAAO,CAACC,UAAU,GAAG,SAAS;IAClC;IAEA,IAAI,CAACD,OAAO,GAAGA,OAAO;IAEtB,IAAI,CAACE,WAAW,GAAGd,OAAO,CAACe,SA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AAO,CAAC;EACpC;EAEAO,uBAAuBA,CACnBX,OAAe,EACfC,YAAe,EACfC,QAA6B,EAC7BC,OAAe,EACK;IACpB;IACA;IACA;IACA;;IAEA,MAAMC,OAAO,GAAG,IAAI,CAACjB,WAAW,CAACyB,gBAAgB,CAC7CZ,OAAO,EACPC,YACJ,CAAC;IACD,OAAOK,gBAAgB,CAACF,OAAO,CAAC;EACpC;AACJ;AAEA,MAAMZ,WAAW,GAAIF,OAA4B,IAA0B;EACvE,MAAM;IAAEuB,YAAY;IAAE,GAAGC;EAAW,CAAC,GAAGxB,OAAO;;EAE/C;EACA;EACA;EACA,MAAMyB,mBAAmB,GAAGD,UAA4C;EAExE,OAAO;IACH;IACAD,YAAY,EAAEA,YAAY,IAAI,EAAE;IAChCC,UAAU,EAAEC;EAChB,CAAC;AACL,CAAC;AAED,MAAMT,gBAAgB,GAAOF,OAAuB,IAA2B;EAC3E,MAAM;IACFY,KAAK;IACLC,MAAM;IACNC,OAAO;IACPC,aAAa;IACbC,SAAS;IACTC;EACJ,CAAC,GAAGjB,OAAO;EAEX,MAAMkB,eAAe,GACjBF,SAAS,KAAK7C,SAAS,CAAC6C,SAAS,CAAc,IAAI7C,SAAS,CAACgD,OAAO,CAAC;EAEzE,MAAMC,MAA4B,GAAG;IACjCR,KAAK;IACLC,MAAM;IACNC,OAAO;IACPO,YAAY,EAAEN,aAAa,GAAG;MAAEA;IAAc,CAAC,GAAGO,SAAS;IAC3DN,SAAS,EAAEE,eAAe;IAC1BD;EACJ,CAAC;EAED,OAAOG,MAAM;AACjB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["DatadogCoreOpenFeatureProvider","toDdContext","DatadogOpenFeatureProvider","metadata","name","contextChangePromise","Promise","resolve","initialize","context","ddContext","flagsClient","setEvaluationContext","onContextChange","_oldContext","newContext","newDdContext","then"],"sourceRoot":"../../src","sources":["provider.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAOA,SAASA,8BAA8B,QAAQ,gBAAgB;AAC/D,SAASC,WAAW,QAAQ,WAAW;AAIvC;AACA;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,SAASF,8BAA8B,CAAC;EAClEG,QAAQ,GAAqB;IAClCC,IAAI,EAAE;EACV,CAAC;EAEOC,oBAAoB,GAAGC,OAAO,CAACC,OAAO,CAAC,CAAC;EAEhD,MAAMC,UAAUA,CAACC,OAA4B,GAAG,CAAC,CAAC,EAAiB;IAC/D,MAAMC,SAAS,GAAGT,WAAW,CAACQ,OAAO,CAAC;IACtC,IAAI,CAACJ,oBAAoB,GAAG,IAAI,CAACM,WAAW,CAACC,oBAAoB,CAC7DF,SACJ,CAAC;IAED,MAAM,IAAI,CAACL,oBAAoB;EACnC;EAEA,MAAMQ,eAAeA,CACjBC,WAAgC,EAChCC,UAA+B,EAClB;IACb,MAAMC,YAAY,GAAGf,WAAW,CAACc,UAAU,CAAC;;IAE5C;IACA,IAAI,CAACV,oBAAoB,GAAG,IAAI,CAACA,oBAAoB,CAACY,IAAI,CAAC,MAAM;MAC7D,OAAO,IAAI,CAACN,WAAW,CAACC,oBAAoB,CAACI,YAAY,CAAC;IAC9D,CAAC,CAAC;;IAEF;IACA,MAAM,IAAI,CAACX,oBAAoB;EACnC;AACJ","ignoreList":[]}
@@ -1,9 +1,39 @@
1
+ import type { ParsedFlagsConfiguration } from './configuration';
1
2
  import type { JsonValue, EvaluationContext, FlagDetails } from './types';
3
+ /**
4
+ * Error codes an offline configuration result can carry:
5
+ * - `INVALID_CONTEXT`: the active context does not match the precomputed snapshot.
6
+ * - `PROVIDER_NOT_READY`: an offline operation ran with no configuration loaded.
7
+ * - `GENERAL`: the loaded configuration is unusable (malformed/unsupported/undecodable).
8
+ */
9
+ export type ConfigurationErrorCode = 'INVALID_CONTEXT' | 'PROVIDER_NOT_READY' | 'GENERAL';
10
+ /**
11
+ * Outcome of loading a configuration or reconciling it against the active evaluation context,
12
+ * returned by the offline APIs ({@link FlagsClient.setConfiguration},
13
+ * {@link FlagsClient.setEvaluationContextWithoutFetching},
14
+ * {@link FlagsClient.resetEvaluationContextWithoutFetching}).
15
+ *
16
+ * `'ready'` means the configuration can be served against the active context; `'error'` carries
17
+ * the precise reason so the OpenFeature provider surfaces the correct code and evaluation returns
18
+ * that code with the coded default.
19
+ *
20
+ * @internal Consumers observe OpenFeature provider events/evaluation details, not this result.
21
+ */
22
+ export type ConfigurationResult = {
23
+ status: 'ready';
24
+ } | {
25
+ status: 'error';
26
+ errorCode: ConfigurationErrorCode;
27
+ };
2
28
  export declare class FlagsClient {
3
29
  private nativeFlags;
4
30
  private clientName;
31
+ private externalContext;
5
32
  private evaluationContext;
6
33
  private flagsCache;
34
+ private loadedConfiguration;
35
+ private configurationStatus;
36
+ private configurationError;
7
37
  constructor(clientName?: string);
8
38
  /**
9
39
  * Sets the evaluation context for the client.
@@ -29,6 +59,72 @@ export declare class FlagsClient {
29
59
  * ```
30
60
  */
31
61
  setEvaluationContext: (context: EvaluationContext) => Promise<void>;
62
+ /**
63
+ * Set the evaluation context **without** fetching a configuration from the network, then
64
+ * reconcile the loaded configuration against it.
65
+ *
66
+ * The offline counterpart to {@link setEvaluationContext}: records the active context and
67
+ * reconciles with no native request. A precomputed configuration is single-subject, so a
68
+ * context that does not match the one it was computed for reconciles to an error
69
+ * (`INVALID_CONTEXT`) and evaluation serves defaults. With no configuration loaded the
70
+ * result is `PROVIDER_NOT_READY`. Intended for offline providers that own their
71
+ * configuration via `setConfiguration` and must not fetch on a context change.
72
+ *
73
+ * @param context The evaluation context to associate with the current client.
74
+ */
75
+ setEvaluationContextWithoutFetching: (context: EvaluationContext) => ConfigurationResult;
76
+ /**
77
+ * Clear any externally-set evaluation context and reconcile.
78
+ *
79
+ * This is the offline counterpart to clearing/omitting an OpenFeature context: it drops the
80
+ * external override so a loaded precomputed configuration is served against **its embedded
81
+ * context** again. Clearing the override (rather than skipping) matters so that a
82
+ * configuration loaded *after* a clear is not judged against a stale override. With no
83
+ * configuration loaded the result is `PROVIDER_NOT_READY`.
84
+ */
85
+ resetEvaluationContextWithoutFetching: () => ConfigurationResult;
86
+ /**
87
+ * Load a configuration (parsed from a `ConfigurationWire` string via
88
+ * `configurationFromString`) into the client for offline evaluation, then reconcile it
89
+ * against the active context.
90
+ *
91
+ * For a precomputed configuration this decodes the snapshot once and adopts its embedded
92
+ * evaluation context when none is set — **no network request is made**. An unusable
93
+ * configuration reconciles to an error (`GENERAL`); a context mismatch to `INVALID_CONTEXT`.
94
+ *
95
+ * @param configuration The configuration to load.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * const configuration = configurationFromString(wire);
100
+ * flagsClient.setConfiguration(configuration);
101
+ *
102
+ * const value = flagsClient.getBooleanValue('new-feature', false);
103
+ * ```
104
+ */
105
+ setConfiguration: (configuration: ParsedFlagsConfiguration) => ConfigurationResult;
106
+ /**
107
+ * Decode a supplied configuration into a {@link LoadedConfigurationState} **once**, capturing
108
+ * whether the load itself is valid (independent of the active context). Later context changes
109
+ * reconcile against this stored state without re-decoding, and can never turn an invalid load
110
+ * into a servable one.
111
+ *
112
+ * FORWARD-COMPAT SEAM: when a rules-based configuration is supported, it must be handled here
113
+ * BEFORE the precomputed guard — rules are context-agnostic and must NOT be classified invalid.
114
+ */
115
+ private loadConfiguration;
116
+ /**
117
+ * Reconcile the stored {@link LoadedConfigurationState} against the active evaluation context
118
+ * and (re)compute the servable flag cache and configuration status/result.
119
+ *
120
+ * The stored load validity is consulted **before** context compatibility, so a context change
121
+ * can never promote an invalid (or absent) load to `ready`.
122
+ */
123
+ private reconcile;
124
+ /** The evaluation context a precomputed configuration was computed for (empty if agnostic). */
125
+ private embeddedContext;
126
+ /** Record an error status + message, clear the servable cache, and return the result. */
127
+ private enterError;
32
128
  private track;
33
129
  private getDetails;
34
130
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"FlagsClient.d.ts","sourceRoot":"","sources":["../../../../../../core/src/flags/FlagsClient.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE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AKG;IACH,gBAAgB,QACP,MAAM,gBACG,MAAM,KACrB,YAAY,MAAM,CAAC,CAEpB;IAEF;;;;;OAKG;IACH,gBAAgB,QACP,MAAM,gBACG,MAAM,KACrB,YAAY,MAAM,CAAC,CAEpB;IAEF;;;;;;;;OAQG;IACH,gBAAgB,6BACP,MAAM,qCAIb;IAEF;;;;;;;;;;OAUG;IACH,eAAe,QAAS,MAAM,gBAAgB,OAAO,KAAG,OAAO,CAE7D;IAEF;;;;;;;;;;OAUG;IACH,cAAc,QAAS,MAAM,gBAAgB,MAAM,KAAG,MAAM,CAE1D;IAEF;;;;;;;;;;OAUG;IACH,cAAc,QAAS,MAAM,gBAAgB,MAAM,KAAG,MAAM,CAE1D;IAEF;;;;;;;;;;OAUG;IACH,cAAc,6BAA8B,MAAM,wBAEhD;CACL"}
@@ -0,0 +1,20 @@
1
+ import type { EvaluationContext } from '../types';
2
+ import type { WireEvaluationContext } from './types';
3
+ /**
4
+ * Normalize a wire (OpenFeature-flat) evaluation context into the SDK's internal
5
+ * `{ targetingKey, attributes }` shape, applying the **same** processing the active
6
+ * context went through (`processEvaluationContext`) so the two are comparable — the
7
+ * flat wire shape and the internal shape are otherwise never equal.
8
+ */
9
+ export declare const normalizeWireContext: (wireContext: WireEvaluationContext) => EvaluationContext;
10
+ /**
11
+ * Whether a precomputed configuration's embedded context matches the active evaluation
12
+ * context.
13
+ *
14
+ * - A configuration with **no** embedded context is context-agnostic and matches any
15
+ * active context.
16
+ * - Otherwise the embedded context must match the active context exactly (after
17
+ * normalizing both through the same processing).
18
+ */
19
+ export declare const contextMatchesConfiguration: (wireContext: WireEvaluationContext | undefined, activeContext: EvaluationContext) => boolean;
20
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/flags/configuration/context.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,UAAU,CAAC;AAElE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,gBAChB,qBAAqB,KACnC,iBAUF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,gBACvB,qBAAqB,GAAG,SAAS,iBAC/B,iBAAiB,KACjC,OAMF,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { configurationFromString, configurationToString } from './wire';
2
+ export { decodePrecomputedFlags, UnsupportedConfigurationError } from './precomputed';
3
+ export { normalizeWireContext } from './context';
4
+ export type { ParsedFlagsConfiguration, ParsedPrecomputedConfiguration, PrecomputedConfigurationResponse, PrecomputedFlag, WireEvaluationContext } from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/flags/configuration/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACxE,OAAO,EACH,sBAAsB,EACtB,6BAA6B,EAChC,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,YAAY,EACR,wBAAwB,EACxB,8BAA8B,EAC9B,gCAAgC,EAChC,eAAe,EACf,qBAAqB,EACxB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { FlagCacheEntry } from '../internal';
2
+ import type { PrecomputedConfigurationResponse } from './types';
3
+ /**
4
+ * Thrown when a configuration cannot be supported by this SDK (e.g. an obfuscated
5
+ * precomputed payload). Callers translate this into a provider error state rather
6
+ * than silently serving wrong data.
7
+ */
8
+ export declare class UnsupportedConfigurationError extends Error {
9
+ constructor(message: string);
10
+ }
11
+ /**
12
+ * Decode a precomputed CDN response into the `FlagCacheEntry` map that `FlagsClient`
13
+ * caches and evaluates against — the same shape the native CDN fetch returns today.
14
+ *
15
+ * The mapping is ~1:1. Two transforms are applied per flag:
16
+ * - `value` is the typed `variationValue` as-is (`integer`/`float` are JS `number`s);
17
+ * - a string `variationValue` is derived (JSON for objects, `"true"/"false"` for
18
+ * booleans, `String(...)` otherwise) because native Android exposure tracking
19
+ * rebuilds the flag from the string form.
20
+ *
21
+ * @throws {UnsupportedConfigurationError} if the response is obfuscated, or its envelope is
22
+ * structurally malformed (missing/non-object `data.attributes.flags`).
23
+ */
24
+ export declare const decodePrecomputedFlags: (response: PrecomputedConfigurationResponse) => Map<string, FlagCacheEntry>;
25
+ //# sourceMappingURL=precomputed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"precomputed.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/flags/configuration/precomputed.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EACR,gCAAgC,EAEnC,MAAM,SAAS,CAAC;AAGjB;;;;GAIG;AACH,qBAAa,6BAA8B,SAAQ,KAAK;gBACxC,OAAO,EAAE,MAAM;CAI9B;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,aACrB,gCAAgC,KAC3C,IAAI,MAAM,EAAE,cAAc,CAqC5B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { FlagsConfiguration, PrecomputedConfiguration, PrecomputedConfigurationResponse as FlaggingCorePrecomputedConfigurationResponse, PrecomputedFlag as FlaggingCorePrecomputedFlag } from '@datadog/flagging-core';
2
+ /**
3
+ * The flag `variationType`s the decoder accepts. `@datadog/flagging-core` models the
4
+ * type as OpenFeature's `boolean | string | number | object`, and the CDN confirms only
5
+ * those are emitted. `integer`/`float` are kept here defensively — the decoder validates
6
+ * untrusted payloads and treats both as JavaScript `number`s.
7
+ */
8
+ export declare const SUPPORTED_VARIATION_TYPES: ReadonlySet<string>;
9
+ /**
10
+ * The context an evaluation is performed against, as it appears **on the wire**.
11
+ *
12
+ * This is the OpenFeature-shaped context: a flat object with an optional
13
+ * `targetingKey` and arbitrary sibling attributes. It is intentionally different
14
+ * from the SDK's internal `EvaluationContext` (`{ targetingKey, attributes }`);
15
+ * callers must normalize before comparing the two.
16
+ */
17
+ export type WireEvaluationContext = {
18
+ targetingKey?: string;
19
+ } & Record<string, unknown>;
20
+ export type PrecomputedFlag = FlaggingCorePrecomputedFlag;
21
+ export type PrecomputedConfigurationResponse = FlaggingCorePrecomputedConfigurationResponse;
22
+ export type ParsedPrecomputedConfiguration = PrecomputedConfiguration;
23
+ export type ParsedFlagsConfiguration = FlagsConfiguration;
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/flags/configuration/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,kBAAkB,EAClB,wBAAwB,EACxB,gCAAgC,IAAI,4CAA4C,EAChF,eAAe,IAAI,2BAA2B,EACjD,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,MAAM,CAOxD,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAK5B,MAAM,MAAM,eAAe,GAAG,2BAA2B,CAAC;AAC1D,MAAM,MAAM,gCAAgC,GAAG,4CAA4C,CAAC;AAC5F,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CAAC;AACtE,MAAM,MAAM,wBAAwB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { configurationFromString, configurationToString } from '@datadog/flagging-core';
2
+ //# sourceMappingURL=wire.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/flags/configuration/wire.ts"],"names":[],"mappings":"AAWA,OAAO,EACH,uBAAuB,EACvB,qBAAqB,EACxB,MAAM,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../../core/src/flags/internal.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,SAAS,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,wBAAwB,YACxB,iBAAiB,KAC3B,iBAqCF,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../../core/src/flags/internal.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,SAAS,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,wBAAwB,YACxB,iBAAiB,KAC3B,iBAwCF,CAAC"}
@@ -155,7 +155,7 @@ export interface EvaluationContext {
155
155
  *
156
156
  * Indicates why a flag evaluation may have failed or returned a default value.
157
157
  */
158
- type FlagErrorCode = 'PROVIDER_NOT_READY' | 'FLAG_NOT_FOUND' | 'PARSE_ERROR' | 'TYPE_MISMATCH';
158
+ type FlagErrorCode = 'PROVIDER_NOT_READY' | 'FLAG_NOT_FOUND' | 'PARSE_ERROR' | 'TYPE_MISMATCH' | 'INVALID_CONTEXT' | 'GENERAL';
159
159
  /**
160
160
  * Detailed information about a feature flag evaluation.
161
161
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/flags/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,WAAW;IACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,WAAW,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC9D,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAC/C,KAAK,SAAS,GAAG,SAAS,EAAE,CAAC;AAC7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,CAAC;AAEhE;;;;;;;;;;;;;;;;;;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AAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC9D,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAC/C,KAAK,SAAS,GAAG,SAAS,EAAE,CAAC;AAC7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC/C;AAED;;;;GAIG;AACH,KAAK,aAAa,GACZ,oBAAoB,GACpB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,SAAS,CAAC;AAEhB;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC;IACT;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -18,6 +18,8 @@ import { TrackingConsent } from './config/types/TrackingConsent';
18
18
  import { BatchProcessingLevel, BatchSize, InitializationMode, UploadFrequency, VitalsUpdateFrequency } from './config/types';
19
19
  import { DdFlags } from './flags/DdFlags';
20
20
  import type { FlagsClient } from './flags/FlagsClient';
21
+ import { configurationFromString, configurationToString } from './flags/configuration';
22
+ import type { ParsedFlagsConfiguration } from './flags/configuration';
21
23
  import type { FlagsConfiguration, FlagDetails, EvaluationContext, PrimitiveValue } from './flags/types';
22
24
  import { DdLogs } from './logs/DdLogs';
23
25
  import { DdRum } from './rum/DdRum';
@@ -36,6 +38,6 @@ import { ErrorSource, FeatureOperationFailure } from './types';
36
38
  import { DefaultTimeProvider } from './utils/time-provider/DefaultTimeProvider';
37
39
  import type { Timestamp } from './utils/time-provider/TimeProvider';
38
40
  import { TimeProvider } from './utils/time-provider/TimeProvider';
39
- export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdFlags, DdTrace, DdRum, RumActionType, ErrorSource, FeatureOperationFailure, CoreConfiguration, RumConfiguration, LogsConfiguration, TraceConfiguration, DdSdkReactNative, DdSdk, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, BatchProcessingLevel, TimeProvider, DefaultTimeProvider, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER, DATADOG_GRAPH_QL_PAYLOAD_HEADER, DATADOG_GRAPH_QL_ERROR_HEADER, TracingIdType, TracingIdFormat, DatadogTracingIdentifier, DatadogTracingContext, DdBabelInteractionTracking, __ddExtractText };
40
- export type { Timestamp, FirstPartyHost, AutoInstrumentationConfiguration, PartialInitializationConfiguration, CoreConfigurationOptions, RumConfigurationOptions, LogsConfigurationOptions, TraceConfigurationOptions, FlagsConfiguration, FlagsClient, EvaluationContext, PrimitiveValue, FlagDetails };
41
+ export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdFlags, configurationFromString, configurationToString, DdTrace, DdRum, RumActionType, ErrorSource, FeatureOperationFailure, CoreConfiguration, RumConfiguration, LogsConfiguration, TraceConfiguration, DdSdkReactNative, DdSdk, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, BatchProcessingLevel, TimeProvider, DefaultTimeProvider, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER, DATADOG_GRAPH_QL_PAYLOAD_HEADER, DATADOG_GRAPH_QL_ERROR_HEADER, TracingIdType, TracingIdFormat, DatadogTracingIdentifier, DatadogTracingContext, DdBabelInteractionTracking, __ddExtractText };
42
+ export type { Timestamp, FirstPartyHost, AutoInstrumentationConfiguration, PartialInitializationConfiguration, CoreConfigurationOptions, RumConfigurationOptions, LogsConfigurationOptions, TraceConfigurationOptions, FlagsConfiguration, FlagsClient, ParsedFlagsConfiguration, EvaluationContext, PrimitiveValue, FlagDetails };
41
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACxG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AAC5G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OA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,MAAM,EACN,OAAO,EACP,uBAAuB,EACvB,qBAAqB,EACrB,OAAO,EACP,KAAK,EACL,aAAa,EACb,WAAW,EACX,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,sCAAsC,EACtC,sCAAsC,EACtC,iCAAiC,EACjC,+BAA+B,EAC/B,6BAA6B,EAC7B,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,eAAe,EAClB,CAAC;AACF,YAAY,EACR,SAAS,EACT,cAAc,EACd,gCAAgC,EAChC,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,WAAW,EACX,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACd,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "3.5.2";
1
+ export declare const version = "3.5.4";
2
2
  //# sourceMappingURL=version.d.ts.map