@backstage/config
Advanced tools
Comparing version 0.1.6 to 0.1.7
# @backstage/config | ||
## 0.1.7 | ||
### Patch Changes | ||
- 90f25476a: Extended the `Config` interface to have an optional `subscribe` method that can be used be notified of updates to the configuration. | ||
## 0.1.6 | ||
@@ -4,0 +10,0 @@ |
@@ -14,2 +14,12 @@ declare type JsonPrimitive = number | string | boolean | null; | ||
declare type Config = { | ||
/** | ||
* Subscribes to the configuration object in order to receive a notification | ||
* whenever any value within the configuration has changed. | ||
* | ||
* This method is optional to implement, and consumers need to check if it is | ||
* implemented before invoking it. | ||
*/ | ||
subscribe?(onChange: () => void): { | ||
unsubscribe: () => void; | ||
}; | ||
has(key: string): boolean; | ||
@@ -16,0 +26,0 @@ keys(): string[]; |
{ | ||
"name": "@backstage/config", | ||
"description": "Config API used by Backstage core, backend, and CLI", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"private": false, | ||
@@ -42,4 +42,4 @@ "publishConfig": { | ||
], | ||
"gitHead": "0cbbc971f3894862bf5a248603b5b997f8052da1", | ||
"gitHead": "2f291dfd04f87a6ff4d6000204d0af7067bcda10", | ||
"module": "dist/index.esm.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
67678
578