added 2.x api branch

This commit is contained in:
spalger
2015-09-08 17:39:28 -07:00
parent bb320d1d03
commit 8e5a57cf2a
6 changed files with 6141 additions and 12 deletions

View File

@ -19,7 +19,7 @@ Version.fromBranch = function (branch) {
var m;
// master === the highest version number
if (branch === 'master') return new Version('2.0.0');
if (branch === 'master') return new Version('3.0.0');
// n.m -> n.m.0
if (m = branch.match(/^\d+\.\d+$/)) return new Version(branch + '.0');
@ -53,4 +53,4 @@ Version.prototype.mergeOpts = function (opts) {
.reduce(_.merge, {});
};
module.exports = Version;
module.exports = Version;