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

docs: add pre option for inc #570

Closed
wants to merge 2 commits into from
Closed

Conversation

mbtools
Copy link
Contributor

@mbtools mbtools commented Jun 16, 2023

Adds description of using pre with inc function with caveat that it might lead to unexpected results if version does not include a pre-release.

References

Closes #124

mbtools added 2 commits June 16, 2023 11:08
Adds description of using `pre` with `inc` function with caveat that it might lead to unexpected results if version does not include a pre-release.

## References

Closes npm#124
@mbtools mbtools marked this pull request as ready for review June 16, 2023 09:11
@mbtools mbtools requested a review from a team as a code owner June 16, 2023 09:11
@wraithgar
Copy link
Member

// This probably shouldn't be used publicly.

I think we shouldn't call attention to this or suggest using it. It's a very much internal tool.

@wraithgar wraithgar closed this Jun 16, 2023
@mbtools
Copy link
Contributor Author

mbtools commented Jun 16, 2023

Hmm. The pre option always has been and still is a public feature. Most certainly it's used as well since it provides a useful function that is otherwise not available. (I would also say Issac agreed with documenting it in the referenced issue but didn't get to it).

@wraithgar
Copy link
Member

Perhaps it needs a bigger disclaimer then, it is definitely a method that does not work how one would expect.

@mbtools
Copy link
Contributor Author

mbtools commented Jun 25, 2023

Maybe better to remove the option to call inc with pre. It doesn't work in the cli anyway. That's probably considered breaking, so something for the v8 list.

@Gornator Gornator mentioned this pull request Jul 2, 2023
1 task
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.

[DOCS] How do I get to 1.0.0-5 using increments?
2 participants