@lunora/solid 1.0.0-alpha.13 → 1.0.0-alpha.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/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { LunoraContext, useLunora } from './packem_shared/LunoraContext-C9SpKj54.mjs';
|
|
2
2
|
export { AuthLoading, Authenticated, Unauthenticated, createAuth } from './packem_shared/AuthLoading-RMT5Q_eE.mjs';
|
|
3
3
|
export { default as createConnectionStatus } from './packem_shared/createConnectionStatus-D8GPatZX.mjs';
|
|
4
|
-
export { createFlag, createFlags } from './packem_shared/createFlag-
|
|
4
|
+
export { createFlag, createFlags } from './packem_shared/createFlag-CKgsjSsW.mjs';
|
|
5
5
|
export { createMutation, createMutationForClient } from './packem_shared/createMutation-C7BxzO0y.mjs';
|
|
6
6
|
export { createMutator } from './packem_shared/createMutator-foSnPJPt.mjs';
|
|
7
7
|
export { createInfiniteQuery, createPaginatedQuery } from './packem_shared/createInfiniteQuery-DyMvQ2Qy.mjs';
|
|
@@ -11,12 +11,20 @@ const stableStringify = (value) => {
|
|
|
11
11
|
if (value === void 0) {
|
|
12
12
|
return "null";
|
|
13
13
|
}
|
|
14
|
+
if (typeof value === "bigint") {
|
|
15
|
+
throw new TypeError("stableStringify: cannot use a bigint in a cache key (query/subscription/shape args) — pass it as a string");
|
|
16
|
+
}
|
|
14
17
|
if (value === null || typeof value !== "object") {
|
|
15
18
|
return JSON.stringify(value);
|
|
16
19
|
}
|
|
17
20
|
if (Array.isArray(value)) {
|
|
18
21
|
return `[${value.map((item) => stableStringify(item)).join(",")}]`;
|
|
19
22
|
}
|
|
23
|
+
const proto = Object.getPrototypeOf(value);
|
|
24
|
+
if (proto !== null && proto !== Object.prototype) {
|
|
25
|
+
const name = value.constructor?.name ?? "value";
|
|
26
|
+
throw new TypeError(`stableStringify: cannot use a ${name} in a cache key (query/subscription/shape args) — only plain objects, arrays, and JSON primitives are supported`);
|
|
27
|
+
}
|
|
20
28
|
const record = value;
|
|
21
29
|
const keys = Object.keys(record).toSorted(compareKeys);
|
|
22
30
|
const parts = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/solid",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.15",
|
|
4
4
|
"description": "SolidJS adapter for Lunora — live queries, optimistic mutations, and reactive loaders",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@lunora/client": "1.0.0-alpha.
|
|
53
|
+
"@lunora/client": "1.0.0-alpha.13",
|
|
54
54
|
"@lunora/ratelimit": "1.0.0-alpha.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|