@sentry/replay 7.36.0 → 7.37.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 CHANGED
@@ -101,33 +101,14 @@ replay.stop(); // Stop recording
101
101
 
102
102
  ## Loading Replay as a CDN Bundle
103
103
 
104
- As an alternative to the NPM package, you can load the Replay integration bundle from our CDN.
104
+ As an alternative to the NPM package, you can use Replay as a CDN bundle.
105
+ Please refer to the [Session Replay installation guide](https://docs.sentry.io/platforms/javascript/session-replay/#install) for CDN bundle instructions.
105
106
 
106
- ```js
107
- // Browser SDK bundle
108
- <script
109
- src="https://browser.sentry-cdn.com/7.31.1/bundle.tracing.replay.min.js"
110
- crossorigin="anonymous"
111
- ></script>
112
-
113
- // Add Sentry.Integrations.Replay to your Sentry.init call
114
- Sentry.init({
115
- // This sets the sample rate to be 10%. You may want this to be 100% while
116
- // in development and sample at a lower rate in production
117
- replaysSessionSampleRate: 0.1,
118
-
119
- // If the entire session is not sampled, use the below sample rate to sample
120
- // sessions when an error occurs.
121
- replaysOnErrorSampleRate: 1.0,
122
-
123
- dsn: '__DSN__',
124
- integrations: [new Sentry.Integrations.Replay()],
125
- });
126
- ```
127
-
128
- The Replay initilialization [configuration](#configuration) options are identical to the options of the NPM package.
129
-
130
- Alternatively, you can also load the Replay integration separately from other bundles:
107
+ <details>
108
+ <summary>Deprecated Replay integration bundle</summary>
109
+ Installing the replay integration as a secondary integration bundle to the SDK bundle was deprecated in favour of
110
+ complete CDN bundles that already contain the replay integration. No need to keep two bundles in sync anymore.
111
+ The `replay.(min.)js` bundle will be removed in v8 of the JS SDKs.
131
112
 
132
113
  ```html
133
114
  <script
@@ -139,9 +120,7 @@ Alternatively, you can also load the Replay integration separately from other bu
139
120
  crossorigin="anonymous"
140
121
  ></script>
141
122
  ```
142
-
143
- Please visit our [CDN bundle docs](https://docs.sentry.io/platforms/javascript/install/cdn/#available-bundles) to get the correct `integrity` checksums for your version.
144
- Note that the two bundle versions always have to match.
123
+ </details>
145
124
 
146
125
  ## Sessions
147
126