Ezekiel-DA / timeToWork

near realtime commute time graphs
1 stars 0 forks source link

Update moment-range to the latest version šŸš€ #57

Open greenkeeper[bot] opened 6 years ago

greenkeeper[bot] commented 6 years ago

ā˜ļø Greenkeeperā€™s updated Terms of Service will come into effect on April 6th, 2018.

Version 4.0.0 of moment-range was just published.

Dependency moment-range
Current Version 3.1.1
Type dependency

The version 4.0.0 is not covered by your current version range.

If you donā€™t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of moment-range.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you donā€™t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes v4.0.0

[4.0.0]

Deprecated

  • Deprecated exclusive option of contains() method in favour of new
    excludeStart and excludeEnd options
  • Deprecated exclusive option of by() method in favour of new excludeEnd options
  • Deprecated exclusive option of byRange() method in favour of new excludeEnd options
  • Deprecated exclusive option of reverseBy() method in favour of new excludeStart options
  • Deprecated exclusive option of reverseByRange() method in favour of new excludeStart options
  • Deprecated parseZoneRange in favour of rangeFromISOString

Added

  • Added Typescript definitions
  • Added Typescript config and tests
  • Added check, typescript-test npm script
  • Added excludeStart and excludeEnd to contains() method
  • Added excludeEnd to by() method
  • Added excludeEnd to byRange() method
  • Added excludeStart to reverseBy() method
  • Added excludeStart to reverseByRange() method
  • Added note about supporting older browsers with links to polyfills to the README
  • Added moment extension rangeFromISOString, changed name from parseZoneRange
  • 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 to prepublishOnly so the task isn't run on
    install
  • Changed prepublishOnly and version scripts to use && instead of ;
  • Changed prepublish, preversion, version scripts to support typescript definitions
  • Changed CircleCI config to also run typescript tests
  • Changed parseZoneRange to rangeFromISOString to follow naming conventions. Deprecated parseZoneRange.
  • 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
FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those donā€™t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

greenkeeper[bot] commented 5 years ago

Update to this version instead šŸš€

Release Notes for v4.0.2

[4.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 from rounded to precise to reflect the underlying moment method
  • Changed the moment.range() & DateRange constructor types to allow mixed Date & Moment parameters
  • Changed the interval/unit flow parameter types in the by, 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 and intersect to DateRange | null as opposed to DateRange | undefined
  • Fixed the flow toDate() method return type from an array of Dates to a Date tuple
  • Fixed extendMoment() typescript declaration to give access to moment namespace variables, e.g. moment.duration(), moment.HTML5_FMT