@datadog/mobile-react-native-code-push 1.4.0 → 1.5.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.
Files changed (16) hide show
  1. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +5 -0
  2. package/lib/typescript/core/src/nativeModulesTypes.d.ts +5 -0
  3. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{domain → distributedTracing}/distributedTracing.d.ts +1 -1
  4. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{domain → distributedTracing}/firstPartyHosts.d.ts +1 -1
  5. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{implementation → requestProxy/XHRProxy}/DatadogRumResource/ResourceReporter.d.ts +1 -1
  6. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{implementation → requestProxy/XHRProxy}/DatadogRumResource/internalDevResourceBlocklist.d.ts +1 -1
  7. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{implementation → requestProxy/XHRProxy}/URLHostParser.d.ts +1 -1
  8. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{implementation → requestProxy/XHRProxy}/XHRProxy.d.ts +2 -2
  9. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{domain → requestProxy}/interfaces/RumResource.d.ts +1 -1
  10. package/lib/typescript/core/src/types.d.ts +2 -1
  11. package/lib/typescript/core/src/version.d.ts +1 -1
  12. package/package.json +3 -3
  13. /package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{domain → distributedTracing}/distributedTracingHeaders.d.ts +0 -0
  14. /package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{implementation → requestProxy/XHRProxy}/DatadogRumResource/resourceTiming.d.ts +0 -0
  15. /package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{implementation → requestProxy/XHRProxy}/responseSize.d.ts +0 -0
  16. /package/lib/typescript/core/src/rum/instrumentation/resourceTracking/{domain → requestProxy}/interfaces/RequestProxy.d.ts +0 -0
