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

allow passing WeekdayStr to byweekday like the types suggest is possible #371

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

ekilah
Copy link
Contributor

@ekilah ekilah commented Oct 29, 2019

the types suggest passing in weekday strings for byweekday, e.g.: options.byweekday = 'MO' should be allowed, but it doesn't work. this fixes that


Thanks for contributing to rrule!

To submit a pull request, please verify that you have done the following:

  • Merged in or rebased on the latest master commit
  • Linked to an existing bug or issue describing the bug or feature you're
    addressing
  • Written one or more tests showing that your change works as advertised

}

const wd = wday as Weekday
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this cast was hiding the bug, and is now not necessary since we've handled all the other cases for the type of wday

@ekilah
Copy link
Contributor Author

ekilah commented Nov 4, 2019

@jakubroztocil for review?

@ekilah
Copy link
Contributor Author

ekilah commented Nov 6, 2019

or maybe one of @lyschoening @davidgoli - other authors listed on the README?

Copy link
Collaborator

@davidgoli davidgoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thanks for writing tests & removing unnecessary casts!

@davidgoli davidgoli merged commit a3fda31 into jkbrzt:master Nov 7, 2019
@ekilah ekilah deleted the allowPassingWeekdayStrings branch November 7, 2019 01:37
@ekilah
Copy link
Contributor Author

ekilah commented Nov 7, 2019

awesome, thanks @davidgoli . what's the cadence for releasing to npm so I can use this update in my project? not sure if you have access to the npm repo as well.

@davidgoli
Copy link
Collaborator

I do, but I'm not as active on this project as I used to be - I can put together a release in the next day or so however.

@ekilah
Copy link
Contributor Author

ekilah commented Nov 13, 2019

@davidgoli friendly ping 👀

@davidgoli
Copy link
Collaborator

@ekilah 2.6.3 published! apologies for the delay

@ekilah
Copy link
Contributor Author

ekilah commented Nov 24, 2019

awesome, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants