-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(upgrade): Upgraded to support date-fns v2
New pipes: - dfnsAddBusinessDays - dfnsDifferenceInBusinessDays - dfnsGetUnixTime - dfnsGetWeek - dfnsGetWeekOfMonth - dfnsGetWeeksInMonth - dfnsGetDecade - dfnsGetWeekYear - dfnsLastDayOfDecade - dfnsStartOfDecade - dfnsStartOfWeekYear BREAKING CHANGE: - Library is now Angular >= v8 only. - Pipe argument validations are now done by date-fns. - Renamed dfnsAddISOYears to dfnsAddISOWeekYears. - Renamed dfnsDifferenceInCalendarISOYears to dfnsDifferenceInCalendarISOWeekYears. - Renamed dfnsDifferenceInISOYears to dfnsDifferenceInISOWeekYears. - Renamed dfnsDistanceInWords to dfnsFormatDistance. Also, notice that date arguments have been swapped to be consistent with date-fns. - Renamed dfnsDistanceInWordsStrict to dfnsFormatDistanceStrict. Also, notice that date arguments have been swapped to be consistent with date-fns. See https://date-fns.org/v2.0.1/docs/formatDistanceStrict#v2.0.0-breaking-changes for more breaking changes related to the options param. - Renamed dfnsDistanceInWordsToNow to dfnsFormatDistanceToNow. - Renamed dfnsEndOfISOYear to dfnsEndOfISOWeekYear. - Renamed dfnsGetISOYear to dfnsGetISOWeekYear - Renamed dfnsGetOverlappingDaysInRanges to dfnsGetOverlappingDaysInIntervals. Also, time interval arguments are passed differently: See https://date-fns.org/v2.0.1/docs/getOverlappingDaysInIntervals#v2.0.0-breaking-changes for more info. - Renamed dfnsLastDayOfISOYear to dfnsLastDayOfISOWeekYear. - Renamed dfnsStartOfISOYear to dfnsStartOfISOWeekYear - Renamed dfnsSubISOYears to dfnsSubISOWeekYears - In general, all date-fns changes (lots of changes) also apply to this library. See https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md and https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md#200---2019-08-20 for the whole upgrade guide.
- Loading branch information
1 parent
59dd36c
commit 2b5909a
Showing
261 changed files
with
11,568 additions
and
10,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
|
||
# You can see what browsers were selected by your queries by running: | ||
# npx browserslist | ||
|
||
> 0.5% | ||
last 2 versions | ||
Firefox ESR | ||
not dead | ||
not IE 9-11 # For IE 9-11 support, remove 'not'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.