@alwaysmeticulous/api 2.183.0 → 2.185.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.
@@ -130,6 +130,17 @@ export interface ScreenshotDiffResultDifference extends ScreenshotDiffResultComp
130
130
  * This can be useful for grouping together diffs that are caused by the same change.
131
131
  */
132
132
  hashOfChangedSectionsClassNames?: string;
133
+ /**
134
+ * The set of the first N class names within the DOM sections that have differences.
135
+ *
136
+ * Only present on recent replays since Dec 2024.
137
+ */
138
+ changedSectionsClassNames?: string[];
139
+ /**
140
+ * If there are too many class names we truncate the {@link changedSectionsClassNames} list,
141
+ * and this field will be true, otherwise this field will not be present.
142
+ */
143
+ isChangedSectionsClassNamesListTruncated?: true;
133
144
  }
134
145
  /**
135
146
  * The base screenshot differed from the head screenshot, but when the head
@@ -108,6 +108,13 @@ export interface IDBObjectStoreMetadata {
108
108
  objectStoreName: string;
109
109
  serialize?: (value: any) => string;
110
110
  deserialize?: (value: string) => any;
111
+ /**
112
+ * For object stores with known data structures, we can estimate the length more efficiently
113
+ * than our standard estimateLength() function by looking at specific fields. If the value
114
+ * returned by this method exceeds the recording environment's maximum IDB entry length,
115
+ * we will not attempt to serialize or record the value.
116
+ */
117
+ estimateLength?: (value: any) => number;
111
118
  }
112
119
  /**
113
120
  * Currently we only support string keys, but we may support other types in the future.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.183.0",
3
+ "version": "2.185.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": "b85826b89d4b4a89adc1eb5d2c22daa741069d63"
38
+ "gitHead": "d81b8c34c2cfe56ebcfc46ea6fd4efd699f77dc6"
39
39
  }