Skip to content

Commit

Permalink
Merge pull request #769 from DataDog/marcosaia/release/v2.6.1
Browse files Browse the repository at this point in the history
[RELEASE] React Native SDK v2.6.1
  • Loading branch information
marco-saia-datadog authored Jan 13, 2025
2 parents 0ff0649 + fb8cf19 commit 4ef34c6
Show file tree
Hide file tree
Showing 17 changed files with 83 additions and 37 deletions.
4 changes: 2 additions & 2 deletions example-new-architecture/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PODS:
- DatadogInternal (= 2.22.0)
- DatadogRUM (2.22.0):
- DatadogInternal (= 2.22.0)
- DatadogSDKReactNative (2.6.0):
- DatadogSDKReactNative (2.6.1):
- DatadogCore (~> 2.22.0)
- DatadogCrashReporting (~> 2.22.0)
- DatadogLogs (~> 2.22.0)
Expand Down Expand Up @@ -1403,7 +1403,7 @@ SPEC CHECKSUMS:
DatadogInternal: 2c9770cd4bb66636f2c1578f4cfbc5984e032e2d
DatadogLogs: 397a79884d4dff82cf3d1a35b3e61e9ab4b03cf4
DatadogRUM: 9f23460eb44e2bd2f2fe5e4db9d205dcdd0ef865
DatadogSDKReactNative: fbe0cf141427904f49cc5c777a3edc22759d270c
DatadogSDKReactNative: 47b9854232aebe0a1481d40e0683e1d195b4b43e
DatadogTrace: 637d592a8d98ece1794ee06ad27dbd43a4fe08d0
DatadogWebViewTracking: 2191682c6af12d86c093ceb3a20a886708bfeb4f
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
Expand Down
18 changes: 9 additions & 9 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ PODS:
- DatadogInternal (= 2.22.0)
- DatadogRUM (2.22.0):
- DatadogInternal (= 2.22.0)
- DatadogSDKReactNative (2.6.0):
- DatadogSDKReactNative (2.6.1):
- DatadogCore (~> 2.22.0)
- DatadogCrashReporting (~> 2.22.0)
- DatadogLogs (~> 2.22.0)
- DatadogRUM (~> 2.22.0)
- DatadogTrace (~> 2.22.0)
- DatadogWebViewTracking (~> 2.22.0)
- React-Core
- DatadogSDKReactNative/Tests (2.6.0):
- DatadogSDKReactNative/Tests (2.6.1):
- DatadogCore (~> 2.22.0)
- DatadogCrashReporting (~> 2.22.0)
- DatadogLogs (~> 2.22.0)
- DatadogRUM (~> 2.22.0)
- DatadogTrace (~> 2.22.0)
- DatadogWebViewTracking (~> 2.22.0)
- React-Core
- DatadogSDKReactNativeSessionReplay (2.6.0):
- DatadogSDKReactNativeSessionReplay (2.6.1):
- DatadogSDKReactNative
- DatadogSessionReplay (~> 2.22.0)
- React-Core
- DatadogSDKReactNativeSessionReplay/Tests (2.6.0):
- DatadogSDKReactNativeSessionReplay/Tests (2.6.1):
- DatadogSDKReactNative
- DatadogSessionReplay (~> 2.22.0)
- React-Core
- React-RCTText
- DatadogSDKReactNativeWebView (2.6.0):
- DatadogSDKReactNativeWebView (2.6.1):
- DatadogInternal (~> 2.22.0)
- DatadogSDKReactNative
- DatadogWebViewTracking (~> 2.22.0)
- React-Core
- DatadogSDKReactNativeWebView/Tests (2.6.0):
- DatadogSDKReactNativeWebView/Tests (2.6.1):
- DatadogInternal (~> 2.22.0)
- DatadogSDKReactNative
- DatadogWebViewTracking (~> 2.22.0)
Expand Down Expand Up @@ -1516,9 +1516,9 @@ SPEC CHECKSUMS:
DatadogInternal: 2c9770cd4bb66636f2c1578f4cfbc5984e032e2d
DatadogLogs: 397a79884d4dff82cf3d1a35b3e61e9ab4b03cf4
DatadogRUM: 9f23460eb44e2bd2f2fe5e4db9d205dcdd0ef865
DatadogSDKReactNative: d9d1a32e81642c3c426baff371f6ad9cdd909dfe
DatadogSDKReactNativeSessionReplay: bc65f7bf2d4b586b0a09621bece8558b189c7bf7
DatadogSDKReactNativeWebView: 1fb5f772c339bcb77176e8ad76abf3ad7fd3a287
DatadogSDKReactNative: 262a791c94a78e6f97eb74cd70e65f15627ed4ed
DatadogSDKReactNativeSessionReplay: 8004fca16fb1cf50b1a0657b65d40b05c3a4ad8b
DatadogSDKReactNativeWebView: 1b177b783d922c9da33e0200dbf9870635cab2b5
DatadogSessionReplay: 837b6d028534b22b717ccc465707007be5ee8fdf
DatadogTrace: 637d592a8d98ece1794ee06ad27dbd43a4fe08d0
DatadogWebViewTracking: 2191682c6af12d86c093ceb3a20a886708bfeb4f
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"npmClient": "yarn",
"version": "2.6.0",
"version": "2.6.1",
"packages": [
"packages/*"
],
Expand Down
4 changes: 2 additions & 2 deletions packages/codepush/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/mobile-react-native-code-push",
"version": "2.6.0",
"version": "2.6.1",
"description": "A client-side React Native module to interact with Appcenter Codepush and Datadog",
"keywords": [
"datadog",
Expand Down Expand Up @@ -38,7 +38,7 @@
"prepare": "rm -rf lib && yarn bob build"
},
"devDependencies": {
"@datadog/mobile-react-native": "^2.6.0",
"@datadog/mobile-react-native": "^2.6.1",
"@testing-library/react-native": "7.0.2",
"react-native-builder-bob": "0.26.0",
"react-native-code-push": "7.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
package com.datadog.reactnative

// This is automatically updated by the update-version.sh script
internal const val SDK_VERSION = "2.6.0"
internal const val SDK_VERSION = "2.6.1"
2 changes: 1 addition & 1 deletion packages/core/ios/Sources/SdkVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
import Foundation

// This is automatically updated by the update-version.sh script
let SdkVersion = "2.6.0"
let SdkVersion = "2.6.1"
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/mobile-react-native",
"version": "2.6.0",
"version": "2.6.1",
"description": "A client-side React Native module to interact with Datadog",
"keywords": [
"datadog",
Expand Down
5 changes: 0 additions & 5 deletions packages/core/release-content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ package/lib/commonjs/logs/types.js
package/lib/commonjs/logs/types.js.map
package/lib/commonjs/nativeModulesTypes.js
package/lib/commonjs/nativeModulesTypes.js.map
package/lib/commonjs/polyfills.js
package/lib/commonjs/polyfills.js.map
package/lib/commonjs/rum/DdAttributes.js
package/lib/commonjs/rum/DdAttributes.js.map
package/lib/commonjs/rum/DdRum.js
Expand Down Expand Up @@ -248,8 +246,6 @@ package/lib/module/logs/types.js
package/lib/module/logs/types.js.map
package/lib/module/nativeModulesTypes.js
package/lib/module/nativeModulesTypes.js.map
package/lib/module/polyfills.js
package/lib/module/polyfills.js.map
package/lib/module/rum/DdAttributes.js
package/lib/module/rum/DdAttributes.js.map
package/lib/module/rum/DdRum.js
Expand Down Expand Up @@ -520,7 +516,6 @@ package/src/logs/__tests__/eventMapper.test.ts
package/src/logs/eventMapper.ts
package/src/logs/types.ts
package/src/nativeModulesTypes.ts
package/src/polyfills.js
package/src/rum/DdAttributes.ts
package/src/rum/DdRum.ts
package/src/rum/__mocks__/MockTimeProvider.ts
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// generated by genversion
export const version = '2.6.0';
export const version = '2.6.1';
2 changes: 1 addition & 1 deletion packages/internal-testing-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/react-native-internal-testing-tools",
"version": "2.6.0",
"version": "2.6.1",
"description": "Internal tools for testing the Datadog React Native SDK.",
"keywords": [
"datadog",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-apollo-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/mobile-react-native-apollo-client",
"version": "2.6.0",
"version": "2.6.1",
"description": "A client-side React Native module to interact with Apollo Client and Datadog",
"keywords": [
"datadog",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/mobile-react-native-navigation",
"version": "2.6.0",
"version": "2.6.1",
"description": "A client-side React Native module to interact with Datadog",
"keywords": [
"datadog",
Expand Down Expand Up @@ -36,7 +36,7 @@
"prepare": "rm -rf lib && yarn bob build"
},
"devDependencies": {
"@datadog/mobile-react-native": "^2.6.0",
"@datadog/mobile-react-native": "^2.6.1",
"@testing-library/react-native": "7.0.2",
"react-native-builder-bob": "0.26.0",
"react-native-gesture-handler": "1.10.3",
Expand Down
53 changes: 52 additions & 1 deletion packages/react-native-session-replay/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
# Session Replay for React Native

Session Replay for React Native is not available yet.
Mobile Session Replay expands visibility into your mobile applications by visually replaying each user interaction, such as taps, swipes, and scrolls. Visually replaying user interactions on your applications makes it easier to reproduce crashes and errors, as well as understand the user journey for making UI improvements.

## Setup

**Note:** Make sure you’ve setup and initialized the [Datadog React Native SDK][1] with views instrumentation enabled.

To install with NPM, run:

```sh
npm install @datadog/mobile-react-native-session-replay
```

To install with Yarn, run:

```sh
yarn add @datadog/mobile-react-native-session-replay
```

## Enable Session Replay

To enable Session Replay, import and call the `enable` method with your configuration. Below is an example setup:

```js
import { SessionReplay } from "@datadog/mobile-react-native-session-replay";

SessionReplay.enable({
replaySampleRate: sampleRate // The percentage of sampled replays, in the range 0.0 - 100.0 (Default: 100.0).
textAndInputPrivacyLevel: TextAndInputPrivacyLevel.MASK_ALL, // Defines the way text and input (e.g text fields, checkboxes) should be masked (Default: `MASK_ALL`).
imagePrivacyLevel: ImagePrivacyLevel.MASK_ALL, // Defines the way images should be masked (Default: `MASK_ALL`).
touchPrivacyLevel: TouchPrivacyLevel.HIDE // Defines the way user touches (e.g tap) should be masked (Default: `HIDE`).
});
```

**Note:**: All configuration properties are optional and should be adjusted based on your application's needs.

## Start or stop the recording manually

By default, Session Replay starts recording automatically. However, if you prefer to manually start recording at a specific point in your application, you can use the optional `startRecordingImmediately` parameter as shown below, and later call `SessionReplay.startRecording()`. You can also use `SessionReplay.stopRecording()` to stop the recording anytime.

```js
import { SessionReplay } from "@datadog/mobile-react-native-session-replay";

SessionReplay.enable({
replaySampleRate: sampleRate,
startRecordingImmediately: false
});
// Do something
SessionReplay.startRecording();
SessionReplay.stopRecording();
```

[1]: https://www.npmjs.com/package/@datadog/mobile-react-native
4 changes: 2 additions & 2 deletions packages/react-native-session-replay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/mobile-react-native-session-replay",
"version": "2.6.0",
"version": "2.6.1",
"description": "A client-side React Native module to enable session replay with Datadog",
"keywords": [
"datadog",
Expand Down Expand Up @@ -35,7 +35,7 @@
"source": "src",
"module": "lib/module/index",
"publishConfig": {
"access": "restricted"
"access": "public"
},
"scripts": {
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-webview/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/mobile-react-native-webview",
"version": "2.6.0",
"version": "2.6.1",
"description": "A client-side React Native module to interact with react-native-webview and Datadog",
"keywords": [
"datadog",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/mobile-react-navigation",
"version": "2.6.0",
"version": "2.6.1",
"description": "A client-side React Native module to interact with Datadog",
"keywords": [
"datadog",
Expand Down Expand Up @@ -36,7 +36,7 @@
"prepare": "rm -rf lib && yarn bob build"
},
"devDependencies": {
"@datadog/mobile-react-native": "^2.6.0",
"@datadog/mobile-react-native": "^2.6.1",
"@react-navigation/native-v5": "npm:@react-navigation/[email protected]",
"@react-navigation/native-v6": "npm:@react-navigation/[email protected]",
"@react-navigation/stack-v5": "npm:@react-navigation/[email protected]",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@datadog/mobile-react-native-code-push@workspace:packages/codepush"
dependencies:
"@datadog/mobile-react-native": ^2.6.0
"@datadog/mobile-react-native": ^2.6.1
"@testing-library/react-native": 7.0.2
react-native-builder-bob: 0.26.0
react-native-code-push: 7.1.0
Expand All @@ -2607,7 +2607,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@datadog/mobile-react-native-navigation@workspace:packages/react-native-navigation"
dependencies:
"@datadog/mobile-react-native": ^2.6.0
"@datadog/mobile-react-native": ^2.6.1
"@testing-library/react-native": 7.0.2
react-native-builder-bob: 0.26.0
react-native-gesture-handler: 1.10.3
Expand Down Expand Up @@ -2648,7 +2648,7 @@ __metadata:
languageName: unknown
linkType: soft

"@datadog/mobile-react-native@^2.6.0, @datadog/mobile-react-native@workspace:packages/core":
"@datadog/mobile-react-native@^2.6.1, @datadog/mobile-react-native@workspace:packages/core":
version: 0.0.0-use.local
resolution: "@datadog/mobile-react-native@workspace:packages/core"
dependencies:
Expand All @@ -2665,7 +2665,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@datadog/mobile-react-navigation@workspace:packages/react-navigation"
dependencies:
"@datadog/mobile-react-native": ^2.6.0
"@datadog/mobile-react-native": ^2.6.1
"@react-navigation/native-v5": "npm:@react-navigation/[email protected]"
"@react-navigation/native-v6": "npm:@react-navigation/[email protected]"
"@react-navigation/stack-v5": "npm:@react-navigation/[email protected]"
Expand Down

0 comments on commit 4ef34c6

Please sign in to comment.