@voyantjs/plugin-sanity-cms 0.6.0 → 0.6.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.
- package/README.md +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Architecturally, this package is primarily:
|
|
|
6
6
|
|
|
7
7
|
- a Sanity sync adapter
|
|
8
8
|
- a subscriber bundle that mirrors Voyant module records into Sanity
|
|
9
|
-
- an optional
|
|
9
|
+
- an optional packaged bundle when an app wants one installable entrypoint
|
|
10
10
|
|
|
11
11
|
It subscribes to module events and mirrors documents into a Sanity dataset keyed
|
|
12
12
|
by a `voyantId` field.
|
|
@@ -36,8 +36,8 @@ const app = createApp({
|
|
|
36
36
|
})
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Uses GROQ for reads and Sanity Mutations API for writes.
|
|
40
|
-
|
|
39
|
+
Uses GROQ for reads and Sanity Mutations API for writes. `sanityCmsPlugin(...)`
|
|
40
|
+
is the packaged distribution helper; at runtime the package is primarily a
|
|
41
41
|
subscriber-driven Sanity sync adapter. Default `apiVersion` is `"2024-01-01"`.
|
|
42
42
|
By default it wires up 3 subscribers
|
|
43
43
|
(`product.created`, `product.updated`, `product.deleted`).
|
|
@@ -47,9 +47,9 @@ By default it wires up 3 subscribers
|
|
|
47
47
|
| Entry | Description |
|
|
48
48
|
| --- | --- |
|
|
49
49
|
| `.` | Barrel re-exports |
|
|
50
|
-
| `./plugin` | `sanityCmsPlugin(options)` |
|
|
50
|
+
| `./plugin` | `sanityCmsPlugin(options)` — packaged adapter/subscriber bundle |
|
|
51
51
|
| `./client` | `createSanityClient` — `upsertByVoyantId`, `deleteByVoyantId`, `findByVoyantId` |
|
|
52
|
-
| `./types` |
|
|
52
|
+
| `./types` | Adapter and bundle option types |
|
|
53
53
|
|
|
54
54
|
## License
|
|
55
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/plugin-sanity-cms",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"zod": "^4.3.6",
|
|
26
|
-
"@voyantjs/core": "0.6.
|
|
26
|
+
"@voyantjs/core": "0.6.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^6.0.2",
|