@crvouga/mockingbird-service-payload-cms 3.0.0 → 3.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog — @crvouga/mockingbird-service-payload-cms
2
2
 
3
+ ## 3.1.0 (2026-10-08)
4
+
5
+ ### Features
6
+
7
+ - redesign emulator experience ([d6038c2](https://github.com/crvouga/mockingbird/commit/d6038c27eebbaa1751f02bc9305002a5b1304779))
8
+
9
+ ### Dependencies
10
+
11
+ - `@crvouga/mockingbird-service-sqlite`
12
+
3
13
  ## 3.0.0 (2026-10-07)
4
14
 
5
15
  ### ⚠️ Breaking changes
@@ -14,10 +24,6 @@
14
24
  - typecheck the brand gate before builds ([fc36095](https://github.com/crvouga/mockingbird/commit/fc3609514de70ffe3170a5d216fb8a49f9ce7cbb))
15
25
  - format the emulates records query ([8698872](https://github.com/crvouga/mockingbird/commit/8698872509d06002be5a8fcdc85d79f8462320c3))
16
26
 
17
- ### Dependencies
18
-
19
- - `@crvouga/mockingbird-service-sqlite`
20
-
21
27
  ## 2.3.0 (2026-10-04)
22
28
 
23
29
  ### Features
package/DISCOVERY.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @crvouga/mockingbird-service-payload-cms discovery
2
2
 
3
3
  This is the installed-package index for coding agents and tooling. All relative links resolve
4
- inside `node_modules/@crvouga/mockingbird-service-payload-cms/`; no repository checkout is needed to discover the mock's
4
+ inside `node_modules/@crvouga/mockingbird-service-payload-cms/`; no repository checkout is needed to discover the emulator's
5
5
  supported surface or documented behavior.
6
6
 
7
7
  ## Capability and behavior sources
@@ -48,7 +48,7 @@ designed for assertions and diagnosis by consuming test suites.
48
48
  ## Report a mismatch or missing capability
49
49
 
50
50
  Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
51
- operation/command, a minimal redacted request, actual mock result, expected oracle result or vendor
51
+ operation/command, a minimal redacted request, actual emulator result, expected oracle result or vendor
52
52
  documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
53
53
  customer data, prompts, PHI, card data, or unredacted recordings.
54
54
 
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @crvouga/mockingbird-service-payload-cms
2
2
 
3
- > Familiar calls. Faithful echoes. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
3
+ > Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
4
4
 
5
- Stateful mock of **Payload CMS**'s collection REST API for test suites: `GET /api/<collection>`
5
+ Stateful emulator of **Payload CMS**'s collection REST API for test suites: `GET /api/<collection>`
6
6
  with Payload's paginated envelope (`docs`, `totalDocs`, `limit`, `totalPages`, `page`,
7
7
  `pagingCounter`, `hasPrevPage`, `hasNextPage`, `prevPage`, `nextPage`) and a `where` query
8
8
  subset, and `GET /api/<collection>/<id>`. The `marketing` collection is seeded with an active
@@ -25,8 +25,8 @@ with any Fetch server.
25
25
 
26
26
  ## Usage
27
27
 
28
- Point `PAYLOAD_CMS_API_URL` at the mock. The backend validates it as **https-only**
29
- (`validation.schema.ts`), so either relax that for loopback or put the mock behind TLS.
28
+ Point `PAYLOAD_CMS_API_URL` at the emulator. The backend validates it as **https-only**
29
+ (`validation.schema.ts`), so either relax that for loopback or put the emulator behind TLS.
30
30
  Anything that goes wrong (non-2xx, empty docs, bad JSON, a dropped connection) makes the
31
31
  backend fall back to its default referral content, which the presets exercise.
32
32
 
@@ -75,7 +75,7 @@ card, `3` an active banner.
75
75
  | `GET /__admin/collections` | `{collections: {<slug>: <doc count>}}`. |
76
76
  | `GET /__admin/collections/:slug` | The collection's documents. |
77
77
  | `PUT /__admin/collections/:slug` | `{docs: [...]}` replaces the collection (creates it if new). |
78
- | `POST /__admin/collections/:slug/docs` | Adds a document (next integer id, timestamps from the mock clock). |
78
+ | `POST /__admin/collections/:slug/docs` | Adds a document (next integer id, timestamps from the emulator clock). |
79
79
  | `PATCH /__admin/collections/:slug/docs/:id` | Merges fields into a document. |
80
80
  | `DELETE /__admin/collections/:slug/docs/:id` | Removes a document. |
81
81
 
@@ -100,8 +100,8 @@ mapped with `PUT /__admin/credentials`.
100
100
 
101
101
  | Export | Kind | Description |
102
102
  | --- | --- | --- |
103
- | `PayloadCmsAPI` | class | The in-process mock: `fetch(request)`, `reset()`, `addDoc(slug, fields)`, `updateDoc(slug, id, patch)`, `deleteDoc(slug, id)`, `collections()`. Options: `sqlite`, `now`, `namespace`, `collections`. |
104
- | `createRuntime` | function | The mock with the full service contract (health, admin, namespaces, presets). Options: `collections`, `clock`, `seed`, `adminKey`, `onLog`, `sqlite`. |
103
+ | `PayloadCmsAPI` | class | The in-process emulator: `fetch(request)`, `reset()`, `addDoc(slug, fields)`, `updateDoc(slug, id, patch)`, `deleteDoc(slug, id)`, `collections()`. Options: `sqlite`, `now`, `namespace`, `collections`. |
104
+ | `createRuntime` | function | The emulator with the full service contract (health, admin, namespaces, presets). Options: `collections`, `clock`, `seed`, `adminKey`, `onLog`, `sqlite`. |
105
105
  | `PAYLOAD_CMS_PRESETS` | object | Every named fault preset. |
106
106
  | `PAYLOAD_CMS_NAMESPACE` | string | The service name, `"payload-cms"`. |
107
107
  | `DEFAULT_MARKETING_DOCS` | array | The marketing collection seed. |
package/SUPPORT.md CHANGED
@@ -3,10 +3,10 @@
3
3
  Generated from `openapi.yaml`; do not edit by hand.
4
4
 
5
5
  - operations in spec: **2**
6
- - supported by the mock: **2**
6
+ - supported by the emulator: **2**
7
7
  - parity enabled: **2**
8
8
 
9
- | operationId | route | mock | parity | notes |
9
+ | operationId | route | emulator | parity | notes |
10
10
  | --- | --- | --- | --- | --- |
11
11
  | `FindDocuments` | `GET /api/{collection}` | ✅ supported | ✅ | |
12
12
  | `FindDocumentById` | `GET /api/{collection}/{id}` | ✅ supported | ✅ | |