leomcelroy / svg-pcb

Design PCBs in the Browser
https://www.leomcelroy.com/svg-pcb-website
GNU General Public License v3.0
68 stars 9 forks source link

Versioning #18

Open leomcelroy opened 1 year ago

leomcelroy commented 1 year ago

Should add versioning metadata to files. When version in file doesn't match the editor version we should alert the user. Version could be specified as such:

// @version: v0.0.1

At a minimum we should do a tagged release of each version. We may want to host them too.

kr15h commented 1 year ago

We probably should use semantic versioning https://semver.org/

I would go with a version string in constants.js where there would be 3 constants.

const VERSION_MAJOR = 0;
const VERSION_MINOR = 1;
const VERSION_PATCH = 1;
const VERSION_STRING = VERSION_MAJOR.toString() + "." + VERSION_MINOR.toString() + "." + VERSION_PATCH.toString();
leomcelroy commented 1 year ago

version checking added, if version mismatch we should point to a change log or release notes