@backstage/config
Advanced tools
Comparing version 1.0.6-next.0 to 1.0.6
# @backstage/config | ||
## 1.0.6 | ||
### Patch Changes | ||
- ba2d69ee17: Adds the ability to coerce values to their boolean representatives. | ||
Values such as `"true"` `1` `on` and `y` will become `true` when using `getBoolean` and the opposites `false`. | ||
This happens particularly when such parameters are used with environmental substitution as environment variables are always strings. | ||
- Updated dependencies | ||
- @backstage/types@1.0.2 | ||
## 1.0.6-next.0 | ||
@@ -4,0 +14,0 @@ |
@@ -51,2 +51,5 @@ 'use strict'; | ||
} | ||
/** | ||
* Instantiates the config reader from a list of application config objects. | ||
*/ | ||
static fromConfigs(configs) { | ||
@@ -72,2 +75,3 @@ if (configs.length === 0) { | ||
} | ||
/** {@inheritdoc Config.has} */ | ||
has(key) { | ||
@@ -81,2 +85,3 @@ var _a, _b; | ||
} | ||
/** {@inheritdoc Config.keys} */ | ||
keys() { | ||
@@ -88,2 +93,3 @@ var _a, _b; | ||
} | ||
/** {@inheritdoc Config.get} */ | ||
get(key) { | ||
@@ -96,2 +102,3 @@ const value = this.getOptional(key); | ||
} | ||
/** {@inheritdoc Config.getOptional} */ | ||
getOptional(key) { | ||
@@ -124,2 +131,3 @@ var _a, _b; | ||
} | ||
/** {@inheritdoc Config.getConfig} */ | ||
getConfig(key) { | ||
@@ -132,2 +140,3 @@ const value = this.getOptionalConfig(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalConfig} */ | ||
getOptionalConfig(key) { | ||
@@ -147,2 +156,3 @@ var _a; | ||
} | ||
/** {@inheritdoc Config.getConfigArray} */ | ||
getConfigArray(key) { | ||
@@ -155,2 +165,3 @@ const value = this.getOptionalConfigArray(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalConfigArray} */ | ||
getOptionalConfigArray(key) { | ||
@@ -183,2 +194,3 @@ var _a; | ||
} | ||
/** {@inheritdoc Config.getNumber} */ | ||
getNumber(key) { | ||
@@ -191,2 +203,3 @@ const value = this.getOptionalNumber(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalNumber} */ | ||
getOptionalNumber(key) { | ||
@@ -208,2 +221,3 @@ const value = this.readConfigValue( | ||
} | ||
/** {@inheritdoc Config.getBoolean} */ | ||
getBoolean(key) { | ||
@@ -216,2 +230,3 @@ const value = this.getOptionalBoolean(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalBoolean} */ | ||
getOptionalBoolean(key) { | ||
@@ -234,2 +249,3 @@ const value = this.readConfigValue( | ||
} | ||
/** {@inheritdoc Config.getString} */ | ||
getString(key) { | ||
@@ -242,2 +258,3 @@ const value = this.getOptionalString(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalString} */ | ||
getOptionalString(key) { | ||
@@ -249,2 +266,3 @@ return this.readConfigValue( | ||
} | ||
/** {@inheritdoc Config.getStringArray} */ | ||
getStringArray(key) { | ||
@@ -257,2 +275,3 @@ const value = this.getOptionalStringArray(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalStringArray} */ | ||
getOptionalStringArray(key) { | ||
@@ -259,0 +278,0 @@ return this.readConfigValue(key, (values) => { |
@@ -42,2 +42,5 @@ import cloneDeep from 'lodash/cloneDeep'; | ||
} | ||
/** | ||
* Instantiates the config reader from a list of application config objects. | ||
*/ | ||
static fromConfigs(configs) { | ||
@@ -63,2 +66,3 @@ if (configs.length === 0) { | ||
} | ||
/** {@inheritdoc Config.has} */ | ||
has(key) { | ||
@@ -72,2 +76,3 @@ var _a, _b; | ||
} | ||
/** {@inheritdoc Config.keys} */ | ||
keys() { | ||
@@ -79,2 +84,3 @@ var _a, _b; | ||
} | ||
/** {@inheritdoc Config.get} */ | ||
get(key) { | ||
@@ -87,2 +93,3 @@ const value = this.getOptional(key); | ||
} | ||
/** {@inheritdoc Config.getOptional} */ | ||
getOptional(key) { | ||
@@ -115,2 +122,3 @@ var _a, _b; | ||
} | ||
/** {@inheritdoc Config.getConfig} */ | ||
getConfig(key) { | ||
@@ -123,2 +131,3 @@ const value = this.getOptionalConfig(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalConfig} */ | ||
getOptionalConfig(key) { | ||
@@ -138,2 +147,3 @@ var _a; | ||
} | ||
/** {@inheritdoc Config.getConfigArray} */ | ||
getConfigArray(key) { | ||
@@ -146,2 +156,3 @@ const value = this.getOptionalConfigArray(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalConfigArray} */ | ||
getOptionalConfigArray(key) { | ||
@@ -174,2 +185,3 @@ var _a; | ||
} | ||
/** {@inheritdoc Config.getNumber} */ | ||
getNumber(key) { | ||
@@ -182,2 +194,3 @@ const value = this.getOptionalNumber(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalNumber} */ | ||
getOptionalNumber(key) { | ||
@@ -199,2 +212,3 @@ const value = this.readConfigValue( | ||
} | ||
/** {@inheritdoc Config.getBoolean} */ | ||
getBoolean(key) { | ||
@@ -207,2 +221,3 @@ const value = this.getOptionalBoolean(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalBoolean} */ | ||
getOptionalBoolean(key) { | ||
@@ -225,2 +240,3 @@ const value = this.readConfigValue( | ||
} | ||
/** {@inheritdoc Config.getString} */ | ||
getString(key) { | ||
@@ -233,2 +249,3 @@ const value = this.getOptionalString(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalString} */ | ||
getOptionalString(key) { | ||
@@ -240,2 +257,3 @@ return this.readConfigValue( | ||
} | ||
/** {@inheritdoc Config.getStringArray} */ | ||
getStringArray(key) { | ||
@@ -248,2 +266,3 @@ const value = this.getOptionalStringArray(key); | ||
} | ||
/** {@inheritdoc Config.getOptionalStringArray} */ | ||
getOptionalStringArray(key) { | ||
@@ -250,0 +269,0 @@ return this.readConfigValue(key, (values) => { |
{ | ||
"name": "@backstage/config", | ||
"description": "Config API used by Backstage core, backend, and CLI", | ||
"version": "1.0.6-next.0", | ||
"version": "1.0.6", | ||
"publishConfig": { | ||
@@ -39,4 +39,4 @@ "access": "public", | ||
"devDependencies": { | ||
"@backstage/cli": "^0.22.1-next.1", | ||
"@backstage/test-utils": "^1.2.4-next.0", | ||
"@backstage/cli": "^0.22.1", | ||
"@backstage/test-utils": "^1.2.4", | ||
"@types/node": "^16.0.0" | ||
@@ -43,0 +43,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
89629
155720
875
0
5