@blaze-cache/react-query 0.2.1-beta → 0.2.3-beta

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/README.md +10 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -51,6 +51,15 @@ up with TanStack's own hashing, so a custom `queryKeyHashFn` is honoured.
51
51
  paint.
52
52
  * Renders never touch cache statistics: the pre-fetch lookup prefers `peek` over `get`,
53
53
  so StrictMode's double render cannot move the hit rate or influence eviction.
54
+ * That holds for events too — `peek` emits nothing, so renders are silent; the writes the
55
+ mirror performs surface as `set` events on the shared cache:
56
+
57
+ ```ts
58
+ cache.on('set', ({ key }) => console.log('mirrored', key));
59
+ ```
60
+
61
+ `on` returns its own unsubscribe function; the full event table is in the
62
+ [repository README](https://github.com/blaze-cache/blaze-cache#events).
54
63
  * Error states stay in TanStack — only data crosses into the cache.
55
64
  * TanStack owns freshness *within* a session; Blaze Cache owns it *across* sessions.
56
65
 
@@ -63,6 +72,7 @@ Setup and the full integration reference live in the
63
72
 
64
73
  * [`@blaze-cache/core`](https://www.npmjs.com/package/@blaze-cache/core) — the cache itself
65
74
  * [`@blaze-cache/axios`](https://www.npmjs.com/package/@blaze-cache/axios) — HTTP adapter
75
+ * [`@blaze-cache/fetch`](https://www.npmjs.com/package/@blaze-cache/fetch) — drop-in `fetch()` replacement
66
76
 
67
77
  ## License
68
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaze-cache/react-query",
3
- "version": "0.2.1-beta",
3
+ "version": "0.2.3-beta",
4
4
  "description": "Persist TanStack Query v5 in WebAssembly — instant first paint after reload while stale-while-revalidate still works",
5
5
  "keywords": [
6
6
  "react-query",
@@ -38,7 +38,7 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "@blaze-cache/core": "0.2.1-beta"
41
+ "@blaze-cache/core": "0.2.3-beta"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@tanstack/react-query": "^5.0.0"