@@ -126,6 +126,10 @@ export declare class DdSdkReactNativeConfiguration {
126
126
  * Sets the preferred frequency for collecting mobile vitals.
127
127
  */
128
128
  vitalsUpdateFrequency: VitalsUpdateFrequency;
129
+ /**
130
+ * Enables tracking of frustration signals (error taps). Defaults to `true`.
131
+ */
132
+ trackFrustrations: boolean;
129
133
  logEventMapper: LogEventMapper | null;
130
134
  errorEventMapper: ErrorEventMapper | null;
131
135
  resourceEventMapper: ResourceEventMapper | null;
@@ -191,6 +195,7 @@ export declare type PartialInitializationConfiguration = {
191
195
  readonly nativeCrashReportEnabled?: boolean;
192
196
  readonly telemetrySampleRate?: number;
193
197
  readonly vitalsUpdateFrequency?: VitalsUpdateFrequency;
198
+ readonly trackFrustrations?: boolean;
194
199
  };
195
200
  export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => DdSdkReactNativeConfiguration;
196
201
  export declare class DatadogProviderConfiguration extends DdSdkReactNativeConfiguration {
@@ -48,6 +48,11 @@ export declare type DdNativeSdkType = {
48
48
  * @param kind error kind
49
49
  */
50
50
  telemetryError(message: string, stack: string, kind: string): Promise<void>;
51
+ /**
52
+ * Send webview telemetry logs
53
+ * @param message event description
54
+ */
55
+ consumeWebviewEvent(message: string): Promise<void>;
51
56
  };
52
57
  /**
53
58
  * The entry point to use Datadog's Logs feature.
@@ -1,6 +1,6 @@
1
1
  import type { PropagatorType } from '../../../types';
2
+ import type { RegexMap } from '../requestProxy/interfaces/RequestProxy';
2
3
  import type { Hostname } from './firstPartyHosts';
3
- import type { RegexMap } from './interfaces/RequestProxy';
4
4
  export declare type DdRumResourceTracingAttributes = {
5
5
  tracingStrategy: 'KEEP';
6
6
  traceId: TraceId;
@@ -1,5 +1,5 @@
1
1
  import type { FirstPartyHost, PropagatorType } from '../../../types';
2
- import type { RegexMap } from './interfaces/RequestProxy';
2
+ import type { RegexMap } from '../requestProxy/interfaces/RequestProxy';
3
3
  export declare type Hostname = {
4
4
  _type: 'Hostname';
5
5
  } & string;
@@ -1,4 +1,4 @@
1
- import type { RUMResource } from '../../domain/interfaces/RumResource';
1
+ import type { RUMResource } from '../../interfaces/RumResource';
2
2
  declare type ResourceMapper = (resource: RUMResource) => RUMResource | null;
3
3
  export declare class ResourceReporter {
4
4
  private mappers;
@@ -1,4 +1,4 @@
1
- import type { RUMResource } from '../../domain/interfaces/RumResource';
1
+ import type { RUMResource } from '../../interfaces/RumResource';
2
2
  /**
3
3
  * Filters RN symbolicate calls and Expo logs calls that happen only in dev.
4
4
  * @param resource RUMResource
@@ -1,4 +1,4 @@
1
- import type { Hostname } from '../domain/firstPartyHosts';
1
+ import type { Hostname } from '../../distributedTracing/firstPartyHosts';
2
2
  /**
3
3
  * Returns the host from an URL.
4
4
  * @returns the host (without the port) or null if could not cast the URL as host
@@ -1,5 +1,5 @@
1
- import type { RequestProxyOptions } from '../domain/interfaces/RequestProxy';
2
- import { RequestProxy } from '../domain/interfaces/RequestProxy';
1
+ import type { RequestProxyOptions } from '../interfaces/RequestProxy';
2
+ import { RequestProxy } from '../interfaces/RequestProxy';
3
3
  import type { ResourceReporter } from './DatadogRumResource/ResourceReporter';
4
4
  interface XHRProxyProviders {
5
5
  xhrType: typeof XMLHttpRequest;
@@ -1,5 +1,5 @@
1
1
  import type { ResourceKind } from '../../../../types';
2
- import type { DdRumResourceTracingAttributes } from '../distributedTracing';
2
+ import type { DdRumResourceTracingAttributes } from '../../distributedTracing/distributedTracing';
3
3
  export interface RUMResource {
4
4
  key: string;
5
5
  request: {
@@ -14,13 +14,14 @@ export declare class DdSdkConfiguration {
14
14
  readonly additionalConfig: object;
15
15
  readonly telemetrySampleRate: number;
16
16
  readonly vitalsUpdateFrequency: string;
17
+ readonly trackFrustrations: boolean;
17
18
  readonly configurationForTelemetry: {
18
19
  initializationType: string;
19
20
  trackErrors: boolean;
20
21
  trackInteractions: boolean;
21
22
  trackNetworkRequests: boolean;
22
23
  };
23
- constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, nativeLongTaskThresholdMs: number, longTaskThresholdMs: number, sampleRate: number, site: string, trackingConsent: string, additionalConfig: object, telemetrySampleRate: number, vitalsUpdateFrequency: string, configurationForTelemetry: {
24
+ constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, nativeLongTaskThresholdMs: number, longTaskThresholdMs: number, sampleRate: number, site: string, trackingConsent: string, additionalConfig: object, telemetrySampleRate: number, vitalsUpdateFrequency: string, trackFrustrations: boolean, configurationForTelemetry: {
24
25
  initializationType: string;
25
26
  trackErrors: boolean;
26
27
  trackInteractions: boolean;
@@ -1 +1 @@
1
- export declare const version = "1.4.0";
1
+ export declare const version = "1.5.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native-code-push",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "A client-side React Native module to interact with Appcenter Codepush and Datadog",
5
5
  "keywords": [
6
6
  "datadog",
@@ -38,7 +38,7 @@
38
38
  "prepare": "rm -rf lib && yarn bob build"
39
39
  },
40
40
  "devDependencies": {
41
- "@datadog/mobile-react-native": "^1.4.0",
41
+ "@datadog/mobile-react-native": "^1.5.0",
42
42
  "@testing-library/react-native": "7.0.2",
43
43
  "react-native-code-push": "7.0.5"
44
44
  },
@@ -72,5 +72,5 @@
72
72
  ]
73
73
  ]
74
74
  },
75
- "gitHead": "cc9c7937cecfd48720ec46852c24965f4a00bab4"
75
+ "gitHead": "04d48f34c3fe6f2d793cf4157eff5314253afd87"
76
76
  }