@coastweb/emdash-plugin-cloudflare-email 0.1.1 → 0.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/README.md +9 -0
- package/dist/index.mjs +1 -1
- package/dist/sandbox-entry.mjs +2 -3
- package/package.json +3 -3
- package/dist/cloudflare-email-0.1.0.tar.gz +0 -0
package/README.md
CHANGED
|
@@ -8,6 +8,15 @@ An [EmDash CMS](https://docs.emdashcms.com/introduction/) plugin that adds email
|
|
|
8
8
|
|
|
9
9
|
You must have [Cloudflare Email Service](https://developers.cloudflare.com/email-service/) (available in public beta) enabled on the same Cloudflare account where you are deploying your emdash worker. You will need to configure a sending domain in Cloudflare before you can use this plugin.
|
|
10
10
|
|
|
11
|
+
## Version compatibility
|
|
12
|
+
|
|
13
|
+
| Plugin version | EmDash version | Notes |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `0.2.x` | `1.5.0` and later | Tested on EmDash 1.5.0. The sandbox entry is a plain `{ hooks, routes }` object (`satisfies SandboxedPlugin`). EmDash 1.x rejects `definePlugin()` without an `id`, so `0.1.x` fails on 1.x with `definePlugin() requires id (got undefined)`. |
|
|
16
|
+
| `0.1.x` | `0.8.x` | Uses `definePlugin()`. Last release for EmDash 0.x. |
|
|
17
|
+
|
|
18
|
+
Upgrading EmDash from 0.x to 1.x? Upgrade this plugin to `0.2.0` at the same time. Versions of EmDash between `0.8` and `1.5` have not been tested with either release.
|
|
19
|
+
|
|
11
20
|
## Installation
|
|
12
21
|
|
|
13
22
|
```bash
|
package/dist/index.mjs
CHANGED
package/dist/sandbox-entry.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/sandbox-entry.ts
|
|
2
|
-
import { definePlugin } from "emdash";
|
|
3
2
|
function buildMimeMessage(from, to, subject, text, html) {
|
|
4
3
|
const boundary = `----=_Part_${Date.now()}`;
|
|
5
4
|
const lines = [
|
|
@@ -20,7 +19,7 @@ function buildMimeMessage(from, to, subject, text, html) {
|
|
|
20
19
|
}
|
|
21
20
|
return lines.join("\r\n");
|
|
22
21
|
}
|
|
23
|
-
var sandbox_entry_default =
|
|
22
|
+
var sandbox_entry_default = {
|
|
24
23
|
hooks: {
|
|
25
24
|
"email:deliver": {
|
|
26
25
|
exclusive: true,
|
|
@@ -99,7 +98,7 @@ var sandbox_entry_default = definePlugin({
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
|
-
}
|
|
101
|
+
};
|
|
103
102
|
export {
|
|
104
103
|
sandbox_entry_default as default
|
|
105
104
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coastweb/emdash-plugin-cloudflare-email",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/immber/emdash-plugin-cloudflare-email"
|
|
23
|
+
"url": "git+https://github.com/immber/emdash-plugin-cloudflare-email.git"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"emdash": "
|
|
26
|
+
"emdash": ">=1.5.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@cloudflare/workers-types": "^4.20260426.1",
|
|
Binary file
|