@stacksjs/defaults 0.75.315 → 0.75.317

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.
@@ -252,6 +252,17 @@ Postmaster Tools is the only view of why Gmail files mail as spam when SPF, DKIM
252
252
 
253
253
  When no configured provider can write the zone (no credentials for the provider its nameservers name, e.g. a Cloudflare zone with no `CLOUDFLARE_API_TOKEN`), nothing is published, on this deploy or any later one. The deploy warns with the exact fix (`buddy env:set CLOUDFLARE_API_TOKEN <value> -f .env.production`) and the records to add by hand. `buddy doctor` reports the same without deploying: "Mail DNS provider" (which provider the nameservers name, and whether its keys are in `.env.production`, by name only), "Mail DNS records" (MX, SPF, DKIM at `mail._domainkey`, DMARC in public DNS, each exactly once, the DMARC policy against config, SPF against the MX host's address) and "Postmaster Tools". Code: `core/buddy/src/mail-dns-health.ts`, `core/buddy/src/dns-credentials.ts`.
254
254
 
255
+ ## Notification email templates
256
+
257
+ `notify()` and `notificationEmailMessage()` accept
258
+ `emailTemplate: { name: 'workout-reminder', variables: { workouts } }`.
259
+ The named STX template receives the normal subject, paragraphs, locale, action
260
+ and unsubscribe frame alongside the supplied variables. Frame values take
261
+ precedence so template data cannot replace the recipient's opt-out links or
262
+ language. Keep the notification `body` complete, including per-item links: it
263
+ is still the plain-text part and rendering fallback. Persist template data
264
+ with queued notifications so a retry renders the same content.
265
+
255
266
  ## Application Mail Example
256
267
 
257
268
  ```typescript
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.315",
5
+ "version": "0.75.317",
6
6
  "description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.315",
5
+ "version": "0.75.317",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@iconify-json/f7": "^1.2.2",
47
47
  "@iconify-json/hugeicons": "^1.2.35",
48
- "@stacksjs/mobile": "0.75.315",
48
+ "@stacksjs/mobile": "0.75.317",
49
49
  "@stacksjs/sanitizer": "0.2.691",
50
50
  "@stacksjs/stx": "0.2.691",
51
51
  "@xterm/addon-fit": "^0.11.0",