@emailens/engine 0.8.6 → 0.9.1

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/dist/index.d.cts CHANGED
@@ -159,10 +159,10 @@ declare const AI_FIX_SYSTEM_PROMPT = "You are an expert email developer speciali
159
159
 
160
160
  /**
161
161
  * CSS/HTML feature support matrix — auto-generated from caniemail.com.
162
- * Last synced: 2026-03-04
162
+ * Last synced: 2026-03-23
163
163
  * caniemail last updated: 2026-02-16 15:39:06 +0000
164
164
  *
165
- * 251 features across 13 email clients.
165
+ * 251 features across 15 email clients.
166
166
  *
167
167
  * Support levels:
168
168
  * - "supported": fully supported
@@ -301,7 +301,10 @@ declare function auditEmail(html: string, options?: AuditOptions): AuditReport;
301
301
 
302
302
  /**
303
303
  * Convert HTML email to plain text suitable for multipart/alternative emails.
304
- * Uses cheerio for parsing (already a dependency — no new deps needed).
304
+ *
305
+ * Walks the DOM tree node-by-node, emitting text content with proper
306
+ * line breaks for block elements. Avoids cheerio's `.text()` which
307
+ * preserves all source whitespace from deeply nested email tables.
305
308
  */
306
309
  declare function toPlainText(html: string): string;
307
310
 
@@ -366,7 +369,7 @@ interface EmailSession {
366
369
  */
367
370
  transformForClient(clientId: string): TransformResult;
368
371
  /**
369
- * Transform HTML for all 13 email clients.
372
+ * Transform HTML for all email clients.
370
373
  *
371
374
  * Creates an isolated DOM copy per client (transforms mutate the DOM).
372
375
  */
package/dist/index.d.ts CHANGED
@@ -159,10 +159,10 @@ declare const AI_FIX_SYSTEM_PROMPT = "You are an expert email developer speciali
159
159
 
160
160
  /**
161
161
  * CSS/HTML feature support matrix — auto-generated from caniemail.com.
162
- * Last synced: 2026-03-04
162
+ * Last synced: 2026-03-23
163
163
  * caniemail last updated: 2026-02-16 15:39:06 +0000
164
164
  *
165
- * 251 features across 13 email clients.
165
+ * 251 features across 15 email clients.
166
166
  *
167
167
  * Support levels:
168
168
  * - "supported": fully supported
@@ -301,7 +301,10 @@ declare function auditEmail(html: string, options?: AuditOptions): AuditReport;
301
301
 
302
302
  /**
303
303
  * Convert HTML email to plain text suitable for multipart/alternative emails.
304
- * Uses cheerio for parsing (already a dependency — no new deps needed).
304
+ *
305
+ * Walks the DOM tree node-by-node, emitting text content with proper
306
+ * line breaks for block elements. Avoids cheerio's `.text()` which
307
+ * preserves all source whitespace from deeply nested email tables.
305
308
  */
306
309
  declare function toPlainText(html: string): string;
307
310
 
@@ -366,7 +369,7 @@ interface EmailSession {
366
369
  */
367
370
  transformForClient(clientId: string): TransformResult;
368
371
  /**
369
- * Transform HTML for all 13 email clients.
372
+ * Transform HTML for all email clients.
370
373
  *
371
374
  * Creates an isolated DOM copy per client (transforms mutate the DOM).
372
375
  */