@sentry/replay 10.66.0 → 10.67.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/build/npm/cjs/index.js +14 -2
- package/build/npm/cjs/index.js.map +1 -1
- package/build/npm/esm/index.js +14 -2
- package/build/npm/esm/index.js.map +1 -1
- package/build/npm/esm/package.json +1 -1
- package/build/npm/types/integration.d.ts +12 -1
- package/build/npm/types/integration.d.ts.map +1 -1
- package/build/npm/types-ts3.8/integration.d.ts +12 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.
|
|
1
|
+
{"type":"module","version":"10.67.0","sideEffects":false}
|
|
@@ -67,8 +67,19 @@ export declare class Replay implements Integration {
|
|
|
67
67
|
/**
|
|
68
68
|
* Currently, this needs to be manually called (e.g. for tests). Sentry SDK
|
|
69
69
|
* does not support a teardown
|
|
70
|
+
*
|
|
71
|
+
* @param options.flush - Whether to flush the pending replay segment when stopping.
|
|
72
|
+
* When recording in `session` mode, `stop()` flushes the buffered-but-unsent segment by
|
|
73
|
+
* default (`flush: true`), matching the previous behavior. Pass `flush: false` to stop
|
|
74
|
+
* recording without sending that pending segment — useful when a user withdraws consent
|
|
75
|
+
* and no further data should leave the browser.
|
|
76
|
+
*
|
|
77
|
+
* Note: `flush: false` only prevents the *pending* (final) segment from being sent. It does
|
|
78
|
+
* **not** retract segments that were already sent earlier during `session` recording.
|
|
70
79
|
*/
|
|
71
|
-
stop(
|
|
80
|
+
stop(options?: {
|
|
81
|
+
flush?: boolean;
|
|
82
|
+
}): Promise<void>;
|
|
72
83
|
/**
|
|
73
84
|
* If not in "session" recording mode, flush event buffer which will create a new replay.
|
|
74
85
|
* If replay is not enabled, a new session replay is started.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/integration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAA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AAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAa1C;;;;;;OAMG;IACI,KAAK,IAAI,IAAI;IAOpB;;;OAGG;IACI,cAAc,IAAI,IAAI;IAQ7B;;;;;;;;;;;;OAYG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAWzD;;;;;;;OAOG;IACI,KAAK,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAchE;;;;;OAKG;IACI,WAAW,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS;IAQ/D;;;;;;;OAOG;IACI,gBAAgB,IAAI,mBAAmB,GAAG,SAAS;IAQnD,WAAW,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAUhD;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAS3C,6BAA6B;IAC7B,OAAO,CAAC,MAAM;IAUd,6EAA6E;IAC7E,OAAO,CAAC,qCAAqC;CAkB9C"}
|
|
@@ -66,8 +66,19 @@ export declare class Replay implements Integration {
|
|
|
66
66
|
/**
|
|
67
67
|
* Currently, this needs to be manually called (e.g. for tests). Sentry SDK
|
|
68
68
|
* does not support a teardown
|
|
69
|
+
*
|
|
70
|
+
* @param options.flush - Whether to flush the pending replay segment when stopping.
|
|
71
|
+
* When recording in `session` mode, `stop()` flushes the buffered-but-unsent segment by
|
|
72
|
+
* default (`flush: true`), matching the previous behavior. Pass `flush: false` to stop
|
|
73
|
+
* recording without sending that pending segment — useful when a user withdraws consent
|
|
74
|
+
* and no further data should leave the browser.
|
|
75
|
+
*
|
|
76
|
+
* Note: `flush: false` only prevents the *pending* (final) segment from being sent. It does
|
|
77
|
+
* **not** retract segments that were already sent earlier during `session` recording.
|
|
69
78
|
*/
|
|
70
|
-
stop(
|
|
79
|
+
stop(options?: {
|
|
80
|
+
flush?: boolean;
|
|
81
|
+
}): Promise<void>;
|
|
71
82
|
/**
|
|
72
83
|
* If not in "session" recording mode, flush event buffer which will create a new replay.
|
|
73
84
|
* If replay is not enabled, a new session replay is started.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/replay",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.67.0",
|
|
4
4
|
"description": "User replays for Sentry",
|
|
5
5
|
"main": "build/npm/cjs/index.js",
|
|
6
6
|
"module": "build/npm/esm/index.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"homepage": "https://docs.sentry.io/platforms/javascript/session-replay/",
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@babel/core": "^7.29.6",
|
|
83
|
-
"@sentry-internal/replay-worker": "10.
|
|
83
|
+
"@sentry-internal/replay-worker": "10.67.0",
|
|
84
84
|
"@sentry/rrweb": "2.43.2",
|
|
85
85
|
"@sentry/rrweb-snapshot": "2.43.2",
|
|
86
86
|
"fflate": "0.8.2",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"jsdom-worker": "^0.3.0"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@sentry/browser-utils": "10.
|
|
92
|
-
"@sentry/core": "10.
|
|
91
|
+
"@sentry/browser-utils": "10.67.0",
|
|
92
|
+
"@sentry/core": "10.67.0"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=18"
|