@crvouga/mockingbird-service-resend 2.0.0 → 2.2.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 +25 -4
- package/README.md +2 -0
- package/SUPPORT.md +5 -3
- package/dist/chunk-VMXQ2LLE.js +4440 -0
- package/dist/chunk-VMXQ2LLE.js.map +7 -0
- package/dist/{chunk-K5P64BHJ.js → chunk-X3KXLVOT.js} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +7 -4
- package/dist/index.js +1 -1
- package/dist/server.d.ts +3 -0
- package/dist/server.js +2 -2
- package/openapi.yaml +232 -0
- package/package.json +2 -2
- package/dist/chunk-AVLXDCB3.js +0 -6501
- package/dist/chunk-AVLXDCB3.js.map +0 -7
- /package/dist/{chunk-K5P64BHJ.js.map → chunk-X3KXLVOT.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-resend
|
|
2
2
|
|
|
3
|
+
## 2.2.0 (2026-10-05)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add scripted local API mock ([4a76a11](https://github.com/crvouga/mockingbird/commit/4a76a114e2efad45934e0a93cf29576fd418e15c))
|
|
8
|
+
- add email collection pagination ([c75ffb9](https://github.com/crvouga/mockingbird/commit/c75ffb9db5a04eff4965de8f378b931d56cd8d60))
|
|
9
|
+
- add email collection pagination ([ae926d0](https://github.com/crvouga/mockingbird/commit/ae926d0e91a283e7ad834711bf8e279916f79684))
|
|
10
|
+
|
|
11
|
+
### Fixes and improvements
|
|
12
|
+
|
|
13
|
+
- support embedded route parameters ([127cad9](https://github.com/crvouga/mockingbird/commit/127cad997ef106950c1b866070eea191ba54403f))
|
|
14
|
+
- preserve namespace URLs after main sync ([62a15ce](https://github.com/crvouga/mockingbird/commit/62a15ce9bd453069bde69e3a30c91efc01f8871b))
|
|
15
|
+
|
|
16
|
+
## 2.1.0 (2026-10-04)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- use shared forms for service actions ([af19eb9](https://github.com/crvouga/mockingbird/commit/af19eb9d4896d8418f5db850f20808a89291b949))
|
|
21
|
+
- replace UI with Ant Design ([6547b4e](https://github.com/crvouga/mockingbird/commit/6547b4ef1663fb597ab515cce06245c82010407a))
|
|
22
|
+
|
|
23
|
+
### Fixes and improvements
|
|
24
|
+
|
|
25
|
+
- fill the embedded viewport ([c1a35a4](https://github.com/crvouga/mockingbird/commit/c1a35a4789389ee9cd06c286d09bd47c4d06c71e))
|
|
26
|
+
- make dialog cleanup immediate ([0c1a3c5](https://github.com/crvouga/mockingbird/commit/0c1a3c5b12584d50c19dcae595b951b8e5417b9c))
|
|
27
|
+
|
|
3
28
|
## 2.0.0 (2026-10-04)
|
|
4
29
|
|
|
5
30
|
### ⚠️ Breaking changes
|
|
@@ -19,10 +44,6 @@
|
|
|
19
44
|
- parse ISO journal timestamps ([20b39a2](https://github.com/crvouga/mockingbird/commit/20b39a2c738e278533d610dfc91f1cb3ae9b3f1e))
|
|
20
45
|
- harden shared controls ([7822614](https://github.com/crvouga/mockingbird/commit/7822614f6cba0387aeb60ba7320b0379aa1ef690))
|
|
21
46
|
|
|
22
|
-
### Dependencies
|
|
23
|
-
|
|
24
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
25
|
-
|
|
26
47
|
## 1.8.0 (2026-10-01)
|
|
27
48
|
|
|
28
49
|
### Features
|
package/README.md
CHANGED
|
@@ -77,6 +77,8 @@ await mock.close()
|
|
|
77
77
|
| --- | --- |
|
|
78
78
|
| `POST /emails` | `{from, to, subject, html?, text?, cc?, bcc?, reply_to?, headers?, tags?, attachments?, scheduled_at?}` → `{id}` (a UUID). The SDK renders `react` to HTML before sending, so the mock sees HTML. Violations answer Resend's body `{statusCode, name, message}`: 422 `missing_required_field` (`Missing \`to\` field.`, or no `html`/`text`), 422 `validation_error` for a malformed address (`Invalid \`from\` field. The email address needs to follow …`), a tag outside `[A-Za-z0-9_-]`, or any other contract violation. `Idempotency-Key`: the same key and payload replay the first 200 byte for byte (`idempotent-replayed: true`); another payload is 409 `invalid_idempotent_request`; a key still in flight is 409 `concurrent_idempotent_requests`; a key outside 1–256 characters is 400 `invalid_idempotency_key`. Only 200s are remembered. |
|
|
79
79
|
| `GET /emails/{id}` | `emails.get`: `{object: "email", id, to, from, created_at, subject, html, text, cc, bcc, reply_to, last_event: "delivered" \| "scheduled", scheduled_at, headers, tags}`. `headers` keeps the names and values from the send; `to` keeps the original address form and order. |
|
|
80
|
+
| `GET /emails` | Newest-first sent email metadata, `{object: "list", has_more, data}`. `limit` defaults to 20 (1–100); `after`/`before` use email IDs and exclude the cursor. Content is available from the detail endpoint. |
|
|
81
|
+
| `GET /emails/receiving` | Newest-first received email metadata with the same envelope and ID cursors. Without `limit`, returns every received email; an explicit limit must be 1–100. Includes attachment metadata and size. |
|
|
80
82
|
| `GET /emails/receiving/{id}` | A received email: `{object: "email", id, to, from, cc, bcc, reply_to, created_at, subject, html, text, headers, message_id, attachments[{id, filename, content_type, content_disposition, content_id}]}`. |
|
|
81
83
|
| `GET /emails/receiving/{id}/attachments` | `{object: "list", has_more: false, data: [{id, filename, content_type, content_disposition, content_id, size, download_url, expires_at}]}`. |
|
|
82
84
|
| `GET /downloads/inbound/{attachment_id}` | The `download_url`: unauthenticated, the bytes with `content-type` and `content-length`. In a non-default namespace the URL carries `/__admin/ns/<name>`. |
|
package/SUPPORT.md
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
4
|
|
|
5
|
-
- operations in spec: **
|
|
6
|
-
- supported by the mock: **
|
|
7
|
-
- parity enabled: **
|
|
5
|
+
- operations in spec: **7**
|
|
6
|
+
- supported by the mock: **7**
|
|
7
|
+
- parity enabled: **7**
|
|
8
8
|
|
|
9
9
|
| operationId | route | mock | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
11
|
+
| `ListEmails` | `GET /emails` | ✅ supported | ✅ | |
|
|
11
12
|
| `SendEmail` | `POST /emails` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
12
13
|
| `GetEmail` | `GET /emails/{email_id}` | ✅ supported | ✅ | |
|
|
14
|
+
| `ListReceivedEmails` | `GET /emails/receiving` | ✅ supported | ✅ | |
|
|
13
15
|
| `GetReceivedEmail` | `GET /emails/receiving/{email_id}` | ✅ supported | ✅ | |
|
|
14
16
|
| `ListReceivedEmailAttachments` | `GET /emails/receiving/{email_id}/attachments` | ✅ supported | ✅ | |
|
|
15
17
|
| `DownloadReceivedAttachment` | `GET /downloads/inbound/{attachment_id}` | ✅ supported | ✅ | |
|