@oxy.so/services 14.19.3 → 14.20.0

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 (63) hide show
  1. package/lib/commonjs/index.js.map +1 -1
  2. package/lib/commonjs/ui/client.js.map +1 -1
  3. package/lib/commonjs/ui/hooks/accountQueryPersistence.js +8 -1
  4. package/lib/commonjs/ui/hooks/accountQueryPersistence.js.map +1 -1
  5. package/lib/commonjs/ui/hooks/persistedQueryCache.js +103 -8
  6. package/lib/commonjs/ui/hooks/persistedQueryCache.js.map +1 -1
  7. package/lib/commonjs/ui/hooks/queryClient.js +5 -1
  8. package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
  9. package/lib/commonjs/ui/index.js.map +1 -1
  10. package/lib/commonjs/ui/utils/persistedDataVersion.js +16 -0
  11. package/lib/commonjs/ui/utils/persistedDataVersion.js.map +1 -0
  12. package/lib/module/index.js.map +1 -1
  13. package/lib/module/ui/client.js +3 -0
  14. package/lib/module/ui/client.js.map +1 -1
  15. package/lib/module/ui/hooks/accountQueryPersistence.js +9 -2
  16. package/lib/module/ui/hooks/accountQueryPersistence.js.map +1 -1
  17. package/lib/module/ui/hooks/persistedQueryCache.js +101 -8
  18. package/lib/module/ui/hooks/persistedQueryCache.js.map +1 -1
  19. package/lib/module/ui/hooks/queryClient.js +6 -2
  20. package/lib/module/ui/hooks/queryClient.js.map +1 -1
  21. package/lib/module/ui/index.js.map +1 -1
  22. package/lib/module/ui/utils/persistedDataVersion.js +12 -0
  23. package/lib/module/ui/utils/persistedDataVersion.js.map +1 -0
  24. package/lib/typescript/commonjs/index.d.ts +1 -0
  25. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  26. package/lib/typescript/commonjs/ui/client.d.ts +2 -0
  27. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  28. package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts +17 -0
  29. package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
  30. package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts +39 -3
  31. package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts.map +1 -1
  32. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +2 -1
  33. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
  34. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
  35. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  36. package/lib/typescript/commonjs/ui/index.d.ts +1 -0
  37. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  38. package/lib/typescript/commonjs/ui/utils/persistedDataVersion.d.ts +10 -0
  39. package/lib/typescript/commonjs/ui/utils/persistedDataVersion.d.ts.map +1 -0
  40. package/lib/typescript/module/index.d.ts +1 -0
  41. package/lib/typescript/module/index.d.ts.map +1 -1
  42. package/lib/typescript/module/ui/client.d.ts +2 -0
  43. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  44. package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts +17 -0
  45. package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
  46. package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts +39 -3
  47. package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts.map +1 -1
  48. package/lib/typescript/module/ui/hooks/queryClient.d.ts +2 -1
  49. package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
  50. package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
  51. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  52. package/lib/typescript/module/ui/index.d.ts +1 -0
  53. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  54. package/lib/typescript/module/ui/utils/persistedDataVersion.d.ts +10 -0
  55. package/lib/typescript/module/ui/utils/persistedDataVersion.d.ts.map +1 -0
  56. package/package.json +2 -2
  57. package/src/index.ts +1 -0
  58. package/src/ui/client.ts +3 -0
  59. package/src/ui/hooks/accountQueryPersistence.ts +26 -0
  60. package/src/ui/hooks/persistedQueryCache.ts +132 -13
  61. package/src/ui/hooks/queryClient.ts +6 -1
  62. package/src/ui/index.ts +1 -0
  63. package/src/ui/utils/persistedDataVersion.ts +9 -0
