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

Types and examples omit 'premajor', 'preminor' and 'prepatch' #8

Closed
narkowicz opened this issue Oct 9, 2019 · 0 comments · Fixed by #9
Closed

Types and examples omit 'premajor', 'preminor' and 'prepatch' #8

narkowicz opened this issue Oct 9, 2019 · 0 comments · Fixed by #9

Comments

@narkowicz
Copy link
Contributor

The TypeScript literal return type semverDiff.Result and examples in README, JSDoc omit the following possible values that can be returned internally by node-semver:

  • 'premajor'
  • 'preminor'
  • 'prepatch'
semverDiff('1.0.0-foo', '2.0.0');
//=> 'premajor'
semverDiff('1.0.0-foo', '1.1.0');
//=> 'preminor'
semverDiff('1.0.0-foo', '1.0.1');
//=> 'prepatch'

As in npm/node-semver#83 (comment)

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 a pull request may close this issue.

1 participant