pickware / scs-commander

A CLI tool for managing plugins in the Shopware Community Store.
MIT License
13 stars 2 forks source link

Add compatibility for Shopware's new 4 digit version number #34

Closed niklasbuechner closed 4 years ago

niklasbuechner commented 4 years ago

Summary

Shopware just changed their version schema to a semantic versioning prefixed by 6. for the generation. This leads the scs-commander to crash when uploading a new version of any (Shopware 5 or 6) plugin.

Unfortunately, the semver library is not compatible with 4 digit version numbers (see also: https://github.com/semver/semver/issues/213#issuecomment-642236371). Furthermore, I could not find a high quality library to replace semver. As a result, I adjusted the compatibility calculation in this pr so that the commander is compatible with the new versioning schema.