diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bd646021..80fa0fc65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - `@lumx/react` no long depend on `moment` or `moment-range` to generate the date picker. +- Deprecated `@lumx/core/js/date-picker` functions that **will be removed in the next major version** along with `moment` and `moment-range`. ## [3.5.3][] - 2023-08-30 diff --git a/packages/lumx-core/src/js/date-picker.ts b/packages/lumx-core/src/js/date-picker.ts index 2f41e6055..1d223d34d 100644 --- a/packages/lumx-core/src/js/date-picker.ts +++ b/packages/lumx-core/src/js/date-picker.ts @@ -16,6 +16,8 @@ interface AnnotatedDate { /** * Get the list of days in a week based on locale. * + * @deprecated will be removed in next major version along with the removal of moment (no replacement planned) + * * @param locale The locale using to generate the order of days in a week. * @return The list of days in a week based on locale. */ @@ -26,6 +28,8 @@ export function getWeekDays(locale: string): Moment[] { /** * Get month calendar based on locale and start date. * + * @deprecated will be removed in next major version along with the removal of moment (no replacement planned) + * * @param locale The locale using to generate the order of days in a week. * @param selectedMonth The selected month. * @return The list of days in a week based on locale. @@ -44,6 +48,8 @@ export function getMonthCalendar(locale: string, selectedMonth?: Moment): Moment * Get month calendar based on locale and start date. * Each day is annotated to know if they are displayed and/or clickable. * + * @deprecated will be removed in next major version along with the removal of moment (no replacement planned) + * * @param locale The locale using to generate the order of days in a week. * @param minDate The first selectable date. * @param maxDate The last selectable date.