Update dependency moment-range to v4
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
moment-range | dependencies | major | ^3.1.1 -> ^4.0.0 |
Release Notes
rotaready/moment-range (moment-range)
v4.0.2
Added
- Added TypeScript & flow types missing options argument for
add
method - Added overloaded TypeScript declarations allowing for calling
moment.range()
without arguments
Changed
- Changed second parameter of
diff
&duration
fromrounded
toprecise
to reflect the underlying moment method - Changed the
moment.range()
&DateRange
constructor
types to allow mixedDate
&Moment
parameters - Changed the
interval
/unit
flow parameter types in theby
,diff
,duration
,reverseBy
&snapTo
to include all strings allowed by moment - Changed internal TypeScript version to
3.3.3333
- Changed internal moment version to
2.24.0
- Changed CircleCI to version
2
Fixed
- Fixed the return type of
add
andintersect
toDateRange | null
as opposed toDateRange | undefined
- Fixed the flow
toDate()
method return type from an array ofDate
s to aDate
tuple - Fixed
extendMoment()
typescript declaration to give access to moment namespace variables, e.g.moment.duration()
,moment.HTML5_FMT
v4.0.1
Fixed
- Fixed
eslint-plugin-import
pointing to non-existing file
v4.0.0
Deprecated
- Deprecated
exclusive
option ofcontains()
method in favour of newexcludeStart
andexcludeEnd
options - Deprecated
exclusive
option ofby()
method in favour of newexcludeEnd
options - Deprecated
exclusive
option ofbyRange()
method in favour of newexcludeEnd
options - Deprecated
exclusive
option ofreverseBy()
method in favour of newexcludeStart
options - Deprecated
exclusive
option ofreverseByRange()
method in favour of newexcludeStart
options - Deprecated
parseZoneRange
in favour ofrangeFromISOString
Added
- Added Typescript definitions
- Added Typescript config and tests
- Added
check
,typescript-test
npm script - Added
excludeStart
andexcludeEnd
tocontains()
method - Added
excludeEnd
toby()
method - Added
excludeEnd
tobyRange()
method - Added
excludeStart
toreverseBy()
method - Added
excludeStart
toreverseByRange()
method - Added note about supporting older browsers with links to polyfills to the README
- Added moment extension
rangeFromISOString
, changed name fromparseZoneRange
- Added
snapTo()
method - Added explicit Flow typing tests
Changed
- Changed
build
script to use webpack's production settings for a more optimized build - Changed
prepublish
script toprepublishOnly
so the task isn't run oninstall
- Changed
prepublishOnly
andversion
scripts to use&&
instead of;
- Changed
prepublish
,preversion
,version
scripts to support typescript definitions - Changed CircleCI config to also run typescript tests
- Changed
parseZoneRange
torangeFromISOString
to follow naming conventions. DeprecatedparseZoneRange
. - Changed typing tests to be grouped by type-checker (flow, typescript)
- Changed test suffix (
_test.js
→.test.js
) - Changed test file location (
./lib/
→./lib/tests/
) - Changed package json script names:
-
flow
→check:flow
-
typescript-test
→check:typescript
-
- Changed CircleCI to use Node 8.2.0
- Changed CircleCI to use Yarn
- Changed Flow config to find correct declarations
- Changed location of Flow declaration (
./declarations/
→./lib/
)
Fixed
- Fixed
intersect
not creating a new DateRange instance in all cases - Fixed Flow declaration to provide correct and stricter typings
- Fixed DateRange constructor poor performance when passed moment objects
Removed
- Removed
lib/
from package.json files - Removed a bunch of unused Flow types
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Renovate Bot