@alwaysmeticulous/api 2.89.0 → 2.97.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/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCas
5
5
  export { TestRunEnvironment, TestRunGitHubContext, TestRunGitHubPullRequestContext, TestRunGitHubPushContext, TestRunGitHubWorkflowDispatchContext, TestRunGitLabContext, TestRunGitLabMergeRequestContext, TestRunGitLabPushContext, } from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
6
6
  export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
7
7
  export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log";
8
- export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, LocalStorageEntry, EarlyRequest, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
8
+ export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
9
9
  export { Replay } from "./replay/replay.types";
10
10
  export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
11
11
  export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, NoStubbing, CustomStubbing, RequestFilter, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
@@ -60,6 +60,10 @@ export interface ScreenshotDiffResultCompared {
60
60
  headScreenshotFile: string;
61
61
  /** Relative path to the replay archive */
62
62
  baseScreenshotFile: string;
63
+ /** Relative path to the replay archive */
64
+ diffThumbnailFile?: string;
65
+ /** Relative path to the replay archive */
66
+ diffFullFile?: string;
63
67
  width: number;
64
68
  height: number;
65
69
  mismatchPixels: number;
@@ -12,9 +12,18 @@ export interface SessionData {
12
12
  };
13
13
  };
14
14
  };
15
+ /**
16
+ * Note: the name 'randomEvents' is a misnomer: it should be named 'storage'.
17
+ */
15
18
  randomEvents: {
16
19
  localStorage: {
17
- state: LocalStorageEntry[];
20
+ state: StorageEntry[];
21
+ };
22
+ /**
23
+ * Only present on recordings since ~Dec 2023
24
+ */
25
+ sessionStorage?: {
26
+ state: StorageEntry[];
18
27
  };
19
28
  };
20
29
  cookies: Cookie[];
@@ -56,7 +65,7 @@ export interface UrlHistoryEvent {
56
65
  */
57
66
  urlPattern?: string;
58
67
  }
59
- export type LocalStorageEntry = {
68
+ export type StorageEntry = {
60
69
  key: string;
61
70
  value: string;
62
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.89.0",
3
+ "version": "2.97.0",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
37
37
  },
38
- "gitHead": "ee8222d6956a9f2c7e1312476899443fd5e3450c"
38
+ "gitHead": "abad28f3f0bb91106fcd6829408a2970e0882750"
39
39
  }