@alwaysmeticulous/api 2.171.0 → 2.173.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 * 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, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreWithEntries, CustomData, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
8
+ export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreWithEntries, CustomData, CustomUserEvent, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
9
9
  export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebSocketConnectionCreatedEvent, WebSocketConnectionOpenedEvent, EncodedArrayBuffer, EncodedBlob, WebSocketConnectionMessageEvent, WebSocketConnectionErrorEvent, WebSocketConnectionClosedEvent, } from "./sdk-bundle-api/sdk-to-bundle/websocket-data";
10
10
  export { Replay } from "./replay/replay.types";
11
11
  export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
@@ -32,6 +32,11 @@ export interface DivergenceConsoleError {
32
32
  numHeadAppearances: number;
33
33
  numBaseAppearances: number;
34
34
  }
35
+ /**
36
+ * Initially we only classified divergences with this indicator based on console error timeline
37
+ * entries, but as of Nov 18, 2024 we also classify divergences with this indicator based on
38
+ * unhandled-window-error and unhandled-promise-rejection timeline events.
39
+ */
35
40
  export interface ConsoleErrorDivergenceIndicator {
36
41
  type: "console-error";
37
42
  beforeErrors: DivergenceConsoleError[];
@@ -134,8 +134,17 @@ export type IDBObjectStoreWithEntries = Omit<IDBObjectStoreMetadata, "serialize"
134
134
  value: string;
135
135
  }[];
136
136
  };
137
+ export type CustomUserEvent = {
138
+ type: string;
139
+ /**
140
+ * The timestamp based on performance.now() in the browser when the event was recorded.
141
+ */
142
+ timestamp: number;
143
+ data: string;
144
+ };
137
145
  export type CustomData = {
138
146
  singletons: Record<string, string>;
139
147
  arrays: Record<string, string[]>;
148
+ events: CustomUserEvent[];
140
149
  };
141
150
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.171.0",
3
+ "version": "2.173.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": "7ee0cece08afd7373f57e808098b7a8e73172c7c"
38
+ "gitHead": "4aa9b139353dae57284d22afa2b879eebd2487f3"
39
39
  }