@adobe/spacecat-shared-utils 1.96.1 → 1.96.2
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 +6 -0
- package/package.json +1 -1
- package/src/calendar-week-helper.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@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)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* 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))
|
|
6
|
+
|
|
1
7
|
# [@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
8
|
|
|
3
9
|
|
package/package.json
CHANGED
|
@@ -225,7 +225,7 @@ export function getTemporalCondition({
|
|
|
225
225
|
let currentYear = year;
|
|
226
226
|
if (currentWeek < 1) {
|
|
227
227
|
currentYear -= 1;
|
|
228
|
-
currentWeek
|
|
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
|
|
236
|
+
currentMonth += 12;
|
|
237
237
|
currentYear -= 1;
|
|
238
238
|
}
|
|
239
239
|
log?.info(`[getTemporalCondition] currentMonth: ${currentMonth}, currentYear: ${currentYear}`);
|