@datadog/mobile-react-native-openfeature 3.5.3 → 3.6.0
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.
- package/README.md +77 -0
- package/lib/commonjs/coreProvider.js +79 -0
- package/lib/commonjs/coreProvider.js.map +1 -0
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mappers.js +50 -0
- package/lib/commonjs/mappers.js.map +1 -0
- package/lib/commonjs/offlineProvider.js +149 -0
- package/lib/commonjs/offlineProvider.js.map +1 -0
- package/lib/commonjs/provider.js +9 -73
- package/lib/commonjs/provider.js.map +1 -1
- package/lib/module/coreProvider.js +72 -0
- package/lib/module/coreProvider.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/mappers.js +42 -0
- package/lib/module/mappers.js.map +1 -0
- package/lib/module/offlineProvider.js +143 -0
- package/lib/module/offlineProvider.js.map +1 -0
- package/lib/module/provider.js +7 -71
- package/lib/module/provider.js.map +1 -1
- package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -1
- package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -1
- package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +1 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -1
- package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +2 -0
- package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -1
- package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +2 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -1
- package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +7 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -1
- package/lib/typescript/core/src/flags/FlagsClient.d.ts +96 -0
- package/lib/typescript/core/src/flags/FlagsClient.d.ts.map +1 -1
- package/lib/typescript/core/src/flags/configuration/context.d.ts +20 -0
- package/lib/typescript/core/src/flags/configuration/context.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/configuration/index.d.ts +5 -0
- package/lib/typescript/core/src/flags/configuration/index.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/configuration/precomputed.d.ts +25 -0
- package/lib/typescript/core/src/flags/configuration/precomputed.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/configuration/types.d.ts +24 -0
- package/lib/typescript/core/src/flags/configuration/types.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/configuration/wire.d.ts +2 -0
- package/lib/typescript/core/src/flags/configuration/wire.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/internal.d.ts.map +1 -1
- package/lib/typescript/core/src/flags/types.d.ts +1 -1
- package/lib/typescript/core/src/flags/types.d.ts.map +1 -1
- package/lib/typescript/core/src/index.d.ts +4 -2
- package/lib/typescript/core/src/index.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +3 -2
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/FetchProxy/FetchProxy.d.ts +29 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/FetchProxy/FetchProxy.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/FetchProxyState.d.ts +8 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/FetchProxyState.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/RequestContext.d.ts +20 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/RequestContext.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/{XHRProxy/DatadogRumResource → common}/ResourceReporter.d.ts +2 -2
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/ResourceReporter.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/internalDevResourceBlocklist.d.ts +3 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/internalDevResourceBlocklist.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/requestHeaders.d.ts +18 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/requestHeaders.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/{XHRProxy/DatadogRumResource → common}/resourceTiming.d.ts +0 -6
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/common/resourceTiming.d.ts.map +1 -0
- package/lib/typescript/core/src/version.d.ts +1 -1
- package/lib/typescript/react-native-openfeature/src/coreProvider.d.ts +34 -0
- package/lib/typescript/react-native-openfeature/src/coreProvider.d.ts.map +1 -0
- package/lib/typescript/react-native-openfeature/src/index.d.ts +3 -1
- package/lib/typescript/react-native-openfeature/src/index.d.ts.map +1 -1
- package/lib/typescript/react-native-openfeature/src/mappers.d.ts +20 -0
- package/lib/typescript/react-native-openfeature/src/mappers.d.ts.map +1 -0
- package/lib/typescript/react-native-openfeature/src/offlineProvider.d.ts +59 -0
- package/lib/typescript/react-native-openfeature/src/offlineProvider.d.ts.map +1 -0
- package/lib/typescript/react-native-openfeature/src/provider.d.ts +8 -21
- package/lib/typescript/react-native-openfeature/src/provider.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/offlineProvider.integration.test.ts +271 -0
- package/src/__tests__/offlineProvider.test.ts +252 -0
- package/src/__tests__/provider.test.ts +74 -0
- package/src/coreProvider.ts +142 -0
- package/src/index.ts +8 -1
- package/src/mappers.ts +47 -0
- package/src/offlineProvider.ts +185 -0
- package/src/provider.ts +10 -139
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts.map +0 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts +0 -7
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts.map +0 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts.map +0 -1
|
@@ -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 @@
|
|
|
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,
|
|
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;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAA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H,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,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACH,kBAAkB,EAClB,SAAS,EACZ,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA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AAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,OAAO,EACH,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,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,iBAAiB,EACjB,cAAc,EACd,WAAW,EACd,CAAC"}
|
|
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,mDAAm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CAAiC,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"}
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts
CHANGED
|
@@ -5,16 +5,17 @@ import type { FirstPartyHost } from '../../types';
|
|
|
5
5
|
*/
|
|
6
6
|
declare class RumResourceTracking {
|
|
7
7
|
private _isTracking;
|
|
8
|
-
private
|
|
8
|
+
private _requestProxies;
|
|
9
9
|
private _maxSampledTraceId;
|
|
10
10
|
get isTracking(): boolean;
|
|
11
11
|
get maxSampledTraceId(): BigInt.BigInteger;
|
|
12
12
|
/**
|
|
13
13
|
* Starts tracking resources and sends a RUM Resource event every time a network request is detected.
|
|
14
14
|
*/
|
|
15
|
-
startTracking({ resourceTraceSampleRate, firstPartyHosts }: {
|
|
15
|
+
startTracking({ resourceTraceSampleRate, firstPartyHosts, trackFetchResources }: {
|
|
16
16
|
resourceTraceSampleRate: number;
|
|
17
17
|
firstPartyHosts: FirstPartyHost[];
|
|
18
|
+
trackFetchResources?: boolean;
|
|
18
19
|
}): void;
|
|
19
20
|
/**
|
|
20
21
|
* Applies a new resource trace sample rate to the already-installed
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DdRumResourceTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"names":[],"mappings":"AAMA,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"DdRumResourceTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"names":[],"mappings":"AAMA,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAWlD;;GAEG;AACH,cAAM,mBAAmB;IACrB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,eAAe,CAAsB;IAC7C,OAAO,CAAC,kBAAkB,CAAkC;IAE5D,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,iBAAiB,IAAI,MAAM,CAAC,UAAU,CAEzC;IAED;;OAEG;IACH,aAAa,CAAC,EACV,uBAAuB,EACvB,eAAe,EACf,mBAA2B,EAC9B,EAAE;QACC,uBAAuB,EAAE,MAAM,CAAC;QAChC,eAAe,EAAE,cAAc,EAAE,CAAC;QAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;KACjC,GAAG,IAAI;IAiDR;;;;;;OAMG;IACH,qBAAqB,CAAC,EAClB,uBAAuB,EAC1B,EAAE;QACC,uBAAuB,EAAE,MAAM,CAAC;KACnC,GAAG,IAAI;IAiBR,YAAY,IAAI,IAAI;CAUvB;AAED,eAAO,MAAM,qBAAqB,qBAGjC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ResourceReporter } from '../common/ResourceReporter';
|
|
2
|
+
import type { RequestProxyOptions } from '../interfaces/RequestProxy';
|
|
3
|
+
import { RequestProxy } from '../interfaces/RequestProxy';
|
|
4
|
+
type FetchGlobal = {
|
|
5
|
+
fetch: typeof fetch;
|
|
6
|
+
};
|
|
7
|
+
interface FetchProxyProviders {
|
|
8
|
+
fetchGlobal: FetchGlobal;
|
|
9
|
+
headersType: typeof Headers;
|
|
10
|
+
resourceReporter: ResourceReporter;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Proxies global Fetch implementations.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FetchProxy extends RequestProxy {
|
|
16
|
+
private providers;
|
|
17
|
+
private context;
|
|
18
|
+
private originalFetch;
|
|
19
|
+
private installedFetch;
|
|
20
|
+
constructor(providers: FetchProxyProviders);
|
|
21
|
+
static createWithResourceReporter(): FetchProxy;
|
|
22
|
+
onTrackingStart: (context: RequestProxyOptions) => void;
|
|
23
|
+
onTrackingStop: () => void;
|
|
24
|
+
onTrackingUpdate: (options: {
|
|
25
|
+
tracingSamplingRate: number;
|
|
26
|
+
}) => void;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=FetchProxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/FetchProxy/FetchProxy.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAM9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1D,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,OAAO,KAAK,CAAC;CACvB,CAAC;AAEF,UAAU,mBAAmB;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,OAAO,OAAO,CAAC;IAC5B,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAK5B,OAAO,CAAC,SAAS;IAJ7B,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,cAAc,CAA6B;gBAE/B,SAAS,EAAE,mBAAmB;IAIlD,MAAM,CAAC,0BAA0B;IAQjC,eAAe,YAAa,mBAAmB,UAmB7C;IAEF,cAAc,aAWZ;IAEF,gBAAgB,YAAa;QAAE,mBAAmB,EAAE,MAAM,CAAA;KAAE,UAK1D;CACL"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ResourceReporter } from '../common/ResourceReporter';
|
|
1
2
|
import type { RequestProxyOptions } from '../interfaces/RequestProxy';
|
|
2
3
|
import { RequestProxy } from '../interfaces/RequestProxy';
|
|
3
|
-
import { ResourceReporter } from './DatadogRumResource/ResourceReporter';
|
|
4
4
|
interface XHRProxyProviders {
|
|
5
5
|
xhrType: typeof XMLHttpRequest;
|
|
6
6
|
resourceReporter: ResourceReporter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XHRProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"XHRProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAM9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAe1D,UAAU,iBAAiB;IACvB,OAAO,EAAE,OAAO,cAAc,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,YAAY;IACtC,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,MAAM,CAAC,eAAe,CAAuC;IACrE,OAAO,CAAC,MAAM,CAAC,eAAe,CAAuC;IACrE,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAmD;gBAEjF,SAAS,EAAE,iBAAiB;IAKxC,MAAM,CAAC,0BAA0B;IAOjC,eAAe,YAAa,mBAAmB,UAM7C;IAEF,cAAc,aAMZ;IAEF,gBAAgB,YAAa;QAAE,mBAAmB,EAAE,MAAM,CAAA;KAAE,UAK1D;CACL"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calls the original Fetch implementation while marking its synchronous work.
|
|
3
|
+
* XHR-backed Fetch implementations create and send their XMLHttpRequest before
|
|
4
|
+
* returning a Promise, so the XHR proxy can avoid reporting that request twice.
|
|
5
|
+
*/
|
|
6
|
+
export declare const callOriginalFetch: <T>(callback: () => T) => T;
|
|
7
|
+
export declare const isRunningWithinFetchProxy: () => boolean;
|
|
8
|
+
//# sourceMappingURL=FetchProxyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchProxyState.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/common/FetchProxyState.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,6BAO7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAO,OAE5C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Timer } from '../../../../../utils/Timer';
|
|
2
|
+
import type { DdRumResourceTracingAttributes } from '../../distributedTracing/distributedTracingAttributes';
|
|
3
|
+
import type { RequestProxyOptions } from '../interfaces/RequestProxy';
|
|
4
|
+
import type { DdRumResourceGraphqlAttributes } from '../interfaces/RumResource';
|
|
5
|
+
export interface RequestContext {
|
|
6
|
+
graphql: DdRumResourceGraphqlAttributes & {
|
|
7
|
+
trackErrors?: boolean;
|
|
8
|
+
};
|
|
9
|
+
method: string;
|
|
10
|
+
url: string;
|
|
11
|
+
timer: Timer;
|
|
12
|
+
tracingAttributes: DdRumResourceTracingAttributes;
|
|
13
|
+
baggageHeaderEntries: Set<string>;
|
|
14
|
+
}
|
|
15
|
+
export declare const createRequestContext: ({ method, url, options }: {
|
|
16
|
+
method: string;
|
|
17
|
+
url: string;
|
|
18
|
+
options: RequestProxyOptions;
|
|
19
|
+
}) => RequestContext;
|
|
20
|
+
//# sourceMappingURL=RequestContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/common/RequestContext.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAMnD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAC;AAG5G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAEhF,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,8BAA8B,GAAG;QACtC,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,iBAAiB,EAAE,8BAA8B,CAAC;IAClD,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,oBAAoB;YAKrB,MAAM;SACT,MAAM;aACF,mBAAmB;MAC5B,cAgBH,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { RUMResource } from '
|
|
1
|
+
import type { RUMResource } from '../interfaces/RumResource';
|
|
2
2
|
type ResourceMapper = (resource: RUMResource) => RUMResource | null;
|
|
3
3
|
export declare class ResourceReporter {
|
|
4
4
|
private mappers;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(mappers: ResourceMapper[]);
|
|
6
6
|
reportResource: (resource: RUMResource) => void;
|
|
7
7
|
}
|
|
8
8
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceReporter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/common/ResourceReporter.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAI7D,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC;AAEpE,qBAAa,gBAAgB;IACzB,OAAO,CAAC,OAAO,CAAmB;gBAEtB,OAAO,EAAE,cAAc,EAAE;IAIrC,cAAc,aAAc,WAAW,UAWrC;CACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internalDevResourceBlocklist.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/common/internalDevResourceBlocklist.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAe7D,eAAO,MAAM,iBAAiB,aAChB,WAAW,KACtB,WAAW,GAAG,IAShB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RequestContext } from './RequestContext';
|
|
2
|
+
export type ProcessedRequestHeader = {
|
|
3
|
+
type: 'drop';
|
|
4
|
+
} | {
|
|
5
|
+
type: 'send';
|
|
6
|
+
header: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const processRequestHeader: ({ context, header, value }: {
|
|
10
|
+
context: RequestContext;
|
|
11
|
+
header: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}) => ProcessedRequestHeader;
|
|
14
|
+
export declare const getInstrumentationHeaders: (context: RequestContext) => {
|
|
15
|
+
header: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
//# sourceMappingURL=requestHeaders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestHeaders.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/common/requestHeaders.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAC5B;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,eAAO,MAAM,oBAAoB;aAKpB,cAAc;YACf,MAAM;WACP,MAAM;MACb,sBAqCH,CAAC;AAEF,eAAO,MAAM,yBAAyB,YACzB,cAAc,KACxB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EA4BnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceTiming.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/common/resourceTiming.ts"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,eAAe;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,aAAa,CACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACxB,eAAe,CAcjB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "3.
|
|
1
|
+
export declare const version = "3.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FlagsClient } from '@datadog/mobile-react-native';
|
|
2
|
+
import type { EvaluationContext as OFEvaluationContext, JsonValue, Logger, Paradigm, Provider, ProviderMetadata, ResolutionDetails, ProviderEventEmitter, ProviderEvents } from '@openfeature/web-sdk';
|
|
3
|
+
export interface DatadogOpenFeatureProviderOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the Datadog Flags client to use.
|
|
6
|
+
*
|
|
7
|
+
* Provide this parameter in order to use different Datadog Flags clients for different OpenFeature domains.
|
|
8
|
+
*
|
|
9
|
+
* @default 'default'
|
|
10
|
+
*/
|
|
11
|
+
clientName?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Shared base for the Datadog OpenFeature providers. It owns the `FlagsClient`, the event
|
|
15
|
+
* emitter, and evaluation (`resolveX`) — everything the online and offline providers have in
|
|
16
|
+
* common. It does not decide how the evaluation context is sourced (fetch vs. offline load);
|
|
17
|
+
* concrete providers implement `initialize`/`onContextChange`.
|
|
18
|
+
*
|
|
19
|
+
* Internal: not exported from the package entry point. Customers use
|
|
20
|
+
* `DatadogOpenFeatureProvider` (online) or `DatadogOfflineOpenFeatureProvider` (offline).
|
|
21
|
+
*/
|
|
22
|
+
export declare abstract class DatadogCoreOpenFeatureProvider implements Provider {
|
|
23
|
+
readonly runsOn: Paradigm;
|
|
24
|
+
abstract readonly metadata: ProviderMetadata;
|
|
25
|
+
private options;
|
|
26
|
+
protected flagsClient: FlagsClient;
|
|
27
|
+
readonly events: ProviderEventEmitter<ProviderEvents>;
|
|
28
|
+
constructor(options?: DatadogOpenFeatureProviderOptions);
|
|
29
|
+
resolveBooleanEvaluation(flagKey: string, defaultValue: boolean, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<boolean>;
|
|
30
|
+
resolveStringEvaluation(flagKey: string, defaultValue: string, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<string>;
|
|
31
|
+
resolveNumberEvaluation(flagKey: string, defaultValue: number, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<number>;
|
|
32
|
+
resolveObjectEvaluation<T extends JsonValue>(flagKey: string, defaultValue: T, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<T>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=coreProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreProvider.d.ts","sourceRoot":"","sources":["../../../../src/coreProvider.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,KAAK,EACR,iBAAiB,IAAI,mBAAmB,EACxC,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACjB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,iCAAiC;IAC9C;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,8BAAsB,8BAA+B,YAAW,QAAQ;IACpE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAY;IACrC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAE7C,OAAO,CAAC,OAAO,CAAoC;IACnD,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IAEnC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAiC;gBAE1E,OAAO,GAAE,iCAAsC;IAU3D,wBAAwB,CACpB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,MAAM,GAChB,iBAAiB,CAAC,OAAO,CAAC;IAQ7B,uBAAuB,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,MAAM,GAChB,iBAAiB,CAAC,MAAM,CAAC;IAQ5B,uBAAuB,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,MAAM,GAChB,iBAAiB,CAAC,MAAM,CAAC;IAQ5B,uBAAuB,CAAC,CAAC,SAAS,SAAS,EACvC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,CAAC,EACf,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,MAAM,GAChB,iBAAiB,CAAC,CAAC,CAAC;CAY1B"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { configurationFromString } from '@datadog/mobile-react-native';
|
|
2
|
+
import { DatadogOfflineOpenFeatureProvider } from './offlineProvider';
|
|
1
3
|
import { DatadogOpenFeatureProvider } from './provider';
|
|
2
4
|
import type { DatadogOpenFeatureProviderOptions } from './provider';
|
|
3
|
-
export { DatadogOpenFeatureProvider };
|
|
5
|
+
export { DatadogOpenFeatureProvider, DatadogOfflineOpenFeatureProvider, configurationFromString };
|
|
4
6
|
export type { DatadogOpenFeatureProviderOptions };
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,EACH,0BAA0B,EAC1B,iCAAiC,EACjC,uBAAuB,EAC1B,CAAC;AACF,YAAY,EAAE,iCAAiC,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EvaluationContext as DdEvaluationContext } from '@datadog/mobile-react-native';
|
|
2
|
+
import type { EvaluationContext as OFEvaluationContext } from '@openfeature/web-sdk';
|
|
3
|
+
/**
|
|
4
|
+
* Convert an OpenFeature evaluation context into the Datadog Flags shape.
|
|
5
|
+
*/
|
|
6
|
+
export declare const toDdContext: (context: OFEvaluationContext) => DdEvaluationContext;
|
|
7
|
+
/**
|
|
8
|
+
* Whether an OpenFeature evaluation context carries no information — no targeting key and no
|
|
9
|
+
* attributes with a defined value (so `{}` and `{ targetingKey: undefined }` are both empty).
|
|
10
|
+
* Used by the offline provider to avoid overwriting a configuration's embedded context with an
|
|
11
|
+
* empty context stamped by the OpenFeature lifecycle.
|
|
12
|
+
*
|
|
13
|
+
* Note: an explicit `targetingKey: ''` is **not** empty. An empty string is a real (anonymous)
|
|
14
|
+
* targeting key — a distinct subject — not the absence of a context. Only a genuinely absent
|
|
15
|
+
* context (`{}` / `clearContext()`) re-adopts the configuration's embedded context; `{ targetingKey:
|
|
16
|
+
* '' }` is reconciled as a real context, so it must match the precomputed snapshot or the provider
|
|
17
|
+
* enters `ERROR` (serving coded defaults) rather than silently serving another subject's flags.
|
|
18
|
+
*/
|
|
19
|
+
export declare const isEmptyContext: (context: OFEvaluationContext) => boolean;
|
|
20
|
+
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/mappers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,iBAAiB,IAAI,mBAAmB,EAE3C,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,WAAW,YACX,mBAAmB,KAC7B,mBAaF,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,YAAa,mBAAmB,KAAG,OAE7D,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ParsedFlagsConfiguration } from '@datadog/mobile-react-native';
|
|
2
|
+
import type { EvaluationContext as OFEvaluationContext, ProviderMetadata } from '@openfeature/web-sdk';
|
|
3
|
+
import { DatadogCoreOpenFeatureProvider } from './coreProvider';
|
|
4
|
+
/**
|
|
5
|
+
* An offline Datadog OpenFeature provider.
|
|
6
|
+
*
|
|
7
|
+
* It behaves like the online `DatadogOpenFeatureProvider` — same flag evaluation and
|
|
8
|
+
* exposure/RUM tracking — **except it never fetches configuration from the network**.
|
|
9
|
+
* Instead of fetching on `initialize`/`onContextChange`, it evaluates against a configuration
|
|
10
|
+
* supplied via {@link DatadogOfflineOpenFeatureProvider.setConfiguration}. A precomputed
|
|
11
|
+
* configuration carries the evaluation context it was computed for, so you should **not** call
|
|
12
|
+
* `OpenFeature.setContext` for the offline precomputed flow — see the class remarks.
|
|
13
|
+
*
|
|
14
|
+
* A runtime context that does not match the configuration's embedded context (compared after
|
|
15
|
+
* normalization) cannot be served (offline never fetches), so it puts the provider into the
|
|
16
|
+
* OpenFeature `ERROR` state and evaluations fall back to your coded defaults (`INVALID_CONTEXT`).
|
|
17
|
+
* An empty *effective* context re-adopts the embedded context and recovers — but note that
|
|
18
|
+
* `clearContext(domain)` falls back to the global context, which may itself be non-empty and
|
|
19
|
+
* mismatching (and would keep the provider in `ERROR`). Load the configuration before setting the
|
|
20
|
+
* provider so it is ready with real flag values from the start:
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { OpenFeature } from '@openfeature/web-sdk';
|
|
25
|
+
* import {
|
|
26
|
+
* DatadogOfflineOpenFeatureProvider,
|
|
27
|
+
* configurationFromString
|
|
28
|
+
* } from '@datadog/mobile-react-native-openfeature';
|
|
29
|
+
*
|
|
30
|
+
* const provider = new DatadogOfflineOpenFeatureProvider();
|
|
31
|
+
* provider.setConfiguration(configurationFromString(wire)); // no network
|
|
32
|
+
* await OpenFeature.setProviderAndWait(provider);
|
|
33
|
+
*
|
|
34
|
+
* const client = OpenFeature.getClient();
|
|
35
|
+
* const enabled = client.getBooleanValue('new-feature', false);
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class DatadogOfflineOpenFeatureProvider extends DatadogCoreOpenFeatureProvider {
|
|
39
|
+
readonly metadata: ProviderMetadata;
|
|
40
|
+
private configurationInError;
|
|
41
|
+
initialize(context?: OFEvaluationContext): Promise<void>;
|
|
42
|
+
onContextChange(_oldContext: OFEvaluationContext, newContext: OFEvaluationContext): void;
|
|
43
|
+
/**
|
|
44
|
+
* Load a configuration into the provider for offline evaluation.
|
|
45
|
+
*
|
|
46
|
+
* @param configuration A configuration parsed from a `ConfigurationWire` string via
|
|
47
|
+
* `configurationFromString`.
|
|
48
|
+
*/
|
|
49
|
+
setConfiguration(configuration: ParsedFlagsConfiguration): void;
|
|
50
|
+
private applyContext;
|
|
51
|
+
/**
|
|
52
|
+
* Map a reconcile error code to the precise OpenFeature error type, so direct callers of
|
|
53
|
+
* `initialize`/`onContextChange` (and `setProviderAndWait`) receive the correct typed error.
|
|
54
|
+
* (Web SDK 1.8.0 drops the code from the lifecycle-generated error *event*, but the thrown
|
|
55
|
+
* error type is still accurate for callers.)
|
|
56
|
+
*/
|
|
57
|
+
private toError;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=offlineProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offlineProvider.d.ts","sourceRoot":"","sources":["../../../../src/offlineProvider.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAER,wBAAwB,EAC3B,MAAM,8BAA8B,CAAC;AAQtC,OAAO,KAAK,EACR,iBAAiB,IAAI,mBAAmB,EAExC,gBAAgB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAsBhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,iCAAkC,SAAQ,8BAA8B;IACjF,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAEjC;IAMF,OAAO,CAAC,oBAAoB,CAAS;IAE/B,UAAU,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlE,eAAe,CACX,WAAW,EAAE,mBAAmB,EAChC,UAAU,EAAE,mBAAmB,GAChC,IAAI;IAYP;;;;;OAKG;IACH,gBAAgB,CAAC,aAAa,EAAE,wBAAwB,GAAG,IAAI;IAuB/D,OAAO,CAAC,YAAY;IAgBpB;;;;;OAKG;IACH,OAAO,CAAC,OAAO;CAgBlB"}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import type { EvaluationContext as OFEvaluationContext,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
clientName?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class DatadogOpenFeatureProvider implements Provider {
|
|
13
|
-
readonly runsOn: Paradigm;
|
|
1
|
+
import type { EvaluationContext as OFEvaluationContext, ProviderMetadata } from '@openfeature/web-sdk';
|
|
2
|
+
import { DatadogCoreOpenFeatureProvider } from './coreProvider';
|
|
3
|
+
export type { DatadogOpenFeatureProviderOptions } from './coreProvider';
|
|
4
|
+
/**
|
|
5
|
+
* The online Datadog OpenFeature provider. Fetches precomputed flag assignments from Datadog
|
|
6
|
+
* whenever the evaluation context is set or changed.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DatadogOpenFeatureProvider extends DatadogCoreOpenFeatureProvider {
|
|
14
9
|
readonly metadata: ProviderMetadata;
|
|
15
|
-
private options;
|
|
16
|
-
private flagsClient;
|
|
17
|
-
readonly events: ProviderEventEmitter<ProviderEvents>;
|
|
18
10
|
private contextChangePromise;
|
|
19
|
-
constructor(options?: DatadogOpenFeatureProviderOptions);
|
|
20
11
|
initialize(context?: OFEvaluationContext): Promise<void>;
|
|
21
12
|
onContextChange(_oldContext: OFEvaluationContext, newContext: OFEvaluationContext): Promise<void>;
|
|
22
|
-
resolveBooleanEvaluation(flagKey: string, defaultValue: boolean, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<boolean>;
|
|
23
|
-
resolveStringEvaluation(flagKey: string, defaultValue: string, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<string>;
|
|
24
|
-
resolveNumberEvaluation(flagKey: string, defaultValue: number, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<number>;
|
|
25
|
-
resolveObjectEvaluation<T extends JsonValue>(flagKey: string, defaultValue: T, _context: OFEvaluationContext, _logger: Logger): ResolutionDetails<T>;
|
|
26
13
|
}
|
|
27
14
|
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/provider.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,iBAAiB,IAAI,mBAAmB,EACxC,gBAAgB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAGhE,YAAY,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AAExE;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,8BAA8B;IAC1E,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAEjC;IAEF,OAAO,CAAC,oBAAoB,CAAqB;IAE3C,UAAU,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAS5D,eAAe,CACjB,WAAW,EAAE,mBAAmB,EAChC,UAAU,EAAE,mBAAmB,GAChC,OAAO,CAAC,IAAI,CAAC;CAWnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/mobile-react-native-openfeature",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "A client-side React Native module to provide OpenFeature integration with Datadog Feature Flags",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datadog",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"prepare": "rm -rf lib && yarn bob build"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@datadog/mobile-react-native": "^3.
|
|
41
|
+
"@datadog/mobile-react-native": "^3.6.0",
|
|
42
42
|
"@openfeature/core": "^1.9.2",
|
|
43
|
-
"@openfeature/web-sdk": "^1.
|
|
43
|
+
"@openfeature/web-sdk": "^1.8.0",
|
|
44
44
|
"@testing-library/react-native": "7.0.2",
|
|
45
45
|
"react-native-builder-bob": "0.26.0",
|
|
46
46
|
"react-native-gesture-handler": "1.10.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@datadog/mobile-react-native": "^3.1.0",
|
|
50
|
-
"@openfeature/web-sdk": "^1.
|
|
50
|
+
"@openfeature/web-sdk": "^1.8.0",
|
|
51
51
|
"react": ">=16.13.1",
|
|
52
52
|
"react-native": ">=0.63.4 <1.0"
|
|
53
53
|
},
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
]
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "398e96d73be0341493adbbf8f4e2d7e3ca9d584b"
|
|
87
87
|
}
|