@produtype/core 0.53.0 → 0.54.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.
@@ -154,6 +154,24 @@ function buildVerdict(args) {
154
154
  };
155
155
  }
156
156
  const { gap, profileTitle } = args.profile;
157
+ /**
158
+ * A profile that requires nothing cannot be satisfied by having nothing.
159
+ *
160
+ * `static-site` marks every capability recommended or optional, so
161
+ * `requiredMissing === 0 && requiredPartial === 0` is true before anything is
162
+ * measured. Five static sites in the verification corpus were told they covered
163
+ * everything expected of them while satisfying one applicable capability out of six
164
+ * — the verdict and the coverage line disagreeing on the same page.
165
+ *
166
+ * The same answer as no profile at all, because it is the same situation: launch
167
+ * readiness is a question about requirements, and this profile states none.
168
+ */
169
+ if (gap.requiredTotal === 0) {
170
+ return {
171
+ verdict: `Nothing is strictly required of ${profileTitle}, so nothing is blocking a launch. ${gap.satisfied} of ${gap.applicableTotal} expected ${gap.applicableTotal === 1 ? 'capability is' : 'capabilities are'} in place.`,
172
+ launchReady: null,
173
+ };
174
+ }
157
175
  const launchReady = gap.requiredMissing === 0 && gap.requiredPartial === 0;
158
176
  if (launchReady) {
159
177
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@produtype/core",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "description": "Deterministic CLI and library that analyzes a web application repository and reports how far it is from production-ready for the kind of product it is meant to be.",
5
5
  "license": "MIT",
6
6
  "bin": {