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 +12 -0
- package/dist/advanced.cjs +3 -8
- package/dist/advanced.cjs.map +1 -1
- package/dist/advanced.d.cts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +1 -1
- package/dist/{chunk-QZG7SNUG.js → chunk-22U7WAY3.js} +2 -2
- package/dist/chunk-22U7WAY3.js.map +1 -0
- package/dist/{chunk-7GXVEZ2J.js → chunk-OTIHUVSE.js} +4 -9
- package/dist/chunk-OTIHUVSE.js.map +1 -0
- package/dist/{chunk-QKXKZ27D.js → chunk-YQNMIL33.js} +1 -1
- package/dist/chunk-YQNMIL33.js.map +1 -0
- package/dist/emulator/devtools.d.cts +2 -2
- package/dist/emulator/devtools.d.ts +2 -2
- package/dist/emulator/testing.cjs.map +1 -1
- package/dist/emulator/testing.js +2 -2
- package/dist/emulator/transports.cjs.map +1 -1
- package/dist/emulator/transports.js +1 -1
- package/dist/emulator.cjs.map +1 -1
- package/dist/emulator.js +2 -2
- package/dist/index.cjs +3 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +14 -6
- package/dist/chunk-7GXVEZ2J.js.map +0 -1
- package/dist/chunk-QKXKZ27D.js.map +0 -1
- package/dist/chunk-QZG7SNUG.js.map +0 -1
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
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
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 ?? {});
|