@@ -84,6 +84,7 @@ export type { OxyConsentScreenProps, OxyConsentApplication, OxyConsentUser, OxyC
84
84
  export { RequireOxyAuth } from './ui/components/RequireOxyAuth.js';
85
85
  export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './ui/components/RequireOxyAuth.js';
86
86
  export type { AccountQueriesConfig, AccountQueryMeta } from './ui/hooks/accountQueryPersistence.js';
87
+ export type { PersistedRootBound } from './ui/hooks/persistedQueryCache.js';
87
88
  export { default as FollowButton } from './ui/components/FollowButton.js';
88
89
  export type { FollowButtonProps, SingleFollowButtonProps, MultiFollowButtonProps, } from './ui/components/FollowButton.js';
89
90
  export { FollowTargetButton } from './ui/components/FollowTargetButton.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH,OAAO,uBAAoB,CAAC;AAU5B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAAyB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,4BAAyB,CAAC;AAKlF,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,uBAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,MAAM,uBAAc,CAAC;AACtB,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAAyB,CAAC;AAC7E,OAAO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AAM,yCAAsC,CAAC;AAC9C,YAAY,EAAE,wBAAwB,EAAE,MAAM,yCAAsC,CAAC;AAUrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAAyC,CAAC;AAClF,YAAY,EAAE,4BAA4B,EAAE,MAAM,4CAAyC,CAAC;AAC5F,YAAY,EAAE,sBAAsB,EAAE,MAAM,sCAAmC,CAAC;AAQhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAA8B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAA8B,CAAC;AAU5E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAoC,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,2BAAwB,CAAC;AAKxD,OAAO,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,gCAA6B,CAAC;AAC1F,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,wCAAqC,CAAC;AAM7C,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,yCAAsC,CAAC;AAE9C,YAAY,EACV,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,mCAAgC,CAAC;AAExC,OAAO,EACL,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,wCAAqC,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAA6C,CAAC;AAE1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAA+B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA4B,CAAC"}
@@ -17,6 +17,8 @@ export { default as OxyProvider } from './components/OxyProvider.js';
17
17
  export { default as OxySignInButton } from './components/OxySignInButton.js';
18
18
  export { default as OxyAuthPrompt } from './components/OxyAuthPrompt.js';
19
19
  export type { OxyAuthPromptProps } from './components/OxyAuthPrompt.js';
20
+ export type { AccountQueriesConfig, AccountQueryMeta } from './hooks/accountQueryPersistence.js';
21
+ export type { PersistedRootBound } from './hooks/persistedQueryCache.js';
20
22
  export { LogoIcon } from './components/logo/LogoIcon.js';
21
23
  export { LogoText } from './components/logo/LogoText.js';
22
24
  export { default as FollowButton } from './components/FollowButton.js';
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/ui/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,wBAAqB,CAAC;AAG7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA2B,CAAC;AAGnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,8BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAiC,CAAC;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,oCAAiC,CAAC;AAC/E,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,8BAA2B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA2B,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAsB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB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,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,8BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,8BAA2B,CAAC;AACnC,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,8BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAGlD,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,0BAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAAuB,CAAC"}
@@ -26,6 +26,7 @@
26
26
  */
27
27
  import { type Mutation, type Query, type QueryClient, type QueryKey } from '@tanstack/react-query';
28
28
  import type { StorageInterface } from '../utils/storageHelpers.js';
29
+ import { type PersistedRootBound } from './persistedQueryCache.js';
29
30
  /**
30
31
  * The `meta` that makes one query the signed-in account's and keeps it across
31
32
  * restarts, exactly like a query under a declared root: for the few reads that
@@ -91,6 +92,22 @@ export interface AccountQueriesConfig {
91
92
  * Defaults to false.
92
93
  */
93
94
  clearUnregisteredMutations?: boolean;
95
+ /**
96
+ * The version of the data this app persists. Restored queries are served before any refetch, so
97
+ * a blob is only safe to read in the shape it was written in. Without this, the cache is dropped
98
+ * on every new build (`getOxyBuildId`): safe, but every deploy starts every person from the
99
+ * network. With it, a blob survives deploys and is dropped when this string or this SDK's version
100
+ * changes; the app must change it whenever the shape of anything it persists changes (its own
101
+ * types, or a dependency's whose data it stores). It applies to both caches.
102
+ */
103
+ dataVersion?: string;
104
+ /**
105
+ * Caps on what a root writes, by root (`queryKey[0]`): its most recently updated `maxQueries`
106
+ * queries, each through `trim`, and `revive` to give restored data its type back (JSON keeps no
107
+ * `Date`). The root must also be listed in `roots`. For a root that grows with use, such as one
108
+ * query per conversation.
109
+ */
110
+ bounds?: Readonly<Record<string, PersistedRootBound>>;
94
111
  }
95
112
  /** Which queries and mutations an `AccountQueriesConfig` makes the account's. */
96
113
  export interface AccountQueryOwnership {
@@ -1 +1 @@
1
- {"version":3,"file":"accountQueryPersistence.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/accountQueryPersistence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAAyB,CAAC;AAYhE;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,KAAK,aAAa,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC;AAMlE,8EAA8E;AAC9E,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;OAUG;IACH,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,KAAK,CAAC;IACjC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,KAAK,CAAC;IAC5C;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;IACnC;;;;;;;OAOG;IACH,sBAAsB,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC7C;;;;;;;OAOG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC,+CAA+C;IAC/C,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC;IAC7C,qCAAqC;IACrC,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,K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A6D;IAC7D,eAAe,EAAE,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS,KAAK,OAAO,CAAC;IACxD,6DAA6D;IAC7D,gBAAgB,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC;IAClD,6EAA6E;IAC7E,mBAAmB,EAAE,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS,KAAK,OAAO,CAAC;CAC7D;AAQD,wBAAgB,qBAAqB,CACnC,MAAM,GAAE,oBAA+B,GACtC,qBAAqB,CAqDvB;AAED,eAAO,MAAM,uBAAuB,wBAAwB,CAAC;AAI7D,MAAM,WAAW,uBAAuB;IACtC,gEAAgE;IAChE,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC5C,wFAAwF;IACxF,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACzC,2EAA2E;IAC3E,MAAM,IAAI,IAAI,CAAC;IACf,2EAA2E;IAC3E,MAAM,IAAI,IAAI,CAAC;IACf,iFAAiF;IACjF,OAAO,IAAI,OAAO,CAAC;IACnB,4EAA4E;IAC5E,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC7C;AAMD,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,WAAW,EACxB,MAAM,CAAC,EAAE,oBAAoB,GAC5B,uBAAuB,CAsKzB"}
@@ -6,8 +6,10 @@
6
6
  * A blob is `{ buster, timestamp, clientState }`, TanStack's persisted-client
7
7
  * shape. Restoring it treats its two halves differently:
8
8
  *
9
- * - Queries are served before any refetch, so a query written by another
10
- * build, in whatever shape that build used, is dropped (`getOxyBuildId`).
9
+ * - Queries are served before any refetch, so a query written under another
10
+ * buster, in whatever shape it had then, is dropped. The buster is the build
11
+ * (`getOxyBuildId`) unless the app declares the version of the data it
12
+ * persists (`AccountQueriesConfig.dataVersion`, see `persistedBuster`).
11
13
  * - Paused mutations are the user's queued actions (a star, a send made
12
14
  * offline). A deploy must not lose them, so they are restored whatever build
