@nxgt/janus-mail 0.9.7 → 0.9.8

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 CHANGED
@@ -355,6 +355,13 @@ A locale beyond `en` and `fr` takes **every** template: see
355
355
 
356
356
  ## Traps
357
357
 
358
+ **No template sends `changeEmail`'s link yet.** `auth.<type>.changeEmail.send`
359
+ answers an `IssuedToken` like the others, but `mail.verifyEmail(issued)` is
360
+ not its mail: it would say the wrong thing, and its link redeems a
361
+ verification, not a change (`TOKEN_UNKNOWN`). Send the change link with your
362
+ own mailer for now; `mail.emailChanged` still tells the former address
363
+ afterwards.
364
+
358
365
  **Send to `issued.email`, which the methods do.** Never to what the visitor
359
366
  typed: the flow answers the address the user's record holds, as they
360
367
  registered it. `emailChanged` goes to `formerEmail` — the address a hijacker
@@ -107,7 +107,7 @@ specs and its typecheck run on in the Floors job, on every CI run. The
107
107
  manifest says which format it is in — `formatVersion`, its first key,
108
108
  `MANIFEST_FORMAT` of the `@nxgt/mail-i18n` that built it — and a renderer
109
109
  reads every format up to its own.
110
- `@nxgt/mail` 0.1.0 through 1.0.1 read format 1, `@nxgt/mail-i18n` 1.0.1
110
+ `@nxgt/mail` 0.1.0 through 1.0.2 read format 1, `@nxgt/mail-i18n` 1.0.1
111
111
  still writes it, and a manifest without the field is format 1.
112
112
 
113
113
  `formatProblem` in `scripts/build-mail.ts` (spec'd beside it) fails the build
package/docs/roadmap.md CHANGED
@@ -9,6 +9,10 @@ Nothing between releases.
9
9
 
10
10
  ## Next
11
11
 
12
+ - **A changeEmail link template** — the e-mail for the link
13
+ `changeEmail.send` issues, to the new address: it says the account moves to
14
+ this address, and to ignore it if the reader did not ask. Needs a preset in
15
+ `@nxgt/mail-presets` first; until then send that link with your own mailer.
12
16
  - **The invitation** — `invitation` from `@nxgt/mail-presets`, once
13
17
  `@nxgt/janus` has a flow that sends it: an invitation to a user type.
14
18
  - **The other presets of `@nxgt/mail-presets` 0.4.0** — `account-deleted`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/janus-mail",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "The e-mails of @nxgt/janus's flows — e-mail verification, password reset, sign-in code, sign-in link, step-up code, password changed, e-mail changed, two-factor enabled and disabled, recovery code used, new sign-in, welcome — rendered in English and French from a prebuilt Maizzle build, with your brand, sent through any @nxgt/mail transport",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -54,9 +54,9 @@
54
54
  "@maizzle/framework": "6.1.7",
55
55
  "@maizzle/tailwindcss": "1.5.6",
56
56
  "@formatjs/icu-messageformat-parser": "3.5.20",
57
- "@nxgt/janus": "^0.22.1",
58
- "@nxgt/mail": "1.0.1",
59
- "@nxgt/mail-config": "1.0.2",
57
+ "@nxgt/janus": "^0.23.0",
58
+ "@nxgt/mail": "1.0.2",
59
+ "@nxgt/mail-config": "1.0.3",
60
60
  "@nxgt/mail-i18n": "1.0.1",
61
61
  "@nxgt/mail-presets": "1.1.1",
62
62
  "@nxgt/mail-ui": "1.0.1",
@@ -66,7 +66,7 @@
66
66
  "zod": "^4.6.5"
67
67
  },
68
68
  "peerDependencies": {
69
- "@nxgt/janus": "^0.22.1",
69
+ "@nxgt/janus": "^0.23.0",
70
70
  "@nxgt/mail": ">=0.1.0 <2",
71
71
  "typescript": "^6.0.3 || ^7.0.0"
72
72
  }