@remit/web-client 0.0.69 → 0.0.70

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "type": "module",
5
5
  "description": "Remit web client, published as composable primitives — the app shell, auth shells, and runtime config. A distributor imports what it composes and bundles it.",
6
6
  "exports": {
@@ -222,13 +222,13 @@ describe("deriveUpdateSurface — the surface without a run", () => {
222
222
  );
223
223
  });
224
224
 
225
- test("a configured surface that has not checked yet is checking", () => {
225
+ test("a configured surface that has not checked yet is never-checked, not a spinner", () => {
226
226
  const result = deriveUpdateSurface(
227
227
  input({ data: response({ check: { status: "disabled" } }) }),
228
228
  );
229
229
  assert.equal(
230
230
  result.surface.status === "ready" && result.surface.section.status,
231
- "checking",
231
+ "neverChecked",
232
232
  );
233
233
  });
234
234
 
@@ -292,10 +292,12 @@ function checkSection(
292
292
  };
293
293
  }
294
294
 
295
- // A configured surface that has not run its first check yet reads as looking,
296
- // not as up to date the client has no basis to claim the latest.
295
+ // A configured surface that has not run its first check yet is never-checked,
296
+ // not checking: the updater runs the check on a cadence and has not written a
297
+ // result. A spinner here would run forever, since nothing on this poll is in
298
+ // flight. Only a genuine refetch (handled above) shows the spinner.
297
299
  if (check.status === "disabled") {
298
- return { status: "checking", version: data.currentVersion };
300
+ return { status: "neverChecked", version: data.currentVersion };
299
301
  }
300
302
 
301
303
  const release = releaseFromCheck(data, now);