13
15
  * wrote them; the current build's `setMutationDefaults` replays them.
@@ -20,11 +22,41 @@ export declare const PERSISTED_QUERY_PREFIXES: ReadonlyArray<string>;
20
22
  * written to disk: a restored one would serve an expired URL.
21
23
  */
22
24
  export declare const SDK_MEMORY_ONLY_ROOTS: ReadonlyArray<string>;
25
+ /**
26
+ * A cap on what one root writes to disk: its `maxQueries` most recently updated queries, each
27
+ * passed through `trim` (for example, a conversation's last messages). Queries past the cap that
28
+ * no screen is watching leave memory too, so the root stays bounded in both.
29
+ */
30
+ export interface PersistedRootBound {
31
+ maxQueries: number;
32
+ /** Shrink one query's data before it is written. Must return data of the same shape. */
33
+ trim?: (data: unknown) => unknown;
34
+ /**
35
+ * Give a restored query's data its type back before anything reads it: the blob is JSON, so a
36
+ * `Date` comes back as a string. Runs once per query, on restore.
37
+ */
38
+ revive?: (data: unknown) => unknown;
39
+ }
23
40
  export interface PersistFilters {
24
41
  /** The queries this cache keeps, whatever their state; only successful ones are written. */
25
42
  persistsQuery: (query: Query) => boolean;
26
43
  shouldDehydrateMutation: (mutation: Mutation) => boolean;
44
+ /** What a blob is stamped with, and must match to be restored. Defaults to the build. */
45
+ buster?: string;
46
+ /** Per-root caps, by `queryKey[0]`. */
47
+ bounds?: ReadonlyMap<string, PersistedRootBound>;
27
48
  }
49
+ /**
50
+ * The stamp a persisted blob must carry to be restored.
51
+ *
52
+ * Without a declared version it is the build: every deploy starts from the network, which is
53
+ * safe for an app that never says when its persisted data changes shape. With one, a blob
54
+ * survives deploys and is dropped only when that version, or this SDK's own (it owns the shape
55
+ * of the shared roots and of how blobs are written), changes.
56
+ */
57
+ export declare function persistedBuster(dataVersion?: string): string;
58
+ /** Remove, from memory, a bounded root's queries past its cap that nothing is watching. */
59
+ export declare function evictBeyondBounds(queryClient: QueryClient, bounds: ReadonlyMap<string, PersistedRootBound> | undefined): void;
28
60
  /**
29
61
  * Keep a persisted root's queries in memory for as long as they live on disk.
30
62
  *
@@ -38,7 +70,7 @@ export interface PersistFilters {
38
70
  */
39
71
  export declare function keepPersistedRootsInMemory(queryClient: QueryClient, roots: ReadonlyArray<string>): void;
40
72
  export declare function rootOf(query: Pick<Query, 'queryKey'>): string | null;
41
- /** Serialize what the filters select, stamped with this build. */
73
+ /** Serialize what the filters select, within their bounds, stamped with their buster. */
42
74
  export declare function snapshot(queryClient: QueryClient, filters: PersistFilters): string;
43
75
  /**
44
76
  * Hydrate a stored blob into the client, synchronously, so a caller can check
@@ -46,6 +78,10 @@ export declare function snapshot(queryClient: QueryClient, filters: PersistFilte
46
78
  * usable (absent, unreadable or expired), in which case the caller removes it.
47
79
  */
