@adobe/spacecat-shared-content-client 1.7.30 → 1.7.32

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-content-client-v1.7.32](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.7.31...@adobe/spacecat-shared-content-client-v1.7.32) (2025-09-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove unnecessary logs to reduce Coralogix usage ([#947](https://github.com/adobe/spacecat-shared/issues/947)) ([c93fa4f](https://github.com/adobe/spacecat-shared/commit/c93fa4f69238106caa0f8150df029e4535c99e39))
7
+
8
+ # [@adobe/spacecat-shared-content-client-v1.7.31](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.7.30...@adobe/spacecat-shared-content-client-v1.7.31) (2025-09-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/spacecat-helix-content-sdk to v1.4.23 ([#970](https://github.com/adobe/spacecat-shared/issues/970)) ([d9d149a](https://github.com/adobe/spacecat-shared/commit/d9d149a359064e47d3158a4b08cb726498fe7dfe))
14
+
1
15
  # [@adobe/spacecat-shared-content-client-v1.7.30](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-content-client-v1.7.29...@adobe/spacecat-shared-content-client-v1.7.30) (2025-09-20)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-content-client",
3
- "version": "1.7.30",
3
+ "version": "1.7.32",
4
4
  "description": "Shared modules of the Spacecat Services - Content Client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@adobe/helix-universal": "5.2.3",
38
- "@adobe/spacecat-helix-content-sdk": "1.4.22",
38
+ "@adobe/spacecat-helix-content-sdk": "1.4.23",
39
39
  "@adobe/spacecat-shared-data-access": "2.45.0",
40
40
  "@adobe/spacecat-shared-utils": "1.38.0",
41
41
  "@aws-sdk/client-secrets-manager": "3.893.0",
@@ -179,7 +179,7 @@ const removeDuplicatedRedirects = (currentRedirects, newRedirects, log) => {
179
179
  redirectsSet.add(strRedirectRule);
180
180
  newRedirectsClean.push(redirectRule);
181
181
  } else {
182
- log.info(`Duplicate redirect rule detected: ${strRedirectRule}`);
182
+ log.debug(`Duplicate redirect rule detected: ${strRedirectRule}`);
183
183
  }
184
184
  });
185
185
  return newRedirectsClean;
@@ -195,7 +195,7 @@ const removeRedirectLoops = (currentRedirects, newRedirects, log) => {
195
195
  newRedirects.forEach((r) => {
196
196
  redirectsGraph.addEdge(r.from, r.to);
197
197
  if (hasCycle(redirectsGraph)) {
198
- log.info(`Redirect loop detected: ${r.from} -> ${r.to}`);
198
+ log.debug(`Redirect loop detected: ${r.from} -> ${r.to}`);
199
199
  redirectsGraph.removeEdge(r.from, r.to);
200
200
  } else {
201
201
  noCycleRedirects.push(r);
@@ -356,7 +356,7 @@ export default class ContentClient {
356
356
 
357
357
  await this.#initClient();
358
358
 
359
- this.log.info(`Getting page metadata for ${this.site.getId()} and path ${path}`);
359
+ this.log.debug(`Getting page metadata for ${this.site.getId()} and path ${path}`);
360
360
 
361
361
  const docPath = this.#resolveDocPath(path);
362
362
  const document = await this.rawClient.getDocument(docPath);
@@ -376,7 +376,7 @@ export default class ContentClient {
376
376
 
377
377
  await this.#initClient();
378
378
 
379
- this.log.info(`Updating page metadata for ${this.site.getId()} and path ${path}`);
379
+ this.log.debug(`Updating page metadata for ${this.site.getId()} and path ${path}`);
380
380
 
381
381
  const docPath = this.#resolveDocPath(path);
382
382
  const document = await this.rawClient.getDocument(docPath);
@@ -403,7 +403,7 @@ export default class ContentClient {
403
403
  const startTime = process.hrtime.bigint();
404
404
  await this.#initClient();
405
405
 
406
- this.log.info(`Getting redirects for ${this.site.getId()}`);
406
+ this.log.debug(`Getting redirects for ${this.site.getId()}`);
407
407
 
408
408
  const redirectsFile = await this.rawClient.getRedirects();
409
409
  const redirects = await redirectsFile.get();
@@ -419,19 +419,19 @@ export default class ContentClient {
419
419
 
420
420
  await this.#initClient();
421
421
 
422
- this.log.info(`Updating redirects for ${this.site.getId()}`);
422
+ this.log.debug(`Updating redirects for ${this.site.getId()}`);
423
423
 
424
424
  const redirectsFile = await this.rawClient.getRedirects();
425
425
  const currentRedirects = await redirectsFile.get();
426
426
  // validate combination of existing and new redirects
427
427
  const cleanNewRedirects = removeDuplicatedRedirects(currentRedirects, redirects, this.log);
428
428
  if (cleanNewRedirects.length === 0) {
429
- this.log.info('No valid redirects to update');
429
+ this.log.debug('No valid redirects to update');
430
430
  return;
431
431
  }
432
432
  const noCycleRedirects = removeRedirectLoops(currentRedirects, cleanNewRedirects, this.log);
433
433
  if (noCycleRedirects.length === 0) {
434
- this.log.info('No valid redirects to update');
434
+ this.log.debug('No valid redirects to update');
435
435
  return;
436
436
  }
437
437
 
@@ -448,7 +448,7 @@ export default class ContentClient {
448
448
 
449
449
  await this.#initClient();
450
450
 
451
- this.log.info(`Getting document links for ${this.site.getId()} and path ${path}`);
451
+ this.log.debug(`Getting document links for ${this.site.getId()} and path ${path}`);
452
452
 
453
453
  const docPath = this.#resolveDocPath(path);
454
454
  const document = await this.rawClient.getDocument(docPath);
@@ -467,12 +467,12 @@ export default class ContentClient {
467
467
 
468
468
  await this.#initClient();
469
469
 
470
- this.log.info(`Updating page link for ${this.site.getId()} and path ${path}`);
470
+ this.log.debug(`Updating page link for ${this.site.getId()} and path ${path}`);
471
471
 
472
472
  const docPath = this.#resolveDocPath(path);
473
473
  const document = await this.rawClient.getDocument(docPath);
474
474
 
475
- this.log.info('Updating link from', brokenLink.from, 'to', brokenLink.to);
475
+ this.log.debug('Updating link from', brokenLink.from, 'to', brokenLink.to);
476
476
  const response = await document.updateLink(brokenLink.from, brokenLink.to);
477
477
 
478
478
  if (response.status !== 200) {
@@ -489,12 +489,12 @@ export default class ContentClient {
489
489
  validateImageAltText(imageAltText);
490
490
  await this.#initClient();
491
491
 
492
- this.log.info(`Updating image alt text for ${this.site.getId()} and path ${path}`);
492
+ this.log.debug(`Updating image alt text for ${this.site.getId()} and path ${path}`);
493
493
 
494
494
  const docPath = this.#resolveDocPath(path);
495
- this.log.info(`Doc path: ${docPath}`);
495
+ this.log.debug(`Doc path: ${docPath}`);
496
496
  const document = await this.rawClient.getDocument(docPath);
497
- this.log.info(`Document: ${document}`);
497
+ this.log.debug(`Document: ${document}`);
498
498
  const response = await document.updateImageAltText(imageAltText);
499
499
  if (response?.status !== 200) {
500
500
  throw new Error(`Failed to update image alt text for path ${path}`);