@platformatic/metaconfig
Advanced tools
Comparing version 0.47.6 to 1.0.0
@@ -15,2 +15,5 @@ 'use strict' | ||
handler: FromZeroEighteenToWillSee | ||
}, { | ||
range: '>= 1.0.0 < 2.0.0', | ||
handler: require('./versions/1.x.x.js') | ||
}] | ||
@@ -17,0 +20,0 @@ |
{ | ||
"name": "@platformatic/metaconfig", | ||
"version": "0.47.6", | ||
"version": "1.0.0", | ||
"main": "metaconfig.js", | ||
@@ -5,0 +5,0 @@ "description": "Manage mulitple configuration versions at the same time", |
@@ -7,2 +7,3 @@ 'use strict' | ||
const semver = require('semver') | ||
const OneSeries = require('./1.x.x.js') | ||
@@ -23,2 +24,5 @@ class FromZeroEighteenToWillSee extends SimpleZeroConfig { | ||
return | ||
} else if (semver.gte(this.version, '0.47.6')) { | ||
// the latest version is over 1.0.0, change class | ||
increment = 'major' | ||
} | ||
@@ -43,3 +47,7 @@ | ||
return new FromZeroEighteenToWillSee({ config, path: this.path, format: this.format, version }) | ||
if (increment === 'major') { | ||
return new OneSeries({ config, path: this.path, format: this.format, version }) | ||
} else { | ||
return new FromZeroEighteenToWillSee({ config, path: this.path, format: this.format, version }) | ||
} | ||
} | ||
@@ -46,0 +54,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
23159
11
311
1