@alwaysmeticulous/sdk-bundles-api 2.294.0 → 2.297.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.
|
@@ -218,6 +218,49 @@ export interface MeticulousPublicReplayApi {
|
|
|
218
218
|
*/
|
|
219
219
|
measureUserAgentSpecificMemory?: () => Promise<any>;
|
|
220
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* Schedules a callback using the real wall-clock timer (not virtual time).
|
|
223
|
+
* Uses the native setTimeout() that was captured before stubbing.
|
|
224
|
+
*
|
|
225
|
+
* Callbacks run on real time and are not synchronized with Meticulous's
|
|
226
|
+
* screenshot points (which advance on virtual time). Scheduling work here
|
|
227
|
+
* from application logic can fire at unpredictable moments relative to
|
|
228
|
+
* screenshots and cause nondeterministic visual diffs.
|
|
229
|
+
*
|
|
230
|
+
* Intended for custom snapshot listeners and other Meticulous hooks (e.g.
|
|
231
|
+
* {@link addOnBeforeScreenshotListener}), not as a general timer replacement
|
|
232
|
+
* during replay.
|
|
233
|
+
*
|
|
234
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout
|
|
235
|
+
*/
|
|
236
|
+
setTimeout: typeof window.setTimeout;
|
|
237
|
+
/**
|
|
238
|
+
* Schedules a repeating callback using the real wall-clock timer (not virtual
|
|
239
|
+
* time). Uses the native setInterval() that was captured before stubbing.
|
|
240
|
+
*
|
|
241
|
+
* Like {@link setTimeout}, callbacks are not synchronized with screenshot
|
|
242
|
+
* points and can cause nondeterministic visual diffs if used from application
|
|
243
|
+
* logic. Prefer Meticulous hooks (e.g.
|
|
244
|
+
* {@link addOnBeforeScreenshotListener}) over app-level intervals during
|
|
245
|
+
* replay.
|
|
246
|
+
*
|
|
247
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval
|
|
248
|
+
*/
|
|
249
|
+
setInterval: typeof window.setInterval;
|
|
250
|
+
/**
|
|
251
|
+
* Cancels a timeout scheduled with {@link setTimeout}.
|
|
252
|
+
* Uses the native clearTimeout() that was captured before stubbing.
|
|
253
|
+
*
|
|
254
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/clearTimeout
|
|
255
|
+
*/
|
|
256
|
+
clearTimeout: typeof window.clearTimeout;
|
|
257
|
+
/**
|
|
258
|
+
* Cancels an interval scheduled with {@link setInterval}.
|
|
259
|
+
* Uses the native clearInterval() that was captured before stubbing.
|
|
260
|
+
*
|
|
261
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/clearInterval
|
|
262
|
+
*/
|
|
263
|
+
clearInterval: typeof window.clearInterval;
|
|
221
264
|
/**
|
|
222
265
|
* The native PerformanceObserver API for monitoring real performance metrics.
|
|
223
266
|
* Use this to observe actual performance entries (e.g., navigation,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/sdk-bundles-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.297.0",
|
|
4
4
|
"description": "Meticulous common types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@alwaysmeticulous/api": "2.
|
|
12
|
+
"@alwaysmeticulous/api": "2.297.0"
|
|
13
13
|
},
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "The Meticulous Team",
|