noibu-react-native 0.2.29 → 0.2.31
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/CHANGELOG.md +16 -0
- package/README.md +26 -8
- package/dist/constants.js +1 -1
- package/noibu-react-native.podspec +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes of the noibu-react-native SDK release series are documented in this file using
|
|
4
4
|
the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
|
5
5
|
|
|
6
|
+
## 0.2.31
|
|
7
|
+
- **iOS: React Native New Architecture's Fabric Rendering Engine Support**
|
|
8
|
+
|
|
9
|
+
## 0.2.30
|
|
10
|
+
- **Improve documentation for SDK configuration**
|
|
11
|
+
|
|
12
|
+
## 0.2.29
|
|
13
|
+
- **React Native use new architecture using a poll mechanism rather than the old bridge**
|
|
14
|
+
|
|
15
|
+
## 0.2.28
|
|
16
|
+
- **Fix a broken build where SDK would only work with iOS 26+**
|
|
17
|
+
|
|
18
|
+
## 0.2.27
|
|
19
|
+
- **Recycling UI/library-managed bitmaps caused Glide/Fresco to crash when returning
|
|
20
|
+
recycled bitmaps to pools. Let GC manage lifecycle; still compress+store PNG.**
|
|
21
|
+
|
|
6
22
|
## 0.2.26
|
|
7
23
|
- **iOS: iOS 26 Support**
|
|
8
24
|
|
package/README.md
CHANGED
|
@@ -69,12 +69,18 @@ That's it! First time the module is set up, it runs an init and starts listening
|
|
|
69
69
|
|
|
70
70
|
- `config` which consists of
|
|
71
71
|
- `@property domain {string}` - indicates which Noibu dashboard session recordings should go to ([learn more about domains](https://help.noibu.com/hc/en-us/articles/4846518088845-Domains-Overview))
|
|
72
|
-
- `@property [blockedElements] {string[]}` - lets you specify component ids to be ignored by SDK when collecting error information
|
|
73
|
-
- `@property [enableHttpDataCollection] {boolean}` - indicates whether SDK should collect HTTP information like headers or body from requests
|
|
74
|
-
- `@property [listOfUrlsToCollectHttpDataFrom] {string[]}` - is an
|
|
75
|
-
- `@property [httpPiiBlockingPatterns] {RegExp[]}` - allows you to specify RegEx patterns for what PII information should be removed from JSON request and response data for the value in a key value pair
|
|
76
|
-
- `@property [fuzzyFieldsToRedact] {string[]}` - allows you to specify fuzzy strings for what PII information should be removed from JSON request and response data based on the key in a key value pair
|
|
77
|
-
- `@property [exactFieldsToRedact] {string[]}` - allows you to specify strict strings for what PII information should be removed from JSON request and response data based on the key in a key value pair
|
|
72
|
+
- `@property [blockedElements] {string[]}` - defaults see below; lets you specify component ids to be ignored by SDK when collecting error information
|
|
73
|
+
- `@property [enableHttpDataCollection] {boolean}` - default `false`; indicates whether SDK should collect HTTP information like headers or body from requests
|
|
74
|
+
- `@property [listOfUrlsToCollectHttpDataFrom] {string[]}` - is an allowlist of URLs to allow HTTP data collection from, works best with `enableHttpDataCollection` enabled
|
|
75
|
+
- `@property [httpPiiBlockingPatterns] {RegExp[]}` - defaults see below; allows you to specify RegEx patterns for what PII information should be removed from JSON request and response data for the value in a key value pair
|
|
76
|
+
- `@property [fuzzyFieldsToRedact] {string[]}` - defaults see below; allows you to specify fuzzy strings for what PII information should be removed from JSON request and response data based on the key in a key value pair
|
|
77
|
+
- `@property [exactFieldsToRedact] {string[]}` - defaults see below; allows you to specify strict strings for what PII information should be removed from JSON request and response data based on the key in a key value pair
|
|
78
|
+
|
|
79
|
+
### Note on overriding properties
|
|
80
|
+
|
|
81
|
+
The properties `blockedElements`, `httpPiiBlockingPatterns`, `fuzzyFieldsToRedact`, and `exactFieldsToRedact` have
|
|
82
|
+
default values.
|
|
83
|
+
If you want to override them or add new ones, you must also pass the original values, as seen below.
|
|
78
84
|
|
|
79
85
|
Example:
|
|
80
86
|
|
|
@@ -199,11 +205,23 @@ Adds a custom attribute to the session.
|
|
|
199
205
|
- `@param {any} value` - It's value, should be a JSON.stringify-able type.
|
|
200
206
|
- `@returns {Promise<string>}` - A success message, or validation failure cause.
|
|
201
207
|
|
|
208
|
+
##### Example custom attributes we recommend
|
|
209
|
+
|
|
210
|
+
- `appVersion` The version of your application the user's session is running.
|
|
211
|
+
- `customerId` The ID of the customer the user's session is associated with.
|
|
212
|
+
- `orderId` The ID of the order associated with the user's session.
|
|
213
|
+
- `voC` The Voice of Customer survey ID the user's session is associated with.
|
|
214
|
+
|
|
215
|
+
##### Limitations on attribute name lengths
|
|
216
|
+
|
|
217
|
+
If the character length of the attribute name exceeds 50 characters, the attribute will fail to be added.
|
|
218
|
+
See example below:
|
|
219
|
+
|
|
202
220
|
```js
|
|
203
221
|
import { NoibuJS } from 'noibu-react-native';
|
|
204
222
|
|
|
205
|
-
NoibuJS.addCustomAttribute('
|
|
206
|
-
NoibuJS.addCustomAttribute('
|
|
223
|
+
NoibuJS.addCustomAttribute('stripeApiKey', 'some-api-key'); // Promise<SUCCESS>
|
|
224
|
+
NoibuJS.addCustomAttribute('system_configuration_payment_gateway_stripe_api_key_prod', 'some-api-key'); // Promise<NAME_TOO_LONG>
|
|
207
225
|
```
|
|
208
226
|
|
|
209
227
|
#### `addError(customError: Error) => string`
|
package/dist/constants.js
CHANGED
|
@@ -24,7 +24,7 @@ const CONTENT_TYPE = 'content-type';
|
|
|
24
24
|
* Gets the script id from the cookie object, returns default if cannot be found
|
|
25
25
|
*/
|
|
26
26
|
function GET_SCRIPT_ID() {
|
|
27
|
-
return "1.0.104-rn-sdk-0.2.
|
|
27
|
+
return "1.0.104-rn-sdk-0.2.31" ;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Gets the max metro recon number
|
|
@@ -26,7 +26,7 @@ Pod::Spec.new do |s|
|
|
|
26
26
|
#s.vendored_frameworks = "ios/SessionRecorder.xcframework"
|
|
27
27
|
#s.vendored_frameworks = "ios/Noibu.xcframework"
|
|
28
28
|
|
|
29
|
-
s.dependency 'NoibuSDK', '0.0.
|
|
29
|
+
s.dependency 'NoibuSDK', '0.0.10'
|
|
30
30
|
s.pod_target_xcconfig = {
|
|
31
31
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/noibu-react-native/ios/**\""
|
|
32
32
|
}
|
package/package.json
CHANGED