grist-widget-sdk 0.3.3 → 0.3.15

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # grist-widget-sdk
2
2
 
3
+ ## 0.3.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 80b2ed1: Routine dependency updates via Dependabot (PR #141). See the PR diff for the exact version bumps.
8
+
9
+ ## 0.3.14
10
+
11
+ ### Patch Changes
12
+
13
+ - ed810fd: Wired up lint (`eslint.config.js` + CI gate) and coverage reporting (`test:coverage`). Turning lint on for the first time surfaced and fixed a few real issues: a dead `try`/`catch` in the RPC-heartbeat-coalesce helper that just rethrew without doing anything (removed, matching the module's own documented "failures aren't coalesced" contract), and a handful of dead imports. No public API changes.
14
+
3
15
  ## 0.3.3
4
16
 
5
17
  ### Patch Changes
package/dist/advanced.cjs CHANGED
@@ -1997,13 +1997,9 @@ function useRpcHeartbeatCoalesce() {
1997
1997
  const manager = useGristManagerOptional();
1998
1998
  return (0, import_react9.useCallback)(
1999
1999
  async (fn) => {
2000
- try {
2001
- const result = await fn();
2002
- manager?.recordRpcSuccess();
2003
- return result;
2004
- } catch (err) {
2005
- throw err;
2006
- }
2000
+ const result = await fn();
2001
+ manager?.recordRpcSuccess();
2002
+ return result;
2007
2003
  },
2008
2004
  [manager]
2009
2005
  );
@@ -2380,7 +2376,6 @@ async function fetchWithGristAuth(docApi, path, init) {
2380
2376
  }
2381
2377
  const isAbsolute = /^https?:\/\//i.test(path);
2382
2378
  const cleanPath = isAbsolute ? path : path.startsWith("/") ? path : `/${path}`;
2383
- const method = (init?.method ?? "GET").toUpperCase();
2384
2379
  const url = isAbsolute ? new URL(path) : new URL(`${token.baseUrl.replace(/\/$/, "")}${cleanPath}`);
2385
2380
  if (!url.searchParams.has("auth")) url.searchParams.set("auth", token.token);
2386
2381
  const headers = new Headers(init?.headers ?? {});