chiprunner1995 / poshsemanticversion Goto Github PK
View Code? Open in Web Editor NEWTools for working with Semantic Version numbers.
License: MIT License
Tools for working with Semantic Version numbers.
License: MIT License
Use ETS to add Increment() script method to native SemanticVersion type.
It may be useful to support previous versions of the SemVer specification.
For example, the PowerShell gallery has basic support for adding SemVer 1.0.0 style prerelease labels to published scripts and modules.
Just as System.Version, and System.Management.Automation.SemanticVersion are immutable, so should this module's primary output type. This will also ease the transition to v5.0 classes and support for the v6.0 SemanticVersion type.
The current output objects are mutable, because they can be modified using the Increment() method. In order to work as an immutable object, Increment() should return a new object instead of changing the current object. Changing Increment() in this way would be considered a breaking change.
New-SemanticVersion with error if -InputObject is not a complete version number. This is because it validates the input before generating the SemanticVersion object. From a usability perspective, the commands should try and work with incomplete version numbers.
Because System.Version does not support pre-release identifiers, converting a pre-release SemVer to System.Version should result in the previous normal (non-pre-release) version, not the next normal version.
Right now, Step-SemanticVersion only processes the last pipeline object it receives. It should process all pipeline objects.
I tried import the module after installation on a Linux environment via an Azure build pipeline task and I received an exception with the following error 'Remove-Variable: Cannot find a variable with the name 'key'.
After narrowing it down I figured the error was coming from the last line in the module (.psm1) file.
Remove-Variable privateScriptFiles, publicScriptFiles, file, localizedMessages, key
It appears that since on line 106 of the same, the Import-LocalizedData command is invoked with an ErrorAction parameter value of 'SilentlyContinue',
Import-LocalizedData -BindingVariable localizedMessages -Filename messages -ErrorAction SilentlyContinue
If it turns out that there are no localized data present in the environment, then the 'key' variable used in the loop on line 108 is never created. As a result, when Remove-Variable is invoked, it fails to find the 'key' variable then throws an exception.
foreach ($key in $localizedMessages.Keys) { $messages[$key] = $localizedMessages[$key] }
Add comparison-operator switches (-gt, -lt; like the Where-Object cmdlet uses) to compare semantic versions. When these switches are used, a boolean value should be returned.
Use a .Net class so semver objects can be compared for precedence using IComparable interface. This will make it easier to compare objects using standard methods.
public / private directories are missing from the release.
When software is updated, it is given a new version number. Should the semver object be the same?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.