@applitools/core 4.60.0 → 4.61.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/CHANGELOG.md +15 -0
- package/dist/offline/run-offline-snapshots.js +9 -26
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.61.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.60.0...js/core@4.61.0) (2026-04-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* new render target entities | AD 13251 ([#3775](https://github.com/Applitools-Dev/sdk/issues/3775)) ([18b6107](https://github.com/Applitools-Dev/sdk/commit/18b6107937ff0f18ba0a256fec1adc6d423f03dc))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/ufg-client bumped to 1.22.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* new render target entities | AD 13251 ([#3775](https://github.com/Applitools-Dev/sdk/issues/3775)) ([18b6107](https://github.com/Applitools-Dev/sdk/commit/18b6107937ff0f18ba0a256fec1adc6d423f03dc))
|
|
17
|
+
|
|
3
18
|
## [4.60.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.59.3...js/core@4.60.0) (2026-04-23)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -255,46 +255,29 @@ async function runOfflineSnapshots(options) {
|
|
|
255
255
|
async function uploadResources(targets, logger) {
|
|
256
256
|
const uploadLogger = logger.extend({ tags: ['upload-resources'] });
|
|
257
257
|
const promises = targets.map(async ({ target }) => {
|
|
258
|
-
const resourcePromises =
|
|
259
|
-
.filter(
|
|
260
|
-
.map(async (
|
|
258
|
+
const resourcePromises = target.resources.entries
|
|
259
|
+
.filter((entry) => 'hash' in entry)
|
|
260
|
+
.map(async (entry) => {
|
|
261
|
+
const hashedResource = { hash: entry.hash, hashFormat: 'sha256', contentType: entry.contentType };
|
|
261
262
|
return ufgClient.uploadResource({
|
|
262
263
|
resource: {
|
|
263
|
-
hash:
|
|
264
|
+
hash: hashedResource,
|
|
264
265
|
async getter() {
|
|
265
266
|
return {
|
|
266
267
|
id: '',
|
|
267
|
-
url:
|
|
268
|
-
value: await throttledReadFile(path_1.default.join(offlineLocationPath, 'resources',
|
|
269
|
-
contentType:
|
|
270
|
-
hash:
|
|
268
|
+
url: entry.url,
|
|
269
|
+
value: await throttledReadFile(path_1.default.join(offlineLocationPath, 'resources', entry.hash)),
|
|
270
|
+
contentType: entry.contentType,
|
|
271
|
+
hash: hashedResource,
|
|
271
272
|
};
|
|
272
273
|
},
|
|
273
274
|
},
|
|
274
275
|
logger: uploadLogger,
|
|
275
276
|
});
|
|
276
277
|
});
|
|
277
|
-
resourcePromises.push(ufgClient.uploadResource({
|
|
278
|
-
resource: {
|
|
279
|
-
hash: target.snapshot,
|
|
280
|
-
async getter() {
|
|
281
|
-
return {
|
|
282
|
-
id: '',
|
|
283
|
-
url: '',
|
|
284
|
-
value: await throttledReadFile(path_1.default.join(offlineLocationPath, 'resources', target.snapshot.hash)),
|
|
285
|
-
contentType: target.snapshot.contentType,
|
|
286
|
-
hash: target.snapshot,
|
|
287
|
-
};
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
logger: uploadLogger,
|
|
291
|
-
}));
|
|
292
278
|
return Promise.all(resourcePromises);
|
|
293
279
|
});
|
|
294
280
|
await Promise.all(promises);
|
|
295
|
-
function isHashedResource(resource) {
|
|
296
|
-
return 'hash' in resource;
|
|
297
|
-
}
|
|
298
281
|
}
|
|
299
282
|
async function runCheck(eyes, target, index, logger) {
|
|
300
283
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.61.0",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@applitools/screenshoter": "3.12.18",
|
|
72
72
|
"@applitools/snippets": "2.8.2",
|
|
73
73
|
"@applitools/socket": "1.3.12",
|
|
74
|
-
"@applitools/ufg-client": "1.
|
|
74
|
+
"@applitools/ufg-client": "1.22.0",
|
|
75
75
|
"@applitools/utils": "1.14.4",
|
|
76
76
|
"abort-controller": "3.0.0",
|
|
77
77
|
"chalk": "4.1.2",
|