@adobe/spacecat-shared-utils 1.108.0 → 1.110.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,15 @@
1
+ ## [@adobe/spacecat-shared-utils-v1.110.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.109.0...@adobe/spacecat-shared-utils-v1.110.0) (2026-04-01)
2
+
3
+ ### Features
4
+
5
+ * rename ahrefs to seo in dependency mapping and test fixtures ([#1492](https://github.com/adobe/spacecat-shared/issues/1492)) ([40aa319](https://github.com/adobe/spacecat-shared/commit/40aa319d78fc1aa8ba96f83002b45eb2dbde570c))
6
+
7
+ ## [@adobe/spacecat-shared-utils-v1.109.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.108.0...@adobe/spacecat-shared-utils-v1.109.0) (2026-03-30)
8
+
9
+ ### Features
10
+
11
+ * extend library opportunity with metadata field ([#1481](https://github.com/adobe/spacecat-shared/issues/1481)) ([45fa866](https://github.com/adobe/spacecat-shared/commit/45fa8662443c1787c99eaf766af5b10df6cd63f1))
12
+
1
13
  ## [@adobe/spacecat-shared-utils-v1.108.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.107.0...@adobe/spacecat-shared-utils-v1.108.0) (2026-03-30)
2
14
 
3
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.108.0",
3
+ "version": "1.110.0",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -13,7 +13,7 @@
13
13
  /**
14
14
  * Dependency sources used by opportunities.
15
15
  * RUM — Real User Monitoring (Adobe RUM / helix-rum-js)
16
- * AHREFSImport Ahrefs import job (organic traffic, backlinks, keywords)
16
+ * SEOImport SEO import job (organic traffic, backlinks, keywords)
17
17
  * GSC — Google Search Console import
18
18
  * scraping — Page HTML scraping (spacecat-scraper / spacecat-content-scraper)
19
19
  * ExternalAPI — Third-party API call at audit run-time (Wikipedia, Reddit, YouTube)
@@ -22,7 +22,7 @@
22
22
  */
23
23
  export const DEPENDENCY_SOURCES = /** @type {const} */ ({
24
24
  RUM: 'RUM',
25
- AHREFS_IMPORT: 'AHREFSImport',
25
+ SEO_IMPORT: 'SEOImport',
26
26
  GSC: 'GSC',
27
27
  SCRAPING: 'scraping',
28
28
  EXTERNAL_API: 'ExternalAPI',
@@ -47,22 +47,22 @@ export const OPPORTUNITY_DEPENDENCY_MAP = {
47
47
  'high-organic-low-ctr': [DEPENDENCY_SOURCES.RUM, DEPENDENCY_SOURCES.GSC],
48
48
 
49
49
  // SEO — link audits
50
- 'broken-backlinks': [DEPENDENCY_SOURCES.AHREFS_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
50
+ 'broken-backlinks': [DEPENDENCY_SOURCES.SEO_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
51
51
  'broken-internal-links': [DEPENDENCY_SOURCES.RUM, DEPENDENCY_SOURCES.SCRAPING],
52
52
 
53
53
  // SEO — on-page / content
54
54
  canonical: [DEPENDENCY_SOURCES.SCRAPING],
55
55
  hreflang: [DEPENDENCY_SOURCES.SCRAPING],
56
- 'meta-tags': [DEPENDENCY_SOURCES.AHREFS_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
56
+ 'meta-tags': [DEPENDENCY_SOURCES.SEO_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
57
57
  sitemap: [DEPENDENCY_SOURCES.SCRAPING],
58
- 'sitemap-product-coverage': [DEPENDENCY_SOURCES.AHREFS_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
58
+ 'sitemap-product-coverage': [DEPENDENCY_SOURCES.SEO_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
59
59
  'structured-data': [DEPENDENCY_SOURCES.SCRAPING],
60
60
  'redirect-chains': [DEPENDENCY_SOURCES.SCRAPING],
61
61
  headings: [DEPENDENCY_SOURCES.SCRAPING],
62
62
 
63
63
  // Accessibility & content
64
64
  accessibility: [DEPENDENCY_SOURCES.SCRAPING],
65
- 'alt-text': [DEPENDENCY_SOURCES.AHREFS_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
65
+ 'alt-text': [DEPENDENCY_SOURCES.SEO_IMPORT, DEPENDENCY_SOURCES.SCRAPING],
66
66
  'no-cta-above-the-fold': [DEPENDENCY_SOURCES.RUM, DEPENDENCY_SOURCES.SCRAPING],
67
67
  readability: [DEPENDENCY_SOURCES.SCRAPING],
68
68
 
@@ -85,7 +85,7 @@ export const OPPORTUNITY_DEPENDENCY_MAP = {
85
85
  'llm-blocked': [DEPENDENCY_SOURCES.SCRAPING],
86
86
  'llm-error-pages': [DEPENDENCY_SOURCES.SCRAPING],
87
87
  faqs: [DEPENDENCY_SOURCES.SCRAPING],
88
- 'related-urls': [DEPENDENCY_SOURCES.AHREFS_IMPORT],
88
+ 'related-urls': [DEPENDENCY_SOURCES.SEO_IMPORT],
89
89
  toc: [DEPENDENCY_SOURCES.SCRAPING],
90
90
 
91
91
  // Experimentation (ESS signals — organic traffic + RUM)
@@ -46,6 +46,7 @@ const opportunity = z.object({
46
46
  name: nonEmptyString,
47
47
  description: z.string(),
48
48
  category: nonEmptyString,
49
+ metadata: z.record(z.string(), z.any()).optional(),
49
50
  });
50
51
 
51
52
  /**