@adobe/spacecat-shared-rum-api-client 2.33.0 → 2.34.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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/spacecat-shared-rum-api-client-v2.34.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.33.1...@adobe/spacecat-shared-rum-api-client-v2.34.0) (2025-07-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * **rum-client:** add log checkpoints for around every 50k bundles fetched ([#864](https://github.com/adobe/spacecat-shared/issues/864)) ([23acfc4](https://github.com/adobe/spacecat-shared/commit/23acfc430753371b6440aead135848031874cc68))
7
+
8
+ # [@adobe/spacecat-shared-rum-api-client-v2.33.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.33.0...@adobe/spacecat-shared-rum-api-client-v2.33.1) (2025-07-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#859](https://github.com/adobe/spacecat-shared/issues/859)) ([7ca9099](https://github.com/adobe/spacecat-shared/commit/7ca90994d61d07f71e580301365447b94ad07a52))
14
+
1
15
  # [@adobe/spacecat-shared-rum-api-client-v2.33.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.32.2...@adobe/spacecat-shared-rum-api-client-v2.33.0) (2025-07-16)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-rum-api-client",
3
- "version": "2.33.0",
3
+ "version": "2.34.0",
4
4
  "description": "Shared modules of the Spacecat Services - Rum API client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -46,7 +46,7 @@
46
46
  "devDependencies": {
47
47
  "chai": "5.2.1",
48
48
  "chai-as-promised": "8.0.1",
49
- "nock": "14.0.5",
49
+ "nock": "14.0.6",
50
50
  "sinon": "20.0.0",
51
51
  "sinon-chai": "4.0.0",
52
52
  "typescript": "5.8.3"
@@ -261,6 +261,7 @@ async function fetchBundles(opts, log) {
261
261
 
262
262
  let totalTransferSize = 0;
263
263
  const failedUrls = [];
264
+ let lastCheckpoint = 0;
264
265
 
265
266
  const result = [];
266
267
  for (const chunk of chunks) {
@@ -291,8 +292,15 @@ async function fetchBundles(opts, log) {
291
292
  .map(filterEvents(checkpoints))
292
293
  .forEach((bundle) => result.push(bundle));
293
294
  });
295
+
296
+ const currentCheckpoint = Math.floor(result.length / 50000);
297
+
298
+ if (currentCheckpoint > lastCheckpoint) {
299
+ log.info(`Checkpoint: Fetched ${result.length} bundles; resuming...`);
300
+ lastCheckpoint = currentCheckpoint;
301
+ }
294
302
  }
295
- log.info(`Retrieved RUM bundles. Total transfer size (in KB): ${(totalTransferSize / 1024).toFixed(2)}`);
303
+ log.info(`Retrieved all RUM bundles. Total transfer size (in KB): ${(totalTransferSize / 1024).toFixed(2)}`);
296
304
 
297
305
  // Add failedUrls to opts object for access by callers
298
306
  if (failedUrls.length > 0) {