node-semver icon indicating copy to clipboard operation
node-semver copied to clipboard

export new RELEASE_TYPES constant

Open hcharley opened this issue 5 years ago • 5 comments

This will help library consumers better integrate semver into their apps.

Possible usecases of consuming this constant:

  • Automatically show a dropdown of available release types that conform to the semver spec
  • Validate user inputs where a release type is expected

hcharley avatar Jul 12 '19 22:07 hcharley

I am happy to add this to the docs if this idea is approved by the maintainers.

hcharley avatar Jul 12 '19 22:07 hcharley

Coverage Status

Coverage remained the same at 100.0% when pulling 6bc60b71583d53529d5e16eec0b7c13e961c5360 on charlex:patch-1 into 9f5f615165b3a0b906467f1edeebb0f5de379a9e on npm:master.

coveralls avatar Jul 12 '19 22:07 coveralls

Coverage Status

Coverage remained the same at 100.0% when pulling 6bc60b71583d53529d5e16eec0b7c13e961c5360 on charlex:patch-1 into 9f5f615165b3a0b906467f1edeebb0f5de379a9e on npm:master.

coveralls avatar Jul 12 '19 22:07 coveralls

Yes, please add to the docs, and add at least a basic test. (Just verify it exists and is what you expect; I realize it's kinda silly for such a trivial feature, but it prevents us from accidentally breaking it in the future and not noticing.)

isaacs avatar Nov 06 '19 00:11 isaacs

@isaacs I added a section in the README, but it looks like this project as undergone a big change in its structure, and I'm not able to resolve the conflicts right now.

hcharley avatar Dec 24 '19 21:12 hcharley

Replaced by #530

wraithgar avatar Apr 04 '23 20:04 wraithgar