@usegraft/sdk-react-router 1.0.0-beta.1 → 1.0.0-beta.3

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/index.d.ts +3 -1
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -21,7 +21,9 @@ export { AnyCollection, ChangeSet, ClientOptions, Document, GraftClient, ListOpt
21
21
  * Caching: React Router has no tag-based data cache, so the Phase 4 tag
22
22
  * contract maps onto HTTP — stamp `tagsFor(...)` into a CDN surrogate-key
23
23
  * header (`Cache-Tag` / `Surrogate-Key`) from the route's `headers` export,
24
- * and purge `tagsForChanges(branch, changeSet)` from your compile webhook.
24
+ * and purge `tagsForChanges(branch, changeSet)` from your own route, called
25
+ * with a compile's change list. `graft compile --json` prints `{ branch, gitSha, changes }`: pass its
26
+ * `branch` and `changes`, not the whole object.
25
27
  */
26
28
 
27
29
  interface Graft<TCollections extends Record<string, AnyCollection>> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usegraft/sdk-react-router",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "React Router v7 adapter: typed content reads and loader/action mounts over Graft's stateless handlers.",
5
5
  "keywords": [
6
6
  "agent",
@@ -38,11 +38,11 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@usegraft/db": "1.0.0-beta.1",
42
- "@usegraft/sdk-core": "1.0.0-beta.1"
41
+ "@usegraft/db": "1.0.0-beta.3",
42
+ "@usegraft/sdk-core": "1.0.0-beta.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@usegraft/core": "1.0.0-beta.1"
45
+ "@usegraft/core": "1.0.0-beta.3"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=22.16"