Skip to content

Commit

Permalink
chore(core): deprecated date-picker utils
Browse files Browse the repository at this point in the history
  • Loading branch information
gcornut committed Sep 28, 2023
1 parent 8bfbfa4 commit fa801f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions packages/lumx-core/src/js/date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit fa801f3

Please sign in to comment.