-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): can match notices against Node version (#128)
This allows publishing notices that match against the version of Node we're executing on. Implemented by generalizing the code that matches against CLI version and bootstrap versions: it can now match against arbitrary named components. Also implement more complex matching rules: currently we match the pattern if one of them matches: ```ts // Matches if one of A, B or C matches components: [A, B, C] ``` Instead, generalize to Disjunctive Normal Form and treat the current case as a special case of DNF where every conjunction has one element: ```ts // The above gets interpreted as components: [[A], [B], [C]] // More complex rules: A and B together, or C components: [[A, B], [C]] ``` This way we can write rules to say that "component X on Node version Y" should get a notice. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
- Loading branch information
Showing
4 changed files
with
312 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.