@adobe/spacecat-shared-utils 1.87.0 → 1.87.1
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 +7 -0
- package/package.json +1 -1
- package/src/calendar-week-helper.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.87.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.87.0...@adobe/spacecat-shared-utils-v1.87.1) (2026-01-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* wrong temporalCondition when traversing year boundary ([#1267](https://github.com/adobe/spacecat-shared/issues/1267)) ([a44003e](https://github.com/adobe/spacecat-shared/commit/a44003ef683ca4477748532a1b84a4c947b7b9eb))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-utils-v1.87.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.86.0...@adobe/spacecat-shared-utils-v1.87.0) (2026-01-08)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -224,8 +224,8 @@ export function getTemporalCondition({
|
|
|
224
224
|
let currentWeek = week - i;
|
|
225
225
|
let currentYear = year;
|
|
226
226
|
if (currentWeek < 1) {
|
|
227
|
-
currentWeek = has53CalendarWeeks(currentYear) ? 53 : 52;
|
|
228
227
|
currentYear -= 1;
|
|
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);
|