@regressionbot/sdk 2.2.0 → 2.2.1
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 +9 -0
- package/dist/index.js +1 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,6 +74,15 @@ the builder, intent-aware verdicts, environment gates, baseline policies, and
|
|
|
74
74
|
scheduling. `scheduleHourUtc` needs API 2.7.0 or later — on an older API the
|
|
75
75
|
field is accepted and ignored, and the schedule stays anchored to its first run.
|
|
76
76
|
|
|
77
|
+
### 2.2.1
|
|
78
|
+
|
|
79
|
+
- **A builder run with no `check()` or `scan()` no longer invents a home path.** It
|
|
80
|
+
used to send `paths: [{ path: '/', label: 'Home' }]`, which the API compared to the
|
|
81
|
+
saved project and rejected whenever the project stored anything other than exactly
|
|
82
|
+
`/`. Now `paths` is omitted, and the API fills it from the saved project. Needs an
|
|
83
|
+
API that fills omitted run params from the stored project (shipped alongside this
|
|
84
|
+
release); on an older API a scope-less run captures the home page only.
|
|
85
|
+
|
|
77
86
|
### 2.2.0
|
|
78
87
|
|
|
79
88
|
- **Six metadata `ChangeType`s added** (`meta-edit`, `meta-insert`, `meta-delete`,
|
package/dist/index.js
CHANGED
|
@@ -173,10 +173,6 @@ class JobBuilder {
|
|
|
173
173
|
if (!this.manifest.projectId && !this.manifest.baseOrigin) {
|
|
174
174
|
throw new Error('Project ID is required. Use .forProject("id") or provide an origin to compare against using .against()');
|
|
175
175
|
}
|
|
176
|
-
// If no checks/scans provided, default to root
|
|
177
|
-
if (this.manifest.checks.length === 0 && this.manifest.scans.length === 0) {
|
|
178
|
-
this.manifest.checks.push({ path: '/', label: 'Home' });
|
|
179
|
-
}
|
|
180
176
|
// Every field present here is compared against the saved project config, and a
|
|
181
177
|
// value that differs fails the run rather than overriding it. So a field the
|
|
182
178
|
// caller never set must stay absent: an empty `devices` or a `concurrency` this
|
|
@@ -187,7 +183,7 @@ class JobBuilder {
|
|
|
187
183
|
sitemapUrl: this.manifest.sitemapUrl,
|
|
188
184
|
baseOrigin: this.manifest.baseOrigin,
|
|
189
185
|
devices: this.manifest.variants.length > 0 ? this.manifest.variants : undefined,
|
|
190
|
-
paths: this.manifest.checks,
|
|
186
|
+
paths: this.manifest.checks.length > 0 ? this.manifest.checks : undefined,
|
|
191
187
|
scans: this.manifest.scans.length > 0 ? this.manifest.scans : undefined,
|
|
192
188
|
concurrency: this.manifest.concurrency,
|
|
193
189
|
autoApprove: this.manifest.autoApprove,
|
package/package.json
CHANGED