@faable/faable 4.39.0 → 4.40.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.
@@ -214,9 +214,21 @@ const launch = {
214
214
  failure = { phase, reason: dep.status?.reason };
215
215
  break;
216
216
  }
217
- // CANCELED: the platform superseded this build before it produced a
218
- // runnable (a sibling deployment of the app won the promotion).
219
217
  if (phase === 'CANCELED') {
218
+ // A moderation hold cancels the build too, and then nothing is
219
+ // live: it is a failure, not a supersede. Read on the app, not
220
+ // the deployment, whose reason is free text (2026-11-11: a
221
+ // plan-held app was told "The app is live" and answered 410).
222
+ // Re-read: `current` predates the deployment read, and the hold
223
+ // may have landed between the two.
224
+ const after = await api.getApp(app.id).catch(() => current);
225
+ const held = after.disabled_reason ?? null;
226
+ if (held) {
227
+ failure = { phase, reason: dep.status?.reason ?? held };
228
+ break;
229
+ }
230
+ // Otherwise the platform superseded this build before it produced
231
+ // a runnable (a sibling deployment of the app won the promotion).
220
232
  superseded = dep.status?.reason ?? 'canceled';
221
233
  break;
222
234
  }
@@ -38,6 +38,10 @@ const upload_missing_blobs = async (api, app_id, workdir, manifest) => {
38
38
  headers: {
39
39
  ...upload.headers,
40
40
  "content-type": "application/octet-stream",
41
+ // Who uploads, for the artifact store's log line and its
42
+ // `client` label (api backlog §524). Unsigned: not part of the
43
+ // presign.
44
+ "x-faable-client": "cli",
41
45
  },
42
46
  maxBodyLength: Infinity,
43
47
  timeout: 120_000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "4.39.0",
3
+ "version": "4.40.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",