gemini-configparser
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -5,4 +5,10 @@ # Changelog | ||
## [1.2.0]((https://github.com/gemini-testing/configparser/compare/v1.1.1...v1.2.0)) (2022-03-03) | ||
## [1.3.0](https://github.com/gemini-testing/configparser/compare/v1.2.0...v1.3.0) (2022-03-17) | ||
### New Features | ||
* **option:** add ability to deprecate options ([7ea054ac](https://github.com/gemini-testing/configparser/commit/7ea054ac3851604f39b5d3d822a3dc5735f4dd49)) | ||
## [1.2.0](https://github.com/gemini-testing/configparser/compare/v1.1.1...v1.2.0) (2022-03-03) | ||
### Chores | ||
@@ -9,0 +15,0 @@ |
@@ -14,3 +14,4 @@ const _ = require('lodash'); | ||
validate = _.noop, | ||
map: mapFunc = _.identity | ||
map: mapFunc = _.identity, | ||
isDeprecated = false | ||
}) { | ||
@@ -36,2 +37,7 @@ return (locator, parsed) => { | ||
} | ||
if (isSetByUser && isDeprecated) { | ||
console.warn(`Using "${locator.name}" option is deprecated`); | ||
} | ||
validate(value, config, currNode, {isSetByUser}); | ||
@@ -38,0 +44,0 @@ |
{ | ||
"name": "gemini-configparser", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Config parser module for gemini", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
15126
255