Hi,
I am building a library for Node.js. It's an alpha stage, no intro, docs, work in progress:
Right now I am developing on engine version 4.x, using Babel for features like destructing assignment, default parameters, ES2015 modules, etc.
Now, when Node v.6 is out, the source code could be left almost as-is, maybe with the exceptions of ES2015 modules. There are also older engines which might be still used by some.
The question is how would you target several engine versions by your lib? Should I fork it, adjust package.json, .babelrc, build and release as a new packages? That seems like a tedious job... Or I could create branches and maintain all the tiny differences and publish as same package with some prefixes in version numbers? It would break the semantic versioning I guess, and it still does not seem to be fun.
What do you say?