@coralogix/browser 2.2.0 β†’ 2.3.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/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
+ ## 2.3.0 (2025-04-01)
2
+
3
+ ### πŸš€ Features
4
+
5
+ - Lazy load session recorder<br>
6
+ To improve initial load time and reduce JavaScript bundle size, the session recorder is dynamically imported only when it’s needed (e.g., when session recording is enabled by config and sampling).
7
+
1
8
  ## 2.2.0 (2025-03-18)
2
9
 
3
10
  ### πŸš€ Features
4
11
 
5
- - Update Coralogix configuration and improve performance observer handling
12
+ - Improved Performance Observer compatibility.
6
13
 
7
14
  ## 2.1.0 (2025-02-18)
8
15
 
package/README.md CHANGED
@@ -303,6 +303,19 @@ Example:
303
303
  | .rr-ignore | An element with the class name .rr-ignore will not record its input events |
304
304
  | .rr-mask | All text of elements and their children will be masked. |
305
305
 
306
+ If you want to mask all of your inputs and texts in the session, you can use the following configuration:
307
+
308
+ ```javascript
309
+ CoralogixRum.init({
310
+ // ...
311
+ sessionRecordingConfig: {
312
+ // ...
313
+ maskAllInputs: true,
314
+ maskTextSelector: '*',
315
+ },
316
+ });
317
+ ```
318
+
306
319
  #### Performance
307
320
 
308
321
  Session Recording works by recording incremental DOM changes that occur in your web application.
@@ -818,18 +831,14 @@ You can choose your desired version.
818
831
  https://cdn.rum-ingress-coralogix.com/coralogix/browser/[version]/coralogix-browser-sdk.js \
819
832
  Replace [version] with a version from [Releases page](https://www.npmjs.com/package/@coralogix/browser?activeTab=versions).
820
833
 
821
- #### Latest Version
822
-
823
- > _**Note: CDN latest has been deprecated, please use an explicit version instead.**_
824
-
825
- https://cdn.rum-ingress-coralogix.com/coralogix/browser/latest/coralogix-browser-sdk.js
834
+ > _**Note: CDN latest has no longer maintained, please use an explicit version instead.**_
826
835
 
827
836
  ### Add the CDN script to your application
828
837
 
829
838
  ```javascript
830
839
  <head>
831
840
  ...
832
- <script src="https://cdn.rum-ingress-coralogix.com/coralogix/browser/1.5.0/coralogix-browser-sdk.js"></script>
841
+ <script src="https://cdn.rum-ingress-coralogix.com/coralogix/browser/[version]/coralogix-browser-sdk.js"></script>
833
842
  </head>
834
843
  ```
835
844
 
@@ -849,7 +858,7 @@ window.CoralogixRum.init(...);
849
858
  // In case of warning from TSC
850
859
  declare global {
851
860
  interface Window {
852
- CoralogixRum:any;
861
+ CoralogixRum: CoralogixOtelWebType;
853
862
  }
854
863
  }
855
864
  ```