Skip to content

Commit e3cdbff

Browse files
chore: add changes and migration paths.
1 parent ec31593 commit e3cdbff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77

88
* **diag:** migrates `Diagnostics` to a struct to track error state. ([b4931a5](https://github.com/matthewhartstonge/configurator/commit/b4931a54e91eaeaa8c65182ad7d936f125ec3462))
99

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)`.
17+
* `len(diags)` should migrate to `diags.Len()`.
18+
1019
## [0.2.0](https://github.com/matthewhartstonge/configurator/compare/v0.1.0...v0.2.0) (2024-09-13)
1120

1221

0 commit comments

Comments
 (0)