48
80
  export declare function hydrateSnapshot(queryClient: QueryClient, raw: string | null, maxAge: number, options?: {
81
+ /** The stamp the blob must carry for its queries to be restored. Defaults to the build. */
82
+ buster?: string;
83
+ /** Per-root `revive`, applied to each restored query of that root. */
84
+ bounds?: ReadonlyMap<string, PersistedRootBound>;
49
85
  shouldRestoreQuery?: (query: DehydratedState['queries'][number]) => boolean;
50
86
  shouldRestoreMutation?: (mutation: DehydratedState['mutations'][number]) => boolean;
51
87
  restoreMutations?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"persistedQueryCache.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/persistedQueryCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAG/B,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,MAAM,CAM1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAKvD,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,4FAA4F;IAC5F,aAAa,EAA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,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,MAAM,GAAG,IAAI,CAGpE;AAED,yFAAyF;AACzF,wBAAgB,QAAQ,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM,CAclF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,MAAM,GAAG,IAAI,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IACR,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACjD,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;IAC5E,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;IACpF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GACA,OAAO,CA8BT;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,GAClC;IAAE,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAuBhD"}
@@ -52,7 +52,8 @@ export interface AttachPersistenceResult {
52
52
  /**
53
53
  * Restore, then keep writing, the account-agnostic cache.
54
54
  *
55
- * Queries written by another build are dropped; queued mutations are kept
55
+ * Queries written under another buster are dropped (the build, or the app's declared
56
+ * `dataVersion`); queued mutations are kept
56
57
  * (`persistedQueryCache.ts`). Whatever belongs to the account (`accountQueries`,
57
58
  * or a query marked `meta: { persist: 'account' }`) is left to
58
59
  * `createAccountQueryPersistence`, even under one of the SDK's prefixes, so
@@ -1 +1 @@
1
- {"version":3,"file":"queryClient.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/queryClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,WAAW,EAA6B,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAAyB,CAAC;AAChE,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,8BAA2B,CAAC;AA6B7F;;;GAGG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAE5E;AAED,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAQ9E;AAQD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,QAAO,WA6CpC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,8DAA8D;IAC9D,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GACjC,aAAa,WAAW,EACxB,SAAS,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAC5C,iBAAiB,oBAAoB,KACpC,uBAoDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAQ7E,CAAC;AAEF;;GAEG;AACH,YAAY,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"queryClient.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/queryClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,WAAW,EAA6B,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAAyB,CAAC;AAChE,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,8BAA2B,CAAC;AA8B7F;;;GAGG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAE5E;AAED,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAQ9E;AAQD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,QAAO,WA6CpC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,8DAA8D;IAC9D,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,GACjC,aAAa,WAAW,EACxB,SAAS,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAC5C,iBAAiB,oBAAoB,KACpC,uBAuDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAQ7E,CAAC;AAEF;;GAEG;AACH,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
2
- declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "save" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "list" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "ellipse" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "add-circle-outline" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-back" | "arrow-down" | "arrow-forward" | "arrow-undo" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "bulb" | "business-outline" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "cash-outline" | "chatbubble" | "checkmark" | "checkmark-circle" | "chevron-back" | "chevron-down" | "chevron-forward" | "chevron-up" | "close" | "close-circle" | "cloud-offline-outline" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "construct-outline" | "copy-outline" | "cube-outline" | "desktop" | "document" | "document-outline" | "document-text" | "documents" | "download" | "download-outline" | "earth" | "ellipse-outline" | "ellipsis-horizontal" | "eye" | "eye-off-outline" | "filter-outline" | "flame" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "footsteps" | "gift" | "gift-outline" | "hand-left" | "hardware-chip-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "hourglass-outline" | "image-outline" | "images" | "images-outline" | "information" | "information-circle" | "information-outline" | "leaf" | "library" | "link-outline" | "location" | "location-outline" | "lock-closed" | "log-out-outline" | "mail" | "musical-notes" | "pencil-outline" | "people-outline" | "play" | "pricetag-outline" | "pulse" | "qr-code-outline" | "receipt-outline" | "refresh-outline" | "remove" | "repeat-outline" | "resize" | "rocket" | "school-outline" | "search-outline" | "server" | "share-outline" | "shield" | "shield-checkmark" | "shield-checkmark-outline" | "star" | "swap-horizontal-outline" | "swap-vertical-outline" | "sync" | "time-outline" | "trash-outline" | "trophy" | "trophy-outline" | "videocam" | "volume-off" | "wallet-outline" | "watch" | "wifi", "OxyServicesIonicons">;
2
+ declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "list" | "save" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "ellipse" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "add-circle-outline" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-back" | "arrow-down" | "arrow-forward" | "arrow-undo" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "bulb" | "business-outline" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "cash-outline" | "chatbubble" | "checkmark" | "checkmark-circle" | "chevron-back" | "chevron-down" | "chevron-forward" | "chevron-up" | "close" | "close-circle" | "cloud-offline-outline" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "construct-outline" | "copy-outline" | "cube-outline" | "desktop" | "document" | "document-outline" | "document-text" | "documents" | "download" | "download-outline" | "earth" | "ellipse-outline" | "ellipsis-horizontal" | "eye" | "eye-off-outline" | "filter-outline" | "flame" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "footsteps" | "gift" | "gift-outline" | "hand-left" | "hardware-chip-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "hourglass-outline" | "image-outline" | "images" | "images-outline" | "information" | "information-circle" | "information-outline" | "leaf" | "library" | "link-outline" | "location" | "location-outline" | "lock-closed" | "log-out-outline" | "mail" | "musical-notes" | "pencil-outline" | "people-outline" | "play" | "pricetag-outline" | "pulse" | "qr-code-outline" | "receipt-outline" | "refresh-outline" | "remove" | "repeat-outline" | "resize" | "rocket" | "school-outline" | "search-outline" | "server" | "share-outline" | "shield" | "shield-checkmark" | "shield-checkmark-outline" | "star" | "swap-horizontal-outline" | "swap-vertical-outline" | "sync" | "time-outline" | "trash-outline" | "trophy" | "trophy-outline" | "videocam" | "volume-off" | "wallet-outline" | "watch" | "wifi", "OxyServicesIonicons">;
3
3
  export default Ionicons;
4
4
  //# sourceMappingURL=Ionicons.d.ts.map
@@ -1,4 +1,4 @@
1
1
  /** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
2
- declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "android" | "web" | "devices" | "cancel" | "forward" | "account" | "security" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "group" | "history" | "wallet" | "link" | "text" | "translate" | "scale" | "solid" | "wrap" | "ellipse" | "image" | "switch" | "alert" | "radio" | "grid" | "numeric" | "loading" | "decimal" | "contacts" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "leaf" | "library" | "mail" | "pencil-outline" | "play" | "pulse" | "receipt-outline" | "resize" | "rocket" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet-outline" | "watch" | "wifi" | "delete" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "account-voice" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete-outline" | "dots-horizontal" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "ghost" | "image-multiple-outline" | "inbox" | "link-variant" | "lock-outline" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "null" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone-outline" | "plus" | "plus-circle" | "post" | "presentation" | "react" | "read" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "trash-can-outline" | "tray-arrow-down" | "update" | "upload" | "video-outline" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
2
+ declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "android" | "web" | "devices" | "forward" | "cancel" | "account" | "security" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "group" | "history" | "wallet" | "link" | "text" | "translate" | "scale" | "solid" | "wrap" | "ellipse" | "image" | "switch" | "alert" | "radio" | "grid" | "numeric" | "loading" | "decimal" | "contacts" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "leaf" | "library" | "mail" | "pencil-outline" | "play" | "pulse" | "receipt-outline" | "resize" | "rocket" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet-outline" | "watch" | "wifi" | "delete" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "account-voice" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete-outline" | "dots-horizontal" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "ghost" | "image-multiple-outline" | "inbox" | "link-variant" | "lock-outline" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "null" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone-outline" | "plus" | "plus-circle" | "post" | "presentation" | "react" | "read" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "trash-can-outline" | "tray-arrow-down" | "update" | "upload" | "video-outline" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
3
3
  export default MaterialCommunityIcons;
4
4
  //# sourceMappingURL=MaterialCommunityIcons.d.ts.map
@@ -24,6 +24,7 @@ export { LogoText } from './components/logo/LogoText.js';
24
24
  export { RequireOxyAuth } from './components/RequireOxyAuth.js';
25
25
  export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './components/RequireOxyAuth.js';
26
26
  export type { AccountQueriesConfig, AccountQueryMeta } from './hooks/accountQueryPersistence.js';
27
+ export type { PersistedRootBound } from './hooks/persistedQueryCache.js';
27
28
  export { default as FollowButton } from './components/FollowButton.js';
28
29
  export { default as PeableButton } from './components/PeableButton.js';
29
30
  export type { PeableButtonProps } from './components/PeableButton.js';
@@ -1 +1 @@
1
- {"version":3,"file":"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EAAE,MAAM,uBAAoB,CAAC;AAM9E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAGlD,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,0BAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAAuB,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,mCAAgC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This package's version, as part of every declared-version buster (`persistedBuster`).
3
+ *
4
+ * The SDK owns the shape of the shared roots (`accounts`, `users`, ...) and of the blob itself, so
5
+ * an app that declares its own data version still starts from the network after an SDK upgrade.
6
+ * `__tests__/hooks/persistedDataVersion.test.ts` keeps it equal to `package.json`'s `version`, so a
7
+ * release cannot forget it.
8
+ */
9
+ export declare const SERVICES_PERSISTED_DATA_VERSION = "14.20.0";
10
+ //# sourceMappingURL=persistedDataVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persistedDataVersion.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/persistedDataVersion.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/services",
3
- "version": "14.19.3",
3
+ "version": "14.20.0",
4
4
  "description": "OxyHQ Expo/React Native SDK — UI components, screens, and native features",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -176,7 +176,7 @@
176
176
  "delete-dts.js": "find ./lib/commonjs ./lib/module \\( -name '*.d.js*' -o -name '*.d.ts' \\) -delete"
177
177
  },
178
178
  "dependencies": {
179
- "@oxy.so/contracts": "^6.26.0",
179
+ "@oxy.so/contracts": "^6.27.0",
180
180
  "color": "^5.0.3",
181
181
  "@peable.to/sdk": "^4.0.0"
182
182
  },
package/src/index.ts CHANGED
@@ -336,6 +336,7 @@ export { RequireOxyAuth } from './ui/components/RequireOxyAuth';
336
336
  export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './ui/components/RequireOxyAuth';
337
337
  // `OxyProvider`'s `accountQueries`: the app's per-account offline cache.
338
338
  export type { AccountQueriesConfig, AccountQueryMeta } from './ui/hooks/accountQueryPersistence';
339
+ export type { PersistedRootBound } from './ui/hooks/persistedQueryCache';
339
340
 
340
341
  export { default as FollowButton } from './ui/components/FollowButton';
341
342
  export type {
package/src/ui/client.ts CHANGED
@@ -23,6 +23,9 @@ export { default as OxyProvider } from './components/OxyProvider';
23
23
  export { default as OxySignInButton } from './components/OxySignInButton';
24
24
  export { default as OxyAuthPrompt } from './components/OxyAuthPrompt';
25
25
  export type { OxyAuthPromptProps } from './components/OxyAuthPrompt';
26
+ // The account cache's declaration, for an app's `accountQueries` (types only).
27
+ export type { AccountQueriesConfig, AccountQueryMeta } from './hooks/accountQueryPersistence';
28
+ export type { PersistedRootBound } from './hooks/persistedQueryCache';
26
29
  export { LogoIcon } from './components/logo/LogoIcon';
27
30
  export { LogoText } from './components/logo/LogoText';
28
31
  export { default as FollowButton } from './components/FollowButton';
@@ -36,12 +36,15 @@ import type { StorageInterface } from '../utils/storageHelpers';
36
36
  import {
37
37
  PERSISTED_QUERY_PREFIXES,
38
38
  SDK_MEMORY_ONLY_ROOTS,
39
+ evictBeyondBounds,
39
40
  hydrateSnapshot,
40
41
  keepPersistedRootsInMemory,
42
+ persistedBuster,
41
43
  rootOf,
42
44
  snapshot,
43
45
  subscribeSnapshots,
44
46
  type PersistFilters,
47
+ type PersistedRootBound,
45
48
  } from './persistedQueryCache';
46
49
 
47
50
  /**
@@ -112,6 +115,22 @@ export interface AccountQueriesConfig {
112
115
  * Defaults to false.
113
116
  */
114
117
  clearUnregisteredMutations?: boolean;
118
+ /**
119
+ * The version of the data this app persists. Restored queries are served before any refetch, so
120
+ * a blob is only safe to read in the shape it was written in. Without this, the cache is dropped
121
+ * on every new build (`getOxyBuildId`): safe, but every deploy starts every person from the
122
+ * network. With it, a blob survives deploys and is dropped when this string or this SDK's version
123
+ * changes; the app must change it whenever the shape of anything it persists changes (its own
124
+ * types, or a dependency's whose data it stores). It applies to both caches.
125
+ */
126
+ dataVersion?: string;
127
+ /**
128
+ * Caps on what a root writes, by root (`queryKey[0]`): its most recently updated `maxQueries`
129
+ * queries, each through `trim`, and `revive` to give restored data its type back (JSON keeps no
130
+ * `Date`). The root must also be listed in `roots`. For a root that grows with use, such as one
131
+ * query per conversation.
132
+ */
133
+ bounds?: Readonly<Record<string, PersistedRootBound>>;
115
134
  }
116
135
 
117
136
  /** Which queries and mutations an `AccountQueriesConfig` makes the account's. */
@@ -232,9 +251,13 @@ export function createAccountQueryPersistence(
232
251
  config.roots.filter((root) => !memoryOnly.has(root)),
233
252
  );
234
253
  }
