@hadoku/prefs-client 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/dist/avatar.d.ts +3 -5
  2. package/package.json +1 -1
package/dist/avatar.d.ts CHANGED
@@ -22,8 +22,8 @@ type LinkProvider = (typeof LINK_PROVIDERS)[number];
22
22
  * square, at least 184px. Render it as an `<img>`; never fetch it server-side
23
23
  * on a user's behalf.
24
24
  *
25
- * A source that stops being available (an unlink, an admin removal, a Discord
26
- * avatar that changed) resolves to `sprite` with no action from the app.
25
+ * A source that stops being available (an unlink, an admin removal, an account
26
+ * whose custom avatar was removed) resolves to `sprite` with no action from the app.
27
27
  */
28
28
  type ResolvedAvatar = {
29
29
  source: 'sprite';
@@ -36,12 +36,10 @@ type ResolvedAvatar = {
36
36
  };
37
37
  /** A linked account as its owner sees it. Never carries a token. */
38
38
  interface LinkedAccountView {
39
- /** null when the account has no custom avatar, or the cached one went stale. */
39
+ /** null when the account has no custom avatar. */
40
40
  avatarUrl: string | null;
41
41
  linkedAt: number;
42
42
  refreshedAt: number;
43
- /** Set when Discord stopped serving the cached avatar: link again to pick up the new one. */
44
- stale: boolean;
45
43
  }
46
44
  interface UploadView {
47
45
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hadoku/prefs-client",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "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), and the one resolved avatar per user (./avatar).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",