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(default): Remove undocumented alias of default() #469

Merged
merged 1 commit into from Aug 7, 2016

Conversation

elas7
Copy link
Member

@elas7 elas7 commented Apr 7, 2016

Remove an alias of the default() method, called 'defaults', that was added to avoid usage of
a reserved word (1bd4375)

This isn't actually needed because a method name is a fair use of reserved keywords in Javascript.

Remove an alias of the default() method, called 'defaults', that was added to avoid usage of
a reserved word (yargs@1bd4375)
This isn't actually needed because a method is a fair use of default keywords in javascript.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f2c9b8f on elas7:fix-reserved into a977ed7 on yargs:master.

@bcoe
Copy link
Member

bcoe commented Apr 7, 2016

@elas7 unfortunately, this is a breaking change and I bet a few folks have stumbled into using defaults rather than default. I'm fine with deprecating the usage, but I think this will need to wait for the next major.

@bcoe
Copy link
Member

bcoe commented Apr 10, 2016

@elas7 rather than this change, let's either document this alias or document and indicate that this alias is deprecated and will go away in v5.0.0?

@bcoe bcoe closed this Apr 10, 2016
@maxrimue maxrimue mentioned this pull request May 27, 2016
10 tasks
@maxrimue maxrimue added the 5.x label May 27, 2016
@bcoe bcoe reopened this Aug 7, 2016
@bcoe bcoe merged commit b8591b2 into yargs:master Aug 7, 2016
@bcoe
Copy link
Member

bcoe commented Aug 14, 2016

@elas7 this has landed in next along with several of your changes to yargs-parser:

npm cache clear; npm i yargs@next

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 this pull request may close these issues.

None yet

4 participants