@regressionbot/sdk 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/types.d.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,6 +38,13 @@ npm install @regressionbot/sdk
|
|
|
38
38
|
|
|
39
39
|
## Migration from 1.x
|
|
40
40
|
|
|
41
|
+
### 2.9.0
|
|
42
|
+
|
|
43
|
+
- **`approve()`'s `warning` can now be `'BASELINE_OUTDATED'`**, alongside `'NO_BASELINE'`. A
|
|
44
|
+
job-level approve returns it when some pages were skipped because another job updated their
|
|
45
|
+
baseline first; `conflictedUrls` lists them and `message` says how many advanced. The API has
|
|
46
|
+
always returned this; the type only knew `'NO_BASELINE'`.
|
|
47
|
+
|
|
41
48
|
### 2.8.0
|
|
42
49
|
|
|
43
50
|
- **`JobSummary.runSummaryPoints`** (`string[] | null`) — the run summary as a list, one
|
package/dist/types.d.ts
CHANGED
|
@@ -653,8 +653,10 @@ export interface ApproveResult {
|
|
|
653
653
|
conflictedUrls?: string[];
|
|
654
654
|
/** One page only: what approvePage or rejectPage wrote on that page's result. */
|
|
655
655
|
triageStatus?: 'APPROVED' | 'REJECTED';
|
|
656
|
-
/**
|
|
657
|
-
|
|
656
|
+
/** `'NO_BASELINE'`: there was no stored baseline to advance into — the decision was still recorded.
|
|
657
|
+
* `'BASELINE_OUTDATED'`: job-level approve skipped some pages because another job updated their
|
|
658
|
+
* baseline first; they are listed in `conflictedUrls`. */
|
|
659
|
+
warning?: 'NO_BASELINE' | 'BASELINE_OUTDATED';
|
|
658
660
|
/** Explains `warning` when present. */
|
|
659
661
|
note?: string;
|
|
660
662
|
/** One page only, and only when `warning` is `'NO_BASELINE'`: always `false`. */
|
package/package.json
CHANGED