Skip to content

Commit

Permalink
Update publish note
Browse files Browse the repository at this point in the history
-Also fixed typo in error message and README.
  • Loading branch information
webJose committed Dec 24, 2022
1 parent 4dc2280 commit ba315a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions PublishNote.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion src/Builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba315a3

Please sign in to comment.