Skip to content

Latest commit

 

History

History
54 lines (47 loc) · 867 Bytes

BREAKING_CHANGE_2.0.0.md

File metadata and controls

54 lines (47 loc) · 867 Bytes

Breaking changes in v2.0.0

value

Now, for sunday, value is 0.

// v1.x.x
{
  "1": [...], // Mon
  "2": [...], // Tue
  "3": [...], // Wed
  "4": [...], // Thu
  "5": [...], // Fri
  "6": [...], // Sat
  "7": [...]  // Sun <==
}

// 2.0.0
{
  "0": [...], // Sun <==
  "1": [...], // Mon
  "2": [...], // Tue
  "3": [...], // Wed
  "4": [...], // Thu
  "5": [...], // Fri
  "6": [...]  // Sat
}

locale object

Some rearrangements in WEEK_DAYS, making Sunday to be index 0.

// v1.x.x
{
  AM: 'AM',
  PM: 'PM',
  TIME_TITLE: 'TIME',
  WEEK_TITLE: 'DAY',
  WEEK_DAYS: ['MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY', 'SUNDAY'], // <==
  ...
}

// 2.0.0
{
  AM: 'AM',
  PM: 'PM',
  TIME_TITLE: 'TIME',
  WEEK_TITLE: 'DAY',
  WEEK_DAYS: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // <==
  ...
}