Skip to content

Commit fa801f3

Browse files
committed
chore(core): deprecated date-picker utils
1 parent 8bfbfa4 commit fa801f3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- `@lumx/react` no long depend on `moment` or `moment-range` to generate the date picker.
13+
- Deprecated `@lumx/core/js/date-picker` functions that **will be removed in the next major version** along with `moment` and `moment-range`.
1314

1415
## [3.5.3][] - 2023-08-30
1516

packages/lumx-core/src/js/date-picker.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ interface AnnotatedDate {
1616
/**
1717
* Get the list of days in a week based on locale.
1818
*
19+
* @deprecated will be removed in next major version along with the removal of moment (no replacement planned)
20+
*
1921
* @param locale The locale using to generate the order of days in a week.
2022
* @return The list of days in a week based on locale.
2123
*/
@@ -26,6 +28,8 @@ export function getWeekDays(locale: string): Moment[] {
2628
/**
2729
* Get month calendar based on locale and start date.
2830
*
31+
* @deprecated will be removed in next major version along with the removal of moment (no replacement planned)
32+
*
2933
* @param locale The locale using to generate the order of days in a week.
3034
* @param selectedMonth The selected month.
3135
* @return The list of days in a week based on locale.
@@ -44,6 +48,8 @@ export function getMonthCalendar(locale: string, selectedMonth?: Moment): Moment
4448
* Get month calendar based on locale and start date.
4549
* Each day is annotated to know if they are displayed and/or clickable.
4650
*
51+
* @deprecated will be removed in next major version along with the removal of moment (no replacement planned)
52+
*
4753
* @param locale The locale using to generate the order of days in a week.
4854
* @param minDate The first selectable date.
4955
* @param maxDate The last selectable date.

0 commit comments

Comments
 (0)