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

Support Semantic Versioning 2.0.0 #60

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Thilas
Copy link

@Thilas Thilas commented May 23, 2024

Description Of Changes

This PR brings SemVer 2 support to AU.

I also change a bit the parsing behavior to match chocolatey normalization of versions:

  • 1.2 => 1.2.0
  • 1.2.3.0 => 1.2.3

Last thing, I try to "improve" versions so that a SemVer 1 prerelease becomes SemVer 2

  • 1.2.3-rc4 => 1.2.3-rc.4

Motivation and Context

This change comes from chocolatey now supporting SemVer 2.

Testing

Pester tests has been changed accordingly to the changes mentioned above.

Operating Systems Testing

  • Windows 11
  • Windows Server 2022

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue

Supersedes #29

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.

1 participant