@voyantjs/plugin-payload-cms 0.6.0 → 0.6.2

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 +7 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -6,7 +6,7 @@ Architecturally, this package is primarily:
6
6
 
7
7
  - a Payload sync adapter
8
8
  - a subscriber bundle that mirrors Voyant module records into Payload
9
- - an optional plugin bundle for distribution
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 Payload collection
12
12
  keyed by a `voyantId` field.
@@ -35,10 +35,10 @@ const app = createApp({
35
35
  })
36
36
  ```
37
37
 
38
- The exported value is an optional distribution bundle. At runtime, the package
39
- behaves primarily as a subscriber-driven Payload sync adapter. By default it
40
- wires up 3 subscribers (`product.created`, `product.updated`, `product.deleted`)
41
- that upsert/delete documents keyed by `voyantId`. All error handling is
38
+ `payloadCmsPlugin(...)` is the packaged distribution helper. The runtime role is
39
+ still a subscriber-driven Payload sync adapter. By default it wires up 3
40
+ subscribers (`product.created`, `product.updated`, `product.deleted`) that
41
+ upsert/delete documents keyed by `voyantId`. All error handling is
42
42
  fire-and-forget per the EventBus contract.
43
43
 
44
44
  ## Exports
@@ -46,9 +46,9 @@ fire-and-forget per the EventBus contract.
46
46
  | Entry | Description |
47
47
  | --- | --- |
48
48
  | `.` | Barrel re-exports |
49
- | `./plugin` | `payloadCmsPlugin(options)` |
49
+ | `./plugin` | `payloadCmsPlugin(options)` — packaged adapter/subscriber bundle |
50
50
  | `./client` | `createPayloadClient` — `upsertByVoyantId`, `deleteByVoyantId`, `findByVoyantId` |
51
- | `./types` | Plugin option types |
51
+ | `./types` | Adapter and bundle option types |
52
52
 
53
53
  ## License
54
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/plugin-payload-cms",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
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.0"
26
+ "@voyantjs/core": "0.6.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "typescript": "^6.0.2",