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

Hyphenated prereleases. #6

Merged
merged 3 commits into from
Nov 20, 2012
Merged

Hyphenated prereleases. #6

merged 3 commits into from
Nov 20, 2012

Conversation

pvande
Copy link
Contributor

@pvande pvande commented Nov 20, 2012

This change adds support for an optional hyphen before a prerelease name.

This is far from ideal, but since the v1.0.0 spec has (at different times) declared both that prereleases must begin with an letter and that they must begin with a hyphen, it seems prudent to do some form of transitional change. Then again, backwards compatibility may not be a concern for this early version, so we may wish to skip the transition altogether.

In any event, this change implements the 80% case between both versions of the spec: most prerelease versions already begin with a letter, whether they contain the hyphen or not.

This check can be tightened down later if we want to implement only (/sigh) the *current*
v1.0.0 SemVer spec.
@pvande
Copy link
Contributor Author

pvande commented Nov 20, 2012

I hadn't even thought about that. I'll have it here in a moment.

@pvande pvande closed this Nov 20, 2012
@pvande pvande reopened this Nov 20, 2012
This produces output results that now properly conform to the most modern version of
the SemVer spec w.r.t. prerelease versions.
theory added a commit that referenced this pull request Nov 20, 2012
@theory theory merged commit e4583d8 into theory:master Nov 20, 2012
@theory
Copy link
Owner

theory commented Nov 20, 2012

Thank you very much. I've just pushed v0.3.0 to PGXN; it should show up on mirrors shortly.

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.

2 participants