Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: return empty array from nextDates when called without argument #519

Merged
merged 4 commits into from
Aug 15, 2023

Conversation

oxidia
Copy link
Contributor

@oxidia oxidia commented Aug 14, 2020

Proposed changes

  • Make sure that nextDates return an array(as described in the README.md) even if it's called without an argument(in this case an empty array)
  • Add nextDate description in the README.md

Current behaviour

  • nextDates return a moment object, if it's called without an argument

Details

  • This change could break someone's code!!
  • If this PR is not accepted, I will make another PR just to update the description of the behaviour of nextDates function in the READM.md

@codecov
Copy link

codecov bot commented Aug 14, 2020

Codecov Report

❗ No coverage uploaded for pull request base (beta@fb42a48). Click here to learn what that means.
Patch has no changes to coverable lines.

❗ Current head 4d2932f differs from pull request most recent head dfb89ae. Consider uploading reports for the commit dfb89ae to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             beta     #519   +/-   ##
=======================================
  Coverage        ?   92.35%           
=======================================
  Files           ?        3           
  Lines           ?      353           
  Branches        ?      103           
=======================================
  Hits            ?      326           
  Misses          ?       26           
  Partials        ?        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sheerlox sheerlox self-assigned this Aug 15, 2023
@sheerlox sheerlox marked this pull request as draft August 15, 2023 16:27
@sheerlox sheerlox added the type:bug Bug reports and bug fixes label Aug 15, 2023
@sheerlox sheerlox changed the title Fix next dates fix!: return array from nextDates when called without argument Aug 15, 2023
@sheerlox sheerlox changed the base branch from main to beta August 15, 2023 16:45
@sheerlox sheerlox marked this pull request as ready for review August 15, 2023 17:14
@sheerlox sheerlox changed the title fix!: return array from nextDates when called without argument fix!: return empty array from nextDates when called without argument Aug 15, 2023
@sheerlox sheerlox merged commit e65c3dc into kelektiv:beta Aug 15, 2023
11 checks passed
@sheerlox
Copy link
Collaborator

sheerlox commented Aug 15, 2023

Thank you for your work on this @oxidia! 🚀

ncb000gt pushed a commit that referenced this pull request Aug 15, 2023
## [3.0.0-beta.3](v3.0.0-beta.2...v3.0.0-beta.3) (2023-08-15)

### ⚠ Breaking changes

* return empty array from nextDates when called without argument (#519)

### 🐛 Bug Fixes

* return empty array from nextDates when called without argument ([#519](#519)) ([e65c3dc](e65c3dc))
@ncb000gt
Copy link
Member

🎉 This PR is included in version 3.0.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sheerlox sheerlox mentioned this pull request Sep 29, 2023
ncb000gt pushed a commit that referenced this pull request Sep 30, 2023
## [3.0.0](v2.4.4...v3.0.0) (2023-09-30)

### ⚠ Breaking changes

* `utcOffset` parameter no longer accepts a string
* `utcOffset` values between -60 and 60 are no longer
treated as hours
* providing both `timeZone` and `utcOffset` parameters
now throws an error
* removed `cron.job()` method in favor of `new CronJob(...args)` /
`CronJob.from(argsObject)`
* removed `cron.time()` method in favor of `new CronTime()`
* `CronJob`: constructor no longer accepts an object as its first and
only params. Use `CronJob.from(argsObject)` instead.
* `CronJob`: callbacks are now called in the order they were registered
* return empty array from nextDates when called without argument (#519)
* UNIX standard alignments (#667)

### ✨ Features

* expose useful types ([737b344](737b344))
* rework utcOffset parameter ([#699](#699)) ([671e933](671e933))
* UNIX standard alignments ([#667](#667)) ([ff615f1](ff615f1))

### 🐛 Bug Fixes

* return empty array from nextDates when called without argument ([#519](#519)) ([c2891ba](c2891ba))

### 📦 Code Refactoring

* migrate to TypeScript ([#694](#694)) ([2d77894](2d77894))

### 📚 Documentation

* **readme:** remove outdated informations ([#695](#695)) ([b5ceaf1](b5ceaf1))

### 🚨 Tests

* update new test for cron standard alignments ([4a406c1](4a406c1))

### ♻️ Chores

* improve GitHub community standards ([#698](#698)) ([6bdef77](6bdef77))
* update contributors list ([dab3d69](dab3d69))

### 💎 Styles

* fix linting issues ([47e665f](47e665f))
@sheerlox sheerlox removed their assignment Oct 23, 2023
@sheerlox sheerlox mentioned this pull request Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released type:bug Bug reports and bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants