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

Getter/setter plural aliases missing (e.g. hour() works but hours() does not) #692

Closed
niftylettuce opened this issue Oct 11, 2019 · 8 comments · Fixed by #996
Closed

Getter/setter plural aliases missing (e.g. hour() works but hours() does not) #692

niftylettuce opened this issue Oct 11, 2019 · 8 comments · Fixed by #996
Labels

Comments

@niftylettuce
Copy link

#58 (comment)

@iamkun
Copy link
Owner

iamkun commented Oct 11, 2019

It's easy to add this as a plugin, but is it necessary?

@niftylettuce
Copy link
Author

@iamkun I definitely think so. You have plural support in diff, e.g.

it('diff -> in seconds, minutes, hours, days, weeks, months, quarters, years ', () => {
.

@iamkun
Copy link
Owner

iamkun commented Oct 11, 2019

yes, that plural for unit

@niftylettuce
Copy link
Author

I think that if you have plural and singular in some parts of this library, it should be consistent everywhere else. Having a MomentJS advertised compatible API should add this in - especially since it's so easy to add it in as you say.

@iamkun
Copy link
Owner

iamkun commented Oct 12, 2019

I'll pending this issue for more discussion. The top 1 reason is always this total bundle size. I don't want to add even 1 more byte for features that are not that important.

@niftylettuce
Copy link
Author

Any chance we could get this in as a feature? I'd gladly tip. I don't think it'd add much to make it so plural versions work, and the developer experience would greatly be in favor of this, it would also be in parity with moment, and make it easier for people to switch massive codebases over.

@iamkun
Copy link
Owner

iamkun commented Aug 7, 2020

Agree to add it as a plugin, but not in the main bundle.

@iamkun
Copy link
Owner

iamkun commented Aug 10, 2020

🎉 This issue has been resolved in version 1.8.33 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants