@tokenoftrust/storefront-runner 4.1.1 → 4.1.2

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.
@@ -90,6 +90,18 @@ export const REPO = "shop.example";
90
90
 
91
91
  const AGGREGATE = { kind: "aggregate", expectedAggregateSha: null, expectedArtifactDigest: null };
92
92
 
93
+ /** One go-live pins a draft so `apply-settings` starts. The version need not exist: a missing draft is refused and the step still runs. */
94
+ function aggregateWithSettings(tenantId: string) {
95
+ return {
96
+ ...AGGREGATE,
97
+ settings: [{
98
+ path: `tenants/${tenantId}/checkout-requirements.json`,
99
+ versionId: "settings-v1",
100
+ expectedLiveVersionId: null,
101
+ }],
102
+ };
103
+ }
104
+
93
105
  export function publishInput(provider: Provider, target: unknown) {
94
106
  return {
95
107
  aggregateId: "preview",
@@ -205,7 +217,10 @@ function liveScenarios(provider: Provider): Scenario[] {
205
217
  await cloudFrontServesEarlier(t, provider);
206
218
  await seedRelease(t, provider, "sha-1", "run-1");
207
219
  },
208
- intent: () => ({ kind: "publish", input: publishInput(provider, AGGREGATE) }),
220
+ intent: (t) => ({
221
+ kind: "publish",
222
+ input: publishInput(provider, provider === "worker-r2-pointer" ? aggregateWithSettings(t.id) : AGGREGATE),
223
+ }),
209
224
  },
210
225
  {
211
226
  id: `rollback × ${name}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",