@adobe/spacecat-shared-utils 1.59.0 → 1.59.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 +6 -0
- package/src/index.d.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.59.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.59.0...@adobe/spacecat-shared-utils-v1.59.1) (2025-10-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **calendar-week-helper:** Bring back ISOCalendarWeek type ([#1018](https://github.com/adobe/spacecat-shared/issues/1018)) ([1680974](https://github.com/adobe/spacecat-shared/commit/16809746b817f1076461e83bc8b7d7f5093815fb))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-utils-v1.59.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.58.1...@adobe/spacecat-shared-utils-v1.59.0) (2025-10-09)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -310,6 +310,12 @@ export function isoCalendarWeekSunday(date) {
|
|
|
310
310
|
return new Date(+monday + MILLIS_IN_WEEK - 1);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
/**
|
|
314
|
+
* @typedef {object} ISOCalendarWeek
|
|
315
|
+
* @property {number} week - The ISO calendar week number (1-53).
|
|
316
|
+
* @property {number} year - The year of the ISO calendar week.
|
|
317
|
+
*/
|
|
318
|
+
|
|
313
319
|
/**
|
|
314
320
|
* Calculates the calendar week according to ISO 8601:
|
|
315
321
|
* - Weeks start with Monday and end on Sunday.
|
package/src/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { Request, RequestOptions, Response } from '@adobe/fetch';
|
|
14
|
+
import type { ISOCalendarWeek } from './calendar-week-helper.js';
|
|
14
15
|
|
|
15
16
|
/** UTILITY FUNCTIONS */
|
|
16
17
|
export function arrayEquals<T>(a: T[], b: T[]): boolean;
|
|
@@ -265,7 +266,7 @@ export function retrievePageAuthentication(site: object, context: object): Promi
|
|
|
265
266
|
|
|
266
267
|
export function prettifyLogForwardingConfig(payload: object): object;
|
|
267
268
|
|
|
268
|
-
export function isoCalendarWeek(date: Date):
|
|
269
|
+
export function isoCalendarWeek(date: Date): ISOCalendarWeek;
|
|
269
270
|
|
|
270
271
|
export function isoCalendarWeekSunday(date: Date): Date;
|
|
271
272
|
|
|
@@ -274,4 +275,4 @@ export function isoCalendarWeekMonday(date: Date): Date;
|
|
|
274
275
|
export * as llmoConfig from './llmo-config.js';
|
|
275
276
|
export * as schemas from './schemas.js';
|
|
276
277
|
|
|
277
|
-
export { type detectLocale } from './locale-detect/index.js';
|
|
278
|
+
export { type detectLocale } from './locale-detect/index.js';
|