You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,15 @@
7
7
8
8
***diag:** migrates `Diagnostics` to a struct to track error state. ([b4931a5](https://github.com/matthewhartstonge/configurator/commit/b4931a54e91eaeaa8c65182ad7d936f125ec3462))
9
9
10
+
#### Changes
11
+
* Adds a number of new methods, `Len()`, `Merge(diags Diagnostics)` and `All() []Diagnostic`.
12
+
* Adds properties `HasFatal`, `HasError` and `HasWarn` to detect if a >=error level diagnostic has been recorded.
13
+
14
+
#### Migration
15
+
*`diags = append(diags, diag)` should migrate to `diags.Append(diag)`.
16
+
*`diags = append(diags, newDiags...)` should migrate to `diags.Merge(newDiags)`.
0 commit comments