From b9b8ccb8aeb26334cbf9a8cc24aa0a37608596e5 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 9 Feb 2026 15:36:50 +0100 Subject: [PATCH] community: stable/unstable --- src/community.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/community.js b/src/community.js index a748695a1..4c3078bf2 100644 --- a/src/community.js +++ b/src/community.js @@ -96,10 +96,13 @@ async function getAppUpdate(app, options) { if (idx === -1) throw new BoxError(BoxError.EXTERNAL_ERROR, 'No such version'); if (idx === sortedVersions.length-1) return null; // no update const nextVersion = versions[sortedVersions[idx+1]]; + const unstable = !versionsRoot.stable || nextVersion.publishState !== 'published'; return { id: app.manifest.id, - ...nextVersion // { manifest, publishState, creationDate, ts } + creationDate: nextVersion.creationDate, + manifest: nextVersion.manifest, + unstable }; }