@adobe/spacecat-shared-utils 1.96.1 → 1.96.3

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.96.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.96.2...@adobe/spacecat-shared-utils-v1.96.3) (2026-02-25)
2
+
3
+ ### Bug Fixes
4
+
5
+ * revert breaking aggregation granularity changes from v1.96.1 ([#1378](https://github.com/adobe/spacecat-shared/issues/1378)) ([fbc00f4](https://github.com/adobe/spacecat-shared/commit/fbc00f4d282bd2753e46377ac8ead2c45ab79416)), closes [#1376](https://github.com/adobe/spacecat-shared/issues/1376)
6
+
7
+ ## [@adobe/spacecat-shared-utils-v1.96.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.96.1...@adobe/spacecat-shared-utils-v1.96.2) (2026-02-25)
8
+
9
+ ### Bug Fixes
10
+
11
+ * temporal series month/week wrap-around and add year to query pipeline ([#1376](https://github.com/adobe/spacecat-shared/issues/1376)) ([b15cfd7](https://github.com/adobe/spacecat-shared/commit/b15cfd705809612c4ad69bbdc09d87c06687dcb6))
12
+
1
13
  # [@adobe/spacecat-shared-utils-v1.96.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.96.0...@adobe/spacecat-shared-utils-v1.96.1) (2026-02-13)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.96.1",
3
+ "version": "1.96.3",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -116,12 +116,12 @@ export const ISSUE_GRANULARITY_MAP = {
116
116
  'aria-roles': Granularity.PER_PAGE_PER_COMPONENT,
117
117
  'image-alt': Granularity.PER_PAGE_PER_COMPONENT,
118
118
  'link-in-text-block': Granularity.PER_PAGE_PER_COMPONENT,
119
- 'link-name': Granularity.PER_COMPONENT,
119
+ 'link-name': Granularity.PER_PAGE_PER_COMPONENT,
120
120
  'target-size': Granularity.PER_PAGE_PER_COMPONENT,
121
121
  listitem: Granularity.PER_COMPONENT,
122
122
  label: Granularity.PER_PAGE_PER_COMPONENT,
123
123
  'aria-prohibited-attr': Granularity.PER_TYPE,
124
- 'button-name': Granularity.PER_COMPONENT,
124
+ 'button-name': Granularity.PER_PAGE_PER_COMPONENT,
125
125
  'frame-title': Granularity.PER_PAGE_PER_COMPONENT,
126
126
  'aria-valid-attr-value': Granularity.PER_PAGE_PER_COMPONENT,
127
127
  'aria-allowed-attr': Granularity.PER_TYPE,
@@ -135,7 +135,7 @@ export const ISSUE_GRANULARITY_MAP = {
135
135
  'role-img-alt': Granularity.PER_PAGE_PER_COMPONENT,
136
136
  'aria-input-field-name': Granularity.PER_PAGE_PER_COMPONENT,
137
137
  'scrollable-region-focusable': Granularity.PER_PAGE_PER_COMPONENT,
138
- 'select-name': Granularity.PER_COMPONENT,
138
+ 'select-name': Granularity.PER_PAGE_PER_COMPONENT,
139
139
  };
140
140
 
141
141
  /**
@@ -225,7 +225,7 @@ export function getTemporalCondition({
225
225
  let currentYear = year;
226
226
  if (currentWeek < 1) {
227
227
  currentYear -= 1;
228
- currentWeek = has53CalendarWeeks(currentYear) ? 53 : 52;
228
+ currentWeek += has53CalendarWeeks(currentYear) ? 53 : 52;
229
229
  }
230
230
  log?.info(`[getTemporalCondition] currentWeek: ${currentWeek}, currentYear: ${currentYear}`);
231
231
  conditions.push(getWeekInfo(currentWeek, currentYear).temporalCondition);
@@ -233,7 +233,7 @@ export function getTemporalCondition({
233
233
  let currentMonth = month - i;
234
234
  let currentYear = year;
235
235
  if (currentMonth < 1) {
236
- currentMonth = 12;
236
+ currentMonth += 12;
237
237
  currentYear -= 1;
238
238
  }
239
239
  log?.info(`[getTemporalCondition] currentMonth: ${currentMonth}, currentYear: ${currentYear}`);