@hadoku/prefs-client 1.1.18 → 1.1.20
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/cosmetics.js +1 -1
- package/dist/games.d.ts +2 -0
- package/package.json +2 -2
package/dist/cosmetics.js
CHANGED
|
@@ -6,7 +6,7 @@ var archived = { hidden: true };
|
|
|
6
6
|
var COSMETICS = [
|
|
7
7
|
item("effect", "glint", "Glint"),
|
|
8
8
|
item("effect", "aura", "Aura"),
|
|
9
|
-
item("effect", "hop", "Hop"),
|
|
9
|
+
item("effect", "hop", "Hop", archived),
|
|
10
10
|
item("effect", "outline", "Outline"),
|
|
11
11
|
item("effect", "twinkle", "Twinkle", { earn: "Bronze or better in a Major" }),
|
|
12
12
|
item("gradient", "gild", "Gilded"),
|
package/dist/games.d.ts
CHANGED
|
@@ -126,6 +126,8 @@ interface LeaderboardRow {
|
|
|
126
126
|
}
|
|
127
127
|
interface BreakdownRow extends OutcomeTotals {
|
|
128
128
|
value: string;
|
|
129
|
+
/** The newest `endedAt` among the group's matches in the read's scope, ms since epoch. Absent only from a prefs-api older than the field. */
|
|
130
|
+
lastPlayedAt?: number;
|
|
129
131
|
/** The seat attrs a read asked to carry (`with`), off the group's most recent seat. Absent when it asked for none. */
|
|
130
132
|
attrs?: StatAttrs;
|
|
131
133
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/prefs-client",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.1.20",
|
|
4
|
+
"gitHead": "064ad0bbf31a90c4b964286a2adc4db42ac6073c",
|
|
5
5
|
"description": "Client SDK for the hadoku unified preferences store. Wraps /prefs/api/v1/* with localStorage caching, debounced writes, Zod-validated reads, and a usePrefs() React hook, plus match history, ratings and leaderboards for every game (./games), the one resolved avatar per user (./avatar), and the avatar cosmetics renderer (./cosmetics).",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|