akanjs 3.3.0-rc.45 → 3.3.0-rc.46
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/common/websocketContract.ts +1 -1
- package/fetch/client/requestScope.ts +4 -1
- package/package.json +2 -2
- package/server/metrics/metricMerge.ts +1 -1
- package/store/agent/StoreCatalogue.ts +1 -1
- package/store/draftStore.ts +2 -2
- package/ui/Model/editSeed.ts +1 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/compat.ts +1 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/distribution.ts +1 -1
- package/webkit/CsrRouteTable.ts +1 -1
- package/webkit/McpAppFetchBridge.ts +1 -1
|
@@ -70,7 +70,7 @@ const canonicalOf = (value: unknown, holding: Set<object>): unknown => {
|
|
|
70
70
|
if (Array.isArray(value)) return value.map((item) => canonicalOf(item, holding) ?? null);
|
|
71
71
|
|
|
72
72
|
const record: Record<string, unknown> = Object.create(null);
|
|
73
|
-
for (const key of Object.keys(value).sort()) {
|
|
73
|
+
for (const key of Object.keys(value).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))) {
|
|
74
74
|
const item = canonicalOf((value as Record<string, unknown>)[key], holding);
|
|
75
75
|
if (item !== undefined) record[key] = item;
|
|
76
76
|
}
|
|
@@ -15,7 +15,10 @@ export const makeRequestQueryCacheKey = (
|
|
|
15
15
|
url,
|
|
16
16
|
headers: Object.entries(headers).sort(([a], [b]) => a.localeCompare(b)),
|
|
17
17
|
timeout: budget.timeout ?? DEFAULT_TIMEOUT_MS,
|
|
18
|
-
retry: JSON.stringify(
|
|
18
|
+
retry: JSON.stringify(
|
|
19
|
+
budget.retry,
|
|
20
|
+
Object.keys(budget.retry).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0)),
|
|
21
|
+
),
|
|
19
22
|
});
|
|
20
23
|
};
|
|
21
24
|
export const deepCopy = <T>(value: T): T => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akanjs",
|
|
3
|
-
"version": "3.3.0-rc.
|
|
3
|
+
"version": "3.3.0-rc.46",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
}
|
|
549
549
|
},
|
|
550
550
|
"devDependencies": {
|
|
551
|
-
"@biomejs/biome": "2.5.
|
|
551
|
+
"@biomejs/biome": "2.5.15",
|
|
552
552
|
"@types/bun": "^1.4.4"
|
|
553
553
|
},
|
|
554
554
|
"bun": {
|
|
@@ -5,7 +5,7 @@ type HistogramFamily = Extract<AkanMetricFamily, { type: "histogram" }>;
|
|
|
5
5
|
|
|
6
6
|
const keyOf = (labels: Record<string, string>) =>
|
|
7
7
|
Object.keys(labels)
|
|
8
|
-
.sort()
|
|
8
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))
|
|
9
9
|
.map((name) => `${name}\u0000${labels[name]}`)
|
|
10
10
|
.join("\u0001");
|
|
11
11
|
|
|
@@ -46,7 +46,7 @@ export class StoreCatalogue {
|
|
|
46
46
|
const state = this.#instance.get();
|
|
47
47
|
const declared = StoreCatalogue.#declaredStateModels();
|
|
48
48
|
const entries = Object.keys(state)
|
|
49
|
-
.sort()
|
|
49
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))
|
|
50
50
|
.map((key): [string, SerializedStoreState] => {
|
|
51
51
|
const role = this.#instance.sliceStateRoles.get(key);
|
|
52
52
|
const model = role
|
package/store/draftStore.ts
CHANGED
|
@@ -60,7 +60,7 @@ export class DraftStore {
|
|
|
60
60
|
|
|
61
61
|
const entries = Object.keys(source)
|
|
62
62
|
.filter((key) => !["undefined", "function", "symbol"].includes(typeof source[key]))
|
|
63
|
-
.sort()
|
|
63
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))
|
|
64
64
|
.map((key) => `${JSON.stringify(key)}:${DraftStore.#stableStringify(source[key])}`);
|
|
65
65
|
return `{${entries.join(",")}}`;
|
|
66
66
|
}
|
|
@@ -74,7 +74,7 @@ export class DraftStore {
|
|
|
74
74
|
const source = value as Record<string, unknown>;
|
|
75
75
|
if (depth > 0 && typeof source.id === "string") return source.id;
|
|
76
76
|
const entries = Object.keys(source)
|
|
77
|
-
.sort()
|
|
77
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))
|
|
78
78
|
.map((key) => [key, DraftStore.#canonicalSeed(source[key], depth + 1)] as const)
|
|
79
79
|
.filter(([, item]) => item !== undefined);
|
|
80
80
|
return Object.fromEntries(entries);
|
package/ui/Model/editSeed.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class EditSeed {
|
|
|
21
21
|
const source = value as Record<string, unknown>;
|
|
22
22
|
const entries = Object.keys(source)
|
|
23
23
|
.filter((key) => source[key] !== undefined)
|
|
24
|
-
.sort()
|
|
24
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))
|
|
25
25
|
.map((key) => `${JSON.stringify(key)}:${EditSeed.#stableStringify(source[key])}`);
|
|
26
26
|
return `{${entries.join(",")}}`;
|
|
27
27
|
}
|
|
@@ -90,7 +90,7 @@ export function nativeApi(
|
|
|
90
90
|
platform,
|
|
91
91
|
plugins,
|
|
92
92
|
acl: acl ?? null,
|
|
93
|
-
permissions: Object.keys(project.config.permissions).sort(),
|
|
93
|
+
permissions: Object.keys(project.config.permissions).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0)),
|
|
94
94
|
deepLinks: [...project.config.deepLinks.schemes].sort(),
|
|
95
95
|
};
|
|
96
96
|
}
|
|
@@ -30,7 +30,7 @@ export function requestedDistribution(
|
|
|
30
30
|
): Distribution {
|
|
31
31
|
const unused = Object.keys(env)
|
|
32
32
|
.filter((name) => SIGNING_ENV.test(name) && env[name]?.trim())
|
|
33
|
-
.sort();
|
|
33
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
|
|
34
34
|
if (!sign && !notarize) return { notice: null, unused };
|
|
35
35
|
if (platform !== "macos" && platform !== "windows")
|
|
36
36
|
throw new CliError(`--sign and --notarize are for a macOS or Windows app, not ${platform}`);
|
package/webkit/CsrRouteTable.ts
CHANGED
|
@@ -350,7 +350,7 @@ export class CsrRouteTable {
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
static #keysOf(context: CsrRouteContext) {
|
|
353
|
-
return Object.keys(context).sort();
|
|
353
|
+
return Object.keys(context).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
static #paramNamesOf(pattern: string) {
|
|
@@ -95,7 +95,7 @@ export class McpAppFetchBridge implements FetchBridge {
|
|
|
95
95
|
static #callKey(key: string, args: Record<string, unknown>) {
|
|
96
96
|
const sorted = Object.keys(args)
|
|
97
97
|
.filter((name) => args[name] !== undefined && args[name] !== null)
|
|
98
|
-
.sort()
|
|
98
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))
|
|
99
99
|
.map((name) => [name, args[name]]);
|
|
100
100
|
return `${key}:${JSON.stringify(sorted)}`;
|
|
101
101
|
}
|