diff --git a/PublishNote.md b/PublishNote.md index 53638cb..5eeedd4 100644 --- a/PublishNote.md +++ b/PublishNote.md @@ -1,10 +1,13 @@ -> Version 2 BETA 2 is out! +> First Release Candiate! > See complete examples [in the Version_2 branch](https://github.com/WJSoftware/wj-config/tree/Version_2/examples). -## Beta 1 +## Release Candidate 0 -1. Fixed the URL functions created by the package because they were being created without the dynamic query string -parameter. +1. Ability to condition the inclusion of a specified data source. +2. Specialized method to add per-environment configuration data sources. +3. Per-trait configuration: Assign a list of traits to the current environment, then define data sources that should +be applied depending on the existence of individual or sub-groups of traits, and let the builder decide whether or not +the data sources should be included. No more generating per-region or per-customer type configuration files. ## Beta 2 diff --git a/README.md b/README.md index 1fa7114..b792e0b 100644 --- a/README.md +++ b/README.md @@ -1171,6 +1171,6 @@ something not found at all in v1. 15. Data sources can now be conditioned to leave the final decision to runtime. 16. Environments can be defined by a set of traits and then configuration data sources can be sectioned in a per-trait basis, enabling a new and completely different approach to building configurations. -17. Dong per-environment configuration by using *conditional* style, the configuration builder can validate that there -is at least one data source per defined environment name, giving the developer the confidence that all environments -are covered. +17. By doing per-environment configuration with the *conditional* style, the configuration builder can validate that +there is at least one data source per defined environment name, giving the developer the confidence that all +environments are covered. diff --git a/src/Builder.ts b/src/Builder.ts index 3d5ad91..7be2763 100644 --- a/src/Builder.ts +++ b/src/Builder.ts @@ -126,7 +126,7 @@ export default class Builder implements IBuilder { throw new Error('Conditionals for data sources must be set immediately after adding the data source or setting its name.'); } if (this._dsDefs[this._dsDefs.length - 1].predicate) { - throw new Error('Cannot set more than one prediate (conditional) per data source, and the last-added data source already has a predicate.'); + throw new Error('Cannot set more than one predicate (conditional) per data source, and the last-added data source already has a predicate.'); } const dsDef = this._dsDefs[this._dsDefs.length - 1]; dsDef.predicate = predicate;