@visulima/email 3.0.5 → 3.0.7
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 +22 -0
- package/README.md +2 -2
- package/dist/template-engines/mjml.d.ts +1 -1
- package/dist/template-engines/mjml.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## @visulima/email [3.0.7](https://github.com/visulima/visulima/compare/@visulima/email@3.0.6...@visulima/email@3.0.7) (2026-09-21)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* unblock the failing pipelines (audit gate, mjml, semver ban, data sync) ([#873](https://github.com/visulima/visulima/issues/873)) ([18709d4](https://github.com/visulima/visulima/commit/18709d48e80109c3ac02d3b6217812d759f1a572)), closes [#869](https://github.com/visulima/visulima/issues/869) [#870](https://github.com/visulima/visulima/issues/870)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* point every Discord link at the anolilab server ([#858](https://github.com/visulima/visulima/issues/858)) ([4002bfc](https://github.com/visulima/visulima/commit/4002bfcd8d3c748d7008efe208e6aaae7bd18753))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* **@visulima/fs:** upgraded to 6.0.9
|
|
15
|
+
|
|
16
|
+
## @visulima/email [3.0.6](https://github.com/visulima/visulima/compare/@visulima/email@3.0.5...@visulima/email@3.0.6) (2026-09-07)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Dependencies
|
|
20
|
+
|
|
21
|
+
* **@visulima/fs:** upgraded to 6.0.8
|
|
22
|
+
|
|
1
23
|
## @visulima/email [3.0.5](https://github.com/visulima/visulima/compare/@visulima/email@3.0.4...@visulima/email@3.0.5) (2026-09-06)
|
|
2
24
|
|
|
3
25
|
|
package/README.md
CHANGED
|
@@ -1478,7 +1478,7 @@ The visulima email is open-sourced software licensed under the [MIT][license]
|
|
|
1478
1478
|
[npm-downloads]: https://www.npmjs.com/package/@visulima/email
|
|
1479
1479
|
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
|
|
1480
1480
|
[prs-welcome]: https://github.com/visulima/visulima/blob/main/.github/CONTRIBUTING.md
|
|
1481
|
-
[chat-badge]: https://img.shields.io/discord/
|
|
1482
|
-
[chat]: https://discord.gg/
|
|
1481
|
+
[chat-badge]: https://img.shields.io/discord/902465130518949899.svg?style=for-the-badge
|
|
1482
|
+
[chat]: https://discord.gg/eajEZvk2PG
|
|
1483
1483
|
[typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
1484
1484
|
[typescript-url]: https://www.typescriptlang.org/
|
|
@@ -4,7 +4,7 @@ import { T as TemplateRenderer } from "../packem_shared/types.d-I-KeZ5w2.js";
|
|
|
4
4
|
* @param template MJML template string.
|
|
5
5
|
* @param _data Data (not used for MJML).
|
|
6
6
|
* @param options MJML options (beautify, fonts, keepComments, minify, validationLevel).
|
|
7
|
-
* @returns
|
|
7
|
+
* @returns Promise resolving to the rendered HTML string.
|
|
8
8
|
* @throws {TypeError} When template is not a string.
|
|
9
9
|
* @throws {EmailError} When MJML is not installed, validation fails, or rendering fails.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n from"mjml";import t from"../packem_shared/EmailError-BIaHK1Uw.js";const f=(
|
|
1
|
+
import n from"mjml";import t from"../packem_shared/EmailError-BIaHK1Uw.js";const f=async(a,o,r)=>{try{if(typeof a!="string")throw new TypeError("MJML template must be a string");const e=await n(a,{beautify:r?.beautify??!1,fonts:r?.fonts,keepComments:r?.keepComments??!0,minify:r?.minify??!1,validationLevel:r?.validationLevel??"soft"});if(e.errors&&e.errors.length>0){const s=e.errors.map(m=>m.message).join("; ");throw new t("mjml",`MJML validation errors: ${s}`)}return e.html}catch(e){throw e instanceof Error&&e.message.includes("Cannot find module")?new t("mjml","MJML is not installed. Please install it: pnpm add mjml",{cause:e}):e instanceof t?e:new t("mjml",`Failed to render MJML: ${e.message}`,{cause:e})}};export{f as default};
|