254
+ const buster = persistedBuster(config?.dataVersion);
255
+ const bounds = new Map(Object.entries(config?.bounds ?? {}));
235
256
  const filters: PersistFilters = {
236
257
  persistsQuery,
237
258
  shouldDehydrateMutation: (mutation) => mutation.state.isPaused && persistsMutation(mutation),
259
+ buster,
260
+ bounds,
238
261
  };
239
262
  const listeners = new Set<() => void>();
240
263
 
@@ -294,6 +317,8 @@ export function createAccountQueryPersistence(
294
317
  if (current !== generation) return;
295
318
  if (
296
319
  !hydrateSnapshot(queryClient, raw, ACCOUNT_QUERY_CACHE_MAX_AGE, {
320
+ buster,
321
+ bounds,
297
322
  shouldRestoreQuery: persistsQuery,
298
323
  shouldRestoreMutation: (mutation) => persistsMutationKey(mutation.mutationKey),
299
324
  }) &&
@@ -310,6 +335,7 @@ export function createAccountQueryPersistence(
310
335
  (serialized) => {
311
336
  if (current !== generation) return;
312
337
  enqueue((target) => target.setItem(key, serialized));
338
+ evictBeyondBounds(queryClient, bounds);
313
339
  },
314
340
  );
315
341
  notify();
@@ -6,8 +6,10 @@
6
6
  * A blob is `{ buster, timestamp, clientState }`, TanStack's persisted-client
7
7
  * shape. Restoring it treats its two halves differently:
8
8
  *
9
- * - Queries are served before any refetch, so a query written by another
10
- * build, in whatever shape that build used, is dropped (`getOxyBuildId`).
9
+ * - Queries are served before any refetch, so a query written under another
10
+ * buster, in whatever shape it had then, is dropped. The buster is the build
11
+ * (`getOxyBuildId`) unless the app declares the version of the data it
12
+ * persists (`AccountQueriesConfig.dataVersion`, see `persistedBuster`).
11
13
  * - Paused mutations are the user's queued actions (a star, a send made
12
14
  * offline). A deploy must not lose them, so they are restored whatever build
13
15
  * wrote them; the current build's `setMutationDefaults` replays them.
@@ -22,6 +24,7 @@ import {
22
24
  type QueryClient,
23
25
  } from '@tanstack/react-query';
24
26
  import { getOxyBuildId } from '../utils/buildId';
27
+ import { SERVICES_PERSISTED_DATA_VERSION } from '../utils/persistedDataVersion';
25
28
 
26
29
  /** The SDK's own account-agnostic query roots, persisted by `attachQueryPersistence`. */
27
30
  export const PERSISTED_QUERY_PREFIXES: ReadonlyArray<string> = [
@@ -43,10 +46,119 @@ export const SDK_MEMORY_ONLY_ROOTS: ReadonlyArray<string> = [
43
46
  'justifiedPhotoDimensions',
44
47
  ];
45
48
 
49
+ /**
50
+ * A cap on what one root writes to disk: its `maxQueries` most recently updated queries, each
51
+ * passed through `trim` (for example, a conversation's last messages). Queries past the cap that
52
+ * no screen is watching leave memory too, so the root stays bounded in both.
53
+ */
54
+ export interface PersistedRootBound {
55
+ maxQueries: number;
56
+ /** Shrink one query's data before it is written. Must return data of the same shape. */
57
+ trim?: (data: unknown) => unknown;
58
+ /**
59
+ * Give a restored query's data its type back before anything reads it: the blob is JSON, so a
60
+ * `Date` comes back as a string. Runs once per query, on restore.
61
+ */
62
+ revive?: (data: unknown) => unknown;
63
+ }
64
+
46
65
  export interface PersistFilters {
47
66
  /** The queries this cache keeps, whatever their state; only successful ones are written. */
48
67
  persistsQuery: (query: Query) => boolean;
49
68
  shouldDehydrateMutation: (mutation: Mutation) => boolean;
69
+ /** What a blob is stamped with, and must match to be restored. Defaults to the build. */
70
+ buster?: string;
71
+ /** Per-root caps, by `queryKey[0]`. */
72
+ bounds?: ReadonlyMap<string, PersistedRootBound>;
73
+ }
74
+
75
+ /**
76
+ * The stamp a persisted blob must carry to be restored.
77
+ *
78
+ * Without a declared version it is the build: every deploy starts from the network, which is
79
+ * safe for an app that never says when its persisted data changes shape. With one, a blob
80
+ * survives deploys and is dropped only when that version, or this SDK's own (it owns the shape
81
+ * of the shared roots and of how blobs are written), changes.
82
+ */
83
+ export function persistedBuster(dataVersion?: string): string {
84
+ return dataVersion ? `data:${SERVICES_PERSISTED_DATA_VERSION}:${dataVersion}` : getOxyBuildId();
85
+ }
86
+
87
+ /** Within each bounded root, its queries ordered newest first by when their data arrived. */
88
+ function rankedByRoot<T extends { queryKey: readonly unknown[]; updatedAt: number }>(
89
+ items: readonly T[],
90
+ bounds: ReadonlyMap<string, PersistedRootBound>,
91
+ ): Map<string, T[]> {
92
+ const byRoot = new Map<string, T[]>();
93
+ for (const item of items) {
94
+ const root = typeof item.queryKey[0] === 'string' ? item.queryKey[0] : null;
95
+ if (root === null || !bounds.has(root)) continue;
96
+ const list = byRoot.get(root) ?? [];
97
+ list.push(item);
98
+ byRoot.set(root, list);
99
+ }
100
+ for (const list of byRoot.values()) list.sort((a, b) => b.updatedAt - a.updatedAt);
101
+ return byRoot;
102
+ }
103
+
104
+ /** Apply `bounds` to a dehydrated state: drop past the cap, trim what stays. */
105
+ function boundState(
106
+ state: DehydratedState,
107
+ bounds: ReadonlyMap<string, PersistedRootBound> | undefined,
108
+ ): DehydratedState {
109
+ if (!bounds || bounds.size === 0) return state;
110
+ const ranked = rankedByRoot(
111
+ state.queries.map((query) => ({ ...query, updatedAt: query.state.dataUpdatedAt })),
112
+ bounds,
113
+ );
114
+ const kept = new Set<string>();
115
+ for (const [root, list] of ranked) {
116
+ for (const query of list.slice(0, bounds.get(root)!.maxQueries)) kept.add(query.queryHash);
117
+ }
118
+ return {
119
+ ...state,
120
+ queries: state.queries.flatMap((query) => {
121
+ const root = typeof query.queryKey[0] === 'string' ? query.queryKey[0] : null;
122
+ const bound = root === null ? undefined : bounds.get(root);
123
+ if (!bound) return [query];
124
+ if (!kept.has(query.queryHash)) return [];
125
+ return [
126
+ bound.trim
127
+ ? { ...query, state: { ...query.state, data: bound.trim(query.state.data) } }
128
+ : query,
129
+ ];
130
+ }),
131
+ };
132
+ }
133
+
134
+ function reviveQuery(
135
+ query: DehydratedState['queries'][number],
136
+ bounds: ReadonlyMap<string, PersistedRootBound> | undefined,
137
+ ): DehydratedState['queries'][number] {
138
+ const root = typeof query.queryKey[0] === 'string' ? query.queryKey[0] : null;
139
+ const revive = root === null ? undefined : bounds?.get(root)?.revive;
140
+ if (!revive || query.state.data === undefined) return query;
141
+ return { ...query, state: { ...query.state, data: revive(query.state.data) } };
142
+ }
143
+
144
+ /** Remove, from memory, a bounded root's queries past its cap that nothing is watching. */
145
+ export function evictBeyondBounds(
146
+ queryClient: QueryClient,
147
+ bounds: ReadonlyMap<string, PersistedRootBound> | undefined,
148
+ ): void {
149
+ if (!bounds || bounds.size === 0) return;
150
+ const ranked = rankedByRoot(
151
+ queryClient
152
+ .getQueryCache()
153
+ .getAll()
154
+ .map((query) => ({ query, queryKey: query.queryKey, updatedAt: query.state.dataUpdatedAt })),
155
+ bounds,
156
+ );
157
+ for (const [root, list] of ranked) {
158
+ for (const { query } of list.slice(bounds.get(root)!.maxQueries)) {
159
+ if (query.getObserversCount() === 0) queryClient.getQueryCache().remove(query);
160
+ }
161
+ }
50
162
  }
51
163
 
52
164
  interface PersistedBlob {
@@ -78,16 +190,19 @@ export function rootOf(query: Pick<Query, 'queryKey'>): string | null {
78
190
  return typeof head === 'string' ? head : null;
79
191
  }
80
192
 
81
- /** Serialize what the filters select, stamped with this build. */
193
+ /** Serialize what the filters select, within their bounds, stamped with their buster. */
82
194
  export function snapshot(queryClient: QueryClient, filters: PersistFilters): string {
83
195
  const blob: PersistedBlob = {
84
- buster: getOxyBuildId(),
196
+ buster: filters.buster ?? getOxyBuildId(),
85
197
  timestamp: Date.now(),
86
- clientState: dehydrate(queryClient, {
87
- shouldDehydrateQuery: (query) =>
88
- query.state.status === 'success' && filters.persistsQuery(query),
89
- shouldDehydrateMutation: filters.shouldDehydrateMutation,
90
- }),
198
+ clientState: boundState(
199
+ dehydrate(queryClient, {
200
+ shouldDehydrateQuery: (query) =>
201
+ query.state.status === 'success' && filters.persistsQuery(query),
202
+ shouldDehydrateMutation: filters.shouldDehydrateMutation,
203
+ }),
204
+ filters.bounds,
205
+ ),
91
206
  };
92
207
  return JSON.stringify(blob);
93
208
  }
@@ -102,6 +217,10 @@ export function hydrateSnapshot(
102
217
  raw: string | null,
103
218
  maxAge: number,
104
219
  options?: {
220
+ /** The stamp the blob must carry for its queries to be restored. Defaults to the build. */
221
+ buster?: string;
222
+ /** Per-root `revive`, applied to each restored query of that root. */
223
+ bounds?: ReadonlyMap<string, PersistedRootBound>;
105
224
  shouldRestoreQuery?: (query: DehydratedState['queries'][number]) => boolean;
106
225
  shouldRestoreMutation?: (mutation: DehydratedState['mutations'][number]) => boolean;
107
226
  restoreMutations?: boolean;
@@ -121,12 +240,12 @@ export function hydrateSnapshot(
121
240
  ) {
122
241
  return false;
123
242
  }
124
- const sameBuild = blob.buster === getOxyBuildId();
243
+ const sameBuild = blob.buster === (options?.buster ?? getOxyBuildId());
125
244
  hydrate(queryClient, {
126
245
  queries: sameBuild
127
- ? (blob.clientState.queries ?? []).filter(
128
- (query) => options?.shouldRestoreQuery?.(query) ?? true,
129
- )
246
+ ? (blob.clientState.queries ?? [])
247
+ .filter((query) => options?.shouldRestoreQuery?.(query) ?? true)
248
+ .map((query) => reviveQuery(query, options?.bounds))
130
249
  : [],
131
250
  mutations:
132
251
  options?.restoreMutations === false